Home
last modified time | relevance | path

Searched refs:testPackage (Results 1 – 11 of 11) sorted by relevance

/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/dashboard/
H A DCategoryManagerTest.java137 final String testPackage = "com.android.test"; in sortCategories_singlePackage_shouldReorderBasedOnPriority() local
140 final Tile tile2 = createActivityTile(category.key, testPackage, "class2", 50); in sortCategories_singlePackage_shouldReorderBasedOnPriority()
183 final String testPackage = mContext.getPackageName(); in sortCategories_internalPackageTiles_shouldSkipTileForInternalPackage() local
205 final String testPackage = mContext.getPackageName(); in sortCategories_internalAndExternalPackageTiles_shouldRetainPriorityOrdering() local
208 final Tile tile1 = createActivityTile(category.key, testPackage, "class1", 2); in sortCategories_internalAndExternalPackageTiles_shouldRetainPriorityOrdering()
209 final Tile tile2 = createActivityTile(category.key, testPackage, "class2", 1); in sortCategories_internalAndExternalPackageTiles_shouldRetainPriorityOrdering()
231 final String testPackage = mContext.getPackageName(); in sortCategories_samePriority_internalPackageTileShouldTakePrecedence() local
236 final Tile tile2 = createActivityTile(category.key, testPackage, "class2", 1); in sortCategories_samePriority_internalPackageTileShouldTakePrecedence()
255 final String testPackage = mContext.getPackageName(); in filterTiles_noDuplicate_noChange() local
282 final String testPackage = mContext.getPackageName(); in filterTiles_hasDuplicateActivityTiles_shouldOnlyKeepUniqueTiles() local
[all …]
/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/
H A DDefaultAssistantPickerEntryPreferenceControllerTest.java182 String testPackage = "com.test.permissions"; in performClick_permissionControllerExists_startsPermissionController() local
183 getShadowApplicationManager().setPermissionControllerPackageName(testPackage); in performClick_permissionControllerExists_startsPermissionController()
192 String testPackage = "com.test.permissions"; in performClick_permissionControllerExists_intentHasPackageName() local
193 getShadowApplicationManager().setPermissionControllerPackageName(testPackage); in performClick_permissionControllerExists_intentHasPackageName()
197 assertThat(actual.getPackage()).isEqualTo(testPackage); in performClick_permissionControllerExists_intentHasPackageName()
202 String testPackage = "com.test.permissions"; in performClick_permissionControllerExists_intentHasRole() local
203 getShadowApplicationManager().setPermissionControllerPackageName(testPackage); in performClick_permissionControllerExists_intentHasRole()
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationManagerServiceTest.java5315 final String testPackage = "testPackageName"; in testAllowForegroundCustomToasts() local
5339 final String testPackage = "testPackageName"; in testDisallowBackgroundCustomToasts() local
5359 final String testPackage = "testPackageName"; in testDontCallShowToastAgainOnTheSameCustomToast() local
5388 final String testPackage = "testPackageName"; in testToastRateLimiterWontPreventShowCallForCustomToastWhenInForeground() local
5411 final String testPackage = "testPackageName"; in testCustomToastPostedWhileInForeground_blockedIfAppGoesToBackground() local
5445 final String testPackage = "testPackageName"; in testAllowForegroundTextToasts() local
5465 final String testPackage = "testPackageName"; in testAllowBackgroundTextToasts() local
5485 final String testPackage = "testPackageName"; in testDontCallShowToastAgainOnTheSameTextToast() local
5515 final String testPackage = "testPackageName"; in testToastRateLimiterCanPreventShowCallForTextToast_whenInBackground() local
5537 final String testPackage = "testPackageName"; in testToastRateLimiterWontPreventShowCallForTextToast_whenInForeground() local
[all …]
H A DNotifyingAppTest.java45 public void testPackage() { in testPackage() method in NotifyingAppTest
H A DManagedServicesTest.java365 String testPackage = "user.test.package"; in testReadXml_onlyRestoresForTargetUser() local
368 (approvalLevel == APPROVAL_BY_COMPONENT) ? testComponent : testPackage; in testReadXml_onlyRestoresForTargetUser()
387 String testPackage = "user.test.package"; in testReadXml_restoresUserSet() local
390 (approvalLevel == APPROVAL_BY_COMPONENT) ? testComponent : testPackage; in testReadXml_restoresUserSet()
/aosp12/frameworks/base/core/tests/coretests/src/android/os/
H A DBinderDeathRecipientTest.java74 private IBinder getNewRemoteBinder(String testPackage) throws InterruptedException { in getNewRemoteBinder() argument
80 .setClassName(testPackage, TestCommsReceiver.class.getName()); in getNewRemoteBinder()
/aosp12/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
H A DAppStateUsageStatsBridgeTest.java397 PackageInfo testPackage = new PackageInfo(); in addPackageToPackageManager() local
398 testPackage.packageName = packageName; in addPackageToPackageManager()
399 testPackage.firstInstallTime = installTime; in addPackageToPackageManager()
402 spm.addPackage(testPackage); in addPackageToPackageManager()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/
H A DWebViewUpdateServiceTest.java515 String testPackage = "testFallback"; in testFallbackPackageEnabling() local
518 testPackage, "", true /* default available */, true /* fallback */, null)}; in testFallbackPackageEnabling()
521 createPackageInfo(testPackage, false /* enabled */ , true /* valid */, in testFallbackPackageEnabling()
527 Matchers.anyObject(), Mockito.eq(testPackage), Mockito.eq(true)); in testFallbackPackageEnabling()
532 testPackage, WebViewUpdateService.PACKAGE_CHANGED, TestSystemImpl.PRIMARY_USER_ID); in testFallbackPackageEnabling()
533 checkPreparationPhasesForPackage(testPackage, 1); in testFallbackPackageEnabling()
/aosp12/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
H A DLauncherInstrumentation.java234 final String testPackage = getContext().getPackageName(); in LauncherInstrumentation() local
240 mLauncherPackage = testPackage.equals(targetPackage) in LauncherInstrumentation()
251 testPackage, "android.permission.WRITE_SECURE_SETTINGS"); in LauncherInstrumentation()
534 final String testPackage = getContext().getPackageName(); in formatSystemHealthMessage() local
537 testPackage, "android.permission.READ_LOGS"); in formatSystemHealthMessage()
539 testPackage, "android.permission.PACKAGE_USAGE_STATS"); in formatSystemHealthMessage()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDevicePolicyManagerTest.java6771 final String testPackage = "TEST_PACKAGE"; in testIsPackageAllowedToAccessCalendar_settingOff() local
6773 dpm.setCrossProfileCalendarPackages(admin1, Collections.singleton(testPackage)); in testIsPackageAllowedToAccessCalendar_settingOff()
6779 assertThat(dpm.isPackageAllowedToAccessCalendar(testPackage)).isFalse(); in testIsPackageAllowedToAccessCalendar_settingOff()
6784 final String testPackage = "TEST_PACKAGE"; in testIsPackageAllowedToAccessCalendar_bothAllowed() local
6792 assertThat(dpm.isPackageAllowedToAccessCalendar(testPackage)).isTrue(); in testIsPackageAllowedToAccessCalendar_bothAllowed()
6797 final String testPackage = "TEST_PACKAGE"; in testIsPackageAllowedToAccessCalendar_requiresPermission() local
6800 () -> dpm.isPackageAllowedToAccessCalendar(testPackage)); in testIsPackageAllowedToAccessCalendar_requiresPermission()
6806 final String testPackage = "TEST_PACKAGE"; in testIsPackageAllowedToAccessCalendar_samePackageAndSameUser_noPermissionRequired() local
6814 eq(testPackage), in testIsPackageAllowedToAccessCalendar_samePackageAndSameUser_noPermissionRequired()
6817 assertThat(dpm.isPackageAllowedToAccessCalendar(testPackage)).isTrue(); in testIsPackageAllowedToAccessCalendar_samePackageAndSameUser_noPermissionRequired()
/aosp12/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkPolicyManagerService.java3303 final String testPackage = SystemProperties.get(PROP_SUB_PLAN_OWNER + "." + subId, null);
3304 if (!TextUtils.isEmpty(testPackage)
3305 && Objects.equals(testPackage, callingPackage)) {