Searched refs:PER_USER_RANGE (Results 1 – 12 of 12) sorted by relevance
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/defaultapps/ |
D | DefaultAutofillPickerTest.java | 113 mPicker, "mUserId", MAIN_PROFILE_UID * UserHandle.PER_USER_RANGE); in setAndGetDefaultAppKey_shouldUpdateDefaultAutoFill() 116 mPicker, "mUserId", MANAGED_PROFILE_UID * UserHandle.PER_USER_RANGE); in setAndGetDefaultAppKey_shouldUpdateDefaultAutoFill() 120 mPicker, "mUserId", MAIN_PROFILE_UID * UserHandle.PER_USER_RANGE); in setAndGetDefaultAppKey_shouldUpdateDefaultAutoFill() 123 mPicker, "mUserId", MANAGED_PROFILE_UID * UserHandle.PER_USER_RANGE); in setAndGetDefaultAppKey_shouldUpdateDefaultAutoFill() 141 ShadowProcess.setUid(MANAGED_PROFILE_UID * UserHandle.PER_USER_RANGE); in mUserId_shouldDeriveUidFromManagedCaller() 154 ShadowProcess.setUid(MAIN_PROFILE_UID * UserHandle.PER_USER_RANGE); in mUserId_shouldDeriveUidFromMainCaller() 167 ShadowProcess.setUid(MAIN_PROFILE_UID * UserHandle.PER_USER_RANGE); in mUserId_shouldDeriveUidFromManagedClick() 180 ShadowProcess.setUid(MAIN_PROFILE_UID * UserHandle.PER_USER_RANGE); in mUserId_shouldDeriveUidFromMainClick()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsObserversTest.java | 89 private static final int UID_RED = UserHandle.PER_USER_RANGE + 1; 90 private static final int UID_BLUE = UserHandle.PER_USER_RANGE + 2; 91 private static final int UID_GREEN = UserHandle.PER_USER_RANGE + 3; 92 private static final int UID_ANOTHER_USER = 2 * UserHandle.PER_USER_RANGE + 4;
|
D | NetworkStatsCollectionTest.java | 224 int uidInDifferentUser = Process.myUid() + UserHandle.PER_USER_RANGE; in testAccessLevels()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/ |
D | ProfileHelperTest.java | 378 ShadowProcess.setUid(baseId * UserHandle.PER_USER_RANGE); // User 10 in testRemoveUser_removeForegroundUser_callsSwitchToGuest() 395 ShadowProcess.setUid(baseId * UserHandle.PER_USER_RANGE); // User 10 in testRemoveUser_removeForegroundUser_switchFails_returnsSetEphemeralResult()
|
/packages/providers/MediaProvider/jni/ |
D | FuseDaemon.cpp | 107 constexpr int PER_USER_RANGE = 100000; variable 110 constexpr int MAX_USER_ID = UINT32_MAX / PER_USER_RANGE; 113 const int MY_USER_ID = MY_UID / PER_USER_RANGE; 114 const std::string MY_USER_ID_STRING(std::to_string(MY_UID / PER_USER_RANGE)); 539 … } else if (!mediaprovider::fuse::containsMount(path, std::to_string(getuid() / PER_USER_RANGE))) { in make_node_entry()
|
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/ |
D | CrossProfileAppsPregrantControllerTest.java | 56 private static final int OTHER_USER_UID = UserHandle.PER_USER_RANGE * OTHER_USER_ID;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/interactacrossprofiles/ |
D | InteractAcrossProfilesSettingsTest.java | 52 private static final int WORK_UID = UserHandle.PER_USER_RANGE * WORK_PROFILE_ID;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | RestrictAppPreferenceControllerTest.java | 66 private static final int OTHER_USER_UID = UserHandle.PER_USER_RANGE + RESTRICTED_UID;
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | VpnTest.java | 26 import static android.os.UserHandle.PER_USER_RANGE; 275 return new Range<Integer>(userId * PER_USER_RANGE, (userId + 1) * PER_USER_RANGE - 1); in uidRangeForUser()
|
D | PermissionMonitorTest.java | 616 new UidRange(MOCK_UID2 + 1, UserHandle.PER_USER_RANGE - 1)})); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppStateNotificationBridgeTest.java | 328 profile.info.uid = UserHandle.PER_USER_RANGE + 1; in testLoadAllExtraInfo_multipleUsers()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaProvider.java | 363 private static final int PER_USER_RANGE = 100000; field in MediaProvider 510 if (uid / PER_USER_RANGE == sUserId) { in getCachedCallingIdentityForFuse() 1363 int callingUserId = uid / PER_USER_RANGE; in shouldAllowLookupForFuse() 1408 if (((ai.uid / PER_USER_RANGE) == userId) in isWorkProfile() 2921 return "/storage/emulated/" + (uid / PER_USER_RANGE); in getStorageRootPathForUid() 5559 final int userId = Binder.getCallingUid() / PER_USER_RANGE;
|