/frameworks/base/services/core/java/com/android/server/content/ |
D | ContentService.java | 320 UserHandle.getCallingUserId()); in registerContentObserver() 355 final int callingUserHandle = UserHandle.getCallingUserId(); in notifyChange() 431 UserHandle.getCallingUserId()); in notifyChange() 458 int userId = UserHandle.getCallingUserId(); in requestSync() 486 syncAsUser(request, UserHandle.getCallingUserId()); in sync() 552 cancelSyncAsUser(account, authority, cname, UserHandle.getCallingUserId()); in cancelSync() 600 int userId = UserHandle.getCallingUserId(); in cancelRequest() 629 return getSyncAdapterTypesAsUser(UserHandle.getCallingUserId()); in getSyncAdapterTypes() 672 return getSyncAutomaticallyAsUser(account, providerName, UserHandle.getCallingUserId()); in getSyncAutomatically() 701 setSyncAutomaticallyAsUser(account, providerName, sync, UserHandle.getCallingUserId()); in setSyncAutomatically() [all …]
|
/frameworks/base/services/core/java/com/android/server/search/ |
D | SearchManagerService.java | 234 return getSearchables(UserHandle.getCallingUserId()).getSearchableInfo(launchActivity); in getSearchableInfo() 242 return getSearchables(UserHandle.getCallingUserId()).getSearchablesInGlobalSearchList(); in getSearchablesInGlobalSearch() 247 return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivities(); in getGlobalSearchActivities() 255 return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivity(); in getGlobalSearchActivity() 263 return getSearchables(UserHandle.getCallingUserId()).getWebSearchActivity(); in getWebSearchActivity()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | LauncherAppsService.java | 143 private int getCallingUserId() { in getCallingUserId() method in LauncherAppsService.LauncherAppsImpl 166 mListeners.register(listener, new BroadcastCookie(UserHandle.of(getCallingUserId()), in addOnAppsChangedListener() 368 if (!mShortcutServiceInternal.hasShortcutHostPermission(getCallingUserId(), in ensureShortcutPermission() 389 mShortcutServiceInternal.getShortcuts(getCallingUserId(), in getShortcuts() 403 mShortcutServiceInternal.pinShortcuts(getCallingUserId(), in pinShortcuts() 415 return mShortcutServiceInternal.getShortcutIconResId(getCallingUserId(), in getShortcutIconResId() 427 return mShortcutServiceInternal.getShortcutIconFd(getCallingUserId(), in getShortcutIconFd() 434 return mShortcutServiceInternal.hasShortcutHostPermission(getCallingUserId(), in hasShortcutHostPermission() 450 if (!mShortcutServiceInternal.isPinnedByCaller(getCallingUserId(), in startShortcut() 456 getCallingUserId(), callingPackage, packageName, shortcutId, userId); in startShortcut()
|
D | UserManagerService.java | 556 if (userId != UserHandle.getCallingUserId()) { in getProfiles() 573 if (userId != UserHandle.getCallingUserId()) { in getProfileIds() 858 int callingUserId = UserHandle.getCallingUserId(); in isManagedProfile() 891 int callingUserId = UserHandle.getCallingUserId(); in checkManageOrInteractPermIfCallerInOtherProfileGroup() 905 int callingUserId = UserHandle.getCallingUserId(); in isDemoUser() 919 return getUserInfoLU(UserHandle.getCallingUserId()).isRestricted(); in isRestricted() 1037 final int callingUserId = UserHandle.getCallingUserId(); in getUserIcon() 2209 if (hasUserRestriction(UserManager.DISALLOW_ADD_USER, UserHandle.getCallingUserId())) { in createUserInternal() 2408 if (getUserRestrictions(UserHandle.getCallingUserId()).getBoolean( in markGuestForDeletion() 2452 if (getUserRestrictions(UserHandle.getCallingUserId()).getBoolean( in removeUser() [all …]
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProvider.java | 320 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/ |
D | KeyguardManager.java | 294 return isDeviceLocked(UserHandle.getCallingUserId()); in isDeviceLocked() 320 return isDeviceSecure(UserHandle.getCallingUserId()); in isDeviceSecure()
|
D | UiAutomationConnection.java | 173 int callingUserId = UserHandle.getCallingUserId(); in clearWindowContentFrameStats() 193 int callingUserId = UserHandle.getCallingUserId(); in getWindowContentFrameStats()
|
/frameworks/base/services/restrictions/java/com/android/server/restrictions/ |
D | RestrictionsManagerService.java | 77 int userHandle = UserHandle.getCallingUserId(); in hasRestrictionsProvider() 131 final int userHandle = UserHandle.getCallingUserId(); in createLocalApprovalIntent()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 743 return getUserAccounts(UserHandle.getCallingUserId()); in getUserAccountsForCaller() 911 int userId = UserHandle.getCallingUserId(); in getPassword() 952 int userId = UserHandle.getCallingUserId(); in getPreviousName() 1006 int userId = UserHandle.getCallingUserId(); in getUserData() 1046 UserHandle.getCallingUserId(), in getAuthenticatorTypes() 1078 return (userId != UserHandle.getCallingUserId() in isCrossUser() 1095 int userId = UserHandle.getCallingUserId(); in addAccountExplicitly() 1192 int userId = UserHandle.getCallingUserId(); in accountAuthenticated() 1410 int userId = UserHandle.getCallingUserId(); in hasFeatures() 1490 int userId = UserHandle.getCallingUserId(); in renameAccount() [all …]
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 749 final int userId = UserHandle.getCallingUserId(); in startListening() 787 final int userId = UserHandle.getCallingUserId(); in stopListening() 813 final int userId = UserHandle.getCallingUserId(); in allocateAppWidgetId() 856 final int userId = UserHandle.getCallingUserId(); in deleteAppWidgetId() 891 Slog.i(TAG, "hasBindAppWidgetPermission() " + UserHandle.getCallingUserId()); in hasBindAppWidgetPermission() 915 Slog.i(TAG, "setBindAppWidgetPermission() " + UserHandle.getCallingUserId()); in setBindAppWidgetPermission() 944 final int userId = UserHandle.getCallingUserId(); in createAppWidgetConfigIntentSender() 995 final int userId = UserHandle.getCallingUserId(); in bindAppWidgetId() 1106 final int userId = UserHandle.getCallingUserId(); in getAppWidgetIds() 1133 final int userId = UserHandle.getCallingUserId(); in getAppWidgetIdsForHost() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbService.java | 234 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/core/java/com/android/server/dreams/ |
D | DreamManagerService.java | 502 final int userId = UserHandle.getCallingUserId(); in getDreamComponents() 515 final int userId = UserHandle.getCallingUserId(); in setDreamComponents() 528 final int userId = UserHandle.getCallingUserId(); in getDefaultDreamComponent() 568 final int callingUserId = UserHandle.getCallingUserId(); in testDream()
|
/frameworks/base/core/java/android/database/ |
D | ContentObserver.java | 178 dispatchChange(selfChange, uri, UserHandle.getCallingUserId()); in dispatchChange()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 3402 final int userId = UserHandle.getCallingUserId(); in addCrossProfileWidgetProvider() 3429 final int userId = UserHandle.getCallingUserId(); in removeCrossProfileWidgetProvider() 4510 final UserHandle userHandle = new UserHandle(UserHandle.getCallingUserId()); in installCaCert() 4541 final UserHandle userHandle = new UserHandle(UserHandle.getCallingUserId()); in uninstallCaCerts() 4599 final UserHandle userHandle = new UserHandle(UserHandle.getCallingUserId()); in removeKeyPair() 4685 int userHandle = UserHandle.getCallingUserId(); in setCertInstallerPackage() 4703 int userHandle = UserHandle.getCallingUserId(); in getCertInstallerPackage() 5134 if (UserHandle.getCallingUserId() != UserHandle.USER_SYSTEM) { in setGlobalProxy() 5136 + UserHandle.getCallingUserId() + " is not permitted."); in setGlobalProxy() 5253 final int userHandle = UserHandle.getCallingUserId(); in setStorageEncryption() [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | RotationPolicy.java | 159 registerRotationPolicyListener(context, listener, UserHandle.getCallingUserId()); in registerRotationPolicyListener()
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | ClipboardService.java | 140 return getClipboard(UserHandle.getCallingUserId()); in getClipboard() 374 final int targetUserHandle = UserHandle.getCallingUserId(); in addActiveOwnerLocked()
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
D | FingerprintService.java | 439 if (userId != UserHandle.getCallingUserId()) { in hasEnrolledFingerprints() 517 if (!isCurrentUserOrProfile(UserHandle.getCallingUserId())) { in canUseFingerprint() 812 final int callingUserId = UserHandle.getCallingUserId(); in authenticate() 1131 final int userId = getUserOrWorkProfileId(opPackageName, UserHandle.getCallingUserId()); in getAuthenticatorId()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | SettingsProviderTest.java | 171 otherUser.id, UserHandle.getCallingUserId()); in testSettingsChangeForOtherUser() 183 otherUser.id, UserHandle.getCallingUserId()); in testSettingsChangeForOtherUser()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | VoiceInteractionManagerService.java | 750 final int callingUid = UserHandle.getCallingUserId(); in getKeyphraseSoundModel() 793 final int callingUid = UserHandle.getCallingUserId(); in deleteKeyphraseSoundModel() 833 final int callingUid = UserHandle.getCallingUserId(); in isEnrolledForKeyphrase() 880 int callingUid = UserHandle.getCallingUserId(); in startRecognition()
|
/frameworks/base/core/java/android/net/ |
D | NetworkScorerAppManager.java | 114 if (UserHandle.getCallingUserId() != UserHandle.USER_SYSTEM) { in getAllValidScorers()
|
D | VpnService.java | 606 pm.getApplicationInfo(packageName, 0, UserHandle.getCallingUserId()); in verifyApp()
|
/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 154 public static @UserIdInt int getCallingUserId() { in getCallingUserId() method in UserHandle
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
D | TelephonyRegistryMock.java | 130 r.callerUserId = UserHandle.getCallingUserId(); in addOnSubscriptionsChangedListener()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | BaseShortcutManagerTest.java | 175 return getCallingUserId(); in getUserId() 1118 protected int getCallingUserId() { in getCallingUserId() method in BaseShortcutManagerTest 1123 return UserHandle.of(getCallingUserId()); in getCallingUser() 1583 getCallingPackage(), getCallingUserId()); 1600 return getPackageShortcut(getCallingPackage(), shortcutId, getCallingUserId());
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsService.java | 1260 final int userId = UserHandle.getCallingUserId(); in queryUsageStats() 1281 final int userId = UserHandle.getCallingUserId(); in queryConfigurationStats() 1302 final int userId = UserHandle.getCallingUserId(); in queryEvents()
|