Home
last modified time | relevance | path

Searched refs:getUserId (Results 1 – 25 of 687) sorted by relevance

12345678910>>...28

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/settings/
H A DSettingsProxy.java59 default int getUserId() { in getUserId() method
60 return getContentResolver().getUserId(); in getUserId()
71 return getUserTracker().getUserId(); in getRealUserHandle()
177 return getStringForUser(name, getUserId()); in getString()
265 return getIntForUser(name, def, getUserId()); in getInt()
296 return getIntForUser(name, getUserId()); in getInt()
345 return getBoolForUser(name, def, getUserId()); in getBool()
371 return getBoolForUser(name, getUserId()); in getBool()
415 return getLongForUser(name, def, getUserId()); in getLong()
447 return getLongForUser(name, getUserId()); in getLong()
[all …]
/aosp14/frameworks/base/services/flags/java/com/android/server/flags/
H A DSettingsProxy.java86 default int getUserId() { in getUserId() method
87 return getContentResolver().getUserId(); in getUserId()
92 return getStringForUser(name, getUserId()); in getString()
111 return getIntForUser(name, getUserId()); in getInt()
127 return putIntForUser(name, value, getUserId()); in putInt()
149 return getBoolForUser(name, def, getUserId()); in getBool()
175 return getBoolForUser(name, getUserId()); in getBool()
207 return getLongForUser(name, def, getUserId()); in getLong()
224 return getLongForUser(name, getUserId()); in getLong()
250 return getFloatForUser(name, def, getUserId()); in getFloat()
[all …]
/aosp14/frameworks/base/core/java/android/service/notification/
H A DNotifyingApp.java42 public int getUserId() { in getUserId() method in NotifyingApp
107 return getUserId() == that.getUserId() in equals()
114 return Objects.hash(getUserId(), mPkg, getLastNotified()); in hashCode()
123 if (getUserId() == o.getUserId()) { in compareTo()
126 return Integer.compare(getUserId(), o.getUserId()); in compareTo()
/aosp14/frameworks/base/core/java/android/content/
H A DClipboardManager.java148 return mService.areClipboardAccessNotificationsEnabledForUser(mContext.getUserId()); in areClipboardAccessNotificationsEnabled()
186 mContext.getUserId(), in setPrimaryClip()
215 mContext.getUserId(), in setPrimaryClipAsPackage()
233 mContext.getUserId(), in clearPrimaryClip()
253 mContext.getUserId(), in getPrimaryClip()
274 mContext.getUserId(), in getPrimaryClipDescription()
292 mContext.getUserId(), in hasPrimaryClip()
307 mContext.getUserId(), in addPrimaryClipChangedListener()
326 mContext.getUserId(), in removePrimaryClipChangedListener()
367 mContext.getUserId(), in hasText()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
H A DJobNotificationCoordinatorTest.java178 eq(notificationId), eq(UserHandle.getUserId(uid))); in testSingleJob_RemoveOnStop()
233 eq(notificationId1), eq(UserHandle.getUserId(uid))); in testSingleJob_EnqueueDifferentNotificationId_RemoveOnStop()
301 eq(notificationId1), eq(UserHandle.getUserId(uid))); in testMultipleJobs_sameApp_EnqueueDifferentNotificationId()
310 eq(notificationId2), eq(UserHandle.getUserId(uid))); in testMultipleJobs_sameApp_EnqueueDifferentNotificationId()
352 eq(notificationId), eq(UserHandle.getUserId(uid))); in testMultipleJobs_sameApp_EnqueueSameNotificationId()
389 eq(notificationId), eq(UserHandle.getUserId(uid1))); in testMultipleJobs_sameApp_DifferentUsers()
398 eq(notificationId), eq(UserHandle.getUserId(uid2))); in testMultipleJobs_sameApp_DifferentUsers()
436 eq(notificationId), eq(UserHandle.getUserId(uid))); in testMultipleJobs_differentApps()
445 eq(notificationId), eq(UserHandle.getUserId(uid))); in testMultipleJobs_differentApps()
467 eq(notificationId), eq(UserHandle.getUserId(uid))); in testUserStop_SingleJob_DetachOnStop()
[all …]
/aosp14/frameworks/base/core/java/android/app/
H A DGameManager.java151 mContext.getUserId()); in getGameModeImpl()
180 return mService.getGameModeInfo(packageName, mContext.getUserId()); in getGameModeInfo()
200 mService.setGameMode(packageName, gameMode, mContext.getUserId()); in setGameMode()
216 return mService.getAvailableGameModes(packageName, mContext.getUserId()); in getAvailableGameModes()
236 return mService.isAngleEnabled(packageName, mContext.getUserId()); in isAngleEnabled()
251 mContext.getPackageName(), mContext.getUserId()); in notifyGraphicsEnvironmentSetup()
263 mService.setGameState(mContext.getPackageName(), gameState, mContext.getUserId()); in setGameState()
301 mContext.getUserId()); in updateCustomGameModeConfiguration()
H A DLocaleManager.java111 mService.setApplicationLocales(appPackageName, mContext.getUserId(), locales, in setApplicationLocales()
149 return mService.getApplicationLocales(appPackageName, mContext.getUserId()); in getApplicationLocales()
215 mService.setOverrideLocaleConfig(mContext.getPackageName(), mContext.getUserId(), in setOverrideLocaleConfig()
232 mContext.getUserId()); in getOverrideLocaleConfig()
H A DApplicationPackageManager.java203 public int getUserId() { in getUserId() method in ApplicationPackageManager
204 return mContext.getUserId(); in getUserId()
228 final int userId = getUserId(); in getPackageInfo()
358 final int userId = getUserId(); in getPackageGids()
559 final int userId = getUserId(); in getActivityInfo()
582 final int userId = getUserId(); in getReceiverInfo()
605 final int userId = getUserId(); in getServiceInfo()
628 final int userId = getUserId(); in getProviderInfo()
1044 getUserId()); in requestChecksums()
1264 final int userId = getUserId(); in getPackagesHoldingPermissions()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/
H A DFakeServiceConfigAccessor.java57 return getConfigurationInternal(mCurrentUserConfigurationInternal.getUserId()); in getCurrentUserConfigurationInternal()
82 if (updatedConfiguration.getUserId() == mCurrentUserConfigurationInternal.getUserId()) { in updateConfiguration()
85 && updatedConfiguration.getUserId() in updateConfiguration()
86 == mOtherUserConfigurationInternal.getUserId()) { in updateConfiguration()
118 if (userId == mCurrentUserConfigurationInternal.getUserId()) { in getConfigurationInternal()
121 && userId == mOtherUserConfigurationInternal.getUserId()) { in getConfigurationInternal()
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/contextsync/
H A DCallMetadataSyncInCallService.java57 sync(getUserId());
133 if (associationInfo.getUserId() == getUserId()) {
140 if (userId == getUserId()) {
173 sync(getUserId()); in initializeCalls()
198 sync(getUserId()); in onCallAdded()
210 sync(getUserId()); in onCallRemoved()
218 mCdmsi.sendCrossDeviceSyncMessageToAllDevices(getUserId(), in onMuteStateChanged()
228 mCdmsi.sendCrossDeviceSyncMessageToAllDevices(getUserId(), in onSilenceRinger()
/aosp14/frameworks/base/core/java/android/apphibernation/
H A DAppHibernationManager.java66 return mIAppHibernationService.isHibernatingForUser(packageName, mContext.getUserId()); in isHibernatingForUser()
81 mIAppHibernationService.setHibernatingForUser(packageName, mContext.getUserId(), in setHibernatingForUser()
130 return mIAppHibernationService.getHibernatingPackagesForUser(mContext.getUserId()); in getHibernatingPackagesForUser()
148 new ArrayList(packageNames), mContext.getUserId()); in getHibernationStatsForUser()
164 null /* packageNames */, mContext.getUserId()); in getHibernationStatsForUser()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
H A DWifiRestrictionsCacheTest.java74 when(mContext.getUserId()).thenReturn(USER_OWNER); in setUp()
79 when(mContext.getUserId()).thenReturn(USER_GUEST); in setUp()
92 when(mContext.getUserId()).thenReturn(USER_OWNER); in getInstance_sameUserId_sameInstance()
102 when(mContext.getUserId()).thenReturn(USER_OWNER); in getInstance_diffUserId_diffInstance()
105 when(mContext.getUserId()).thenReturn(USER_GUEST); in getInstance_diffUserId_diffInstance()
168 when(mContext.getUserId()).thenReturn(userId); in mockInstance()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotifyingAppTest.java39 assertEquals(0, na.getUserId()); in testConstructor()
55 assertEquals(90, na.getUserId()); in testUserId()
78 assertEquals(na.getUserId(), na1.getUserId()); in testWriteToParcel()
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DGroupHelper.java96 maybeUngroup(sbn, false, sbn.getUserId()); in onNotificationPosted()
106 maybeUngroup(sbn, true, sbn.getUserId()); in onNotificationRemoved()
125 String key = generatePackageKey(sbn.getUserId(), sbn.getPackageName()); in maybeGroup()
139 mCallback.updateAutogroupSummary(sbn.getUserId(), sbn.getPackageName(), flags); in maybeGroup()
142 sbn.getUserId(), sbn.getPackageName(), sbn.getKey(), flags); in maybeGroup()
165 String key = generatePackageKey(sbn.getUserId(), sbn.getPackageName()); in maybeUngroup()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/job/
H A DJobSetTest.java71 assumeFalse("Test cannot run in user " + mContext.getUserId(), in setUp()
72 mContext.getUserId() == SECONDARY_USER_ID_1 in setUp()
73 || mContext.getUserId() == SECONDARY_USER_ID_2); in setUp()
82 mContext.getUserId(), "Namespace", "Test"); in getJobStatusWithCallinUid()
100 mJobSet.removeJobsOfUnlistedUsers(new int[] {mContext.getUserId(), SECONDARY_USER_ID_1}); in testBothMapsHaveSameJobs()
102 mJobSet.removeJobsOfUnlistedUsers(new int[] {mContext.getUserId()}); in testBothMapsHaveSameJobs()
/aosp14/frameworks/base/core/java/android/os/
H A DUserHandle.java203 return getUserId(uid1) == getUserId(uid2); in isSameUser()
275 return of(getUserId(uid)); in getUserHandleForUid()
284 public static @UserIdInt int getUserId(int uid) { in getUserId() method in UserHandle
295 return getUserId(Binder.getCallingUid()); in getCallingUserId()
418 return getSharedAppGid(getUserId(uid), getAppId(uid)); in getSharedAppGid()
448 return getCacheAppGid(getUserId(uid), getAppId(uid)); in getCacheAppGid()
470 sb.append(getUserId(uid)); in formatUid()
517 pw.print(getUserId(uid)); in formatUid()
561 return getUserId(Process.myUid()); in myUserId()
/aosp14/frameworks/base/core/java/android/companion/
H A DCompanionDeviceManager.java395 mContext.getOpPackageName(), mContext.getUserId()); in associate()
455 mContext.getOpPackageName(), mContext.getUserId()); in associate()
481 mContext.getOpPackageName(), mContext.getUserId()); in buildAssociationCancellationIntent()
625 mContext.getUserId()); in disassociate()
766 return mService.getAllAssociationsForUser(mContext.getUserId()); in getAllAssociations()
1024 mContext.getOpPackageName(), mContext.getUserId()); in startObservingDevicePresence()
1066 mContext.getPackageName(), mContext.getUserId()); in stopObservingDevicePresence()
1266 mContext.getUserId(), in buildPermissionTransferUserConsentIntent()
1346 mContext.getOpPackageName(), mContext.getUserId()); in isCompanionApplicationBound()
1525 mContext.getUserId(), mAssociationId, remoteFd); in start()
[all …]
/aosp14/frameworks/base/core/java/android/view/translation/
H A DUiTranslationManager.java210 mContext.getUserId()); in startTranslation()
234 mContext.getUserId()); in finishTranslation()
258 mContext.getUserId()); in pauseTranslation()
282 mContext.getUserId()); in resumeTranslation()
327 mService.registerUiTranslationStateCallback(remoteCallback, mContext.getUserId()); in registerUiTranslationStateCallback()
350 mService.unregisterUiTranslationStateCallback(remoteCallback, mContext.getUserId()); in unregisterUiTranslationStateCallback()
371 mContext.getUserId()); in onTranslationFinished()
/aosp14/frameworks/base/core/java/android/app/usage/
H A DUsageStatsManager.java467 endTime, mContext.getOpPackageName(), mContext.getUserId()); in queryUsageStats()
671 return mService.isAppInactive(packageName, mContext.getUserId(), in isAppInactive()
684 mService.setAppInactive(packageName, inactive, mContext.getUserId()); in setAppInactive()
713 mContext.getUserId()); in getAppStandbyBucket()
730 mContext.getUserId()); in getAppStandbyBucket()
769 mContext.getOpPackageName(), mContext.getUserId()); in getAppStandbyBuckets()
802 mService.setAppStandbyBuckets(slice, mContext.getUserId()); in setAppStandbyBuckets()
819 mContext.getUserId()); in getAppMinStandbyBucket()
850 packageName, estimatedLaunchTimeMillis, mContext.getUserId()); in setEstimatedLaunchTimeMillis()
887 mService.setEstimatedLaunchTimes(slice, mContext.getUserId()); in setEstimatedLaunchTimesMillis()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/
H A DAuthenticationStats.java50 public int getUserId() { in getUserId() method in AuthenticationStats
109 return this.getUserId() == target.getUserId() in equals()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
H A DQSTileHostTest.java177 }, mUserTracker.getUserId()); in setUp()
560 int user = mUserTracker.getUserId(); in testIsTileAdded_true()
571 int user = mUserTracker.getUserId(); in testIsTileAdded_false()
582 int user = mUserTracker.getUserId(); in testIsTileAdded_notSet()
589 int user = mUserTracker.getUserId(); in testIsTileAdded_differentUser()
600 int user = mUserTracker.getUserId(); in testSetTileAdded_true()
609 int user = mUserTracker.getUserId(); in testSetTileAdded_false()
618 int user = mUserTracker.getUserId(); in testSetTileAdded_differentUser()
627 int user = mUserTracker.getUserId(); in testSetTileRemoved_afterCustomTileChangedByUser()
640 int user = mUserTracker.getUserId(); in testSetTileRemoved_removedByUser()
[all …]
/aosp14/frameworks/base/core/java/android/app/people/
H A DPeopleManager.java103 return mService.isConversation(packageName, mContext.getUserId(), shortcutId); in isConversation()
129 mContext.getPackageName(), mContext.getUserId(), conversationId, status); in addOrUpdateStatus()
148 mContext.getPackageName(), mContext.getUserId(), conversationId, statusId); in clearStatus()
164 mContext.getPackageName(), mContext.getUserId(), conversationId); in clearStatuses()
180 mContext.getPackageName(), mContext.getUserId(), conversationId); in getStatuses()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DWindowProcessControllerMapTests.java68 UserHandle.getUserId(12345), mock(Object.class), mock(WindowProcessListener.class)); in setUp()
72 UserHandle.getUserId(12345), mock(Object.class), mock(WindowProcessListener.class)); in setUp()
76 UserHandle.getUserId(12345), mock(Object.class), mock(WindowProcessListener.class)); in setUp()
80 UserHandle.getUserId(12345), mock(Object.class), mock(WindowProcessListener.class)); in setUp()
84 UserHandle.getUserId(12345), mock(Object.class), mock(WindowProcessListener.class)); in setUp()
/aosp14/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsShellCommand.java66 final int userId = getUserId(); in runClearLastUsedTimestamps()
78 final int userId = getUserId(); in deletePackageData()
87 private int getUserId() { in getUserId() method in UsageStatsShellCommand
/aosp14/frameworks/base/core/java/android/app/backup/
H A DBackupManager.java376 sService.beginRestoreSessionForUser(mContext.getUserId(), null, null); in beginRestoreSession()
433 sService.setFrameworkSchedulingEnabledForUser(mContext.getUserId(), isEnabled); in setFrameworkSchedulingEnabled()
550 return sService.getCurrentTransportComponentForUser(mContext.getUserId()); in getCurrentTransportComponent()
660 mContext.getUserId(), in updateTransportAttributes()
721 mContext.getUserId(), transport, wrapper); in selectBackupTransport()
768 return sService.getAvailableRestoreTokenForUser(mContext.getUserId(), packageName); in getAvailableRestoreToken()
790 return sService.isAppEligibleForBackupForUser(mContext.getUserId(), packageName); in isAppEligibleForBackup()
934 return sService.getConfigurationIntentForUser(mContext.getUserId(), transportName); in getConfigurationIntent()
955 return sService.getDestinationStringForUser(mContext.getUserId(), transportName); in getDestinationString()
976 return sService.getDataManagementIntentForUser(mContext.getUserId(), transportName); in getDataManagementIntent()
[all …]

12345678910>>...28