Searched refs:runningProcess (Results 1 – 7 of 7) sorted by relevance
473 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()
333 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()
139 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()
514 public ProcessReference runningProcess(UserReference user) { in runningProcess() method in Package525 public ProcessReference runningProcess(UserHandle user) { in runningProcess() method in Package526 return runningProcess(TestApis.users().find(user)); in runningProcess()532 public ProcessReference runningProcess() { in runningProcess() method in Package533 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()
97 ProcessReference other = mPackage.runningProcess(mUser); in kill()
153 t.testApp().pkg().runningProcess().crash(); in appCrashes_disallowSystemErrorDialogsNotSet_alwaysShowSystemErrorDialogsEnabled_showsDialog()177 t.testApp().pkg().runningProcess().crash(); in appCrashes_disallowSystemErrorDialogsSet_alwaysShowSystemErrorDialogsEnabled_doesNotShowDialog()
294 ProcessReference process = mTestApp.pkg().runningProcess(mUser); in stop()311 return mTestApp.pkg().runningProcess(mUser); in process()