Home
last modified time | relevance | path

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

123

/frameworks/base/apex/media/service/java/com/android/server/media/
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()
/frameworks/base/core/java/android/content/pm/
DActivityInfo.java1331 UserHandle.getUserHandleForUid(applicationInfo.uid))) { in supportsSizeChanges()
1341 UserHandle.getUserHandleForUid(applicationInfo.uid))) { in supportsSizeChanges()
1355 UserHandle.getUserHandleForUid(applicationInfo.uid)) in neverSandboxDisplayApis()
1366 UserHandle.getUserHandleForUid(applicationInfo.uid)) in alwaysSandboxDisplayApis()
1398 UserHandle.getUserHandleForUid(applicationInfo.uid))) { in getMinAspectRatio()
1404 UserHandle.getUserHandleForUid(applicationInfo.uid))) { in getMinAspectRatio()
1410 UserHandle.getUserHandleForUid(applicationInfo.uid))) { in getMinAspectRatio()
/frameworks/base/telephony/common/android/telephony/
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()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DCallerIdentity.java51 return UserHandle.getUserHandleForUid(mUid); in getUserHandle()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/util/
DComponentKey.java79 UserHandle.getUserHandleForUid(Integer.parseInt(str.substring(sep + 1)))); in fromString()
/frameworks/base/services/core/java/com/android/server/media/
DAudioPlayerStateMonitor.java175 int userId = UserHandle.getUserHandleForUid(mediaButtonSessionUid).getIdentifier(); in cleanUpAudioPlaybackUids()
181 if (userId == UserHandle.getUserHandleForUid(uid).getIdentifier() in cleanUpAudioPlaybackUids()
DMediaSessionService.java206 UserHandle.getUserHandleForUid(config.getClientUid()) in onStart()
604 UserHandle.getUserHandleForUid(uid), resolvedUserId)) { in enforceMediaPermissions()
853 UserHandle.getUserHandleForUid(sessionToken.getUid()).getIdentifier()); in getMediaSessionRecordLocked()
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()
1643 int userId = UserHandle.getUserHandleForUid(uid).getIdentifier(); in setOnVolumeKeyLongPressListener()
[all …]
DMediaSession2Record.java88 return UserHandle.getUserHandleForUid(mSessionToken.getUid()).getIdentifier(); in getUserId()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java732 nb.build(), UserHandle.getUserHandleForUid(mUid), null, 0); in generateNotificationRecord()
753 nb.build(), UserHandle.getUserHandleForUid(mUid), null, 0); in generateNotificationRecord()
785 nb.build(), UserHandle.getUserHandleForUid(mUid), null, 0); in generateMessageBubbleNotifRecord()
956 nb.build(), UserHandle.getUserHandleForUid(mUid), null, 0); in testLimitTimeOutBroadcast()
1851 n, UserHandle.getUserHandleForUid(mUid), null, 0); in testRemoveForegroundServiceFlag_ImmediatelyAfterEnqueue()
3423 nb.build(), UserHandle.getUserHandleForUid(mUid), null, 0); in testNoFakeColorizedPermission()
3461 n, UserHandle.getUserHandleForUid(mUid), null, 0); in testGetNotificationCountLocked()
3687 UserHandle.getUserHandleForUid(Binder.getCallingUid()), null, 0); in testBumpFGImportance_noChannelChangePreOApp()
3704 0, nb.build(), UserHandle.getUserHandleForUid(Binder.getCallingUid()), null, 0); in testBumpFGImportance_noChannelChangePreOApp()
4079 PKG, PKG, 0, "tag", mUid, 0, nbA.build(), UserHandle.getUserHandleForUid(mUid), in updateUriPermissions_update()
[all …]
/frameworks/base/services/core/java/com/android/server/incident/
DIncidentCompanionService.java140 + " userHandle=" + UserHandle.getUserHandleForUid(primaryUser) in sendReportReadyBroadcast()
145 UserHandle.getUserHandleForUid(primaryUser), in sendReportReadyBroadcast()
DPendingReports.java368 mContext.sendBroadcastAsUser(intent, UserHandle.getUserHandleForUid(primaryUser), in sendBroadcast()
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DLocationPermissionCheckerTest.java142 return UserHandle.getUserHandleForUid(Process.myUid()).getIdentifier(); in setupTestCase()
168 UserHandle.getUserHandleForUid(MANAGED_PROFILE_UID))) in setupMockInterface()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbHandlerManager.java94 UserHandle.getUserHandleForUid(rInfo.activityInfo.applicationInfo.uid); in confirmUsbHandler()
DUsbProfileGroupSettingsManager.java196 handlePackageAdded(new UserPackage(packageName, UserHandle.getUserHandleForUid(uid))); in onPackageAdded()
206 clearDefaults(packageName, UserHandle.getUserHandleForUid(uid)); in onPackageRemoved()
830 if (UserHandle.getUserHandleForUid( in removeForwardIntentIfNotNeeded()
995 .getUserHandleForUid(match.activityInfo.applicationInfo.uid); in resolveActivity()
1029 UserHandle user = UserHandle.getUserHandleForUid( in resolveActivity()
1059 UserHandle.getUserHandleForUid( in getDefaultActivityLocked()
/frameworks/libs/net/common/framework/com/android/net/module/util/
DLocationPermissionChecker.java236 UserHandle.getUserHandleForUid(callingUid)).targetSdkVersion in isTargetSdkLessThan()
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java374 callingPackage, 0, UserHandle.getUserHandleForUid(uid)); in reportAccessDeniedToReadIdentifiers()
751 packageName, 0, UserHandle.getUserHandleForUid(Binder.getCallingUid())); in getTargetSdk()
/frameworks/base/services/core/java/com/android/server/policy/
DSoftRestrictedPermissionPolicy.java264 UserHandle user = UserHandle.getUserHandleForUid(uid);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/toast/
DToastUITest.java353 UserHandle.getUserHandleForUid(UID_1).getIdentifier())).thenReturn(applicationInfo); in testShowToast_targetsPreS_unlimitedLines_noAppIcon()
372 UserHandle.getUserHandleForUid(UID_1).getIdentifier())).thenReturn(applicationInfo); in testShowToast_targetsS_twoLineLimit_noAppIcon()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationApps.java97 final UserHandle user = UserHandle.getUserHandleForUid(uid); in getAppList()
DRecentLocationAccesses.java104 UserHandle user = UserHandle.getUserHandleForUid(uid); in getAppList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/toast/
DToastUI.java111 UserHandle userHandle = UserHandle.getUserHandleForUid(uid); in showToast()
DSystemUIToast.java281 UserHandle user = UserHandle.getUserHandleForUid(appInfo.uid); in getBadgedIcon()
/frameworks/base/core/java/android/permission/
DPermissionUsageHelper.java358 UserHandle user = UserHandle.getUserHandleForUid(uid); in getOpUsages()
618 return UserHandle.getUserHandleForUid(uid); in getUser()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DLegacyPermissionManagerService.java454 UserHandle.getUserHandleForUid(uid)); in getApplicationInfo()
/frameworks/base/core/java/android/os/
DUserHandle.java238 public static UserHandle getUserHandleForUid(int uid) { in getUserHandleForUid() method in UserHandle

123