/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
H A D | RecoverableKeyStoreManagerTest.java | 211 int userId = UserHandle.getCallingUserId(); in importKey_storesTheKey() 244 int userId = UserHandle.getCallingUserId(); in importKeyWithMetadata_nullMetadata_storesTheKey() 257 int userId = UserHandle.getCallingUserId(); in importKeyWithMetadata_nonNullMetadata_storesTheKey() 293 int userId = UserHandle.getCallingUserId(); in generateKeyWithMetadata_nullMetadata_storesTheKey() 304 int userId = UserHandle.getCallingUserId(); in generateKeyWithMetadata_nonNullMetadata_storesTheKey() 325 int userId = UserHandle.getCallingUserId(); in removeKey_updatesShouldCreateSnapshot() 338 int userId = UserHandle.getCallingUserId(); in removeKey_failureDoesNotUpdateShouldCreateSnapshot() 349 int userId = UserHandle.getCallingUserId(); in initRecoveryService_succeedsWithCertFile() 370 int userId = UserHandle.getCallingUserId(); in initRecoveryService_updatesShouldCreatesnapshotOnCertUpdate() 397 int userId = UserHandle.getCallingUserId(); in initRecoveryService_triesToFilterRootAlias() [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/timezonedetector/ |
H A D | CallerIdentityInjector.java | 33 @UserIdInt int getCallingUserId(); in getCallingUserId() method 48 public int getCallingUserId() { in getCallingUserId() method in CallerIdentityInjector.Real 49 return UserHandle.getCallingUserId(); in getCallingUserId()
|
H A D | TimeZoneDetectorService.java | 145 int userId = mCallerIdentityInjector.getCallingUserId(); in getCapabilitiesAndConfig() 164 int callingUserId = mCallerIdentityInjector.getCallingUserId(); in updateConfiguration() 290 int userId = mCallerIdentityInjector.getCallingUserId(); in suggestManualTimeZone()
|
/aosp12/frameworks/base/services/contentsuggestions/java/com/android/server/contentsuggestions/ |
H A D | ContentSuggestionsManagerService.java | 134 enforceCaller(UserHandle.getCallingUserId(), "provideContextBitmap"); in provideContextBitmap() 158 enforceCaller(UserHandle.getCallingUserId(), "provideContextImage"); in provideContextImage() 195 enforceCaller(UserHandle.getCallingUserId(), "suggestContentSelections"); in suggestContentSelections() 214 enforceCaller(UserHandle.getCallingUserId(), "classifyContentSelections"); in classifyContentSelections() 231 enforceCaller(UserHandle.getCallingUserId(), "notifyInteraction"); in notifyInteraction() 248 enforceCaller(UserHandle.getCallingUserId(), "isEnabled"); in isEnabled()
|
/aosp12/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | CrossProfileAppsServiceImpl.java | 104 callingPackage, mInjector.getCallingUserId()); in getTargetUserProfiles() 125 final int callerUserId = mInjector.getCallingUserId(); in startActivityAsUser() 201 final int callerUserId = mInjector.getCallingUserId(); in startActivityAsUserByIntent() 259 mInjector.getUserManager().getEnabledProfileIds(mInjector.getCallingUserId()); in canRequestInteractAcrossProfilesUnchecked() 287 callingPackage, mInjector.getCallingUserId()); in canInteractAcrossProfiles() 422 setInteractAcrossProfilesAppOp(packageName, newMode, mInjector.getCallingUserId()); 606 packageName, mInjector.getCallingUserId()); 722 return isManagedProfile(mInjector.getCallingUserId()); 777 public int getCallingUserId() { 778 return UserHandle.getCallingUserId(); [all …]
|
H A D | LauncherAppsService.java | 219 private int getCallingUserId() { in getCallingUserId() method in LauncherAppsService.LauncherAppsImpl 270 UserHandle callingIdUserHandle = new UserHandle(getCallingUserId()); in registerPackageInstallerCallback() 280 int[] userIds = mUm.getEnabledProfileIds(getCallingUserId()); in getAllSessions() 521 getCallingUserId()); in hasDefaultEnableLauncherActivity() 694 getCallingUserId(), callingPackage, packageName, shortcutId, in getShortcutIntent() 849 mShortcutServiceInternal.getShortcuts(getCallingUserId(), in getShortcuts() 896 mShortcutServiceInternal.pinShortcuts(getCallingUserId(), in pinShortcuts() 909 getCallingUserId(), callingPackage, packageName, ids, in cacheShortcuts() 922 getCallingUserId(), callingPackage, packageName, ids, in uncacheShortcuts() 946 return mShortcutServiceInternal.getShortcutIconFd(getCallingUserId(), in getShortcutIconFd() [all …]
|
H A D | DataLoaderManagerService.java | 97 mHandler, UserHandle.of(UserHandle.getCallingUserId()))) { in bindToDataLoader() 122 pm.queryIntentServicesAsUser(intent, 0, UserHandle.getCallingUserId()); in resolveDataLoaderComponentName()
|
/aosp12/frameworks/base/services/core/java/com/android/server/search/ |
H A D | SearchManagerService.java | 225 return getSearchables(UserHandle.getCallingUserId()).getSearchableInfo(launchActivity); in getSearchableInfo() 233 return getSearchables(UserHandle.getCallingUserId()).getSearchablesInGlobalSearchList(); in getSearchablesInGlobalSearch() 238 return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivities(); in getGlobalSearchActivities() 246 return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivity(); in getGlobalSearchActivity() 254 return getSearchables(UserHandle.getCallingUserId()).getWebSearchActivity(); in getWebSearchActivity()
|
H A D | Searchables.java | 131 UserHandle.getCallingUserId())) { in getSearchableInfo() 192 UserHandle.getCallingUserId())) { in getSearchableInfo() 470 final int callingUserId = UserHandle.getCallingUserId(); in createFilterdSearchableInfoList() 486 final int callingUserId = UserHandle.getCallingUserId(); in createFilterdResolveInfoList() 502 final int callingUserId = UserHandle.getCallingUserId(); in getGlobalSearchActivity() 516 final int callingUserId = UserHandle.getCallingUserId(); in getWebSearchActivity()
|
/aosp12/frameworks/base/services/core/java/com/android/server/content/ |
H A D | ContentService.java | 413 final int callingUserId = UserHandle.getCallingUserId(); in notifyChange() 591 int userId = UserHandle.getCallingUserId(); in requestSync() 744 int userId = UserHandle.getCallingUserId(); in cancelRequest() 901 int userId = UserHandle.getCallingUserId(); in addPeriodicSync() 933 int userId = UserHandle.getCallingUserId(); in removePeriodicSync() 957 int userId = UserHandle.getCallingUserId(); in getPeriodicSyncs() 1090 int userId = UserHandle.getCallingUserId(); in isSyncActive() 1106 return getCurrentSyncsAsUser(UserHandle.getCallingUserId()); in getCurrentSyncs() 1326 } else if (userId != UserHandle.getCallingUserId()) { in handleIncomingUser() 1361 final int callingUser = UserHandle.getCallingUserId(); in enforceCrossUserPermission() [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
H A D | RecoverableKeyStoreManager.java | 189 int userId = UserHandle.getCallingUserId(); in initRecoveryService() 362 int userId = UserHandle.getCallingUserId(); in setServerParams() 428 int userId = UserHandle.getCallingUserId(); in setRecoverySecretTypes() 465 return mDatabase.getRecoverySecretTypes(UserHandle.getCallingUserId(), in getRecoverySecretTypes() 607 int userId = UserHandle.getCallingUserId(); in recoverKeyChainSnapshot() 677 int userId = UserHandle.getCallingUserId(); in removeKey() 716 int userId = UserHandle.getCallingUserId(); in generateKeyWithMetadata() 783 int userId = UserHandle.getCallingUserId(); in importKeyWithMetadata() 817 int userId = UserHandle.getCallingUserId(); in getKey() 973 int userId = UserHandle.getCallingUserId(); in checkRecoverKeyStorePermission()
|
/aosp12/frameworks/base/services/musicrecognition/java/com/android/server/musicrecognition/ |
H A D | MusicRecognitionManagerService.java | 120 int userId = UserHandle.getCallingUserId(); in beginRecognition() 164 final int userId = UserHandle.getCallingUserId(); in isCalledByServiceAppLocked() 185 UserHandle.getCallingUserId()); in isCalledByServiceAppLocked()
|
/aosp12/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/ |
H A D | ContentCaptureManagerService.java | 564 final int userId = UserHandle.getCallingUserId(); in isCalledByServiceLocked() 661 final int userId = UserHandle.getCallingUserId(); in startSession() 680 final int userId = UserHandle.getCallingUserId(); in finishSession() 690 final int userId = UserHandle.getCallingUserId(); in getServiceComponentName() 708 final int userId = UserHandle.getCallingUserId(); in removeData() 723 final int userId = UserHandle.getCallingUserId(); in shareData() 757 final int userId = UserHandle.getCallingUserId(); in isContentCaptureFeatureEnabled() 773 final int userId = UserHandle.getCallingUserId(); in getServiceSettingsActivity() 794 final int userId = UserHandle.getCallingUserId(); in getContentCaptureConditions() 816 final int userId = UserHandle.getCallingUserId(); in registerContentCaptureOptionsCallback() [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/speech/ |
H A D | SpeechRecognitionManagerService.java | 89 int userId = UserHandle.getCallingUserId(); in createSession() 98 int userId = UserHandle.getCallingUserId(); in setTemporaryComponent()
|
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/ |
H A D | AuthService.java | 214 final int callingUserId = UserHandle.getCallingUserId(); in authenticate() 296 final int callingUserId = UserHandle.getCallingUserId(); in canAuthenticate() 335 final int callingUserId = UserHandle.getCallingUserId(); in registerEnabledOnKeyguardCallback() 375 final int callingUserId = UserHandle.getCallingUserId(); in getAuthenticatorIds() 409 final int callingUserId = UserHandle.getCallingUserId(); in getButtonLabel() 455 final int callingUserId = UserHandle.getCallingUserId(); in getPromptMessage() 525 final int callingUserId = UserHandle.getCallingUserId(); in getSettingName()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
H A D | AudioServiceTest.java | 78 UserHandle.getCallingUserId()); in testMuteMicrophone() 103 UserHandle.getCallingUserId()); in testMuteMicrophoneWhenFail()
|
/aosp12/frameworks/base/services/core/java/com/android/server/rotationresolver/ |
H A D | RotationResolverManagerService.java | 171 UserHandle.getCallingUserId()); in resolveRotation() 205 UserHandle.getCallingUserId()); in dump() 218 UserHandle.getCallingUserId()); in onShellCommand()
|
/aosp12/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | StorageStatsService.java | 290 if (userId != UserHandle.getCallingUserId()) { in queryStatsForPackage() 354 if (userId != UserHandle.getCallingUserId()) { in queryStatsForUid() 414 if (userId != UserHandle.getCallingUserId()) { in queryStatsForUser() 447 if (userId != UserHandle.getCallingUserId()) { in queryExternalStatsForUser() 693 if (userId != UserHandle.getCallingUserId()) { in queryCratesForPackage() 722 if (userId != UserHandle.getCallingUserId()) { in queryCratesForUid() 763 if (userId != UserHandle.getCallingUserId()) { in queryCratesForUser()
|
/aosp12/frameworks/base/services/autofill/java/com/android/server/autofill/ |
H A D | AutofillManagerService.java | 1435 final int userId = UserHandle.getCallingUserId(); in getFillEventHistory() 1451 final int userId = UserHandle.getCallingUserId(); in getUserData() 1467 final int userId = UserHandle.getCallingUserId(); in getUserDataId() 1484 final int userId = UserHandle.getCallingUserId(); in setUserData() 1499 final int userId = UserHandle.getCallingUserId(); in isFieldClassificationEnabled() 1516 final int userId = UserHandle.getCallingUserId(); in getDefaultFieldClassificationAlgorithm() 1536 final int userId = UserHandle.getCallingUserId(); in setAugmentedAutofillWhitelist() 1558 final int userId = UserHandle.getCallingUserId(); in getAvailableFieldClassificationAlgorithms() 1577 final int userId = UserHandle.getCallingUserId(); in getAutofillServiceComponentName() 1595 final int userId = UserHandle.getCallingUserId(); in restoreSession() [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/accounts/ |
H A D | AccountManagerService.java | 466 int userId = UserHandle.getCallingUserId(); in addAccountExplicitlyWithVisibility() 498 int userId = UserHandle.getCallingUserId(); in getAccountsAndVisibilityForPackage() 554 int userId = UserHandle.getCallingUserId(); in getPackagesAndVisibilityForAccount() 602 int userId = UserHandle.getCallingUserId(); in getAccountVisibility() 767 int userId = UserHandle.getCallingUserId(); in setAccountVisibility() 889 int userId = UserHandle.getCallingUserId(); in registerAccountListener() 922 int userId = UserHandle.getCallingUserId(); in unregisterAccountListener() 1498 int userId = UserHandle.getCallingUserId(); in getPassword() 1540 int userId = UserHandle.getCallingUserId(); in getPreviousName() 1579 int userId = UserHandle.getCallingUserId(); in getUserData() [all …]
|
/aosp12/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
H A D | AppWidgetServiceImpl.java | 729 final int userId = UserHandle.getCallingUserId(); in startListening() 774 final int userId = UserHandle.getCallingUserId(); in stopListening() 801 final int userId = UserHandle.getCallingUserId(); in allocateAppWidgetId() 850 final int userId = UserHandle.getCallingUserId(); in deleteAppWidgetId() 938 final int userId = UserHandle.getCallingUserId(); in createAppWidgetConfigIntentSender() 989 final int userId = UserHandle.getCallingUserId(); in bindAppWidgetId() 1100 final int userId = UserHandle.getCallingUserId(); in getAppWidgetIds() 1127 final int userId = UserHandle.getCallingUserId(); in getAppWidgetIdsForHost() 1156 final int userId = UserHandle.getCallingUserId(); in bindRemoteViewsService() 1228 final int userId = UserHandle.getCallingUserId(); in deleteHost() [all …]
|
/aosp12/frameworks/base/services/restrictions/java/com/android/server/restrictions/ |
H A D | RestrictionsManagerService.java | 77 int userHandle = UserHandle.getCallingUserId(); in hasRestrictionsProvider() 131 final int userHandle = UserHandle.getCallingUserId(); in createLocalApprovalIntent()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/ |
H A D | TestCallerIdentityInjector.java | 37 public int getCallingUserId() { in getCallingUserId() method in TestCallerIdentityInjector
|
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/ |
H A D | FingerprintService.java | 287 final int callingUserId = UserHandle.getCallingUserId(); in authenticate() 495 final int callingUserId = UserHandle.getCallingUserId(); in cancelAuthentication() 650 UserHandle.getCallingUserId())) { in isHardwareDetectedDeprecated() 701 UserHandle.getCallingUserId())) { in getEnrolledFingerprints() 705 if (userId != UserHandle.getCallingUserId()) { in getEnrolledFingerprints() 716 UserHandle.getCallingUserId())) { in hasEnrolledFingerprintsDeprecated() 720 if (userId != UserHandle.getCallingUserId()) { in hasEnrolledFingerprintsDeprecated()
|
/aosp12/frameworks/base/services/companion/java/com/android/server/companion/ |
H A D | CompanionDeviceManagerService.java | 423 int userId = getCallingUserId(); in associate() 488 checkUsesFeature(callingPackage, getCallingUserId()); in getAssociations() 511 checkUsesFeature(callingPackage, getCallingUserId()); in disassociate() 512 removeAssociation(getCallingUserId(), callingPackage, deviceMacAddress); in disassociate() 522 checkCallerIsSystemOr(pkg, getCallingUserId()); in checkCallerIsSystemOr() 530 checkArgument(getCallingUserId() == userId, in checkCallerIsSystemOr() 558 int userId = getCallingUserId(); in requestNotificationAccess() 629 int userId = getCallingUserId(); in registerDevicePresenceListenerActive() 677 int userId = getCallingUserId(); in checkCanCallNotificationApi() 738 private static int getCallingUserId() { in getCallingUserId() method in CompanionDeviceManagerService
|