Searched refs:TEST_USER (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userswitcher/ |
D | UserSwitchTransitionViewMediatorTest.java | 44 private static final int TEST_USER = 100; field in UserSwitchTransitionViewMediatorTest 63 when(mCarDeviceProvisionedController.getCurrentUser()).thenReturn(TEST_USER); in setUp() 70 when(mUserLifecycleEvent.getUserId()).thenReturn(TEST_USER); in onUserLifecycleEvent_userStarting_isCurrentUser_callsHandleShow() 74 verify(mUserSwitchTransitionViewController).handleShow(TEST_USER); in onUserLifecycleEvent_userStarting_isCurrentUser_callsHandleShow() 81 when(mUserLifecycleEvent.getUserId()).thenReturn(TEST_USER); in onUserLifecycleEvent_userStarting_isNotCurrentUser_doesNotCallHandleShow() 82 when(mCarDeviceProvisionedController.getCurrentUser()).thenReturn(TEST_USER + 1); in onUserLifecycleEvent_userStarting_isNotCurrentUser_doesNotCallHandleShow() 86 verify(mUserSwitchTransitionViewController, never()).handleShow(TEST_USER); in onUserLifecycleEvent_userStarting_isNotCurrentUser_doesNotCallHandleShow()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/ |
D | PermissionsPreferenceControllerTest.java | 52 private static final UserInfo TEST_USER = new UserInfo(/* id= */ 10, field in PermissionsPreferenceControllerTest 67 mController.setUserInfo(TEST_USER); in setUp() 97 TEST_USER.getUserHandle(), TEST_RESTRICTION, true); in testRefreshUi_setToFalse() 108 TEST_USER.getUserHandle(), TEST_RESTRICTION, false); in testRefreshUi_setToTrue() 118 TEST_USER.getUserHandle(), TEST_RESTRICTION, true); in testOnPreferenceChange_changeToFalse() 121 .hasUserRestriction(TEST_RESTRICTION, TEST_USER.getUserHandle())).isFalse(); in testOnPreferenceChange_changeToFalse() 129 TEST_USER.getUserHandle(), TEST_RESTRICTION, false); in testOnPreferenceChange_changeToTrue() 132 .hasUserRestriction(TEST_RESTRICTION, TEST_USER.getUserHandle())).isTrue(); in testOnPreferenceChange_changeToTrue()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/security/ |
D | ConfirmLockLockoutHelperTest.java | 44 private static final int TEST_USER = 100; field in ConfirmLockLockoutHelperTest 57 mConfirmLockLockoutHelper = new ConfirmLockLockoutHelper(mContext, TEST_USER, in setUp() 66 verify(mLockPatternUtils, never()).setLockoutAttemptDeadline(TEST_USER, 0); in onCheckCompletedWithTimeout_timeoutIsZero_doesNothing() 80 verify(mLockPatternUtils).setLockoutAttemptDeadline(TEST_USER, 1000); in onCheckCompletedWithTimeout_timeoutIsPositive_setsLockoutDeadline() 85 when(mLockPatternUtils.getLockoutAttemptDeadline(TEST_USER)).thenReturn(1000L); in onCheckCompletedWithTimeout_timeoutIsPositive_refreshesUILocked()
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/utils/ |
D | GrantRevokeTests.kt | 90 private val TEST_USER = UserHandle.getUserHandleForUid(TEST_UID) constant 287 verify(pm).grantRuntimePermission(TEST_PACKAGE_NAME, permName, TEST_USER) in verifyPermissionState() 289 verify(pm).revokeRuntimePermission(TEST_PACKAGE_NAME, permName, TEST_USER) in verifyPermissionState() 292 verify(pm, never()).grantRuntimePermission(TEST_PACKAGE_NAME, permName, TEST_USER) in verifyPermissionState() 293 verify(pm, never()).revokeRuntimePermission(TEST_PACKAGE_NAME, permName, TEST_USER) in verifyPermissionState() 298 PERMISSION_CONTROLLER_CHANGED_FLAG_MASK, expectedFlags, TEST_USER) in verifyPermissionState() 301 anyInt(), eq(TEST_USER)) in verifyPermissionState()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | Ikev2VpnTest.java | 160 private static final String TEST_USER = "username"; field in Ikev2VpnTest 231 .setAuthUsernamePassword(TEST_USER, TEST_PASSWORD, mServerRootCa); in buildIkev2VpnProfileUsernamePassword() 283 assertEquals(TEST_USER, profile.getUsername()); in testBuildIkev2VpnProfileUsernamePassword()
|