Home
last modified time | relevance | path

Searched refs:runningProcess (Results 1 – 7 of 7) sorted by relevance

/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/packages/
DPackagesTest.java473 Poll.forValue("process", () -> sTestApp.pkg().runningProcess()) in kill_killsProcess()
476 int pidBeforeKill = sTestApp.pkg().runningProcess().pid(); in kill_killsProcess()
478 sTestApp.pkg().runningProcess().kill(); in kill_killsProcess()
480 ProcessReference processReference = sTestApp.pkg().runningProcess(); in kill_killsProcess()
506 () -> sTestApp.pkg().runningProcess(sDeviceState.workProfile())) in kill_doesNotKillProcessInOtherUser()
510 sTestApp.pkg().runningProcess().kill(); in kill_doesNotKillProcessInOtherUser()
512 assertThat(sTestApp.pkg().runningProcess(sDeviceState.workProfile())).isNotNull(); in kill_doesNotKillProcessInOtherUser()
DPackageTest.java333 final int previousId = TestApis.packages().launcher().runningProcess().pid(); in forceStop_whenRestartableApp_doesNotLoopEndlessly()
335 assertThat(TestApis.packages().launcher().runningProcess().pid()).isNotEqualTo(previousId); in forceStop_whenRestartableApp_doesNotLoopEndlessly()
341 .filter(aPackage -> aPackage.runningProcess() == null) in forceStop_whenNoRunningProcess_doesNotThrowException()
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/
DTestAppInstanceTest.java139 Poll.forValue("running process", () -> sTestApp.pkg().runningProcess(sUser)) in killProcess_keepAlive_processIsRunningAgain()
228 assertThat(sTestApp.pkg().runningProcess(sUser)).isNotNull(); in registerReceiver_processIsRunning()
289 assertThat(sTestApp.pkg().runningProcess(sUser)).isNotNull(); in keepAlive_processIsRunning()
298 sTestApp.pkg().runningProcess(sUser).kill(); in registerReceiver_appIsKilled_stillReceivesBroadcast()
299 Poll.forValue("running process", () -> sTestApp.pkg().runningProcess(sUser)) in registerReceiver_appIsKilled_stillReceivesBroadcast()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackage.java514 public ProcessReference runningProcess(UserReference user) { in runningProcess() method in Package
525 public ProcessReference runningProcess(UserHandle user) { in runningProcess() method in Package
526 return runningProcess(TestApis.users().find(user)); in runningProcess()
532 public ProcessReference runningProcess() { in runningProcess() method in Package
533 return runningProcess(TestApis.users().instrumented()); in runningProcess()
743 boolean shouldCheckPreviousProcess = runningProcess() != null; in forceStop()
747 int previousPid = shouldCheckPreviousProcess ? runningProcess().pid() : -1; in forceStop()
753 || previousPid != runningProcess().pid()) in forceStop()
DProcessReference.java97 ProcessReference other = mPackage.runningProcess(mUser); in kill()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DSystemErrorDialogsTest.java153 t.testApp().pkg().runningProcess().crash(); in appCrashes_disallowSystemErrorDialogsNotSet_alwaysShowSystemErrorDialogsEnabled_showsDialog()
177 t.testApp().pkg().runningProcess().crash(); in appCrashes_disallowSystemErrorDialogsSet_alwaysShowSystemErrorDialogsEnabled_doesNotShowDialog()
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/
DTestAppInstance.java294 ProcessReference process = mTestApp.pkg().runningProcess(mUser); in stop()
311 return mTestApp.pkg().runningProcess(mUser); in process()