Searched refs:SYSTEM_USER_ID (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/tests/VpnTests/java/com/android/server/ |
D | VpnManagerServiceTest.java | 155 doReturn(SYSTEM_USER).when(mUserManager).getUserInfo(eq(SYSTEM_USER_ID)); in setUp() 172 onUserStarted(SYSTEM_USER_ID); in setUp() 173 assertNotNull(mService.mVpns.get(SYSTEM_USER_ID)); in setUp() 329 onUserUnlocked(SYSTEM_USER_ID); in testUpdateLockdownVpn() 337 onUserStopped(SYSTEM_USER_ID); in testUpdateLockdownVpn() 338 onUserUnlocked(SYSTEM_USER_ID); in testUpdateLockdownVpn() 342 onUserStarted(SYSTEM_USER_ID); in testUpdateLockdownVpn() 347 onUserUnlocked(SYSTEM_USER_ID); in testUpdateLockdownVpn() 357 onUserUnlocked(SYSTEM_USER_ID); in testLockdownReset() 378 assertFalse(mService.isVpnLockdownEnabled(SYSTEM_USER_ID)); in testIsVpnLockdownEnabled() [all …]
|
D | VpnTestBase.java | 59 protected static final int SYSTEM_USER_ID = 0; field in VpnTestBase
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | UserControllerTest.java | 151 private static final int SYSTEM_USER_ID = UserHandle.SYSTEM.getIdentifier(); field in UserControllerTest 279 setUpUser(SYSTEM_USER_ID, UserInfo.FLAG_SYSTEM, /* preCreated= */ false, in testStartUser_sendsNoBroadcastsForSystemUserInNonHeadlessMode() 283 mUserController.startUser(SYSTEM_USER_ID, USER_START_MODE_FOREGROUND); in testStartUser_sendsNoBroadcastsForSystemUserInNonHeadlessMode() 291 setUpUser(SYSTEM_USER_ID, UserInfo.FLAG_SYSTEM, /* preCreated= */ false, in testStartUser_sendsBroadcastsForSystemUserInHeadlessMode() 295 mUserController.startUser(SYSTEM_USER_ID, USER_START_MODE_FOREGROUND); in testStartUser_sendsBroadcastsForSystemUserInHeadlessMode() 604 assertEquals(Arrays.asList(SYSTEM_USER_ID, TEST_USER_ID), in testScheduleStopOfBackgroundUser_switch() 609 assertEquals(Arrays.asList(SYSTEM_USER_ID, TEST_USER_ID), in testScheduleStopOfBackgroundUser_switch() 617 assertEquals(Arrays.asList(SYSTEM_USER_ID, TEST_USER_ID, TEST_USER_ID1), in testScheduleStopOfBackgroundUser_switch() 625 assertEquals(Arrays.asList(SYSTEM_USER_ID, TEST_USER_ID1, TEST_USER_ID), in testScheduleStopOfBackgroundUser_switch() 632 assertEquals(Arrays.asList(SYSTEM_USER_ID, TEST_USER_ID), in testScheduleStopOfBackgroundUser_switch() [all …]
|
/frameworks/base/services/tests/VpnTests/java/com/android/server/connectivity/ |
D | VpnTest.java | 732 final Vpn vpn = createVpn(SYSTEM_USER_ID); in testLockdownSystemUser() 736 final List<Range<Integer>> ranges = makeVpnUidRange(SYSTEM_USER_ID, excludedUids); in testLockdownSystemUser() 750 final List<Range<Integer>> ranges2 = makeVpnUidRange(SYSTEM_USER_ID, excludedUids); in testLockdownSystemUser()
|