Home
last modified time | relevance | path

Searched refs:APP_1 (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DApplicationFeatureProviderImplTest.java73 private final String APP_1 = "app1"; field in ApplicationFeatureProviderImplTest
111 when(mPackageManager.getInstallReason(APP_1, new UserHandle(MAIN_USER_ID))) in verifyCalculateNumberOfPolicyInstalledApps()
128 when(mPackageManager.getInstallReason(APP_1, new UserHandle(MAIN_USER_ID))) in testListPolicyInstalledApps()
154 when(mDevicePolicyManager.getPermissionGrantState(null, APP_1, PERMISSION)) in verifyCalculateNumberOfAppsWithAdminGrantedPermissions()
162 when(mPackageManager.getInstallReason(APP_1, new UserHandle(MAIN_USER_ID))) in verifyCalculateNumberOfAppsWithAdminGrantedPermissions()
191 when(mDevicePolicyManager.getPermissionGrantState(null, APP_1, PERMISSION)) in testListAppsWithAdminGrantedPermissions()
199 when(mPackageManager.getInstallReason(APP_1, new UserHandle(MAIN_USER_ID))) in testListAppsWithAdminGrantedPermissions()
210 mAppList.get(1).appInfo.packageName).containsAll(Arrays.asList(APP_1, APP_2))) in testListAppsWithAdminGrantedPermissions()
229 final ResolveInfo app1 = createResolveInfo(APP_1); in testFindPersistentPreferredActivities()
338 ApplicationTestUtils.buildInfo(APP_1_UID, APP_1, 0 /* flags */, in setUpUsersAndInstalledApps()
DAppWithAdminGrantedPermissionsListerTest.java54 private final String APP_1 = "app1"; field in AppWithAdminGrantedPermissionsListerTest
114 buildInfo(APP_1_UID, APP_1, 0 /* flags */, Build.VERSION_CODES.M), in verifyListInstalledApps()
121 when(mDevicePolicyManager.getPermissionGrantState(null, APP_1, PERMISSION_1)) in verifyListInstalledApps()
123 when(mDevicePolicyManager.getPermissionGrantState(null, APP_1, PERMISSION_2)) in verifyListInstalledApps()
152 when(mPackageManager.getInstallReason(APP_1, mainUser)) in verifyListInstalledApps()
192 assertThat(InstalledAppListerTest.checkAppFound(mAppList, APP_1, MAIN_USER_ID)).isTrue(); in verifyListInstalledApps()
DAppWithAdminGrantedPermissionsCounterTest.java56 private final String APP_1 = "app1"; field in AppWithAdminGrantedPermissionsCounterTest
102 mApp1 = buildInfo(APP_1_UID, APP_1, 0 /* flags */, Build.VERSION_CODES.M); in setUp()
188 when(mDevicePolicyManager.getPermissionGrantState(null, APP_1, PERMISSION_1)) in configureRunTimePermissions()
190 when(mDevicePolicyManager.getPermissionGrantState(null, APP_1, PERMISSION_2)) in configureRunTimePermissions()
228 when(mPackageManager.getInstallReason(APP_1, mainUser)) in configurePackageManager()
DInstalledAppListerTest.java57 private final String APP_1 = "app1"; field in InstalledAppListerTest
109 buildInfo(MAIN_USER_APP_UID, APP_1, in testCountInstalledAppsAcrossAllUsers()
124 when(mPackageManager.getInstallReason(APP_1, mainUser)) in testCountInstalledAppsAcrossAllUsers()
161 assertThat(checkAppFound(mInstalledAppList, APP_1, MAIN_USER_ID)).isTrue(); in testCountInstalledAppsAcrossAllUsers()
DInstalledAppCounterTest.java58 private final String APP_1 = "app1"; field in InstalledAppCounterTest
92 mApp1 = buildInfo(MAIN_USER_APP_UID, APP_1, in setUp()
209 when(mPackageManager.getInstallReason(APP_1, mainUser)) in configurePackageManager()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceControllerTest.java67 private static final String APP_1 = "APP_1"; field in EnterpriseSetDefaultAppsListPreferenceControllerTest
101 when(mPackageManager.getText(eq(APP_1), anyInt(), any())).thenReturn(APP_1); in setUp()
108 final ApplicationInfo appInfo1 = ApplicationTestUtils.buildInfo(APP_UID, APP_1, 0, 0); in testMultipleAppsForOneTypeOfDefault()
134 assertThat(apps.getAllValues().get(0).getSummary()).isEqualTo(APP_1); in testMultipleAppsForOneTypeOfDefault()
137 assertThat(apps.getAllValues().get(1).getSummary()).isEqualTo(APP_1 + ", " + APP_2); in testMultipleAppsForOneTypeOfDefault()
DApplicationListPreferenceControllerTest.java70 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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/gamedriver/
DGameDriverAppPreferenceControllerTest.java64 private static final String APP_1 = "app1"; field in GameDriverAppPreferenceControllerTest
129 assertThat(mGroup.getPreference(0).getKey()).isEqualTo(APP_1); in displayPreference_shouldAddTwoPreferencesAndSortAscendingly()
281 final ApplicationInfo app1 = buildInfo(uid, APP_1, 0 /* flags */, 0 /* targetSdkVersion */); in mockPackageManager()
288 when(mPackageManager.getApplicationLabel(app1)).thenReturn(APP_1); in mockPackageManager()