/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | ApplicationFeatureProviderImplTest.java | 74 private final String APP_2 = "app2"; field in ApplicationFeatureProviderImplTest 113 when(mPackageManager.getInstallReason(APP_2, new UserHandle(MANAGED_PROFILE_ID))) in verifyCalculateNumberOfPolicyInstalledApps() 130 when(mPackageManager.getInstallReason(APP_2, new UserHandle(MANAGED_PROFILE_ID))) in testListPolicyInstalledApps() 137 assertThat(mAppList.get(0).appInfo.packageName).isEqualTo(APP_2); in testListPolicyInstalledApps() 156 when(mDevicePolicyManager.getPermissionGrantState(null, APP_2, PERMISSION)) in verifyCalculateNumberOfAppsWithAdminGrantedPermissions() 164 when(mPackageManager.getInstallReason(APP_2, new UserHandle(MANAGED_PROFILE_ID))) in verifyCalculateNumberOfAppsWithAdminGrantedPermissions() 193 when(mDevicePolicyManager.getPermissionGrantState(null, APP_2, PERMISSION)) in testListAppsWithAdminGrantedPermissions() 201 when(mPackageManager.getInstallReason(APP_2, new UserHandle(MANAGED_PROFILE_ID))) in testListAppsWithAdminGrantedPermissions() 210 mAppList.get(1).appInfo.packageName).containsAll(Arrays.asList(APP_1, APP_2))) in testListAppsWithAdminGrantedPermissions() 230 final ResolveInfo app2 = createResolveInfo(APP_2); in testFindPersistentPreferredActivities() [all …]
|
D | AppWithAdminGrantedPermissionsListerTest.java | 55 private final String APP_2 = "app2"; field in AppWithAdminGrantedPermissionsListerTest 115 buildInfo(APP_2_UID, APP_2, 0 /* flags */, Build.VERSION_CODES.M), in verifyListInstalledApps() 125 when(mDevicePolicyManager.getPermissionGrantState(eq(null), eq(APP_2), anyObject())) in verifyListInstalledApps() 154 when(mPackageManager.getInstallReason(APP_2, mainUser)) in verifyListInstalledApps() 193 assertThat(InstalledAppListerTest.checkAppFound(mAppList, APP_2, MAIN_USER_ID)).isFalse(); in verifyListInstalledApps()
|
D | InstalledAppListerTest.java | 58 private final String APP_2 = "app2"; field in InstalledAppListerTest 111 buildInfo(MAIN_USER_APP_UID, APP_2, 0 /* flags */, in testCountInstalledAppsAcrossAllUsers() 126 when(mPackageManager.getInstallReason(APP_2, mainUser)) in testCountInstalledAppsAcrossAllUsers() 162 assertThat(checkAppFound(mInstalledAppList, APP_2, MAIN_USER_ID)).isFalse(); in testCountInstalledAppsAcrossAllUsers()
|
D | AppWithAdminGrantedPermissionsCounterTest.java | 57 private final String APP_2 = "app2"; field in AppWithAdminGrantedPermissionsCounterTest 103 mApp2 = buildInfo(APP_2_UID, APP_2, 0 /* flags */, Build.VERSION_CODES.M); in setUp() 192 when(mDevicePolicyManager.getPermissionGrantState(eq(null), eq(APP_2), anyObject())) in configureRunTimePermissions() 230 when(mPackageManager.getInstallReason(APP_2, mainUser)) in configurePackageManager()
|
D | InstalledAppCounterTest.java | 59 private final String APP_2 = "app2"; field in InstalledAppCounterTest 94 mApp2 = buildInfo(MAIN_USER_APP_UID, APP_2, 0 /* flags */, in setUp() 211 when(mPackageManager.getInstallReason(APP_2, mainUser)) in configurePackageManager()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | ApplicationListPreferenceControllerTest.java | 71 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()
|
D | EnterpriseSetDefaultAppsListPreferenceControllerTest.java | 68 private static final String APP_2 = "APP_2"; field in EnterpriseSetDefaultAppsListPreferenceControllerTest 102 when(mPackageManager.getText(eq(APP_2), anyInt(), any())).thenReturn(APP_2); in setUp() 109 final ApplicationInfo appInfo2 = ApplicationTestUtils.buildInfo(APP_UID, APP_2, 0, 0); in testMultipleAppsForOneTypeOfDefault() 137 assertThat(apps.getAllValues().get(1).getSummary()).isEqualTo(APP_1 + ", " + APP_2); in testMultipleAppsForOneTypeOfDefault()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/gamedriver/ |
D | GameDriverAppPreferenceControllerTest.java | 65 private static final String APP_2 = "app2"; field in GameDriverAppPreferenceControllerTest 283 buildInfo(uid, APP_2, ApplicationInfo.FLAG_SYSTEM, 0 /* targetSdkVersion */); in mockPackageManager() 289 when(mPackageManager.getApplicationLabel(app2)).thenReturn(APP_2); in mockPackageManager()
|