/aosp14/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 | 163 int userId = mCallerIdentityInjector.getCallingUserId(); in getCapabilitiesAndConfig() 186 int callingUserId = mCallerIdentityInjector.getCallingUserId(); in updateConfiguration() 354 int userId = mCallerIdentityInjector.getCallingUserId(); in setManualTimeZone() 370 int userId = mCallerIdentityInjector.getCallingUserId(); in suggestManualTimeZone()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
H A D | RecoverableKeyStoreManagerTest.java | 195 mUserId = UserHandle.getCallingUserId(); in setUp() 241 int userId = UserHandle.getCallingUserId(); in importKey_storesTheKey() 274 int userId = UserHandle.getCallingUserId(); in importKeyWithMetadata_nullMetadata_storesTheKey() 287 int userId = UserHandle.getCallingUserId(); in importKeyWithMetadata_nonNullMetadata_storesTheKey() 323 int userId = UserHandle.getCallingUserId(); in generateKeyWithMetadata_nullMetadata_storesTheKey() 334 int userId = UserHandle.getCallingUserId(); in generateKeyWithMetadata_nonNullMetadata_storesTheKey() 355 int userId = UserHandle.getCallingUserId(); in removeKey_updatesShouldCreateSnapshot() 368 int userId = UserHandle.getCallingUserId(); in removeKey_failureDoesNotUpdateShouldCreateSnapshot() 380 int userId = UserHandle.getCallingUserId(); in initRecoveryService_succeedsWithCertFile() 402 int userId = UserHandle.getCallingUserId(); in initRecoveryService_updatesShouldCreatesnapshotOnCertUpdate() [all …]
|
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/ |
H A D | PermissionsUtils.java | 33 import static android.os.UserHandle.getCallingUserId; 112 if (getCallingUserId() == userId) return true; in checkCallerCanInteractWithUserId() 118 if (getCallingUserId() == userId) return; in enforceCallerCanInteractWithUserId() 133 if (getCallingUserId() != userId) return false; in checkCallerIsSystemOr() 148 final int callingUserId = getCallingUserId(); in enforceCallerIsSystemOr() 149 if (getCallingUserId() != userId) { in enforceCallerIsSystemOr()
|
/aosp14/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()
|
/aosp14/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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | CrossProfileAppsServiceImpl.java | 106 callingPackage, mInjector.getCallingUserId()); in getTargetUserProfiles() 129 final int callerUserId = mInjector.getCallingUserId(); in startActivityAsUser() 212 final int callerUserId = mInjector.getCallingUserId(); in startActivityAsUserByIntent() 269 final int callingUserId = mInjector.getCallingUserId(); in canRequestInteractAcrossProfilesUnchecked() 300 callingPackage, mInjector.getCallingUserId()); in canInteractAcrossProfiles() 337 int userId = mInjector.getCallingUserId(); in isCrossProfilePackageAllowlisted() 601 if (mInjector.getCallingUserId() != userId) { 624 if (mInjector.getCallingUserId() != userId) { 803 public int getCallingUserId() { 804 return UserHandle.getCallingUserId(); [all …]
|
H A D | DomainVerificationConnection.java | 56 public int getCallingUserId() { in getCallingUserId() method in DomainVerificationConnection 57 return UserHandle.getCallingUserId(); in getCallingUserId()
|
H A D | LauncherAppsService.java | 276 private int getCallingUserId() { in getCallingUserId() method in LauncherAppsService.LauncherAppsImpl 327 UserHandle callingIdUserHandle = new UserHandle(getCallingUserId()); in registerPackageInstallerCallback() 337 int[] userIds = mUm.getEnabledProfileIds(getCallingUserId()); in getAllSessions() 605 getCallingUserId()); in hasDefaultEnableLauncherActivity() 779 mShortcutServiceInternal.createShortcutIntentsAsync(getCallingUserId(), in getShortcutIntent() 950 mShortcutServiceInternal.getShortcuts(getCallingUserId(), in getShortcuts() 984 mShortcutServiceInternal.getShortcutsAsync(getCallingUserId(), in getShortcutsAsync() 1031 mShortcutServiceInternal.pinShortcuts(getCallingUserId(), in pinShortcuts() 1044 getCallingUserId(), callingPackage, packageName, ids, in cacheShortcuts() 1057 getCallingUserId(), callingPackage, packageName, ids, in uncacheShortcuts() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/ambientcontext/ |
H A D | AmbientContextManagerService.java | 537 UserHandle.getCallingUserId(), in registerObserver() 574 UserHandle.getCallingUserId(), in registerObserverWithCallback() 578 + UserHandle.getCallingUserId()); in registerObserverWithCallback() 602 UserHandle.getCallingUserId(), in unregisterObserver() 608 + UserHandle.getCallingUserId()); in unregisterObserver() 627 UserHandle.getCallingUserId(), intArrayToIntegerSet(eventTypes)); in queryServiceStatus() 630 + UserHandle.getCallingUserId()); in queryServiceStatus() 660 UserHandle.getCallingUserId(), intArrayToIntegerSet(eventTypes)); in startConsentActivity() 666 + UserHandle.getCallingUserId()); in startConsentActivity()
|
/aosp14/frameworks/base/services/core/java/com/android/server/content/ |
H A D | ContentService.java | 435 final int callingUserId = UserHandle.getCallingUserId(); in notifyChange() 611 int userId = UserHandle.getCallingUserId(); in requestSync() 776 int userId = UserHandle.getCallingUserId(); in cancelRequest() 948 final int userId = UserHandle.getCallingUserId(); in addPeriodicSync() 985 final int userId = UserHandle.getCallingUserId(); in removePeriodicSync() 1018 final int userId = UserHandle.getCallingUserId(); in getPeriodicSyncs() 1159 final int userId = UserHandle.getCallingUserId(); in isSyncActive() 1178 return getCurrentSyncsAsUser(UserHandle.getCallingUserId()); in getCurrentSyncs() 1411 } else if (userId != UserHandle.getCallingUserId()) { in handleIncomingUser() 1446 final int callingUser = UserHandle.getCallingUserId(); in enforceCrossUserPermission() [all …]
|
/aosp14/frameworks/base/services/credentials/java/com/android/server/credentials/ |
H A D | CredentialManagerService.java | 271 final int userId = UserHandle.getCallingUserId(); in runForUser() 348 UserHandle.getCallingUserId(), in initiateProviderSessionsWithActiveContainers() 370 UserHandle.getCallingUserId(), in initiateProviderSessionsWithActiveContainers() 387 CredentialDescriptionRegistry.forUser(UserHandle.getCallingUserId()); in getFilteredResultFromRegistry() 483 final int userId = UserHandle.getCallingUserId(); in executeGetCredential() 541 final int userId = UserHandle.getCallingUserId(); in executePrepareGetCredential() 663 final int userId = UserHandle.getCallingUserId(); in executeCreateCredential() 811 final int userId = UserHandle.getCallingUserId(); in isEnabledCredentialProviderService() 863 final int userId = UserHandle.getCallingUserId(); in getCredentialProviderServicesForTesting() 913 final int userId = UserHandle.getCallingUserId(); in clearCredentialState() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
H A D | RecoverableKeyStoreManager.java | 220 int userId = UserHandle.getCallingUserId(); in initRecoveryService() 393 int userId = UserHandle.getCallingUserId(); in setServerParams() 459 int userId = UserHandle.getCallingUserId(); in setRecoverySecretTypes() 638 int userId = UserHandle.getCallingUserId(); in recoverKeyChainSnapshot() 708 int userId = UserHandle.getCallingUserId(); in removeKey() 747 int userId = UserHandle.getCallingUserId(); in generateKeyWithMetadata() 814 int userId = UserHandle.getCallingUserId(); in importKeyWithMetadata() 848 int userId = UserHandle.getCallingUserId(); in getKey() 1008 int userId = UserHandle.getCallingUserId(); in startRemoteLockscreenValidation() 1038 int userId = UserHandle.getCallingUserId(); in validateRemoteLockscreen() [all …]
|
/aosp14/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()
|
/aosp14/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()
|
/aosp14/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/ |
H A D | ContentCaptureManagerService.java | 678 final int userId = UserHandle.getCallingUserId(); in isCalledByServiceLocked() 882 UserHandle.getCallingUserId(), in createRemoteContentProtectionService() 901 final int userId = UserHandle.getCallingUserId(); in startSession() 919 final int userId = UserHandle.getCallingUserId(); in finishSession() 929 final int userId = UserHandle.getCallingUserId(); in getServiceComponentName() 947 final int userId = UserHandle.getCallingUserId(); in removeData() 962 final int userId = UserHandle.getCallingUserId(); in shareData() 1012 final int userId = UserHandle.getCallingUserId(); in getServiceSettingsActivity() 1033 final int userId = UserHandle.getCallingUserId(); in getContentCaptureConditions() 1055 final int userId = UserHandle.getCallingUserId(); in registerContentCaptureOptionsCallback() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/ |
H A D | TestCallerIdentityInjector.java | 37 public int getCallingUserId() { in getCallingUserId() method in TestCallerIdentityInjector
|
/aosp14/frameworks/base/services/core/java/com/android/server/timedetector/ |
H A D | TimeDetectorService.java | 142 int userId = mCallerIdentityInjector.getCallingUserId(); in getCapabilitiesAndConfig() 160 int callingUserId = mCallerIdentityInjector.getCallingUserId(); in updateConfiguration() 326 int userId = mCallerIdentityInjector.getCallingUserId(); in setManualTime() 350 int userId = mCallerIdentityInjector.getCallingUserId(); in suggestManualTime()
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/ |
H A D | AuthService.java | 225 final int callingUserId = UserHandle.getCallingUserId(); in authenticate() 312 final int callingUserId = UserHandle.getCallingUserId(); in canAuthenticate() 390 final int callingUserId = UserHandle.getCallingUserId(); in getAuthenticatorIds() 435 final int callingUserId = UserHandle.getCallingUserId(); in getButtonLabel() 481 final int callingUserId = UserHandle.getCallingUserId(); in getPromptMessage() 551 final int callingUserId = UserHandle.getCallingUserId(); in getSettingName()
|
/aosp14/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | StorageStatsService.java | 351 if (userId != UserHandle.getCallingUserId()) { in queryStatsForPackage() 415 if (userId != UserHandle.getCallingUserId()) { in queryStatsForUid() 475 if (userId != UserHandle.getCallingUserId()) { in queryStatsForUser() 508 if (userId != UserHandle.getCallingUserId()) { in queryExternalStatsForUser() 783 if (userId != UserHandle.getCallingUserId()) { in queryCratesForPackage() 812 if (userId != UserHandle.getCallingUserId()) { in queryCratesForUid() 853 if (userId != UserHandle.getCallingUserId()) { in queryCratesForUser()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
H A D | AudioServiceTest.java | 103 UserHandle.getCallingUserId(), null); in testMuteMicrophone() 128 UserHandle.getCallingUserId(), null); in testMuteMicrophoneWhenFail()
|
/aosp14/frameworks/base/services/core/java/com/android/server/accounts/ |
H A D | AccountManagerService.java | 486 int userId = UserHandle.getCallingUserId(); in addAccountExplicitlyWithVisibility() 518 int userId = UserHandle.getCallingUserId(); in getAccountsAndVisibilityForPackage() 574 int userId = UserHandle.getCallingUserId(); in getPackagesAndVisibilityForAccount() 622 int userId = UserHandle.getCallingUserId(); in getAccountVisibility() 790 int userId = UserHandle.getCallingUserId(); in setAccountVisibility() 919 int userId = UserHandle.getCallingUserId(); in registerAccountListener() 952 int userId = UserHandle.getCallingUserId(); in unregisterAccountListener() 1540 int userId = UserHandle.getCallingUserId(); in getPassword() 1582 int userId = UserHandle.getCallingUserId(); in getPreviousName() 1621 int userId = UserHandle.getCallingUserId(); in getUserData() [all …]
|
/aosp14/frameworks/base/services/restrictions/java/com/android/server/restrictions/ |
H A D | RestrictionsManagerService.java | 94 int userHandle = UserHandle.getCallingUserId(); in hasRestrictionsProvider() 148 final int userHandle = UserHandle.getCallingUserId(); in createLocalApprovalIntent()
|
/aosp14/frameworks/base/services/texttospeech/java/com/android/server/texttospeech/ |
H A D | TextToSpeechManagerService.java | 73 UserHandle.getCallingUserId()); in createSession()
|