Searched refs:AmMonitor (Results 1 – 4 of 4) sorted by relevance
39 public final class AmMonitor { class80 public AmMonitor(final Instrumentation instrumentation, final String[] notExpected) { in AmMonitor() method in AmMonitor
57 import com.android.compatibility.common.util.AmMonitor;544 AmMonitor monitor = new AmMonitor(mInstrumentation, in testAnr()545 new String[]{AmMonitor.WAIT_FOR_CRASHED}); in testAnr()554 monitor.waitFor(AmMonitor.WAIT_FOR_EARLY_ANR, timeout); in testAnr()556 monitor.sendCommand(AmMonitor.CMD_CONTINUE); in testAnr()558 monitor.waitFor(AmMonitor.WAIT_FOR_ANR, timeout); in testAnr()560 monitor.sendCommand(AmMonitor.CMD_KILL); in testAnr()
91 import com.android.compatibility.common.util.AmMonitor;869 AmMonitor monitor = new AmMonitor(mInstrumentation, in testAppNotResponding()870 new String[]{AmMonitor.WAIT_FOR_CRASHED}); in testAppNotResponding()879 assertTrue(monitor.waitFor(AmMonitor.WAIT_FOR_EARLY_ANR, WAITFOR_MSEC)); in testAppNotResponding()882 monitor.sendCommand(AmMonitor.CMD_KILL); in testAppNotResponding()
78 import com.android.compatibility.common.util.AmMonitor;2339 AmMonitor monitor = new AmMonitor(mInstrumentation, in testFgsStickyInternal()2340 new String[]{AmMonitor.WAIT_FOR_EARLY_ANR, AmMonitor.WAIT_FOR_ANR}); in testFgsStickyInternal()2377 monitor.waitFor(AmMonitor.WAIT_FOR_CRASHED, WAITFOR_MSEC); in testFgsStickyInternal()2378 monitor.sendCommand(AmMonitor.CMD_KILL); in testFgsStickyInternal()