/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/ |
H A D | TaskExecutorTest.java | 36 private final int TEST_USER_ID = 123; field in class:TaskExecutorTest 54 mExecutor.execute(TEST_USER_ID, mTask1); 57 verify(mTask1).run(TEST_USER_ID); 63 mExecutor.execute(TEST_USER_ID, mTask1); 66 verify(mTask1).run(TEST_USER_ID); 69 mExecutor.execute(TEST_USER_ID, mTask2); 72 verify(mTask2).run(TEST_USER_ID);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/screenlock/ |
H A D | PatternVisiblePreferenceControllerTest.java | 40 private static final int TEST_USER_ID = 0; field in class:PatternVisiblePreferenceControllerTest 53 new PatternVisiblePreferenceController(mContext, TEST_USER_ID, mLockPatternUtils); 59 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); 60 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) 68 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); 69 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) 77 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(false); 84 when(mLockPatternUtils.isVisiblePatternEnabled(TEST_USER_ID)).thenReturn(true); 88 when(mLockPatternUtils.isVisiblePatternEnabled(TEST_USER_ID)).thenReturn(false); 97 verify(mLockPatternUtils).setVisiblePatternEnabled(true, TEST_USER_ID); [all...] |
H A D | PowerButtonInstantLockPreferenceControllerTest.java | 43 private static final int TEST_USER_ID = 0; field in class:PowerButtonInstantLockPreferenceControllerTest 65 mContext, TEST_USER_ID, mLockPatternUtils); 70 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); 71 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) 79 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); 80 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) 88 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); 89 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) 97 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(false); 107 when(mLockPatternUtils.getPowerButtonInstantlyLocks(TEST_USER_ID)) [all...] |
H A D | LockAfterTimeoutPreferenceControllerTest.java | 53 private static final int TEST_USER_ID = 0; field in class:LockAfterTimeoutPreferenceControllerTest 75 mContext, TEST_USER_ID, mLockPatternUtils); 80 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); 81 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) 89 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); 90 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) 98 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); 99 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) 107 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(false);
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/nonrequiredapps/ |
H A D | SystemAppsSnapshotTest.java | 51 private static final int TEST_USER_ID = 123; field in class:SystemAppsSnapshotTest 68 when(mUserManager.getUserSerialNumber(TEST_USER_ID)).thenReturn(TEST_USER_SERIAL_NUMBER); 85 assertFalse(mSystemAppsSnapshot.hasSnapshot(TEST_USER_ID)); 88 mSystemAppsSnapshot.takeNewSnapshot(TEST_USER_ID); 91 assertTrue(mSystemAppsSnapshot.hasSnapshot(TEST_USER_ID)); 100 assertTrue(mSystemAppsSnapshot.getSnapshot(TEST_USER_ID).isEmpty()); 103 mSystemAppsSnapshot.takeNewSnapshot(TEST_USER_ID); 106 assertSetEquals(mSystemAppsSnapshot.getSnapshot(TEST_USER_ID), 111 when(mUtils.getCurrentSystemApps(mockIPackageManager, TEST_USER_ID))
|
H A D | NonRequiredAppsLogicTest.java | 61 private static final int TEST_USER_ID = 123; field in class:NonRequiredAppsLogicTest 86 eq(mContext), eq(TEST_USER_ID))).thenReturn(TEST_MDM_COMPONENT_NAME); 98 assertTrue(logic.getSystemAppsToRemove(TEST_USER_ID).isEmpty()); 112 logic.getSystemAppsToRemove(TEST_USER_ID)); 129 logic.getSystemAppsToRemove(TEST_USER_ID)); 141 when(mSnapshot.hasSnapshot(TEST_USER_ID)).thenReturn(false); 144 assertTrue(logic.getSystemAppsToRemove(TEST_USER_ID).isEmpty()); 159 assertEquals(Collections.singleton(APPS.get(4)), logic.getSystemAppsToRemove(TEST_USER_ID)); 169 logic.maybeTakeSystemAppsSnapshot(TEST_USER_ID); 182 logic.maybeTakeSystemAppsSnapshot(TEST_USER_ID); [all...] |
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
H A D | InstallExistingPackageTaskTest.java | 46 private static final int TEST_USER_ID = 123; field in class:InstallExistingPackageTaskTest 70 when(mPackageManager.installExistingPackageAsUser(INSTALL_PACKAGE_NAME, TEST_USER_ID)) 74 mTask.run(TEST_USER_ID); 77 verify(mPackageManager).installExistingPackageAsUser(INSTALL_PACKAGE_NAME, TEST_USER_ID); 85 when(mPackageManager.installExistingPackageAsUser(INSTALL_PACKAGE_NAME, TEST_USER_ID)) 89 mTask.run(TEST_USER_ID); 99 when(mPackageManager.installExistingPackageAsUser(INSTALL_PACKAGE_NAME, TEST_USER_ID)) 103 mTask.run(TEST_USER_ID);
|
H A D | SetDevicePolicyTaskTest.java | 47 private static final int TEST_USER_ID = 123; field in class:SetDevicePolicyTaskTest 77 TEST_USER_ID)).thenReturn(true); 78 when(mUtils.findDeviceAdmin(null, ADMIN_COMPONENT_NAME, mContext, TEST_USER_ID)) 91 mTask.run(TEST_USER_ID); 109 mTask.run(TEST_USER_ID); 128 mTask.run(TEST_USER_ID); 146 mTask.run(TEST_USER_ID); 159 mTask.run(TEST_USER_ID); 162 verify(mDevicePolicyManager).setActiveAdmin(ADMIN_COMPONENT_NAME, true, TEST_USER_ID); 173 mTask.run(TEST_USER_ID); [all...] |
H A D | ManagedProfileSettingsTaskTest.java | 50 private static final int TEST_USER_ID = 123; field in class:ManagedProfileSettingsTaskTest 90 mTask.run(TEST_USER_ID); 98 .setOrganizationColorForUser(anyInt(), eq(TEST_USER_ID)); 101 verify(mSettingsFacade).setUserSetupCompleted(mContext, TEST_USER_ID); 103 DEFAULT_CONTACT_REMOTE_SEARCH, TEST_USER_ID); 106 verify(mCrossProfileIntentFiltersSetter).setFilters(anyInt(), eq(TEST_USER_ID)); 116 mTask.run(TEST_USER_ID); 123 verify(mDevicePolicyManager).setOrganizationColorForUser(Color.GREEN, TEST_USER_ID); 126 verify(mSettingsFacade).setUserSetupCompleted(mContext, TEST_USER_ID); 128 DEFAULT_CONTACT_REMOTE_SEARCH, TEST_USER_ID); [all...] |
H A D | StartManagedProfileTaskTest.java | 52 private static final int TEST_USER_ID = 123; field in class:StartManagedProfileTaskTest 59 .putExtra(Intent.EXTRA_USER_HANDLE, TEST_USER_ID); 99 }).when(mIActivityManager).startUserInBackground(TEST_USER_ID); 102 new Handler(mHandlerThread.getLooper()).post(() -> mTask.run(TEST_USER_ID)); 110 eq(UserHandle.of(TEST_USER_ID)), 131 when(mIActivityManager.startUserInBackground(TEST_USER_ID)).thenReturn(false); 134 mTask.run(TEST_USER_ID); 139 eq(UserHandle.of(TEST_USER_ID)), 153 when(mIActivityManager.startUserInBackground(TEST_USER_ID)) 157 mTask.run(TEST_USER_ID); [all...] |
H A D | DeleteNonRequiredAppsTaskTest.java | 52 private static final int TEST_USER_ID = 123; field in class:DeleteNonRequiredAppsTaskTest 84 when(mLogic.getSystemAppsToRemove(TEST_USER_ID)).thenReturn(Collections.emptySet()); 88 mTask.run(TEST_USER_ID); 91 verify(mLogic).maybeTakeSystemAppsSnapshot(TEST_USER_ID); 104 when(mLogic.getSystemAppsToRemove(TEST_USER_ID)) 110 mTask.run(TEST_USER_ID); 113 verify(mLogic).maybeTakeSystemAppsSnapshot(TEST_USER_ID); 126 when(mLogic.getSystemAppsToRemove(TEST_USER_ID)) 130 mTask.run(TEST_USER_ID); 133 verify(mLogic).maybeTakeSystemAppsSnapshot(TEST_USER_ID); [all...] |
H A D | CreateManagedProfileTaskTest.java | 50 private static final int TEST_USER_ID = 123; field in class:CreateManagedProfileTaskTest 80 .thenReturn(new UserInfo(TEST_USER_ID, null, 0)); 89 verify(mLogic).maybeTakeSystemAppsSnapshot(TEST_USER_ID); 91 assertEquals(TEST_USER_ID, mTask.getProfileUserId());
|
H A D | InstallPackageTaskTest.java | 71 private static final int TEST_USER_ID = 123; field in class:InstallPackageTaskTest 128 mTask.run(TEST_USER_ID); 142 mTask.run(TEST_USER_ID); 167 mTask.run(TEST_USER_ID); 192 mTask.run(TEST_USER_ID); 217 mTask.run(TEST_USER_ID); 242 mTask.run(TEST_USER_ID);
|
H A D | AddWifiNetworkTaskTest.java | 53 private static final int TEST_USER_ID = 123; field in class:AddWifiNetworkTaskTest 299 mTask.run(TEST_USER_ID);
|
H A D | DownloadPackageTaskTest.java | 67 private static final int TEST_USER_ID = 123; field in class:DownloadPackageTaskTest 221 mTask.run(TEST_USER_ID);
|
H A D | VerifyPackageTaskTest.java | 56 private static final int TEST_USER_ID = 123; field in class:VerifyPackageTaskTest 229 mTask.run(TEST_USER_ID);
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
H A D | UtilsTest.java | 67 private static final int TEST_USER_ID = 10; field in class:UtilsTest 104 PackageManager.MATCH_UNINSTALLED_PACKAGES, TEST_USER_ID)) 107 Set<String> res = mUtils.getCurrentSystemApps(mockIPackageManager, TEST_USER_ID); 117 PackageManager.COMPONENT_ENABLED_STATE_DISABLED, TEST_USER_ID); 122 eq(TEST_USER_ID)); 227 mUtils.findDeviceAdmin(null, TEST_COMPONENT_NAME_2, mockContext, TEST_USER_ID)); 237 TEST_PACKAGE_NAME_1, null, mockContext, TEST_USER_ID)); 244 TEST_USER_ID)) 250 TEST_PACKAGE_NAME_1, null, mockContext, TEST_USER_ID); 264 null, TEST_COMPONENT_NAME_2, mockContext, TEST_USER_ID); [all...] |
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/ |
H A D | EncryptionControllerTest.java | 48 private static final int TEST_USER_ID = 10; field in class:EncryptionControllerTest 85 verify(mUtils).enableComponent(TEST_HOME_RECEIVER, TEST_USER_ID); 86 verify(mPackageManager).flushPackageRestrictionsAsUser(TEST_USER_ID); 109 verify(mUtils).enableComponent(TEST_HOME_RECEIVER, TEST_USER_ID); 110 verify(mPackageManager).flushPackageRestrictionsAsUser(TEST_USER_ID); 144 verify(mUtils).disableComponent(TEST_HOME_RECEIVER, TEST_USER_ID); 175 mResumeNotificationHelper, TEST_USER_ID);
|
H A D | PreProvisioningControllerTest.java | 79 private static final int TEST_USER_ID = 10; field in class:PreProvisioningControllerTest 135 when(mUserManager.getUserHandle()).thenReturn(TEST_USER_ID); 237 when(mUtils.alreadyHasManagedProfile(mContext)).thenReturn(TEST_USER_ID); 243 verify(mUi).showDeleteManagedProfileDialog(any(), any(), eq(TEST_USER_ID));
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/ |
H A D | DeviceOwnerProvisioningControllerTest.java | 49 private static final int TEST_USER_ID = 123; field in class:DeviceOwnerProvisioningControllerTest 221 TEST_USER_ID,
|