Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/
DWebViewUpdateServiceTest.java563 String testPackage = "testFallback"; in testFallbackPackageEnabling() local
566 testPackage, "", true /* default available */, true /* fallback */, null)}; in testFallbackPackageEnabling()
569 createPackageInfo(testPackage, false /* enabled */ , true /* valid */, in testFallbackPackageEnabling()
575 Matchers.anyObject(), Mockito.eq(testPackage), Mockito.eq(true)); in testFallbackPackageEnabling()
580 testPackage, WebViewUpdateService.PACKAGE_CHANGED, TestSystemImpl.PRIMARY_USER_ID); in testFallbackPackageEnabling()
581 checkPreparationPhasesForPackage(testPackage, 1); in testFallbackPackageEnabling()
1530 String testPackage = "testDefault"; in testDefaultWebViewPackageEnabling() local
1534 testPackage, in testDefaultWebViewPackageEnabling()
1543 testPackage, false /* enabled */, true /* valid */, true /* installed */)); in testDefaultWebViewPackageEnabling()
1549 Matchers.anyObject(), Mockito.eq(testPackage), Mockito.eq(true)); in testDefaultWebViewPackageEnabling()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowManagerServiceTests.java943 String testPackage = "test"; in shouldBlockScreenCaptureForNotificationApps() local
946 PackageInfo blockedPackage = new PackageInfo(testPackage, ownerId1); in shouldBlockScreenCaptureForNotificationApps()
956 .shouldBlockScreenCaptureForApp(testPackage, ownerId1, new Binder())); in shouldBlockScreenCaptureForNotificationApps()
958 .shouldBlockScreenCaptureForApp(testPackage, ownerId2, new Binder())); in shouldBlockScreenCaptureForNotificationApps()
964 String testPackage = "test"; in shouldBlockScreenCaptureForSensitiveContentOnScreenApps() local
967 PackageInfo blockedPackage = new PackageInfo(testPackage, ownerId1, windowClientToken); in shouldBlockScreenCaptureForSensitiveContentOnScreenApps()
976 .shouldBlockScreenCaptureForApp(testPackage, ownerId1, windowClientToken)); in shouldBlockScreenCaptureForSensitiveContentOnScreenApps()
978 .shouldBlockScreenCaptureForApp(testPackage, ownerId1, new Binder())); in shouldBlockScreenCaptureForSensitiveContentOnScreenApps()
985 String testPackage = "test"; in shouldBlockScreenCaptureForApps() local
989 PackageInfo blockedPackage1 = new PackageInfo(testPackage, ownerId1); in shouldBlockScreenCaptureForApps()
[all …]
DWindowStateTests.java1490 String testPackage = "test"; in testIsSecureLocked_sensitiveContentProtectionManagerEnabled() local
1497 window1.mAttrs.packageName = testPackage; in testIsSecureLocked_sensitiveContentProtectionManagerEnabled()
1498 window2.mAttrs.packageName = testPackage; in testIsSecureLocked_sensitiveContentProtectionManagerEnabled()
1500 PackageInfo blockedPackage = new PackageInfo(testPackage, ownerId1); in testIsSecureLocked_sensitiveContentProtectionManagerEnabled()
1512 String testPackage = "test"; in testIsSecureLocked_sensitiveContentBlockOrClearScreenCaptureForApp() local
1515 window.mAttrs.packageName = testPackage; in testIsSecureLocked_sensitiveContentBlockOrClearScreenCaptureForApp()
1518 PackageInfo blockedPackage = new PackageInfo(testPackage, ownerId); in testIsSecureLocked_sensitiveContentBlockOrClearScreenCaptureForApp()
/frameworks/base/core/tests/coretests/src/android/os/
DBinderDeathRecipientTest.java81 private IBinder getNewRemoteBinder(String testPackage) throws InterruptedException { in getNewRemoteBinder() argument
87 .setClassName(testPackage, TestCommsReceiver.class.getName()); in getNewRemoteBinder()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotifyingAppTest.java45 public void testPackage() { in testPackage() method in NotifyingAppTest
DNotificationManagerServiceTest.java1376 private boolean enqueueToast(String testPackage, ITransientNotification callback) in enqueueToast() argument
1378 return enqueueToast((INotificationManager) mService.mService, testPackage, new Binder(), in enqueueToast()
1382 private boolean enqueueToast(INotificationManager service, String testPackage, in enqueueToast() argument
1384 return service.enqueueToast(testPackage, token, callback, TOAST_DURATION, /* isUiContext= */ in enqueueToast()
1388 private boolean enqueueTextToast(String testPackage, CharSequence text) throws RemoteException { in enqueueTextToast() argument
1389 return enqueueTextToast(testPackage, text, /* isUiContext= */ true, DEFAULT_DISPLAY); in enqueueTextToast()
1392 private boolean enqueueTextToast(String testPackage, CharSequence text, boolean isUiContext, in enqueueTextToast() argument
1394 return ((INotificationManager) mService.mService).enqueueTextToast(testPackage, in enqueueTextToast()
8070 final String testPackage = "testPackageName"; in testAllowForegroundCustomToasts() local
8075 setIfPackageHasPermissionToAvoidToastRateLimiting(testPackage, false); in testAllowForegroundCustomToasts()
[all …]
DManagedServicesTest.java392 String testPackage = "user.test.package"; in testReadXml_onlyRestoresForTargetUser() local
395 (approvalLevel == APPROVAL_BY_COMPONENT) ? testComponent : testPackage; in testReadXml_onlyRestoresForTargetUser()
414 String testPackage = "user.test.package"; in testReadXml_restoresUserSet() local
417 (approvalLevel == APPROVAL_BY_COMPONENT) ? testComponent : testPackage; in testReadXml_restoresUserSet()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java7000 final String testPackage = "TEST_PACKAGE"; in testIsPackageAllowedToAccessCalendar_adminNotAllowed() local
7008 assertThat(dpm.isPackageAllowedToAccessCalendar(testPackage)).isFalse(); in testIsPackageAllowedToAccessCalendar_adminNotAllowed()
7013 final String testPackage = "TEST_PACKAGE"; in testIsPackageAllowedToAccessCalendar_settingOff() local
7015 dpm.setCrossProfileCalendarPackages(admin1, Collections.singleton(testPackage)); in testIsPackageAllowedToAccessCalendar_settingOff()
7021 assertThat(dpm.isPackageAllowedToAccessCalendar(testPackage)).isFalse(); in testIsPackageAllowedToAccessCalendar_settingOff()
7026 final String testPackage = "TEST_PACKAGE"; in testIsPackageAllowedToAccessCalendar_bothAllowed() local
7027 getServices().addTestPackageUid(testPackage, DpmMockContext.ANOTHER_UID); in testIsPackageAllowedToAccessCalendar_bothAllowed()
7035 assertThat(dpm.isPackageAllowedToAccessCalendar(testPackage)).isTrue(); in testIsPackageAllowedToAccessCalendar_bothAllowed()
7040 final String testPackage = "TEST_PACKAGE"; in testIsPackageAllowedToAccessCalendar_requiresPermission() local
7041 getServices().addTestPackageUid(testPackage, DpmMockContext.ANOTHER_UID); in testIsPackageAllowedToAccessCalendar_requiresPermission()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java3655 final String testPackage = SystemProperties.get(PROP_SUB_PLAN_OWNER + "." + subId, null);
3656 if (!TextUtils.isEmpty(testPackage)
3657 && Objects.equals(testPackage, callingPackage)) {