Home
last modified time | relevance | path

Searched refs:suspend (Results 1 – 14 of 14) 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.java116 SuspendTestUtils.suspend(null, null, null); in testIsPackageSuspended()
129 SuspendTestUtils.suspend(appExtras, null, null); in testSuspendedStateFromApp()
145 SuspendTestUtils.suspend(appExtras, null, null); in testMyPackageSuspendedUnsuspended()
164 SuspendTestUtils.suspend(extras1, null, null); in testUpdatingAppExtras()
174 SuspendTestUtils.suspend(extras2, null, null); in testUpdatingAppExtras()
195 SuspendTestUtils.suspend(null, null, null); in testActivityStoppedOnSuspend()
205 SuspendTestUtils.suspend(null, null, null); in testCanSuspendWhenDeviceOwner()
249 SuspendTestUtils.suspend(null, suppliedExtras, null); in testLauncherCallback()
287 SuspendTestUtils.suspend(null, null, null); in testOpRecordAudioOnSuspend()
294 SuspendTestUtils.suspend(null, null, null); in testOpCameraOnSuspend()
[all …]
DDualSuspendTests.java84 private boolean setSuspendViaDpm(boolean suspend) throws Exception { in setSuspendViaDpm() argument
85 return requestDpmAction(suspend ? ACTION_SUSPEND : ACTION_UNSUSPEND, in setSuspendViaDpm()
95 SuspendTestUtils.suspend(null, null, null); in testMyPackageSuspended()
108 SuspendTestUtils.suspend(null, null, null); in testMyPackageUnsuspended()
125 SuspendTestUtils.suspend(null, null, null); in testIsPackageSuspended()
132 SuspendTestUtils.suspend(null, null, null); in testIsPackageSuspended()
194 SuspendTestUtils.suspend(null, null, null); in testUnsuspendedOnDisallowUninstallApps()
200 SuspendTestUtils.suspend(null, null, null); in testUnsuspendedOnDisallowAppsControl()
DDialogTests.java90 SuspendTestUtils.suspend(null, null, dialogInfo); in testInterceptorActivity_unsuspend()
154 SuspendTestUtils.suspend(null, null, dialogInfo); in testInterceptorActivity_moreDetails()
203 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/appenumeration/src/android/appenumeration/cts/
DUtils.java184 static void suspendPackages(boolean suspend, List<String> packages) { in suspendPackages() argument
185 suspendPackagesForUser(suspend, packages, UserReference.of(getContext().getUser()), in suspendPackages()
192 static void suspendPackagesForUser(boolean suspend, List<String> packages, in suspendPackagesForUser() argument
195 if (suspend) { in suspendPackagesForUser()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DBaseNotificationManagerTest.java361 Instrumentation instrumentation, boolean suspend) throws IOException { in suspendPackage() argument
363 String command = " cmd package " + (suspend ? "suspend " : "unsuspend ") in suspendPackage()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DLegacyNotificationManagerTest.java373 Instrumentation instrumentation, boolean suspend) throws IOException { in suspendPackage() argument
375 + " " + (suspend ? "suspend" : "unsuspend") in suspendPackage()
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/
DVirtualCameraCameraXTest.kt287 private fun <T> runBlockingWithTimeout(block: suspend CoroutineScope.() -> T) { in runBlockingWithTimeout()
/cts/hostsidetests/jdwptunnel/src/android/jdwptunnel/cts/
DJdwpTunnelTest.java193 vm.suspend(); in testAttachDebugger()
/cts/tests/tests/wifi/src/android/net/wifi/aware/cts/
DSingleDeviceTest.java1214 discoverySession.suspend(); in testSuspendResumeFailWithoutNdpOnPublishSession()
1229 assertThrows(IllegalStateException.class, discoverySession::suspend); in testSuspendResumeFailWithoutNdpOnPublishSession()
1540 discoverySession.suspend(); in testSuspendResumeFailWithoutNdpOnSubscribeSession()
1555 assertThrows(IllegalStateException.class, discoverySession::suspend); in testSuspendResumeFailWithoutNdpOnSubscribeSession()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dsystem-current.txt11171 method public void suspend();
Dcurrent.txt61324 method public void suspend();