Home
last modified time | relevance | path

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

1234

/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/contentsuggestions/java/com/android/server/contentsuggestions/
DContentSuggestionsManagerService.java133 enforceCaller(UserHandle.getCallingUserId(), "provideContextBitmap"); in provideContextBitmap()
157 enforceCaller(UserHandle.getCallingUserId(), "provideContextImage"); in provideContextImage()
194 enforceCaller(UserHandle.getCallingUserId(), "suggestContentSelections"); in suggestContentSelections()
213 enforceCaller(UserHandle.getCallingUserId(), "classifyContentSelections"); in classifyContentSelections()
230 enforceCaller(UserHandle.getCallingUserId(), "notifyInteraction"); in notifyInteraction()
247 enforceCaller(UserHandle.getCallingUserId(), "isEnabled"); in isEnabled()
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileAppsServiceImpl.java102 callingPackage, mInjector.getCallingUserId()); in getTargetUserProfiles()
123 final int callerUserId = mInjector.getCallingUserId(); in startActivityAsUser()
199 final int callerUserId = mInjector.getCallingUserId(); in startActivityAsUserByIntent()
257 mInjector.getUserManager().getEnabledProfileIds(mInjector.getCallingUserId()); in canRequestInteractAcrossProfilesUnchecked()
285 callingPackage, mInjector.getCallingUserId()); in canInteractAcrossProfiles()
425 .getProfileIds(mInjector.getCallingUserId(), /* enabledOnly= */ false);
514 if (userId != mInjector.getCallingUserId()) {
568 if (!hasOtherProfileWithPackageInstalled(packageName, mInjector.getCallingUserId())) {
581 mInjector.getCallingUserId(), /* enabledOnly= */ false);
661 /* flags= */ 0, mInjector.getCallingUserId(), mInjector.getCallingUid())
[all …]
DLauncherAppsService.java198 private int getCallingUserId() { in getCallingUserId() method in LauncherAppsService.LauncherAppsImpl
220 mListeners.register(listener, new BroadcastCookie(UserHandle.of(getCallingUserId()), in addOnAppsChangedListener()
249 UserHandle callingIdUserHandle = new UserHandle(getCallingUserId()); in registerPackageInstallerCallback()
259 int[] userIds = mUm.getEnabledProfileIds(getCallingUserId()); in getAllSessions()
497 getCallingUserId()); in hasDefaultEnableLauncherActivity()
676 if (!mShortcutServiceInternal.hasShortcutHostPermission(getCallingUserId(), in ensureShortcutPermission()
733 mShortcutServiceInternal.getShortcuts(getCallingUserId(), in getShortcuts()
780 mShortcutServiceInternal.pinShortcuts(getCallingUserId(), in pinShortcuts()
793 getCallingUserId(), callingPackage, packageName, ids, in cacheShortcuts()
806 getCallingUserId(), callingPackage, packageName, ids, in uncacheShortcuts()
[all …]
DDataLoaderManagerService.java85 UserHandle.of(UserHandle.getCallingUserId()))) { in bindToDataLoader()
110 pm.queryIntentServicesAsUser(intent, 0, UserHandle.getCallingUserId()); in resolveDataLoaderComponentName()
/frameworks/base/services/core/java/com/android/server/search/
DSearchManagerService.java235 return getSearchables(UserHandle.getCallingUserId()).getSearchableInfo(launchActivity); in getSearchableInfo()
243 return getSearchables(UserHandle.getCallingUserId()).getSearchablesInGlobalSearchList(); in getSearchablesInGlobalSearch()
248 return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivities(); in getGlobalSearchActivities()
256 return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivity(); in getGlobalSearchActivity()
264 return getSearchables(UserHandle.getCallingUserId()).getWebSearchActivity(); in getWebSearchActivity()
DSearchables.java130 UserHandle.getCallingUserId())) { in getSearchableInfo()
191 UserHandle.getCallingUserId())) { in getSearchableInfo()
468 final int callingUserId = UserHandle.getCallingUserId(); in createFilterdSearchableInfoList()
484 final int callingUserId = UserHandle.getCallingUserId(); in createFilterdResolveInfoList()
500 final int callingUserId = UserHandle.getCallingUserId(); in getGlobalSearchActivity()
514 final int callingUserId = UserHandle.getCallingUserId(); in getWebSearchActivity()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java378 UserHandle.getCallingUserId(), Build.VERSION_CODES.CUR_DEVELOPMENT); in registerContentObserver()
411 final int callingUserId = UserHandle.getCallingUserId(); in notifyChange()
589 int userId = UserHandle.getCallingUserId(); in requestSync()
622 syncAsUser(request, UserHandle.getCallingUserId(), callingPackage); in sync()
694 cancelSyncAsUser(account, authority, cname, UserHandle.getCallingUserId()); in cancelSync()
742 int userId = UserHandle.getCallingUserId(); in cancelRequest()
779 return getSyncAdapterTypesAsUser(UserHandle.getCallingUserId()); in getSyncAdapterTypes()
822 return getSyncAutomaticallyAsUser(account, providerName, UserHandle.getCallingUserId()); in getSyncAutomatically()
851 setSyncAutomaticallyAsUser(account, providerName, sync, UserHandle.getCallingUserId()); in setSyncAutomatically()
896 int userId = UserHandle.getCallingUserId(); in addPeriodicSync()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/
DAuthService.java140 final int callingUserId = UserHandle.getCallingUserId(); in authenticate()
190 final int callingUserId = UserHandle.getCallingUserId(); in cancelAuthentication()
205 final int callingUserId = UserHandle.getCallingUserId(); in canAuthenticate()
244 final int callingUserId = UserHandle.getCallingUserId(); in registerEnabledOnKeyguardCallback()
293 final int callingUserId = UserHandle.getCallingUserId(); in getAuthenticatorIds()
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java297 int userId = getCallingUserId(); in associate()
341 checkUsesFeature(callingPackage, getCallingUserId()); in getAssociations()
354 checkUsesFeature(callingPackage, getCallingUserId()); in disassociate()
355 removeAssociation(getCallingUserId(), callingPackage, deviceMacAddress); in disassociate()
365 checkCallerIsSystemOr(pkg, getCallingUserId()); in checkCallerIsSystemOr()
373 checkArgument(getCallingUserId() == userId, in checkCallerIsSystemOr()
383 int userId = getCallingUserId(); in requestNotificationAccess()
433 int userId = getCallingUserId(); in checkCanCallNotificationApi()
464 private static int getCallingUserId() { in getCallingUserId() method in CompanionDeviceManagerService
566 recordAssociation(new Association(getCallingUserId(), deviceAddress, privilegedPackage));
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyStoreManager.java190 int userId = UserHandle.getCallingUserId(); in initRecoveryService()
363 int userId = UserHandle.getCallingUserId(); in setServerParams()
429 int userId = UserHandle.getCallingUserId(); in setRecoverySecretTypes()
466 return mDatabase.getRecoverySecretTypes(UserHandle.getCallingUserId(), in getRecoverySecretTypes()
608 int userId = UserHandle.getCallingUserId(); in recoverKeyChainSnapshot()
678 int userId = UserHandle.getCallingUserId(); in removeKey()
717 int userId = UserHandle.getCallingUserId(); in generateKeyWithMetadata()
784 int userId = UserHandle.getCallingUserId(); in importKeyWithMetadata()
818 int userId = UserHandle.getCallingUserId(); in getKey()
974 int userId = UserHandle.getCallingUserId(); in checkRecoverKeyStorePermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DAudioServiceTest.java78 UserHandle.getCallingUserId()); in testMuteMicrophone()
103 UserHandle.getCallingUserId()); in testMuteMicrophoneWhenFail()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DAuthServiceTest.java166 eq(UserHandle.getCallingUserId())); in testAuthenticate_callsBiometricServiceAuthenticate()
188 eq(UserHandle.getCallingUserId()), in testCanAuthenticate_callsBiometricServiceCanAuthenticate()
228 eq(callback), eq(UserHandle.getCallingUserId())); in testRegisterKeyguardCallback_callsBiometricServiceRegisterKeyguardCallback()
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureManagerService.java513 final int userId = UserHandle.getCallingUserId(); in isCalledByServiceLocked()
533 serviceUid = pm.getPackageUidAsUser(servicePackageName, UserHandle.getCallingUserId()); in isCalledByServiceLocked()
609 final int userId = UserHandle.getCallingUserId(); in startSession()
628 final int userId = UserHandle.getCallingUserId(); in finishSession()
638 final int userId = UserHandle.getCallingUserId(); in getServiceComponentName()
656 final int userId = UserHandle.getCallingUserId(); in removeData()
671 final int userId = UserHandle.getCallingUserId(); in shareData()
705 final int userId = UserHandle.getCallingUserId(); in isContentCaptureFeatureEnabled()
721 final int userId = UserHandle.getCallingUserId(); in getServiceSettingsActivity()
742 final int userId = UserHandle.getCallingUserId(); in getContentCaptureConditions()
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java289 if (userId != UserHandle.getCallingUserId()) { in queryStatsForPackage()
352 if (userId != UserHandle.getCallingUserId()) { in queryStatsForUid()
412 if (userId != UserHandle.getCallingUserId()) { in queryStatsForUser()
439 if (userId != UserHandle.getCallingUserId()) { in queryExternalStatsForUser()
684 if (userId != UserHandle.getCallingUserId()) { in queryCratesForPackage()
713 if (userId != UserHandle.getCallingUserId()) { in queryCratesForUid()
754 if (userId != UserHandle.getCallingUserId()) { in queryCratesForUser()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java300 UserHandle.getCallingUserId());
397 updateNightModeFromSettingsLocked(context, res, UserHandle.getCallingUserId()); in onStart()
415 UserHandle.getCallingUserId());
452 final int userId = UserHandle.getCallingUserId(); in verifySetupWizardCompleted()
465 Secure.USER_SETUP_COMPLETE, 0, UserHandle.getCallingUserId()) == 1; in setupWizardCompleteForCurrentUser()
665 final int user = UserHandle.getCallingUserId();
729 final int user = UserHandle.getCallingUserId();
768 final int user = UserHandle.getCallingUserId();
796 final int user = UserHandle.getCallingUserId();
895 UserHandle.getCallingUserId()); in setCarModeLocked()
/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/core/java/com/android/server/accounts/
DAccountManagerService.java462 int userId = UserHandle.getCallingUserId(); in addAccountExplicitlyWithVisibility()
494 int userId = UserHandle.getCallingUserId(); in getAccountsAndVisibilityForPackage()
550 int userId = UserHandle.getCallingUserId(); in getPackagesAndVisibilityForAccount()
597 int userId = UserHandle.getCallingUserId(); in getAccountVisibility()
762 int userId = UserHandle.getCallingUserId(); in setAccountVisibility()
883 int userId = UserHandle.getCallingUserId(); in registerAccountListener()
916 int userId = UserHandle.getCallingUserId(); in unregisterAccountListener()
1289 return getUserAccounts(UserHandle.getCallingUserId()); in getUserAccountsForCaller()
1488 int userId = UserHandle.getCallingUserId(); in getPassword()
1530 int userId = UserHandle.getCallingUserId(); in getPreviousName()
[all …]
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerService.java827 getServiceForUserLocked(UserHandle.getCallingUserId()); in onBackKeyPressed()
1412 final int userId = UserHandle.getCallingUserId(); in getFillEventHistory()
1428 final int userId = UserHandle.getCallingUserId(); in getUserData()
1444 final int userId = UserHandle.getCallingUserId(); in getUserDataId()
1461 final int userId = UserHandle.getCallingUserId(); in setUserData()
1476 final int userId = UserHandle.getCallingUserId(); in isFieldClassificationEnabled()
1493 final int userId = UserHandle.getCallingUserId(); in getDefaultFieldClassificationAlgorithm()
1513 final int userId = UserHandle.getCallingUserId(); in setAugmentedAutofillWhitelist()
1535 final int userId = UserHandle.getCallingUserId(); in getAvailableFieldClassificationAlgorithms()
1554 final int userId = UserHandle.getCallingUserId(); in getAutofillServiceComponentName()
[all …]
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java844 final int userId = UserHandle.getCallingUserId(); in startListening()
890 final int userId = UserHandle.getCallingUserId(); in stopListening()
917 final int userId = UserHandle.getCallingUserId(); in allocateAppWidgetId()
966 final int userId = UserHandle.getCallingUserId(); in deleteAppWidgetId()
1001 Slog.i(TAG, "hasBindAppWidgetPermission() " + UserHandle.getCallingUserId()); in hasBindAppWidgetPermission()
1025 Slog.i(TAG, "setBindAppWidgetPermission() " + UserHandle.getCallingUserId()); in setBindAppWidgetPermission()
1054 final int userId = UserHandle.getCallingUserId(); in createAppWidgetConfigIntentSender()
1105 final int userId = UserHandle.getCallingUserId(); in bindAppWidgetId()
1216 final int userId = UserHandle.getCallingUserId(); in getAppWidgetIds()
1243 final int userId = UserHandle.getCallingUserId(); in getAppWidgetIdsForHost()
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DPackageManagerWrapper.java81 intent, resolvedType, flags, UserHandle.getCallingUserId()); in resolveActivity()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java533 Slog.v(LOG_TAG, "query() for user: " + UserHandle.getCallingUserId()); in query()
555 final int userId = UserHandle.getCallingUserId(); in query()
565 final int userId = UserHandle.getCallingUserId(); in query()
597 Slog.v(LOG_TAG, "insert() for user: " + UserHandle.getCallingUserId()); in insert()
617 UserHandle.getCallingUserId(), false, in insert()
625 UserHandle.getCallingUserId(), false, in insert()
632 if (insertSystemSetting(name, value, UserHandle.getCallingUserId(), in insert()
649 Slog.v(LOG_TAG, "bulkInsert() for user: " + UserHandle.getCallingUserId()); in bulkInsert()
667 Slog.v(LOG_TAG, "delete() for user: " + UserHandle.getCallingUserId()); in delete()
683 final int userId = UserHandle.getCallingUserId(); in delete()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/fingerprint/
DFingerprintService.java364 UserHandle.getCallingUserId())) { in isHardwareDetected()
396 UserHandle.getCallingUserId())) { in getEnrolledFingerprints()
407 UserHandle.getCallingUserId())) { in hasEnrolledFingerprints()
835 if (userId != UserHandle.getCallingUserId()) { in hasEnrolledBiometrics()
869 if (userId != UserHandle.getCallingUserId()) { in getEnrolledTemplates()
/frameworks/base/core/java/android/app/
DUiAutomationConnection.java206 int callingUserId = UserHandle.getCallingUserId(); in clearWindowContentFrameStats()
226 int callingUserId = UserHandle.getCallingUserId(); in getWindowContentFrameStats()
/frameworks/base/core/java/android/database/
DContentObserver.java272 dispatchChange(selfChange, uris, flags, UserHandle.getCallingUserId()); in dispatchChange()

1234