/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | ApplicationListPreferenceControllerTest.java | 70 private static final String APP_1 = "APP_1"; field in ApplicationListPreferenceControllerTest 93 when(mPackageManager.getText(eq(APP_1), anyInt(), any())).thenReturn(APP_1); in setUp() 105 final Set<String> expectedPackages = new HashSet<>(Arrays.asList(APP_1, APP_2, APP_3)); in checkNumberAndTitlesOfApps() 131 apps.add(new UserAppInfo(user, buildInfo(MAIN_USER_APP_UID, APP_1, 0, 0))); in buildApplicationList()
|
D | EnterpriseSetDefaultAppsListPreferenceControllerTest.java | 74 private static final String APP_1 = "APP_1"; field in EnterpriseSetDefaultAppsListPreferenceControllerTest 110 when(mPackageManager.getText(eq(APP_1), anyInt(), any())).thenReturn(APP_1); in setUp() 117 final ApplicationInfo appInfo1 = ApplicationTestUtils.buildInfo(APP_UID, APP_1, 0, 0); in testMultipleAppsForOneTypeOfDefault() 144 assertThat(apps.getAllValues().get(0).getSummary()).isEqualTo(APP_1); in testMultipleAppsForOneTypeOfDefault() 147 assertThat(apps.getAllValues().get(1).getSummary()).isEqualTo(APP_1 + ", " + APP_2); in testMultipleAppsForOneTypeOfDefault()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | ApplicationFeatureProviderImplTest.java | 93 private final String APP_1 = "app1"; field in ApplicationFeatureProviderImplTest 141 when(mPackageManager.getInstallReason(APP_1, new UserHandle(MAIN_USER_ID))) in verifyCalculateNumberOfPolicyInstalledApps() 158 when(mPackageManager.getInstallReason(APP_1, new UserHandle(MAIN_USER_ID))) in testListPolicyInstalledApps() 188 when(mDevicePolicyManager.getPermissionGrantState(null, APP_1, PERMISSION)) in verifyCalculateNumberOfAppsWithAdminGrantedPermissions() 196 when(mPackageManager.getInstallReason(APP_1, new UserHandle(MAIN_USER_ID))) in verifyCalculateNumberOfAppsWithAdminGrantedPermissions() 227 when(mDevicePolicyManager.getPermissionGrantState(null, APP_1, PERMISSION)) in testListAppsWithAdminGrantedPermissions() 235 when(mPackageManager.getInstallReason(APP_1, new UserHandle(MAIN_USER_ID))) in testListAppsWithAdminGrantedPermissions() 249 mAppList.get(1).appInfo.packageName).containsAll(Arrays.asList(APP_1, APP_2))) in testListAppsWithAdminGrantedPermissions() 268 final ResolveInfo app1 = createResolveInfo(APP_1); in testFindPersistentPreferredActivities() 436 ApplicationTestUtils.buildInfo(APP_1_UID, APP_1, 0 /* flags */, in setUpUsersAndInstalledApps()
|
D | AppWithAdminGrantedPermissionsListerTest.java | 61 private final String APP_1 = "app1"; field in AppWithAdminGrantedPermissionsListerTest 123 buildInfo(APP_1_UID, APP_1, 0 /* flags */, Build.VERSION_CODES.M), in verifyListInstalledApps() 130 when(mDevicePolicyManager.getPermissionGrantState(null, APP_1, PERMISSION_1)) in verifyListInstalledApps() 132 when(mDevicePolicyManager.getPermissionGrantState(null, APP_1, PERMISSION_2)) in verifyListInstalledApps() 161 when(mPackageManager.getInstallReason(APP_1, mainUser)) in verifyListInstalledApps() 201 assertThat(InstalledAppListerTest.checkAppFound(mAppList, APP_1, MAIN_USER_ID)).isTrue(); in verifyListInstalledApps()
|
D | AppWithAdminGrantedPermissionsCounterTest.java | 62 private final String APP_1 = "app1"; field in AppWithAdminGrantedPermissionsCounterTest 107 mApp1 = buildInfo(APP_1_UID, APP_1, 0 /* flags */, Build.VERSION_CODES.M); in setUp() 195 when(mDevicePolicyManager.getPermissionGrantState(null, APP_1, PERMISSION_1)) in configureRunTimePermissions() 197 when(mDevicePolicyManager.getPermissionGrantState(null, APP_1, PERMISSION_2)) in configureRunTimePermissions() 235 when(mPackageManager.getInstallReason(APP_1, mainUser)) in configurePackageManager()
|
D | InstalledAppListerTest.java | 63 private final String APP_1 = "app1"; field in InstalledAppListerTest 113 buildInfo(MAIN_USER_APP_UID, APP_1, in testCountInstalledAppsAcrossAllUsers() 128 when(mPackageManager.getInstallReason(APP_1, mainUser)) in testCountInstalledAppsAcrossAllUsers() 165 assertThat(checkAppFound(mInstalledAppList, APP_1, MAIN_USER_ID)).isTrue(); in testCountInstalledAppsAcrossAllUsers()
|
D | InstalledAppCounterTest.java | 70 private static final String APP_1 = "app1"; field in InstalledAppCounterTest 112 mApp1 = buildInfo(MAIN_USER_APP_UID, APP_1, in setUp() 294 when(mPackageManager.getInstallReason(APP_1, mainUser)) in configurePackageManager()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/graphicsdriver/ |
D | GraphicsDriverAppPreferenceControllerTest.java | 68 private static final String APP_1 = "app1"; field in GraphicsDriverAppPreferenceControllerTest 137 assertThat(mGroup.getPreference(0).getKey()).isEqualTo(APP_1); in displayPreference_shouldAddTwoPreferencesAndSortAscendingly() 316 final ApplicationInfo app1 = buildInfo(uid, APP_1, 0 /* flags */, 0 /* targetSdkVersion */); in mockPackageManager() 323 when(mPackageManager.getApplicationLabel(app1)).thenReturn(APP_1); in mockPackageManager()
|