Searched refs:testPackage (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotifyingAppTest.java | 45 public void testPackage() { in testPackage() method in NotifyingAppTest
|
D | NotificationManagerServiceTest.java | 4032 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 …]
|
D | ManagedServicesTest.java | 320 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/ |
D | DevicePolicyManagerTest.java | 5330 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/ |
D | NetworkPolicyManagerService.java | 3074 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()
|