Home
last modified time | relevance | path

Searched refs:PER_USER_RANGE (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/java/android/net/
DUidRange.java19 import static android.os.UserHandle.PER_USER_RANGE;
44 return new UidRange(userId * PER_USER_RANGE, (userId + 1) * PER_USER_RANGE - 1); in createForUser()
49 return start / PER_USER_RANGE; in getStartUser()
54 return stop / PER_USER_RANGE; in getEndUser()
/frameworks/base/core/java/android/os/
DUserHandle.java38 public static final int PER_USER_RANGE = 100000; field in UserHandle
214 return uid / PER_USER_RANGE; in getUserId()
244 return userId * PER_USER_RANGE + (appId % PER_USER_RANGE); in getUid()
257 return uid % PER_USER_RANGE; in getAppId()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPersisterTest.java71 int taskId = (int) (Math.random() * UserHandle.PER_USER_RANGE); in getRandomTaskIdForUser()
72 taskId += UserHandle.PER_USER_RANGE * userId; in getRandomTaskIdForUser()
DDragDropControllerTests.java168 createDropTargetWindow("Other user's window", 1 * UserHandle.PER_USER_RANGE); in testPerformDrag_NullDataToOtherUser()
DLaunchParamsPersisterTests.java171 .setUid(TEST_USER_ID * UserHandle.PER_USER_RANGE).build(); in testFetchesSameResultWithActivity()
DActivityStackTests.java256 .setUid(UserHandle.PER_USER_RANGE * 2).build(); in testFindTaskWithOverlay()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityManagerTest.java71 taskId / UserHandle.PER_USER_RANGE, userId); in testTaskIdsForUser()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsObserversTest.java85 private static final int UID_RED = UserHandle.PER_USER_RANGE + 1;
86 private static final int UID_BLUE = UserHandle.PER_USER_RANGE + 2;
87 private static final int UID_GREEN = UserHandle.PER_USER_RANGE + 3;
88 private static final int UID_ANOTHER_USER = 2 * UserHandle.PER_USER_RANGE + 4;
DNetworkStatsCollectionTest.java221 int uidInDifferentUser = Process.myUid() + UserHandle.PER_USER_RANGE; in testAccessLevels()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DPermissionMonitorTest.java452 new UidRange(MOCK_UID2 + 1, UserHandle.PER_USER_RANGE - 1)})); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPreferencesHelperTest.java1568 user1Uids[i] = UserHandle.PER_USER_RANGE + user0Uids[i]; in testOnUserRemoved()
2483 mHelper.createNotificationChannel(PKG_O, UserHandle.PER_USER_RANGE + 1, c, true, true); in testUpdateDefaultApps_add_multiUser()
2494 PKG_O, UserHandle.PER_USER_RANGE + 1, c.getId(), false) in testUpdateDefaultApps_add_multiUser()
DManagedServicesTest.java568 UserHandle.PER_USER_RANGE + 1}); in testPackageUninstall_componentNoLongerInApprovedList()
DNotificationManagerServiceTest.java5006 mUid + UserHandle.PER_USER_RANGE); in testAreNotificationsEnabledForPackage_crossUser()
5016 mUid + UserHandle.PER_USER_RANGE); in testAreNotificationsEnabledForPackage_crossUser()
5023 mUid + UserHandle.PER_USER_RANGE); in testAreBubblesAllowedForPackage_crossUser()
5033 mUid + UserHandle.PER_USER_RANGE); in testAreBubblesAllowedForPackage_crossUser()
/frameworks/native/cmds/installd/
DInstalldNativeService.cpp1866 #define PER_USER_RANGE 100000 macro
1869 return userId * PER_USER_RANGE + projectId; in getProjectIdForUser()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastQueue.java1588 if (DEBUG_MU && r.callingUid > UserHandle.PER_USER_RANGE) { in processNextBroadcastLocked()
DActivityManagerService.java17769 || (userId < 1 && aInfo.applicationInfo.uid < UserHandle.PER_USER_RANGE)) { in getActivityInfoForUser()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStackSupervisor.java244 private static final int MAX_TASK_IDS_PER_USER = UserHandle.PER_USER_RANGE;
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java217 static final int MAX_USER_ID = Integer.MAX_VALUE / UserHandle.PER_USER_RANGE;
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java12894 final int lastUidForUser = UserHandle.getUid(userId, UserHandle.PER_USER_RANGE - 1); in onCleanupUserLocked()
12901 final int lastUidForUser = UserHandle.getUid(userId, UserHandle.PER_USER_RANGE - 1); in onUserRemovedLocked()