Home
last modified time | relevance | path

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

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotifyingAppTest.java45 public void testPackage() { in testPackage() method in NotifyingAppTest
DNotificationManagerServiceTest.java4032 final String testPackage = "testPackageName"; in testAllowForegroundToasts() local
4037 when(mPackageManager.isPackageSuspendedForUser(testPackage, UserHandle.getUserId(mUid))) in testAllowForegroundToasts()
4042 when(mPreferencesHelper.getImportance(testPackage, mUid)).thenReturn(IMPORTANCE_NONE); in testAllowForegroundToasts()
4048 ((INotificationManager)mService.mService).enqueueToast(testPackage, in testAllowForegroundToasts()
4055 final String testPackage = "testPackageName"; in testDisallowToastsFromSuspendedPackages() local
4060 when(mPackageManager.isPackageSuspendedForUser(testPackage, UserHandle.getUserId(mUid))) in testDisallowToastsFromSuspendedPackages()
4065 when(mPreferencesHelper.getImportance(testPackage, mUid)).thenReturn(IMPORTANCE_LOW); in testDisallowToastsFromSuspendedPackages()
4068 ((INotificationManager)mService.mService).enqueueToast(testPackage, in testDisallowToastsFromSuspendedPackages()
4075 final String testPackage = "testPackageName"; in testDisallowToastsFromBlockedApps() local
4080 when(mPackageManager.isPackageSuspendedForUser(testPackage, UserHandle.getUserId(mUid))) in testDisallowToastsFromBlockedApps()
[all …]
DManagedServicesTest.java320 String testPackage = "user.test.package"; in testReadXml_onlyRestoresForTargetUser() local
323 (approvalLevel == APPROVAL_BY_COMPONENT) ? testComponent : testPackage; in testReadXml_onlyRestoresForTargetUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java5330 final String testPackage = "TEST_PACKAGE"; in testIsPackageAllowedToAccessCalendar_settingOff() local
5332 dpm.setCrossProfileCalendarPackages(admin1, Collections.singleton(testPackage)); in testIsPackageAllowedToAccessCalendar_settingOff()
5336 assertFalse(dpm.isPackageAllowedToAccessCalendar(testPackage)); in testIsPackageAllowedToAccessCalendar_settingOff()
5340 final String testPackage = "TEST_PACKAGE"; in testIsPackageAllowedToAccessCalendar_bothAllowed() local
5346 assertTrue(dpm.isPackageAllowedToAccessCalendar(testPackage)); in testIsPackageAllowedToAccessCalendar_bothAllowed()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java3074 final String testPackage = SystemProperties.get(PROP_SUB_PLAN_OWNER + "." + subId, null); in enforceSubscriptionPlanAccess() local
3075 if (!TextUtils.isEmpty(testPackage) in enforceSubscriptionPlanAccess()
3076 && Objects.equals(testPackage, callingPackage)) { in enforceSubscriptionPlanAccess()