Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/content/
DContentService.java299 final int callingUserHandle = UserHandle.getCallingUserId(); in registerContentObserver()
330 UserHandle.getCallingUserId()); in registerContentObserver()
365 final int callingUserHandle = UserHandle.getCallingUserId(); in notifyChange()
448 UserHandle.getCallingUserId()); in notifyChange()
475 int userId = UserHandle.getCallingUserId(); in requestSync()
504 syncAsUser(request, UserHandle.getCallingUserId()); in sync()
573 cancelSyncAsUser(account, authority, cname, UserHandle.getCallingUserId()); in cancelSync()
621 int userId = UserHandle.getCallingUserId(); in cancelRequest()
650 return getSyncAdapterTypesAsUser(UserHandle.getCallingUserId()); in getSyncAdapterTypes()
693 return getSyncAutomaticallyAsUser(account, providerName, UserHandle.getCallingUserId()); in getSyncAutomatically()
[all …]
/frameworks/base/services/core/java/com/android/server/search/
DSearchManagerService.java220 return getSearchables(UserHandle.getCallingUserId()).getSearchableInfo(launchActivity); in getSearchableInfo()
228 return getSearchables(UserHandle.getCallingUserId()).getSearchablesInGlobalSearchList(); in getSearchablesInGlobalSearch()
233 return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivities(); in getGlobalSearchActivities()
241 return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivity(); in getGlobalSearchActivity()
249 return getSearchables(UserHandle.getCallingUserId()).getWebSearchActivity(); in getWebSearchActivity()
/frameworks/base/services/core/java/com/android/server/pm/
DLauncherAppsService.java139 private int getCallingUserId() { in getCallingUserId() method in LauncherAppsService.LauncherAppsImpl
162 mListeners.register(listener, new BroadcastCookie(UserHandle.of(getCallingUserId()), in addOnAppsChangedListener()
364 if (!mShortcutServiceInternal.hasShortcutHostPermission(getCallingUserId(), in ensureShortcutPermission()
384 mShortcutServiceInternal.getShortcuts(getCallingUserId(), in getShortcuts()
398 mShortcutServiceInternal.pinShortcuts(getCallingUserId(), in pinShortcuts()
410 return mShortcutServiceInternal.getShortcutIconResId(getCallingUserId(), in getShortcutIconResId()
422 return mShortcutServiceInternal.getShortcutIconFd(getCallingUserId(), in getShortcutIconFd()
429 return mShortcutServiceInternal.hasShortcutHostPermission(getCallingUserId(), in hasShortcutHostPermission()
445 if (!mShortcutServiceInternal.isPinnedByCaller(getCallingUserId(), in startShortcut()
450 final Intent intent = mShortcutServiceInternal.createShortcutIntent(getCallingUserId(), in startShortcut()
DUserManagerService.java550 if (userId != UserHandle.getCallingUserId()) { in getProfiles()
567 if (userId != UserHandle.getCallingUserId()) { in getProfileIds()
854 int callingUserId = UserHandle.getCallingUserId(); in isManagedProfile()
873 return getUserInfoLU(UserHandle.getCallingUserId()).isRestricted(); in isRestricted()
991 final int callingUserId = UserHandle.getCallingUserId(); in getUserIcon()
2151 if (hasUserRestriction(UserManager.DISALLOW_ADD_USER, UserHandle.getCallingUserId())) { in createUserInternal()
2347 if (getUserRestrictions(UserHandle.getCallingUserId()).getBoolean( in markGuestForDeletion()
2391 if (getUserRestrictions(UserHandle.getCallingUserId()).getBoolean( in removeUser()
2560 return getApplicationRestrictionsForUser(packageName, UserHandle.getCallingUserId()); in getApplicationRestrictions()
2565 if (UserHandle.getCallingUserId() != userId in getApplicationRestrictionsForUser()
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java320 Slog.v(LOG_TAG, "query() for user: " + UserHandle.getCallingUserId()); in query()
342 final int userId = UserHandle.getCallingUserId(); in query()
352 final int userId = UserHandle.getCallingUserId(); in query()
370 Slog.v(LOG_TAG, "insert() for user: " + UserHandle.getCallingUserId()); in insert()
389 if (insertGlobalSetting(name, value, UserHandle.getCallingUserId(), false)) { in insert()
395 if (insertSecureSetting(name, value, UserHandle.getCallingUserId(), false)) { in insert()
401 if (insertSystemSetting(name, value, UserHandle.getCallingUserId())) { in insert()
417 Slog.v(LOG_TAG, "bulkInsert() for user: " + UserHandle.getCallingUserId()); in bulkInsert()
435 Slog.v(LOG_TAG, "delete() for user: " + UserHandle.getCallingUserId()); in delete()
451 final int userId = UserHandle.getCallingUserId(); in delete()
[all …]
/frameworks/base/core/java/android/app/
DKeyguardManager.java277 return isDeviceLocked(UserHandle.getCallingUserId()); in isDeviceLocked()
303 return isDeviceSecure(UserHandle.getCallingUserId()); in isDeviceSecure()
DUiAutomationConnection.java173 int callingUserId = UserHandle.getCallingUserId(); in clearWindowContentFrameStats()
193 int callingUserId = UserHandle.getCallingUserId(); in getWindowContentFrameStats()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java617 return getUserAccounts(UserHandle.getCallingUserId()); in getUserAccountsForCaller()
785 int userId = UserHandle.getCallingUserId(); in getPassword()
826 int userId = UserHandle.getCallingUserId(); in getPreviousName()
880 int userId = UserHandle.getCallingUserId(); in getUserData()
920 UserHandle.getCallingUserId(), in getAuthenticatorTypes()
953 return (userId != UserHandle.getCallingUserId() in isCrossUser()
970 int userId = UserHandle.getCallingUserId(); in addAccountExplicitly()
1067 int userId = UserHandle.getCallingUserId(); in accountAuthenticated()
1283 int userId = UserHandle.getCallingUserId(); in hasFeatures()
1363 int userId = UserHandle.getCallingUserId(); in renameAccount()
[all …]
/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/dreams/
DDreamManagerService.java486 final int userId = UserHandle.getCallingUserId(); in getDreamComponents()
499 final int userId = UserHandle.getCallingUserId(); in setDreamComponents()
512 final int userId = UserHandle.getCallingUserId(); in getDefaultDreamComponent()
552 final int callingUserId = UserHandle.getCallingUserId(); in testDream()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java743 final int userId = UserHandle.getCallingUserId(); in startListening()
779 final int userId = UserHandle.getCallingUserId(); in stopListening()
805 final int userId = UserHandle.getCallingUserId(); in allocateAppWidgetId()
848 final int userId = UserHandle.getCallingUserId(); in deleteAppWidgetId()
883 Slog.i(TAG, "hasBindAppWidgetPermission() " + UserHandle.getCallingUserId()); in hasBindAppWidgetPermission()
907 Slog.i(TAG, "setBindAppWidgetPermission() " + UserHandle.getCallingUserId()); in setBindAppWidgetPermission()
936 final int userId = UserHandle.getCallingUserId(); in createAppWidgetConfigIntentSender()
987 final int userId = UserHandle.getCallingUserId(); in bindAppWidgetId()
1098 final int userId = UserHandle.getCallingUserId(); in getAppWidgetIds()
1125 final int userId = UserHandle.getCallingUserId(); in getAppWidgetIdsForHost()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbService.java234 final int userId = UserHandle.getCallingUserId(); in hasDevicePermission()
240 final int userId = UserHandle.getCallingUserId(); in hasAccessoryPermission()
246 final int userId = UserHandle.getCallingUserId(); in requestDevicePermission()
253 final int userId = UserHandle.getCallingUserId(); in requestAccessoryPermission()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java3251 final int userId = UserHandle.getCallingUserId(); in addCrossProfileWidgetProvider()
3278 final int userId = UserHandle.getCallingUserId(); in removeCrossProfileWidgetProvider()
4292 final UserHandle userHandle = new UserHandle(UserHandle.getCallingUserId()); in installCaCert()
4323 final UserHandle userHandle = new UserHandle(UserHandle.getCallingUserId()); in uninstallCaCerts()
4381 final UserHandle userHandle = new UserHandle(UserHandle.getCallingUserId()); in removeKeyPair()
4466 int userHandle = UserHandle.getCallingUserId(); in setCertInstallerPackage()
4484 int userHandle = UserHandle.getCallingUserId(); in getCertInstallerPackage()
4883 if (UserHandle.getCallingUserId() != UserHandle.USER_SYSTEM) { in setGlobalProxy()
4885 + UserHandle.getCallingUserId() + " is not permitted."); in setGlobalProxy()
5002 final int userHandle = UserHandle.getCallingUserId(); in setStorageEncryption()
[all …]
/frameworks/base/core/java/android/database/
DContentObserver.java178 dispatchChange(selfChange, uri, UserHandle.getCallingUserId()); in dispatchChange()
/frameworks/base/core/java/com/android/internal/view/
DRotationPolicy.java159 registerRotationPolicyListener(context, listener, UserHandle.getCallingUserId()); in registerRotationPolicyListener()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java140 return getClipboard(UserHandle.getCallingUserId()); in getClipboard()
366 final int targetUserHandle = UserHandle.getCallingUserId(); in addActiveOwnerLocked()
/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsProviderTest.java171 otherUser.id, UserHandle.getCallingUserId()); in testSettingsChangeForOtherUser()
183 otherUser.id, UserHandle.getCallingUserId()); in testSettingsChangeForOtherUser()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java733 final int callingUid = UserHandle.getCallingUserId(); in getKeyphraseSoundModel()
776 final int callingUid = UserHandle.getCallingUserId(); in deleteKeyphraseSoundModel()
816 final int callingUid = UserHandle.getCallingUserId(); in isEnrolledForKeyphrase()
863 int callingUid = UserHandle.getCallingUserId(); in startRecognition()
/frameworks/base/core/java/android/net/
DNetworkScorerAppManager.java114 if (UserHandle.getCallingUserId() != UserHandle.USER_SYSTEM) { in getAllValidScorers()
DVpnService.java606 pm.getApplicationInfo(packageName, 0, UserHandle.getCallingUserId()); in verifyApp()
/frameworks/base/services/core/java/com/android/server/fingerprint/
DFingerprintService.java386 if (userId != UserHandle.getCallingUserId()) { in hasEnrolledFingerprints()
455 if (!isCurrentUserOrProfile(UserHandle.getCallingUserId())) { in canUseFingerprint()
739 final int callingUserId = UserHandle.getCallingUserId(); in authenticate()
/frameworks/base/core/java/android/os/
DUserHandle.java154 public static @UserIdInt int getCallingUserId() { in getCallingUserId() method in UserHandle
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java1152 int userId = UserHandle.getCallingUserId(); in setDimensionHints()
1188 WallpaperData wallpaper = mWallpaperMap.get(UserHandle.getCallingUserId()); in getWidthHint()
1199 WallpaperData wallpaper = mWallpaperMap.get(UserHandle.getCallingUserId()); in getHeightHint()
1214 int userId = UserHandle.getCallingUserId(); in setDisplayPadding()
1287 int userId = UserHandle.getCallingUserId(); in getWallpaperInfo()
1353 final int userId = UserHandle.getCallingUserId(); in setWallpaper()
1468 int userId = UserHandle.getCallingUserId(); in setWallpaperComponent()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DTelephonyRegistryMock.java130 r.callerUserId = UserHandle.getCallingUserId(); in addOnSubscriptionsChangedListener()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java1230 final int userId = UserHandle.getCallingUserId(); in queryUsageStats()
1251 final int userId = UserHandle.getCallingUserId(); in queryConfigurationStats()
1272 final int userId = UserHandle.getCallingUserId(); in queryEvents()

12