Home
last modified time | relevance | path

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

123

/frameworks/base/services/core/java/com/android/server/content/
DContentService.java328 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/
DCompanionDeviceManagerService.java220 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/
DSearchManagerService.java234 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/
DUsbService.java223 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/
DOemLockService.java78 final UserHandle userHandle = UserHandle.of(UserHandle.getCallingUserId());
137 final int userId = UserHandle.getCallingUserId(); in enforceUserIsAdmin()
/frameworks/base/services/core/java/com/android/server/pm/
DLauncherAppsService.java145 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()
DUserManagerService.java591 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/
DSettingsProvider.java415 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/
DAccountManagerService.java435 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/
DRestrictionsManagerService.java77 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/
DWifiPermissionsWrapper.java51 public int getCallingUserId(int uid) { in getCallingUserId() method in WifiPermissionsWrapper
DWifiPermissionsUtil.java180 int callingUserId = mWifiPermissionsWrapper.getCallingUserId(uid); in isCurrentProfile()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java798 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/
DDreamManagerService.java497 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/
DStorageStatsService.java239 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/
DContentObserver.java178 dispatchChange(selfChange, uri, UserHandle.getCallingUserId()); in dispatchChange()
/frameworks/base/core/java/android/app/
DUiAutomationConnection.java173 int callingUserId = UserHandle.getCallingUserId(); in clearWindowContentFrameStats()
193 int callingUserId = UserHandle.getCallingUserId(); in getWindowContentFrameStats()
/frameworks/base/services/core/java/com/android/server/fingerprint/
DFingerprintService.java665 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/
DRotationPolicy.java159 registerRotationPolicyListener(context, listener, UserHandle.getCallingUserId()); in registerRotationPolicyListener()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java3683 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/
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.java776 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/
DClipboardService.java372 return getClipboard(UserHandle.getCallingUserId()); in getClipboard()
494 final int targetUserHandle = UserHandle.getCallingUserId(); in addActiveOwnerLocked()
/frameworks/base/core/java/android/os/
DUserHandle.java156 public static @UserIdInt int getCallingUserId() { in getCallingUserId() method in UserHandle
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DTelephonyRegistryMock.java130 r.callerUserId = UserHandle.getCallingUserId(); in addOnSubscriptionsChangedListener()

123