Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSuspendPackageTest.java108 private String[] setSuspendedPackages(boolean suspend, Collection<String> pkgs) { in setSuspendedPackages() argument
111 return setSuspendedPackages(suspend, pkgsArray); in setSuspendedPackages()
114 private String[] setSuspendedPackages(boolean suspend, String... pkgs) { in setSuspendedPackages() argument
115 Log.d(TAG, "Calling setPackagesSuspended(" + suspend + ", " + Arrays.toString(pkgs)); in setSuspendedPackages()
117 mDevicePolicyManager.setPackagesSuspended(ADMIN_RECEIVER_COMPONENT, pkgs, suspend); in setSuspendedPackages()
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/
DSuspendPackagesTest.java100 SuspendTestUtils.suspend(null, null, null); in testIsPackageSuspended()
113 SuspendTestUtils.suspend(appExtras, null, null); in testSuspendedStateFromApp()
129 SuspendTestUtils.suspend(appExtras, null, null); in testMyPackageSuspendedUnsuspended()
146 SuspendTestUtils.suspend(extras1, null, null); in testUpdatingAppExtras()
156 SuspendTestUtils.suspend(extras2, null, null); in testUpdatingAppExtras()
177 SuspendTestUtils.suspend(null, null, null); in testActivityStoppedOnSuspend()
187 SuspendTestUtils.suspend(null, null, null); in testCanSuspendWhenDeviceOwner()
231 SuspendTestUtils.suspend(null, suppliedExtras, null); in testLauncherCallback()
269 SuspendTestUtils.suspend(null, null, null); in testOpRecordAudioOnSuspend()
276 SuspendTestUtils.suspend(null, null, null); in testOpCameraOnSuspend()
DDualSuspendTests.java82 private boolean setSuspendViaDpm(boolean suspend) throws Exception { in setSuspendViaDpm() argument
83 return requestDpmAction(suspend ? ACTION_SUSPEND : ACTION_UNSUSPEND, in setSuspendViaDpm()
93 SuspendTestUtils.suspend(null, null, null); in testMyPackageSuspended()
106 SuspendTestUtils.suspend(null, null, null); in testMyPackageUnsuspended()
123 SuspendTestUtils.suspend(null, null, null); in testIsPackageSuspended()
130 SuspendTestUtils.suspend(null, null, null); in testIsPackageSuspended()
192 SuspendTestUtils.suspend(null, null, null); in testUnsuspendedOnDisallowUninstallApps()
198 SuspendTestUtils.suspend(null, null, null); in testUnsuspendedOnDisallowAppsControl()
DDialogTests.java91 SuspendTestUtils.suspend(null, null, dialogInfo); in testInterceptorActivity_unsuspend()
143 SuspendTestUtils.suspend(null, null, dialogInfo); in testInterceptorActivity_moreDetails()
192 SuspendTestUtils.suspend(null, null, dialogInfo); in testInterceptorActivity_strings()
DSuspendTestUtils.java71 static void suspend(PersistableBundle appExtras, in suspend() method in SuspendTestUtils
/cts/tests/suspendapps/test-apps/TestDeviceAdmin/src/com/android/suspendapps/testdeviceadmin/
DTestCommsReceiver.java54 boolean suspend = false; in onReceive()
58 suspend = true; in onReceive()
66 new String[]{packageName}, suspend); in onReceive()
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/
DLegacyNotificationManager20Test.java158 Instrumentation instrumentation, boolean suspend) throws IOException { in suspendPackage() argument
159 String command = " cmd package " + (suspend ? "suspend " in suspendPackage()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DLegacyNotificationManagerTest.java393 Instrumentation instrumentation, boolean suspend) throws IOException { in suspendPackage() argument
395 + " " + (suspend ? "suspend" : "unsuspend") in suspendPackage()
/cts/hostsidetests/jdwptunnel/src/android/jdwptunnel/cts/
DJdwpTunnelTest.java168 vm.suspend(); in testAttachDebugger()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DAppEnumerationTests.java1370 private void setPackagesSuspended(boolean suspend, List<String> packages) { in setPackagesSuspended() argument
1372 if (suspend) { in setPackagesSuspended()
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java709 Instrumentation instrumentation, boolean suspend) throws IOException { in suspendPackage() argument
711 String command = " cmd package " + (suspend ? "suspend " : "unsuspend ") in suspendPackage()