Home
last modified time | relevance | path

Searched refs:getCallingUserId (Results 1 – 25 of 124) sorted by relevance

12345

/frameworks/base/services/core/java/com/android/server/timezonedetector/
DCallerIdentityInjector.java40 @UserIdInt int getCallingUserId(); in getCallingUserId() method
61 public int getCallingUserId() { in getCallingUserId() method in CallerIdentityInjector.Real
62 return UserHandle.getCallingUserId(); in getCallingUserId()
DTimeZoneDetectorService.java161 int userId = mCallerIdentityInjector.getCallingUserId(); in getCapabilitiesAndConfig()
184 int callingUserId = mCallerIdentityInjector.getCallingUserId(); in updateConfiguration()
351 int userId = mCallerIdentityInjector.getCallingUserId(); in setManualTimeZone()
367 int userId = mCallerIdentityInjector.getCallingUserId(); in suggestManualTimeZone()
/frameworks/base/services/companion/java/com/android/server/companion/utils/
DPermissionsUtils.java36 import static android.os.UserHandle.getCallingUserId;
130 if (getCallingUserId() == userId) return true; in checkCallerCanInteractWithUserId()
139 if (getCallingUserId() == userId) return; in enforceCallerCanInteractWithUserId()
162 final int callingUserId = getCallingUserId(); in enforceCallerIsSystemOr()
163 if (getCallingUserId() != userId) { in enforceCallerIsSystemOr()
192 if (getCallingUserId() == userId) { in enforceCallerCanManageAssociationsForPackage()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyStoreManagerTest.java195 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 …]
/frameworks/base/services/contentsuggestions/java/com/android/server/contentsuggestions/
DContentSuggestionsManagerService.java134 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()
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileAppsServiceImpl.java107 callingPackage, mInjector.getCallingUserId()); in getTargetUserProfiles()
130 final int callerUserId = mInjector.getCallingUserId(); in startActivityAsUser()
213 final int callerUserId = mInjector.getCallingUserId(); in startActivityAsUserByIntent()
270 final int callingUserId = mInjector.getCallingUserId(); in canRequestInteractAcrossProfilesUnchecked()
302 callingPackage, mInjector.getCallingUserId()); in canInteractAcrossProfiles()
339 int userId = mInjector.getCallingUserId(); in isCrossProfilePackageAllowlisted()
605 if (mInjector.getCallingUserId() != userId) {
628 if (mInjector.getCallingUserId() != userId) {
726 /* flags= */ 0, mInjector.getCallingUserId(), mInjector.getCallingUid())
754 return isManagedProfile(mInjector.getCallingUserId());
[all …]
DDomainVerificationConnection.java56 public int getCallingUserId() { in getCallingUserId() method in DomainVerificationConnection
57 return UserHandle.getCallingUserId(); in getCallingUserId()
DLauncherAppsService.java308 private int getCallingUserId() { in getCallingUserId() method in LauncherAppsService.LauncherAppsImpl
330 mListeners.register(listener, new BroadcastCookie(UserHandle.of(getCallingUserId()), in addOnAppsChangedListener()
361 new UserHandle(getCallingUserId()), in registerPackageInstallerCallback()
379 userIds = mUm.getProfileIdsExcludingHidden(getCallingUserId(), /* enabled= */ true); in getUserProfiles()
381 userIds = mUm.getEnabledProfileIds(getCallingUserId()); in getUserProfiles()
398 userIds = mUm.getProfileIdsExcludingHidden(getCallingUserId(), /* enabled= */ true); in getAllSessions()
400 userIds = mUm.getEnabledProfileIds(getCallingUserId()); in getAllSessions()
786 getCallingUserId()); in hasDefaultEnableLauncherActivity()
1089 mShortcutServiceInternal.createShortcutIntentsAsync(getCallingUserId(), in getShortcutIntent()
1268 mShortcutServiceInternal.getShortcuts(getCallingUserId(), in getShortcuts()
[all …]
/frameworks/base/services/core/java/com/android/server/search/
DSearchManagerService.java305 return getSearchables(UserHandle.getCallingUserId()).getSearchableInfo(launchActivity); in getSearchableInfo()
313 return getSearchables(UserHandle.getCallingUserId()).getSearchablesInGlobalSearchList(); in getSearchablesInGlobalSearch()
318 return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivities(); in getGlobalSearchActivities()
326 return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivity(); in getGlobalSearchActivity()
334 return getSearchables(UserHandle.getCallingUserId()).getWebSearchActivity(); in getWebSearchActivity()
DSearchables.java138 UserHandle.getCallingUserId())) { in getSearchableInfo()
202 UserHandle.getCallingUserId())) { in getSearchableInfo()
514 final int callingUserId = UserHandle.getCallingUserId(); in createFilterdSearchableInfoList()
530 final int callingUserId = UserHandle.getCallingUserId(); in createFilterdResolveInfoList()
546 final int callingUserId = UserHandle.getCallingUserId(); in getGlobalSearchActivity()
560 final int callingUserId = UserHandle.getCallingUserId(); in getWebSearchActivity()
/frameworks/base/services/core/java/com/android/server/ambientcontext/
DAmbientContextManagerService.java538 UserHandle.getCallingUserId(), in registerObserver()
575 UserHandle.getCallingUserId(), in registerObserverWithCallback()
579 + UserHandle.getCallingUserId()); in registerObserverWithCallback()
603 UserHandle.getCallingUserId(), in unregisterObserver()
609 + UserHandle.getCallingUserId()); in unregisterObserver()
628 UserHandle.getCallingUserId(), intArrayToIntegerSet(eventTypes)); in queryServiceStatus()
631 + UserHandle.getCallingUserId()); in queryServiceStatus()
661 UserHandle.getCallingUserId(), intArrayToIntegerSet(eventTypes)); in startConsentActivity()
667 + UserHandle.getCallingUserId()); in startConsentActivity()
/frameworks/base/services/core/java/com/android/server/speech/
DSpeechRecognitionManagerService.java89 int userId = UserHandle.getCallingUserId(); in createSession()
98 int userId = UserHandle.getCallingUserId(); in setTemporaryComponent()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java402 UserHandle.getCallingUserId(), Build.VERSION_CODES.CUR_DEVELOPMENT); in registerContentObserver()
435 final int callingUserId = UserHandle.getCallingUserId(); in notifyChange()
611 int userId = UserHandle.getCallingUserId(); in requestSync()
648 syncAsUser(request, UserHandle.getCallingUserId(), callingPackage); in sync()
722 cancelSyncAsUser(account, authority, cname, UserHandle.getCallingUserId()); in cancelSync()
776 int userId = UserHandle.getCallingUserId(); in cancelRequest()
803 return getSyncAdapterTypesAsUser(UserHandle.getCallingUserId()); in getSyncAdapterTypes()
866 return getSyncAutomaticallyAsUser(account, providerName, UserHandle.getCallingUserId()); in getSyncAutomatically()
899 setSyncAutomaticallyAsUser(account, providerName, sync, UserHandle.getCallingUserId()); in setSyncAutomatically()
948 final int userId = UserHandle.getCallingUserId(); in addPeriodicSync()
[all …]
/frameworks/base/services/musicrecognition/java/com/android/server/musicrecognition/
DMusicRecognitionManagerService.java120 int userId = UserHandle.getCallingUserId(); in beginRecognition()
164 final int userId = UserHandle.getCallingUserId(); in isCalledByServiceAppLocked()
185 UserHandle.getCallingUserId()); in isCalledByServiceAppLocked()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyStoreManager.java222 int userId = UserHandle.getCallingUserId(); in initRecoveryService()
397 int userId = UserHandle.getCallingUserId(); in setServerParams()
463 int userId = UserHandle.getCallingUserId(); in setRecoverySecretTypes()
500 return mDatabase.getRecoverySecretTypes(UserHandle.getCallingUserId(), in getRecoverySecretTypes()
643 int userId = UserHandle.getCallingUserId(); in recoverKeyChainSnapshot()
713 int userId = UserHandle.getCallingUserId(); in removeKey()
752 int userId = UserHandle.getCallingUserId(); in generateKeyWithMetadata()
821 int userId = UserHandle.getCallingUserId(); in importKeyWithMetadata()
857 int userId = UserHandle.getCallingUserId(); in getKey()
1017 int userId = UserHandle.getCallingUserId(); in startRemoteLockscreenValidation()
[all …]
/frameworks/base/services/credentials/java/com/android/server/credentials/
DCredentialManagerService.java283 final int userId = UserHandle.getCallingUserId(); in runForUser()
360 UserHandle.getCallingUserId(), in initiateProviderSessionsWithActiveContainers()
382 UserHandle.getCallingUserId(), in initiateProviderSessionsWithActiveContainers()
399 CredentialDescriptionRegistry.forUser(UserHandle.getCallingUserId()); in getFilteredResultFromRegistry()
495 final int userId = UserHandle.getCallingUserId(); in getCandidateCredentials()
552 final int userId = UserHandle.getCallingUserId(); in executeGetCredential()
610 final int userId = UserHandle.getCallingUserId(); in executePrepareGetCredential()
732 final int userId = UserHandle.getCallingUserId(); in executeCreateCredential()
886 final int userId = UserHandle.getCallingUserId(); in isEnabledCredentialProviderService()
943 final int userId = UserHandle.getCallingUserId(); in getCredentialProviderServicesForTesting()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DAudioServiceTest.java106 UserHandle.getCallingUserId(), null); in testMuteMicrophone()
131 UserHandle.getCallingUserId(), null); in testMuteMicrophoneWhenFail()
192 UserHandle.getCallingUserId(), null); in testMasterMute()
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/
DTestCallerIdentityInjector.java43 public int getCallingUserId() { in getCallingUserId() method in TestCallerIdentityInjector
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureManagerService.java804 final int userId = UserHandle.getCallingUserId(); in isCalledByServiceLocked()
824 serviceUid = pm.getPackageUidAsUser(servicePackageName, UserHandle.getCallingUserId()); in isCalledByServiceLocked()
995 getContext(), componentName, /* isTemp= */ false, UserHandle.getCallingUserId()); in createContentProtectionServiceInfo()
1031 UserHandle.getCallingUserId(), in createRemoteContentProtectionService()
1094 final int userId = UserHandle.getCallingUserId(); in startSession()
1112 final int userId = UserHandle.getCallingUserId(); in finishSession()
1122 final int userId = UserHandle.getCallingUserId(); in getServiceComponentName()
1140 final int userId = UserHandle.getCallingUserId(); in removeData()
1155 final int userId = UserHandle.getCallingUserId(); in shareData()
1189 final int userId = UserHandle.getCallingUserId(); in isContentCaptureFeatureEnabled()
[all …]
/frameworks/base/services/core/java/com/android/server/timedetector/
DTimeDetectorService.java140 int userId = mCallerIdentityInjector.getCallingUserId(); in getCapabilitiesAndConfig()
158 int callingUserId = mCallerIdentityInjector.getCallingUserId(); in updateConfiguration()
323 int userId = mCallerIdentityInjector.getCallingUserId(); in setManualTime()
347 int userId = mCallerIdentityInjector.getCallingUserId(); in suggestManualTime()
/frameworks/base/services/core/java/com/android/server/biometrics/
DAuthService.java274 final int callingUserId = UserHandle.getCallingUserId(); in authenticate()
364 final int callingUserId = UserHandle.getCallingUserId(); in canAuthenticate()
392 final int callingUserId = UserHandle.getCallingUserId(); in getLastAuthenticationTime()
497 final int callingUserId = UserHandle.getCallingUserId(); in getAuthenticatorIds()
542 final int callingUserId = UserHandle.getCallingUserId(); in getButtonLabel()
588 final int callingUserId = UserHandle.getCallingUserId(); in getPromptMessage()
658 final int callingUserId = UserHandle.getCallingUserId(); in getSettingName()
/frameworks/base/services/texttospeech/java/com/android/server/texttospeech/
DTextToSpeechManagerService.java73 UserHandle.getCallingUserId()); in createSession()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java34 import static android.os.UserHandle.getCallingUserId;
384 UserHandle.getCallingUserId());
520 updateNightModeFromSettingsLocked(context, res, UserHandle.getCallingUserId()); in onStart()
553 UserHandle.getCallingUserId());
590 final int userId = UserHandle.getCallingUserId(); in verifySetupWizardCompleted()
603 Secure.USER_SETUP_COMPLETE, 0, UserHandle.getCallingUserId()) == 1; in setupWizardCompleteForCurrentUser()
704 int userId = getCallingUserId(); in addCallback()
852 final int user = UserHandle.getCallingUserId(); in setNightModeInternal()
917 enforceValidCallingUser(UserHandle.getCallingUserId()); in setAttentionModeThemeOverlay()
1066 final int user = UserHandle.getCallingUserId(); in setCustomNightModeStart()
[all …]
/frameworks/base/services/restrictions/java/com/android/server/restrictions/
DRestrictionsManagerService.java94 int userHandle = UserHandle.getCallingUserId(); in hasRestrictionsProvider()
148 final int userHandle = UserHandle.getCallingUserId(); in createLocalApprovalIntent()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DPackageManagerWrapper.java81 intent, resolvedType, flags, UserHandle.getCallingUserId()); in resolveActivity()

12345