Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DApplicationFeatureProviderImplTest.java94 private final String APP_2 = "app2"; field in ApplicationFeatureProviderImplTest
143 when(mPackageManager.getInstallReason(APP_2, new UserHandle(MANAGED_PROFILE_ID))) in verifyCalculateNumberOfPolicyInstalledApps()
160 when(mPackageManager.getInstallReason(APP_2, new UserHandle(MANAGED_PROFILE_ID))) in testListPolicyInstalledApps()
169 assertThat(mAppList.get(0).appInfo.packageName).isEqualTo(APP_2); in testListPolicyInstalledApps()
190 when(mDevicePolicyManager.getPermissionGrantState(null, APP_2, PERMISSION)) in verifyCalculateNumberOfAppsWithAdminGrantedPermissions()
198 when(mPackageManager.getInstallReason(APP_2, new UserHandle(MANAGED_PROFILE_ID))) in verifyCalculateNumberOfAppsWithAdminGrantedPermissions()
229 when(mDevicePolicyManager.getPermissionGrantState(null, APP_2, PERMISSION)) in testListAppsWithAdminGrantedPermissions()
237 when(mPackageManager.getInstallReason(APP_2, new UserHandle(MANAGED_PROFILE_ID))) in testListAppsWithAdminGrantedPermissions()
249 mAppList.get(1).appInfo.packageName).containsAll(Arrays.asList(APP_1, APP_2))) in testListAppsWithAdminGrantedPermissions()
269 final ResolveInfo app2 = createResolveInfo(APP_2); in testFindPersistentPreferredActivities()
[all …]
DAppWithAdminGrantedPermissionsListerTest.java62 private final String APP_2 = "app2"; field in AppWithAdminGrantedPermissionsListerTest
124 buildInfo(APP_2_UID, APP_2, 0 /* flags */, Build.VERSION_CODES.M), in verifyListInstalledApps()
134 when(mDevicePolicyManager.getPermissionGrantState(eq(null), eq(APP_2), any())) in verifyListInstalledApps()
163 when(mPackageManager.getInstallReason(APP_2, mainUser)) in verifyListInstalledApps()
202 assertThat(InstalledAppListerTest.checkAppFound(mAppList, APP_2, MAIN_USER_ID)).isFalse(); in verifyListInstalledApps()
DInstalledAppListerTest.java64 private final String APP_2 = "app2"; field in InstalledAppListerTest
115 buildInfo(MAIN_USER_APP_UID, APP_2, 0 /* flags */, in testCountInstalledAppsAcrossAllUsers()
130 when(mPackageManager.getInstallReason(APP_2, mainUser)) in testCountInstalledAppsAcrossAllUsers()
166 assertThat(checkAppFound(mInstalledAppList, APP_2, MAIN_USER_ID)).isFalse(); in testCountInstalledAppsAcrossAllUsers()
DAppWithAdminGrantedPermissionsCounterTest.java63 private final String APP_2 = "app2"; field in AppWithAdminGrantedPermissionsCounterTest
108 mApp2 = buildInfo(APP_2_UID, APP_2, 0 /* flags */, Build.VERSION_CODES.M); in setUp()
199 when(mDevicePolicyManager.getPermissionGrantState(eq(null), eq(APP_2), any())) in configureRunTimePermissions()
237 when(mPackageManager.getInstallReason(APP_2, mainUser)) in configurePackageManager()
DInstalledAppCounterTest.java71 private static final String APP_2 = "app2"; field in InstalledAppCounterTest
114 mApp2 = buildInfo(MAIN_USER_APP_UID, APP_2, 0 /* flags */, in setUp()
296 when(mPackageManager.getInstallReason(APP_2, mainUser)) in configurePackageManager()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DApplicationListPreferenceControllerTest.java71 private static final String APP_2 = "APP_2"; field in ApplicationListPreferenceControllerTest
94 when(mPackageManager.getText(eq(APP_2), anyInt(), any())).thenReturn(APP_2); in setUp()
105 final Set<String> expectedPackages = new HashSet<>(Arrays.asList(APP_1, APP_2, APP_3)); in checkNumberAndTitlesOfApps()
132 apps.add(new UserAppInfo(user, buildInfo(MAIN_USER_APP_UID, APP_2, 0, 0))); in buildApplicationList()
DEnterpriseSetDefaultAppsListPreferenceControllerTest.java75 private static final String APP_2 = "APP_2"; field in EnterpriseSetDefaultAppsListPreferenceControllerTest
111 when(mPackageManager.getText(eq(APP_2), anyInt(), any())).thenReturn(APP_2); in setUp()
118 final ApplicationInfo appInfo2 = ApplicationTestUtils.buildInfo(APP_UID, APP_2, 0, 0); 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/development/graphicsdriver/
DGraphicsDriverAppPreferenceControllerTest.java69 private static final String APP_2 = "app2"; field in GraphicsDriverAppPreferenceControllerTest
318 buildInfo(uid, APP_2, ApplicationInfo.FLAG_SYSTEM, 0 /* targetSdkVersion */); in mockPackageManager()
324 when(mPackageManager.getApplicationLabel(app2)).thenReturn(APP_2); in mockPackageManager()