Home
last modified time | relevance | path

Searched refs:getUserHandleForUid (Results 1 – 25 of 120) sorted by relevance

12345

/aosp12/frameworks/base/apex/media/service/java/com/android/server/media/
H A DMediaCommunicationService.java20 import static android.os.UserHandle.getUserHandleForUid;
211 && record.mUserId != getUserHandleForUid(token.getUid()).getIdentifier()) { in dispatchSession2Created()
286 int userId = getUserHandleForUid(sessionToken.getUid()).getIdentifier(); in notifySession2Created()
313 final int userId = UserHandle.getUserHandleForUid(uid).getIdentifier(); in isTrusted()
394 int controllerUserId = UserHandle.getUserHandleForUid(controllerUid).getIdentifier(); in hasEnabledNotificationListener()
401 UserHandle.getUserHandleForUid(controllerUid))) { in hasEnabledNotificationListener()
418 int callingUserId = UserHandle.getUserHandleForUid(uid).getIdentifier(); in handleIncomingUser()
453 ? ALL.getIdentifier() : UserHandle.getUserHandleForUid(mUid).getIdentifier(); in CallbackRecord()
569 return UserHandle.getUserHandleForUid(mSessionToken.getUid()).getIdentifier(); in getUserId()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
H A DLightPackageInfo.kt83 val userContext = Utils.getUserContext(app, UserHandle.getUserHandleForUid(uid))
101 val userContext = Utils.getUserContext(app, UserHandle.getUserHandleForUid(uid))
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/util/
H A DWifiPermissionsUtil.java118 UserHandle.getUserHandleForUid(callingUid)).targetSdkVersion; in isTargetSdkLessThan()
442 UserHandle callingUser = UserHandle.getUserHandleForUid(uid); in isCurrentProfile()
594 UserHandle.getUserHandleForUid(uid)); in createPackageContextAsUser()
652 return deviceOwner.first.equals(UserHandle.getUserHandleForUid(uid)) in isDeviceOwner()
666 if (!deviceOwner.first.equals(UserHandle.getUserHandleForUid(uid))) return false; in isDeviceOwner()
707 packageName, 0, UserHandle.getUserHandleForUid(uid)); in isSystem()
/aosp12/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/watchdog/
H A DCarWatchdogManagerPermissionTest.java139 UserHandle userHandle = UserHandle.getUserHandleForUid(Process.myUid()); in testGetResourceOveruseStatsForUserPackage()
178 UserHandle userHandle = UserHandle.getUserHandleForUid(Process.myUid()); in testSetKillablePackageAsUser()
186 UserHandle userHandle = UserHandle.getUserHandleForUid(Process.myUid()); in testGetPackageKillableStatesAsUser()
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
H A DWifiPermissionsUtilTest.java875 .thenReturn(UserHandle.getUserHandleForUid(MANAGED_PROFILE_UID)); in testIsDeviceOwnerByPackageName()
884 .thenReturn(UserHandle.getUserHandleForUid(OTHER_USER_UID)); in testIsDeviceOwnerByPackageName()
892 .thenReturn(UserHandle.getUserHandleForUid(MANAGED_PROFILE_UID)); in testIsDeviceOwnerByPackageName()
925 .thenReturn(UserHandle.getUserHandleForUid(MANAGED_PROFILE_UID)); in testIsDeviceOwnerByUid()
934 .thenReturn(UserHandle.getUserHandleForUid(OTHER_USER_UID)); in testIsDeviceOwnerByUid()
941 .thenReturn(UserHandle.getUserHandleForUid(MANAGED_PROFILE_UID)); in testIsDeviceOwnerByUid()
950 .thenReturn(UserHandle.getUserHandleForUid(MANAGED_PROFILE_UID)); in testIsDeviceOwnerByUid()
975 TEST_WIFI_STACK_APK_NAME, 0, UserHandle.getUserHandleForUid(MANAGED_PROFILE_UID))) in testIsProfileOwnerApp()
1000 UserHandle.getUserHandleForUid(MANAGED_PROFILE_UID)); in testIsProfileOwnerApp()
1376 UserHandle.getUserHandleForUid(MANAGED_PROFILE_UID)))
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
H A DAutoGrantPermissionsNotifier.java30 import static android.os.UserHandle.getUserHandleForUid;
100 UserHandle callingUser = getUserHandleForUid(mPackageInfo.applicationInfo.uid); in AutoGrantPermissionsNotifier()
218 UserHandle callingUser = getUserHandleForUid(mPackageInfo.applicationInfo.uid); in getSettingsPermissionIntent()
/aosp12/packages/modules/Connectivity/framework/src/android/net/
H A DUidRange.java56 return UserHandle.getUserHandleForUid(start).getIdentifier(); in getStartUser()
61 return UserHandle.getUserHandleForUid(stop).getIdentifier(); in getEndUser()
/aosp12/packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/
H A DNotificationUtils.java89 .setContentText("Message from " + UserHandle.getUserHandleForUid(Process.myUid())) in sendDirectReplyNotification()
108 UserHandle.getUserHandleForUid(Process.myUid()))); in onReceiveDirectReply()
/aosp12/frameworks/base/telephony/common/android/telephony/
H A DLocationAccessPolicy.java355 if (!isLocationModeEnabled(context, UserHandle.getUserHandleForUid(uid).getIdentifier())) { in checkSystemLocationAccess()
382 if (UserHandle.getUserHandleForUid(uid).getIdentifier() in isCurrentProfile()
389 UserHandle.getUserHandleForUid(ActivityManager.getCurrentUser())); in isCurrentProfile()
/aosp12/packages/providers/MediaProvider/src/com/android/providers/media/
H A DLocalCallingIdentity.java125 user = UserHandle.getUserHandleForUid(binderUid); in fromBinder()
165 UserHandle user = UserHandle.getUserHandleForUid(uid); in fromExternal()
376 DEFAULT_SCOPED_STORAGE, getPackageName(), UserHandle.getUserHandleForUid(uid)); in isLegacyStorageGranted()
378 FORCE_ENABLE_SCOPED_STORAGE, getPackageName(), UserHandle.getUserHandleForUid(uid)); in isLegacyStorageGranted()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
H A DOpUsageLiveData.kt64 val user = UserHandle.getUserHandleForUid(packageOp.uid)
92 UserHandle.getUserHandleForUid(proxy.uid), accessTime)
/aosp12/packages/modules/Permission/service/java/com/android/permission/compat/
H A DUserHandleCompat.java46 return UserHandle.getUserHandleForUid(uid).getIdentifier(); in getUserId()
/aosp12/frameworks/base/services/core/java/com/android/server/media/
H A DMediaSessionService.java206 UserHandle.getUserHandleForUid(config.getClientUid()) in onStart()
604 UserHandle.getUserHandleForUid(uid), resolvedUserId)) { in enforceMediaPermissions()
1243 final int userId = UserHandle.getUserHandleForUid(uid).getIdentifier(); in getMediaKeyEventSession()
1274 final int userId = UserHandle.getUserHandleForUid(uid).getIdentifier(); in getMediaKeyEventSessionPackageName()
1521 final int userId = UserHandle.getUserHandleForUid(uid).getIdentifier(); in addOnMediaKeyEventDispatchedListener()
1549 final int userId = UserHandle.getUserHandleForUid(uid).getIdentifier(); in removeOnMediaKeyEventDispatchedListener()
1577 final int userId = UserHandle.getUserHandleForUid(uid).getIdentifier(); in addOnMediaKeyEventSessionChangedListener()
1605 final int userId = UserHandle.getUserHandleForUid(uid).getIdentifier(); in removeOnMediaKeyEventSessionChangedListener()
2009 final int userId = UserHandle.getUserHandleForUid(uid).getIdentifier(); in isTrusted()
2105 int callingUserId = UserHandle.getUserHandleForUid(uid).getIdentifier(); in handleIncomingUser()
[all …]
H A DAudioPlayerStateMonitor.java175 int userId = UserHandle.getUserHandleForUid(mediaButtonSessionUid).getIdentifier(); in cleanUpAudioPlaybackUids()
181 if (userId == UserHandle.getUserHandleForUid(uid).getIdentifier() in cleanUpAudioPlaybackUids()
/aosp12/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DCallerIdentity.java51 return UserHandle.getUserHandleForUid(mUid); in getUserHandle()
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationManagerServiceTest.java1837 n, UserHandle.getUserHandleForUid(mUid), null, 0); in testRemoveForegroundServiceFlag_ImmediatelyAfterEnqueue()
3534 n, UserHandle.getUserHandleForUid(mUid), null, 0); in testGetNotificationCountLocked()
3933 UserHandle.getUserHandleForUid(mUid), null, 0); in testVisuallyInterruptive_notSeen()
5277 n, UserHandle.getUserHandleForUid(mUid), null, 0); in testRemoveForegroundServiceFlagFromNotification_enqueued()
5296 n, UserHandle.getUserHandleForUid(mUid), null, 0); in testRemoveForegroundServiceFlagFromNotification_posted()
5974 UserHandle.getUserHandleForUid(mUid), null, 0); in testNotificationStats_notificationError()
7302 UserHandle.getUserHandleForUid(mUid)); in testNotificationBubbles_flagRemoved_whenShortcutRemoved()
7796 UserHandle.getUserHandleForUid(mUid), null, 0); in testRecordMessages_invalidMsg()
7817 UserHandle.getUserHandleForUid(mUid), null, 0); in testRecordMessages_invalidMsg_notMessageStyle()
7837 UserHandle.getUserHandleForUid(mUid), null, 0); in testRecordMessages_validMsg()
[all …]
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/specialappaccess/
H A DSpecialAppAccessChildFragment.java159 UserHandle user = UserHandle.getUserHandleForUid(qualifyingApplicationInfo.uid); in onRoleChanged()
199 UserHandle user = UserHandle.getUserHandleForUid(applicationInfo.uid); in onPreferenceClick()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
H A DPrioritizeAppPerformancePreferenceControllerTest.java180 TEST_PKG_NAME, UserHandle.getUserHandleForUid(TEST_UID), true); in callChangeListener_turnOffPrioritizeAppPerformance()
201 TEST_PKG_NAME, UserHandle.getUserHandleForUid(TEST_UID), false); in callChangeListener_turnOnPrioritizeAppPerformance()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
H A DLocationAccessCheck.java40 import static android.os.UserHandle.getUserHandleForUid;
417 createPermissionReminderChannel(getUserHandleForUid(pkgInfo.applicationInfo.uid)); in addLocationNotificationIfNeeded()
448 UserHandle user = getUserHandleForUid(packageOps.getUid()); in getLocationUsersWithNoNotificationYetLocked()
567 UserHandle user = getUserHandleForUid(pkg.applicationInfo.uid); in createNotificationForLocationUser()
934 UserHandle user = getUserHandleForUid(intent.getIntExtra(EXTRA_UID, 0)); in onReceive()
/aosp12/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/util/
H A DComponentKey.java79 UserHandle.getUserHandleForUid(Integer.parseInt(str.substring(sep + 1)))); in fromString()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
H A DRoleSortFunction.java50 -> UserHandle.getUserHandleForUid(role.first.uid).getIdentifier()); in RoleSortFunction()
/aosp12/frameworks/base/services/core/java/com/android/server/incident/
H A DIncidentCompanionService.java140 + " userHandle=" + UserHandle.getUserHandleForUid(primaryUser) in sendReportReadyBroadcast()
145 UserHandle.getUserHandleForUid(primaryUser), in sendReportReadyBroadcast()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
H A DUserSensitiveFlagsUtils.kt102 UserHandle.getUserHandleForUid(uid), callback)
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/
H A DWifiKeyStore.java283 mContext, UserHandle.getUserHandleForUid(config.creatorUid), keyChainAlias); in updateNetworkKeys()
454 mContext, UserHandle.getUserHandleForUid(uid), alias); in validateKeyChainAlias()
/aosp12/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
H A DLocationPermissionCheckerTest.java142 return UserHandle.getUserHandleForUid(Process.myUid()).getIdentifier(); in setupTestCase()
168 UserHandle.getUserHandleForUid(MANAGED_PROFILE_UID))) in setupMockInterface()

12345