/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userswitcher/ |
D | UserSwitchTransitionViewMediatorTest.java | 43 private static final int TEST_USER = 100; field in UserSwitchTransitionViewMediatorTest 71 mUserSwitchTransitionViewMediator.mUserChangedCallback.onBeforeUserSwitching(TEST_USER); in onUserLifecycleEvent_beforeUserSwitching_callsHandleShow() 73 verify(mUserSwitchTransitionViewController).handleShow(TEST_USER); in onUserLifecycleEvent_beforeUserSwitching_callsHandleShow() 78 mUserSwitchTransitionViewMediator.mUserChangedCallback.onUserChanging(TEST_USER, mContext); in onUserLifecycleEvent_onUserChanging_callsHandleSwitching() 80 verify(mUserSwitchTransitionViewController).handleSwitching(TEST_USER); in onUserLifecycleEvent_onUserChanging_callsHandleSwitching() 85 mUserSwitchTransitionViewMediator.mUserChangedCallback.onUserChanged(TEST_USER, mContext); in onUserLifecycleEvent_onUserChanged_callsHandleHide() 92 mUserSwitchTransitionViewMediator.showUserSwitchDialog(TEST_USER); in onShowUserSwitchDialog_callsHandleShow() 94 verify(mUserSwitchTransitionViewController).handleShow(TEST_USER); in onShowUserSwitchDialog_callsHandleShow()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | PickerUriResolverTest.java | 91 private static final int TEST_USER = 20; field in PickerUriResolverTest 148 sOtherUserContext = createOtherUserContext(TEST_USER); in setUpBeforeClass() 171 TEST_USER, ACTION_PICK_IMAGES); in wrapProviderUriValid() 209 TEST_USER, ACTION_PICK_IMAGES); in wrapProviderUriInvalid() 235 TEST_USER, ACTION_PICK_IMAGES); in testGetAlbumUri() 244 TEST_USER, ACTION_PICK_IMAGES); in testGetMediaUri() 253 TEST_USER, ACTION_PICK_IMAGES); in testGetDeletedMediaUri() 262 TEST_USER, ACTION_PICK_IMAGES); in testCreateSurfaceControllerUri() 271 TEST_USER, ACTION_PICK_IMAGES); in testOpenFile_mode_w() 288 TEST_USER, ACTION_PICK_IMAGES); in testProcessUrisForSelection_withoutPermissionOrAuthorityChecks() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/ |
D | PermissionsPreferenceControllerTest.java | 56 private static final UserInfo TEST_USER = new UserInfo(/* id= */ 10, field in PermissionsPreferenceControllerTest 96 mPreferenceController.setUserInfo(TEST_USER); in setUp() 127 when(mMockUserManager.hasUserRestriction(TEST_RESTRICTION, TEST_USER.getUserHandle())) in testRefreshUi_setToFalse() 138 when(mMockUserManager.hasUserRestriction(TEST_RESTRICTION, TEST_USER.getUserHandle())) in testRefreshUi_setToTrue() 150 .setUserRestriction(TEST_RESTRICTION, false, TEST_USER.getUserHandle()); in testOnPreferenceChange_changeToFalse() 159 .setUserRestriction(TEST_RESTRICTION, true, TEST_USER.getUserHandle()); 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/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/ |
D | PackageManagerHelperTest.java | 56 private static final int TEST_USER = 2; field in PackageManagerHelperTest 79 UserHandle.of(TEST_USER))) in getApplicationInfo_archivedApp_appInfoIsNotNull() 82 assertThat(mPackageManagerHelper.getApplicationInfo(TEST_PACKAGE, UserHandle.of(TEST_USER), in getApplicationInfo_archivedApp_appInfoIsNotNull()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/ |
D | HealthConnectDatabaseTestRule.java | 19 import static com.android.server.healthconnect.TestUtils.TEST_USER; 55 InstrumentationRegistry.getInstrumentation().getContext(), TEST_USER); in before()
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/utils/ |
D | GrantRevokeTests.kt | 94 private val TEST_USER = UserHandle.getUserHandleForUid(TEST_UID) constant 332 verify(pm).grantRuntimePermission(TEST_PACKAGE_NAME, permName, TEST_USER) in verifyPermissionState() 334 verify(pm).revokeRuntimePermission(TEST_PACKAGE_NAME, permName, TEST_USER) in verifyPermissionState() 337 verify(pm, never()).grantRuntimePermission(TEST_PACKAGE_NAME, permName, TEST_USER) in verifyPermissionState() 338 verify(pm, never()).revokeRuntimePermission(TEST_PACKAGE_NAME, permName, TEST_USER) in verifyPermissionState() 348 TEST_USER in verifyPermissionState() 357 eq(TEST_USER) in verifyPermissionState()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | Ikev2VpnTest.java | 182 private static final String TEST_USER = "username"; field in Ikev2VpnTest 308 .setAuthUsernamePassword(TEST_USER, TEST_PASSWORD, mServerRootCa); in buildIkev2VpnProfileUsernamePassword() 369 ikeProfileBuilder.setAuthUsernamePassword(TEST_USER, TEST_PASSWORD, mServerRootCa)); in testBuildIkev2VpnProfileWithIkeTunnelConnectionParams() 392 assertEquals(TEST_USER, profile.getUsername()); in testBuildIkev2VpnProfileUsernamePassword()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/ |
D | TestUtils.java | 31 public static final UserHandle TEST_USER = UserHandle.of(UserHandle.myUserId()); field in TestUtils
|