Home
last modified time | relevance | path

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

12345

/frameworks/base/services/core/java/com/android/server/timezonedetector/
DCallerIdentityInjector.java33 @UserIdInt int getCallingUserId(); in getCallingUserId() method
48 public int getCallingUserId() { in getCallingUserId() method in CallerIdentityInjector.Real
49 return UserHandle.getCallingUserId(); in getCallingUserId()
DTimeZoneDetectorService.java174 int userId = mCallerIdentityInjector.getCallingUserId(); in getCapabilitiesAndConfig()
193 int callingUserId = mCallerIdentityInjector.getCallingUserId(); in updateConfiguration()
319 int userId = mCallerIdentityInjector.getCallingUserId(); in suggestManualTimeZone()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyStoreManagerTest.java212 int userId = UserHandle.getCallingUserId(); in importKey_storesTheKey()
245 int userId = UserHandle.getCallingUserId(); in importKeyWithMetadata_nullMetadata_storesTheKey()
258 int userId = UserHandle.getCallingUserId(); in importKeyWithMetadata_nonNullMetadata_storesTheKey()
294 int userId = UserHandle.getCallingUserId(); in generateKeyWithMetadata_nullMetadata_storesTheKey()
305 int userId = UserHandle.getCallingUserId(); in generateKeyWithMetadata_nonNullMetadata_storesTheKey()
326 int userId = UserHandle.getCallingUserId(); in removeKey_updatesShouldCreateSnapshot()
339 int userId = UserHandle.getCallingUserId(); in removeKey_failureDoesNotUpdateShouldCreateSnapshot()
350 int userId = UserHandle.getCallingUserId(); in initRecoveryService_succeedsWithCertFile()
371 int userId = UserHandle.getCallingUserId(); in initRecoveryService_updatesShouldCreatesnapshotOnCertUpdate()
398 int userId = UserHandle.getCallingUserId(); in initRecoveryService_triesToFilterRootAlias()
[all …]
/frameworks/base/services/companion/java/com/android/server/companion/
DPermissionsUtils.java31 import static android.os.UserHandle.getCallingUserId;
107 if (getCallingUserId() == userId) return true; in checkCallerCanInteractWithUserId()
113 if (getCallingUserId() == userId) return; in enforceCallerCanInteractWithUserId()
128 if (getCallingUserId() != userId) return false; in checkCallerIsSystemOr()
139 final int callingUserId = getCallingUserId(); in enforceCallerIsSystemOr()
140 if (getCallingUserId() != userId) { in enforceCallerIsSystemOr()
/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/search/
DSearchManagerService.java225 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()
DSearchables.java131 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()
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileAppsServiceImpl.java105 callingPackage, mInjector.getCallingUserId()); in getTargetUserProfiles()
128 final int callerUserId = mInjector.getCallingUserId(); in startActivityAsUser()
211 final int callerUserId = mInjector.getCallingUserId(); in startActivityAsUserByIntent()
269 mInjector.getUserManager().getEnabledProfileIds(mInjector.getCallingUserId()); in canRequestInteractAcrossProfilesUnchecked()
297 callingPackage, mInjector.getCallingUserId()); in canInteractAcrossProfiles()
432 setInteractAcrossProfilesAppOp(packageName, newMode, mInjector.getCallingUserId());
596 return canConfigureInteractAcrossProfiles(packageName, mInjector.getCallingUserId());
616 packageName, mInjector.getCallingUserId());
704 /* flags= */ 0, mInjector.getCallingUserId(), mInjector.getCallingUid())
732 return isManagedProfile(mInjector.getCallingUserId());
[all …]
DDomainVerificationConnection.java56 public int getCallingUserId() { in getCallingUserId() method in DomainVerificationConnection
57 return UserHandle.getCallingUserId(); in getCallingUserId()
DLauncherAppsService.java238 private int getCallingUserId() { in getCallingUserId() method in LauncherAppsService.LauncherAppsImpl
260 mListeners.register(listener, new BroadcastCookie(UserHandle.of(getCallingUserId()), in addOnAppsChangedListener()
289 UserHandle callingIdUserHandle = new UserHandle(getCallingUserId()); in registerPackageInstallerCallback()
299 int[] userIds = mUm.getEnabledProfileIds(getCallingUserId()); in getAllSessions()
567 getCallingUserId()); in hasDefaultEnableLauncherActivity()
741 mShortcutServiceInternal.createShortcutIntentsAsync(getCallingUserId(), in getShortcutIntent()
912 mShortcutServiceInternal.getShortcuts(getCallingUserId(), in getShortcuts()
946 mShortcutServiceInternal.getShortcutsAsync(getCallingUserId(), in getShortcutsAsync()
993 mShortcutServiceInternal.pinShortcuts(getCallingUserId(), in pinShortcuts()
1006 getCallingUserId(), callingPackage, packageName, ids, in cacheShortcuts()
[all …]
DDataLoaderManagerService.java97 mHandler, UserHandle.of(UserHandle.getCallingUserId()))) { in bindToDataLoader()
122 pm.queryIntentServicesAsUser(intent, 0, UserHandle.getCallingUserId()); in resolveDataLoaderComponentName()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java399 UserHandle.getCallingUserId(), Build.VERSION_CODES.CUR_DEVELOPMENT); in registerContentObserver()
432 final int callingUserId = UserHandle.getCallingUserId(); in notifyChange()
610 int userId = UserHandle.getCallingUserId(); in requestSync()
647 syncAsUser(request, UserHandle.getCallingUserId(), callingPackage); in sync()
722 cancelSyncAsUser(account, authority, cname, UserHandle.getCallingUserId()); in cancelSync()
770 int userId = UserHandle.getCallingUserId(); in cancelRequest()
807 return getSyncAdapterTypesAsUser(UserHandle.getCallingUserId()); in getSyncAdapterTypes()
868 return getSyncAutomaticallyAsUser(account, providerName, UserHandle.getCallingUserId()); in getSyncAutomatically()
900 setSyncAutomaticallyAsUser(account, providerName, sync, UserHandle.getCallingUserId()); in setSyncAutomatically()
954 int userId = UserHandle.getCallingUserId(); in addPeriodicSync()
[all …]
/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/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.java189 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()
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureManagerService.java574 final int userId = UserHandle.getCallingUserId(); in isCalledByServiceLocked()
594 serviceUid = pm.getPackageUidAsUser(servicePackageName, UserHandle.getCallingUserId()); in isCalledByServiceLocked()
674 final int userId = UserHandle.getCallingUserId(); in startSession()
693 final int userId = UserHandle.getCallingUserId(); in finishSession()
703 final int userId = UserHandle.getCallingUserId(); in getServiceComponentName()
721 final int userId = UserHandle.getCallingUserId(); in removeData()
736 final int userId = UserHandle.getCallingUserId(); in shareData()
770 final int userId = UserHandle.getCallingUserId(); in isContentCaptureFeatureEnabled()
786 final int userId = UserHandle.getCallingUserId(); in getServiceSettingsActivity()
807 final int userId = UserHandle.getCallingUserId(); in getContentCaptureConditions()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/
DAuthService.java218 final int callingUserId = UserHandle.getCallingUserId(); in authenticate()
300 final int callingUserId = UserHandle.getCallingUserId(); in canAuthenticate()
339 final int callingUserId = UserHandle.getCallingUserId(); in registerEnabledOnKeyguardCallback()
379 final int callingUserId = UserHandle.getCallingUserId(); in getAuthenticatorIds()
413 final int callingUserId = UserHandle.getCallingUserId(); in getButtonLabel()
459 final int callingUserId = UserHandle.getCallingUserId(); in getPromptMessage()
529 final int callingUserId = UserHandle.getCallingUserId(); in getSettingName()
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/
DTestCallerIdentityInjector.java37 public int getCallingUserId() { in getCallingUserId() method in TestCallerIdentityInjector
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DAudioServiceTest.java92 UserHandle.getCallingUserId(), null); in testMuteMicrophone()
117 UserHandle.getCallingUserId(), null); in testMuteMicrophoneWhenFail()
/frameworks/base/services/restrictions/java/com/android/server/restrictions/
DRestrictionsManagerService.java77 int userHandle = UserHandle.getCallingUserId(); in hasRestrictionsProvider()
131 final int userHandle = UserHandle.getCallingUserId(); in createLocalApprovalIntent()
/frameworks/base/services/texttospeech/java/com/android/server/texttospeech/
DTextToSpeechManagerService.java67 UserHandle.getCallingUserId()); in createSession()
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java330 if (userId != UserHandle.getCallingUserId()) { in queryStatsForPackage()
394 if (userId != UserHandle.getCallingUserId()) { in queryStatsForUid()
454 if (userId != UserHandle.getCallingUserId()) { in queryStatsForUser()
487 if (userId != UserHandle.getCallingUserId()) { in queryExternalStatsForUser()
762 if (userId != UserHandle.getCallingUserId()) { in queryCratesForPackage()
791 if (userId != UserHandle.getCallingUserId()) { in queryCratesForUid()
832 if (userId != UserHandle.getCallingUserId()) { in queryCratesForUser()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerService.java871 getServiceForUserLocked(UserHandle.getCallingUserId()); in onBackKeyPressed()
1457 final int userId = UserHandle.getCallingUserId(); in getFillEventHistory()
1473 final int userId = UserHandle.getCallingUserId(); in getUserData()
1489 final int userId = UserHandle.getCallingUserId(); in getUserDataId()
1506 final int userId = UserHandle.getCallingUserId(); in setUserData()
1521 final int userId = UserHandle.getCallingUserId(); in isFieldClassificationEnabled()
1538 final int userId = UserHandle.getCallingUserId(); in getDefaultFieldClassificationAlgorithm()
1558 final int userId = UserHandle.getCallingUserId(); in setAugmentedAutofillWhitelist()
1580 final int userId = UserHandle.getCallingUserId(); in getAvailableFieldClassificationAlgorithms()
1599 final int userId = UserHandle.getCallingUserId(); in getAutofillServiceComponentName()
[all …]
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java468 int userId = UserHandle.getCallingUserId(); in addAccountExplicitlyWithVisibility()
500 int userId = UserHandle.getCallingUserId(); in getAccountsAndVisibilityForPackage()
556 int userId = UserHandle.getCallingUserId(); in getPackagesAndVisibilityForAccount()
604 int userId = UserHandle.getCallingUserId(); in getAccountVisibility()
769 int userId = UserHandle.getCallingUserId(); in setAccountVisibility()
891 int userId = UserHandle.getCallingUserId(); in registerAccountListener()
924 int userId = UserHandle.getCallingUserId(); in unregisterAccountListener()
1298 return getUserAccounts(UserHandle.getCallingUserId()); in getUserAccountsForCaller()
1500 int userId = UserHandle.getCallingUserId(); in getPassword()
1542 int userId = UserHandle.getCallingUserId(); in getPreviousName()
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DPackageManagerWrapper.java81 intent, resolvedType, flags, UserHandle.getCallingUserId()); in resolveActivity()

12345