/frameworks/base/services/core/java/com/android/server/content/ |
D | ContentService.java | 328 UserHandle.getCallingUserId(), Build.VERSION_CODES.CUR_DEVELOPMENT); in registerContentObserver() 363 final int callingUserHandle = UserHandle.getCallingUserId(); in notifyChange() 448 UserHandle.getCallingUserId(), Build.VERSION_CODES.CUR_DEVELOPMENT); in notifyChange() 475 int userId = UserHandle.getCallingUserId(); in requestSync() 503 syncAsUser(request, UserHandle.getCallingUserId()); in sync() 569 cancelSyncAsUser(account, authority, cname, UserHandle.getCallingUserId()); in cancelSync() 617 int userId = UserHandle.getCallingUserId(); in cancelRequest() 646 return getSyncAdapterTypesAsUser(UserHandle.getCallingUserId()); in getSyncAdapterTypes() 689 return getSyncAutomaticallyAsUser(account, providerName, UserHandle.getCallingUserId()); in getSyncAutomatically() 718 setSyncAutomaticallyAsUser(account, providerName, sync, UserHandle.getCallingUserId()); in setSyncAutomatically() [all …]
|
/frameworks/base/services/companion/java/com/android/server/companion/ |
D | CompanionDeviceManagerService.java | 220 int userId = getCallingUserId(); in associate() 249 checkUsesFeature(callingPackage, getCallingUserId()); in getAssociations() 261 checkUsesFeature(callingPackage, getCallingUserId()); in disassociate() 262 removeAssociation(getCallingUserId(), callingPackage, deviceMacAddress); in disassociate() 266 checkCallerIsSystemOr(pkg, getCallingUserId()); in checkCallerIsSystemOr() 274 checkArgument(getCallingUserId() == userId, in checkCallerIsSystemOr() 284 int userId = getCallingUserId(); in requestNotificationAccess() 313 int userId = getCallingUserId(); in checkCanCallNotificationApi() 344 private static int getCallingUserId() { in getCallingUserId() method in CompanionDeviceManagerService 493 int userId = getCallingUserId(); [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/usb/java/com/android/server/usb/ |
D | UsbService.java | 223 int userIdInt = UserHandle.getCallingUserId(); in isCallerInCurrentUserProfileGroupLocked() 241 int userIdInt = UserHandle.getCallingUserId(); in openDevice() 271 int userIdInt = UserHandle.getCallingUserId(); in openAccessory() 312 final int userId = UserHandle.getCallingUserId(); in hasDevicePermission() 318 final int userId = UserHandle.getCallingUserId(); in hasAccessoryPermission() 324 final int userId = UserHandle.getCallingUserId(); in requestDevicePermission() 331 final int userId = UserHandle.getCallingUserId(); in requestAccessoryPermission() 471 if (mCurrentUserId == UserHandle.getCallingUserId()) { in setUsbDeviceConnectionHandler()
|
/frameworks/base/services/core/java/com/android/server/ |
D | OemLockService.java | 78 final UserHandle userHandle = UserHandle.of(UserHandle.getCallingUserId()); 137 final int userId = UserHandle.getCallingUserId(); in enforceUserIsAdmin()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | LauncherAppsService.java | 145 private int getCallingUserId() { in getCallingUserId() method in LauncherAppsService.LauncherAppsImpl 168 mListeners.register(listener, new BroadcastCookie(UserHandle.of(getCallingUserId()), in addOnAppsChangedListener() 440 if (!mShortcutServiceInternal.hasShortcutHostPermission(getCallingUserId(), in ensureShortcutPermission() 462 mShortcutServiceInternal.getShortcuts(getCallingUserId(), in getShortcuts() 479 mShortcutServiceInternal.pinShortcuts(getCallingUserId(), in pinShortcuts() 494 return mShortcutServiceInternal.getShortcutIconResId(getCallingUserId(), in getShortcutIconResId() 509 return mShortcutServiceInternal.getShortcutIconFd(getCallingUserId(), in getShortcutIconFd() 516 return mShortcutServiceInternal.hasShortcutHostPermission(getCallingUserId(), in hasShortcutHostPermission() 533 if (!mShortcutServiceInternal.isPinnedByCaller(getCallingUserId(), in startShortcut() 539 getCallingUserId(), callingPackage, packageName, shortcutId, targetUserId); in startShortcut()
|
D | UserManagerService.java | 591 if (userId != UserHandle.getCallingUserId()) { in getProfiles() 608 if (userId != UserHandle.getCallingUserId()) { in getProfileIds() 912 int callingUserId = UserHandle.getCallingUserId(); in getManagedProfileBadge() 928 int callingUserId = UserHandle.getCallingUserId(); in isManagedProfile() 961 int callingUserId = UserHandle.getCallingUserId(); in checkManageOrInteractPermIfCallerInOtherProfileGroup() 975 int callingUserId = UserHandle.getCallingUserId(); in isDemoUser() 989 return getUserInfoLU(UserHandle.getCallingUserId()).isRestricted(); in isRestricted() 1107 final int callingUserId = UserHandle.getCallingUserId(); in getUserIcon() 2375 if (hasUserRestriction(restriction, UserHandle.getCallingUserId())) { in createUserInternal() 2602 if (getUserRestrictions(UserHandle.getCallingUserId()).getBoolean( in markGuestForDeletion() [all …]
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProvider.java | 415 Slog.v(LOG_TAG, "query() for user: " + UserHandle.getCallingUserId()); in query() 437 final int userId = UserHandle.getCallingUserId(); in query() 447 final int userId = UserHandle.getCallingUserId(); in query() 465 Slog.v(LOG_TAG, "insert() for user: " + UserHandle.getCallingUserId()); in insert() 485 UserHandle.getCallingUserId(), false)) { in insert() 492 UserHandle.getCallingUserId(), false)) { in insert() 498 if (insertSystemSetting(name, value, UserHandle.getCallingUserId())) { in insert() 514 Slog.v(LOG_TAG, "bulkInsert() for user: " + UserHandle.getCallingUserId()); in bulkInsert() 532 Slog.v(LOG_TAG, "delete() for user: " + UserHandle.getCallingUserId()); in delete() 548 final int userId = UserHandle.getCallingUserId(); in delete() [all …]
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 435 int userId = UserHandle.getCallingUserId(); in addAccountExplicitlyWithVisibility() 467 int userId = UserHandle.getCallingUserId(); in getAccountsAndVisibilityForPackage() 523 int userId = UserHandle.getCallingUserId(); in getPackagesAndVisibilityForAccount() 570 int userId = UserHandle.getCallingUserId(); in getAccountVisibility() 735 int userId = UserHandle.getCallingUserId(); in setAccountVisibility() 856 int userId = UserHandle.getCallingUserId(); in registerAccountListener() 889 int userId = UserHandle.getCallingUserId(); in unregisterAccountListener() 1262 return getUserAccounts(UserHandle.getCallingUserId()); in getUserAccountsForCaller() 1430 int userId = UserHandle.getCallingUserId(); in getPassword() 1472 int userId = UserHandle.getCallingUserId(); in getPreviousName() [all …]
|
/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/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsWrapper.java | 51 public int getCallingUserId(int uid) { in getCallingUserId() method in WifiPermissionsWrapper
|
D | WifiPermissionsUtil.java | 180 int callingUserId = mWifiPermissionsWrapper.getCallingUserId(uid); in isCurrentProfile()
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 798 final int userId = UserHandle.getCallingUserId(); in startListening() 836 final int userId = UserHandle.getCallingUserId(); in stopListening() 862 final int userId = UserHandle.getCallingUserId(); in allocateAppWidgetId() 905 final int userId = UserHandle.getCallingUserId(); in deleteAppWidgetId() 940 Slog.i(TAG, "hasBindAppWidgetPermission() " + UserHandle.getCallingUserId()); in hasBindAppWidgetPermission() 964 Slog.i(TAG, "setBindAppWidgetPermission() " + UserHandle.getCallingUserId()); in setBindAppWidgetPermission() 993 final int userId = UserHandle.getCallingUserId(); in createAppWidgetConfigIntentSender() 1044 final int userId = UserHandle.getCallingUserId(); in bindAppWidgetId() 1155 final int userId = UserHandle.getCallingUserId(); in getAppWidgetIds() 1182 final int userId = UserHandle.getCallingUserId(); in getAppWidgetIdsForHost() [all …]
|
/frameworks/base/services/core/java/com/android/server/dreams/ |
D | DreamManagerService.java | 497 final int userId = UserHandle.getCallingUserId(); in getDreamComponents() 510 final int userId = UserHandle.getCallingUserId(); in setDreamComponents() 523 final int userId = UserHandle.getCallingUserId(); in getDefaultDreamComponent() 563 final int callingUserId = UserHandle.getCallingUserId(); in testDream()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | StorageStatsService.java | 239 if (userId != UserHandle.getCallingUserId()) { in queryStatsForPackage() 291 if (userId != UserHandle.getCallingUserId()) { in queryStatsForUid() 340 if (userId != UserHandle.getCallingUserId()) { in queryStatsForUser() 367 if (userId != UserHandle.getCallingUserId()) { in queryExternalStatsForUser()
|
/frameworks/base/core/java/android/database/ |
D | ContentObserver.java | 178 dispatchChange(selfChange, uri, UserHandle.getCallingUserId()); in dispatchChange()
|
/frameworks/base/core/java/android/app/ |
D | UiAutomationConnection.java | 173 int callingUserId = UserHandle.getCallingUserId(); in clearWindowContentFrameStats() 193 int callingUserId = UserHandle.getCallingUserId(); in getWindowContentFrameStats()
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
D | FingerprintService.java | 665 if (userId != UserHandle.getCallingUserId()) { in hasEnrolledFingerprints() 1082 final int callingUserId = UserHandle.getCallingUserId(); in authenticate() 1116 final int callingUserId = UserHandle.getCallingUserId(); in cancelAuthentication() 1184 UserHandle.getCallingUserId())) { in isHardwareDetected() 1216 UserHandle.getCallingUserId())) { in getEnrolledFingerprints() 1227 UserHandle.getCallingUserId())) { in hasEnrolledFingerprints() 1473 final int userId = getUserOrWorkProfileId(opPackageName, UserHandle.getCallingUserId()); in getAuthenticatorId()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | RotationPolicy.java | 159 registerRotationPolicyListener(context, listener, UserHandle.getCallingUserId()); in registerRotationPolicyListener()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 3683 final int userId = UserHandle.getCallingUserId(); in addCrossProfileWidgetProvider() 3710 final int userId = UserHandle.getCallingUserId(); in removeCrossProfileWidgetProvider() 4868 final UserHandle userHandle = new UserHandle(UserHandle.getCallingUserId()); in removeKeyPair() 5667 if (UserHandle.getCallingUserId() != UserHandle.USER_SYSTEM) { in setGlobalProxy() 5669 + UserHandle.getCallingUserId() + " is not permitted."); in setGlobalProxy() 5786 final int userHandle = UserHandle.getCallingUserId(); in setStorageEncryption() 5792 + UserHandle.getCallingUserId() + " is not permitted."); in setStorageEncryption() 5940 final int userHandle = UserHandle.getCallingUserId(); in setScreenCaptureDisabled() 6002 final int userHandle = UserHandle.getCallingUserId(); in setAutoTimeRequired() 6446 final int userHandle = UserHandle.getCallingUserId(); in setKeepUninstalledPackages() [all …]
|
/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 | 776 final int callingUid = UserHandle.getCallingUserId(); in getKeyphraseSoundModel() 819 final int callingUid = UserHandle.getCallingUserId(); in deleteKeyphraseSoundModel() 859 final int callingUid = UserHandle.getCallingUserId(); in isEnrolledForKeyphrase() 906 int callingUid = UserHandle.getCallingUserId(); in startRecognition()
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | ClipboardService.java | 372 return getClipboard(UserHandle.getCallingUserId()); in getClipboard() 494 final int targetUserHandle = UserHandle.getCallingUserId(); in addActiveOwnerLocked()
|
/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 156 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()
|