Home
last modified time | relevance | path

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

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotifyingAppTest.java45 public void testPackage() { in testPackage() method in NotifyingAppTest
DNotificationManagerServiceTest.java3964 final String testPackage = "testPackageName"; in testAllowForegroundToasts() local
3969 when(mPackageManager.isPackageSuspendedForUser(testPackage, UserHandle.getUserId(mUid))) in testAllowForegroundToasts()
3974 when(mPreferencesHelper.getImportance(testPackage, mUid)).thenReturn(IMPORTANCE_NONE); in testAllowForegroundToasts()
3980 ((INotificationManager)mService.mService).enqueueToast(testPackage, in testAllowForegroundToasts()
3987 final String testPackage = "testPackageName"; in testDisallowToastsFromSuspendedPackages() local
3992 when(mPackageManager.isPackageSuspendedForUser(testPackage, UserHandle.getUserId(mUid))) in testDisallowToastsFromSuspendedPackages()
3997 when(mPreferencesHelper.getImportance(testPackage, mUid)).thenReturn(IMPORTANCE_LOW); in testDisallowToastsFromSuspendedPackages()
4000 ((INotificationManager)mService.mService).enqueueToast(testPackage, in testDisallowToastsFromSuspendedPackages()
4007 final String testPackage = "testPackageName"; in testDisallowToastsFromBlockedApps() local
4012 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/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dgenerator_test.py192 def testPackage(self): member in GeneratorTest
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java5303 final String testPackage = "TEST_PACKAGE"; in testIsPackageAllowedToAccessCalendar_settingOff() local
5305 dpm.setCrossProfileCalendarPackages(admin1, Collections.singleton(testPackage)); in testIsPackageAllowedToAccessCalendar_settingOff()
5309 assertFalse(dpm.isPackageAllowedToAccessCalendar(testPackage)); in testIsPackageAllowedToAccessCalendar_settingOff()
5313 final String testPackage = "TEST_PACKAGE"; in testIsPackageAllowedToAccessCalendar_bothAllowed() local
5319 assertTrue(dpm.isPackageAllowedToAccessCalendar(testPackage)); in testIsPackageAllowedToAccessCalendar_bothAllowed()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java3047 final String testPackage = SystemProperties.get(PROP_SUB_PLAN_OWNER + "." + subId, null); in enforceSubscriptionPlanAccess() local
3048 if (!TextUtils.isEmpty(testPackage) in enforceSubscriptionPlanAccess()
3049 && Objects.equals(testPackage, callingPackage)) { in enforceSubscriptionPlanAccess()