/frameworks/base/core/java/android/net/ |
D | UidRange.java | 19 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/ |
D | UserHandle.java | 38 public static final int PER_USER_RANGE = 100000; field in UserHandle 242 return uid / PER_USER_RANGE; in getUserId() 295 return userId * PER_USER_RANGE + (appId % PER_USER_RANGE); in getUid() 308 return uid % PER_USER_RANGE; in getAppId()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskPersisterTest.java | 71 int taskId = (int) (Math.random() * UserHandle.PER_USER_RANGE); in getRandomTaskIdForUser() 72 taskId += UserHandle.PER_USER_RANGE * userId; in getRandomTaskIdForUser()
|
D | DragDropControllerTests.java | 162 createDropTargetWindow("Other user's window", 1 * UserHandle.PER_USER_RANGE); in testPerformDrag_NullDataToOtherUser()
|
D | LaunchParamsPersisterTests.java | 176 .setUid(TEST_USER_ID * UserHandle.PER_USER_RANGE).build(); in testFetchesSameResultWithActivity()
|
D | ActivityStackTests.java | 312 .setUid(UserHandle.PER_USER_RANGE * 2).build(); in testFindTaskWithOverlay()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsObserversTest.java | 85 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;
|
D | NetworkStatsCollectionTest.java | 220 int uidInDifferentUser = Process.myUid() + UserHandle.PER_USER_RANGE; in testAccessLevels()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | AnnotationValidations.java | 52 || value > Integer.MAX_VALUE / UserHandle.PER_USER_RANGE) { in validate() 58 if (value / UserHandle.PER_USER_RANGE != 0 || value < 0) { in validate()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityManagerTest.java | 95 taskId / UserHandle.PER_USER_RANGE, userId); in testTaskIdsForUser()
|
/frameworks/base/core/java/android/os/storage/ |
D | StorageManager.java | 34 import static android.os.UserHandle.PER_USER_RANGE; 2449 return userId * PER_USER_RANGE + projectId; in getProjectIdForUser()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | PreferencesHelperTest.java | 1673 user1Uids[i] = UserHandle.PER_USER_RANGE + user0Uids[i]; in testOnUserRemoved() 2716 mHelper.createNotificationChannel(PKG_O, UserHandle.PER_USER_RANGE + 1, c, true, true); in testUpdateDefaultApps_add_multiUser() 2727 PKG_O, UserHandle.PER_USER_RANGE + 1, c.getId(), false) in testUpdateDefaultApps_add_multiUser() 3009 int[] uidList0 = new int[] {UserHandle.PER_USER_RANGE}; in testRestoreMultiUser() 3010 int[] uidList10 = new int[] {UserHandle.PER_USER_RANGE + 1}; in testRestoreMultiUser()
|
D | NotificationManagerServiceTest.java | 5618 mUid + UserHandle.PER_USER_RANGE); in testAreNotificationsEnabledForPackage_crossUser() 5627 mUid + UserHandle.PER_USER_RANGE); in testAreNotificationsEnabledForPackage_crossUser() 5634 mUid + UserHandle.PER_USER_RANGE); in testAreBubblesAllowedForPackage_crossUser() 5643 mUid + UserHandle.PER_USER_RANGE); in testAreBubblesAllowedForPackage_crossUser() 6467 int[] uids = new int[] {mUid, UserHandle.PER_USER_RANGE + 1}; in testHandleOnPackageChanged()
|
D | ManagedServicesTest.java | 719 UserHandle.PER_USER_RANGE + 1}); in testPackageUninstall_componentNoLongerInApprovedList()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | PermissionMonitorTest.java | 493 new UidRange(MOCK_UID2 + 1, UserHandle.PER_USER_RANGE - 1)})); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.cpp | 1874 #define PER_USER_RANGE 100000 macro 1877 return userId * PER_USER_RANGE + projectId; in getProjectIdForUser()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastQueue.java | 1583 if (DEBUG_MU && r.callingUid > UserHandle.PER_USER_RANGE) { in processNextBroadcastLocked()
|
D | ActivityManagerService.java | 18831 || (userId < 1 && aInfo.applicationInfo.uid < UserHandle.PER_USER_RANGE)) { in getActivityInfoForUser()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityStackSupervisor.java | 232 private static final int MAX_TASK_IDS_PER_USER = UserHandle.PER_USER_RANGE;
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 231 static final int MAX_USER_ID = Integer.MAX_VALUE / UserHandle.PER_USER_RANGE;
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 12896 final int lastUidForUser = UserHandle.getUid(userId, UserHandle.PER_USER_RANGE - 1); in onCleanupUserLocked() 12903 final int lastUidForUser = UserHandle.getUid(userId, UserHandle.PER_USER_RANGE - 1); in onUserRemovedLocked()
|