Home
last modified time | relevance | path

Searched refs:times (Results 1 – 21 of 21) sorted by relevance

/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DBaseCollectionListenerTest.java35 import static org.mockito.Mockito.times;
81 verify(helper, times(1)).startCollecting(); in testPerRunFlow()
83 verify(helper, times(1)).startCollecting(); in testPerRunFlow()
85 verify(helper, times(0)).stopCollecting(); in testPerRunFlow()
87 verify(helper, times(1)).stopCollecting(); in testPerRunFlow()
102 verify(helper, times(0)).startCollecting(); in testPerTestFlow()
104 verify(helper, times(1)).startCollecting(); in testPerTestFlow()
106 verify(helper, times(1)).getMetrics(); in testPerTestFlow()
107 verify(helper, times(1)).stopCollecting(); in testPerTestFlow()
109 verify(helper, times(2)).startCollecting(); in testPerTestFlow()
[all …]
DBatteryStatsListenerTest.java41 import static org.mockito.Mockito.times;
101 verify(mListener, times(1)).resetBatteryStats(); in testTestRunCollector()
105 verify(mListener, times(1)).resetBatteryStats(); in testTestRunCollector()
109 verify(mListener, times(1)).resetBatteryStats(); in testTestRunCollector()
110 verify(mListener, times(0)).dumpBatteryStats(anyString()); in testTestRunCollector()
114 verify(mListener, times(1)).resetBatteryStats(); in testTestRunCollector()
115 verify(mListener, times(1)).dumpBatteryStats(anyString()); in testTestRunCollector()
148 verify(mListener, times(0)).createAndEmptyDirectory(BatteryStatsListener.DEFAULT_DIR); in testTestRunToBytesCollector()
149 verify(mListener, times(0)).resetBatteryStats(); in testTestRunToBytesCollector()
154 verify(mListener, times(i)).resetBatteryStats(); in testTestRunToBytesCollector()
[all …]
DSimpleperfListenerTest.java22 import static org.mockito.Mockito.times;
98 verify(mSimpleperfHelper, times(1)).startCollecting(anyString(), anyString()); in testSimpleperfPerTestSuccessFlow()
100 verify(mSimpleperfHelper, times(1)).stopCollecting(anyString()); in testSimpleperfPerTestSuccessFlow()
120 verify(mSimpleperfHelper, times(1)).startCollecting(anyString(), anyString()); in testSimpleperfPerTestFailureFlowDefault()
126 verify(mSimpleperfHelper, times(1)).stopCollecting(anyString()); in testSimpleperfPerTestFailureFlowDefault()
146 verify(mSimpleperfHelper, times(1)).startCollecting(anyString(), anyString()); in testSimpleperfPerTestFailureFlowWithSkipMmetrics()
152 verify(mSimpleperfHelper, times(1)).stopSimpleperf(); in testSimpleperfPerTestFailureFlowWithSkipMmetrics()
169 verify(mSimpleperfHelper, times(1)).startCollecting(anyString(), anyString()); in testSimpleperfPerRunSuccessFlow()
171 verify(mSimpleperfHelper, times(1)).startCollecting(anyString(), anyString()); in testSimpleperfPerRunSuccessFlow()
173 verify(mSimpleperfHelper, times(0)).stopCollecting(anyString()); in testSimpleperfPerRunSuccessFlow()
[all …]
DPerfettoListenerTest.java29 import static org.mockito.Mockito.times;
130 verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean()); in testPerfettoPerTestSuccessFlow()
132 verify(mPerfettoHelper, times(1)).stopCollecting(anyLong(), anyString()); in testPerfettoPerTestSuccessFlow()
153 verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean()); in testPerfettoPerTestFailureFlowDefault()
160 verify(mPerfettoHelper, times(1)).stopCollecting(anyLong(), anyString()); in testPerfettoPerTestFailureFlowDefault()
181 verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean()); in testPerfettoPerTestFailureFlowWithSkipMmetrics()
188 verify(mPerfettoHelper, times(1)).stopPerfetto(); in testPerfettoPerTestFailureFlowWithSkipMmetrics()
208 verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean()); in testPerfettoDefaultStartWaitTime()
210 verify(mPerfettoHelper, times(1)).stopCollecting(anyLong(), anyString()); in testPerfettoDefaultStartWaitTime()
234 verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean()); in testPerfettoCustomStartWaitTime()
[all …]
DScreenRecordCollectorTest.java27 import static org.mockito.Mockito.times;
117 verify(mDevice, times(i)).executeShellCommand(matches("screenrecord .*video.mp4")); in testScreenRecord()
119 verify(mDevice, times(i)) in testScreenRecord()
131 verify(mDevice, times(i)).executeShellCommand(eq("pidof screenrecord")); in testScreenRecord()
132 verify(mDevice, times(i)).executeShellCommand(matches("kill -2 1234")); in testScreenRecord()
142 Mockito.verify(mInstrumentation, times(NUM_TEST_CASE)) in testScreenRecord()
178 .verify(mDevice, times(ScreenRecordCollector.MAX_RECORDING_PARTS)) in testScreenRecord_multipleTests()
DScreenshotOnFailureCollectorTest.java28 import static org.mockito.Mockito.times;
123 verify(mListener, times(i)).takeScreenshot(any()); in testSavePngAsFile()
133 Mockito.verify(mInstrumentation, times(NUM_TEST_CASE)) in testSavePngAsFile()
162 verify(mListener, times(i)).collectUiXml(any()); in testSaveUixAsFile()
169 Mockito.verify(mInstrumentation, times(NUM_TEST_CASE)) in testSaveUixAsFile()
206 Mockito.verify(mInstrumentation, times(NUM_TEST_CASE)) in testNoUixWithoutOption()
DJankListenerTest.java20 import static org.mockito.Mockito.times;
66 verify(mHelper, times(1)).addTrackedPackages("pkg1", "pkg2"); in testCollect_specificProcess()
DGcaEventLogCollectorTest.java21 import static org.mockito.Mockito.times;
104 Mockito.verify(mMockInstrumentation, times(2)) in testGcaEventLogCollectionOnTestEnd_includeFailure()
160 Mockito.verify(mMockInstrumentation, times(2)) in testGcaEventLogCollectOnTestEnd_skipFailure()
DBaseMetricListenerInstrumentedTest.java161 Mockito.verify(mMockInstrumentation, Mockito.times(2))
209 Mockito.verify(mMockInstrumentation, Mockito.times(1))
253 Mockito.verify(mMockInstrumentation, Mockito.times(1))
297 Mockito.verify(mMockInstrumentation, Mockito.times(1))
405 Mockito.verify(mMockInstrumentation, Mockito.times(2))
458 Mockito.verify(mMockInstrumentation, Mockito.times(2))
513 Mockito.verify(mMockInstrumentation, Mockito.times(3))
567 Mockito.verify(mMockInstrumentation, Mockito.times(2))
DLogcatCollectorTest.java124 Mockito.verify(mMockInstrumentation, Mockito.times(2)) in testLogcatCollectionOnEveryTestEnd()
245 Mockito.verify(mMockInstrumentation, Mockito.times(0)) in testLogcatCollectionWithDirectoryOption()
482 Mockito.verify(mMockInstrumentation, Mockito.times(3)) in testMultipleIterations()
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DUnlockScreenRuleTest.java18 import static org.mockito.Mockito.times;
46 verify(rule.getUiDevice(), times(1)).wakeUp(); in testScreenOff()
47 verify(rule.getUiDevice(), times(1)).pressMenu(); in testScreenOff()
62 verify(rule.getUiDevice(), times(0)).wakeUp(); in testScreenLocked()
63 verify(rule.getUiDevice(), times(1)).pressMenu(); in testScreenLocked()
78 verify(rule.getUiDevice(), times(0)).wakeUp(); in testScreenOn()
79 verify(rule.getUiDevice(), times(0)).pressMenu(); in testScreenOn()
DNaturalOrientationRuleTest.java19 import static org.mockito.Mockito.times;
46 verify(rule.getUiDevice(), times(1)).setOrientationNatural(); in testNaturalOrientationSetAndUnset()
52 verify(rule.getUiDevice(), times(1)).unfreezeRotation(); in testNaturalOrientationSetAndUnset()
DPressHomeRuleTest.java19 import static org.mockito.Mockito.times;
57 verify(rule.getUiDevice(), times(1)).pressHome(); in testPressHomeEnabled()
79 verify(rule.getUiDevice(), times(0)).pressHome(); in testPressHomeDisabled()
DDex2oatPressureRuleTest.java27 import static org.mockito.Mockito.times;
104 verify(rule, times(1)).runCompileCommand(packageName, Dex2oatPressureRule.SPEED_FILTER); in testInvokesCompilation()
211 verify(rule, times(checksBeforeDex2oatIsRunning + 1)).dex2oatIsRunning(); in testWaitsUntilDex2oatIsRunningBeforeTest()
230 verify(rule, times(1)).stopDex2oat(); in testCancelsAndThrowsIfDex2oatIsNotRunningAfterTimeout()
/platform_testing/libraries/device-collectors/src/test/platform/android/device/collectors/
DStatsdListenerTest.java29 import static org.mockito.Mockito.times;
141 verify(mListener, times(1)).addStatsConfig(eq(CONFIG_ID_1), eq(serialize(CONFIG_1))); in testRunLevelCollection_statsdInteraction()
142 verify(mListener, times(1)).addStatsConfig(eq(CONFIG_ID_2), eq(serialize(CONFIG_2))); in testRunLevelCollection_statsdInteraction()
143 verify(mListener, times(1)).logStart(eq(StatsdListener.RUN_EVENT_LABEL)); in testRunLevelCollection_statsdInteraction()
146 verify(mListener, times(1)).logStop(eq(StatsdListener.RUN_EVENT_LABEL)); in testRunLevelCollection_statsdInteraction()
147 verify(mListener, times(1)).getStatsReports(eq(CONFIG_ID_1)); in testRunLevelCollection_statsdInteraction()
148 verify(mListener, times(1)).getStatsReports(eq(CONFIG_ID_2)); in testRunLevelCollection_statsdInteraction()
149 verify(mListener, times(1)).removeStatsConfig(eq(CONFIG_ID_1)); in testRunLevelCollection_statsdInteraction()
150 verify(mListener, times(1)).removeStatsConfig(eq(CONFIG_ID_2)); in testRunLevelCollection_statsdInteraction()
167 verify(mListener, times(1)) in testRunLevelCollection_metrics()
[all …]
/platform_testing/libraries/device-collectors/src/test/java/android/device/preparers/
DGarbageCollectionPreparerTest.java24 import static org.mockito.Mockito.times;
117 verify(mGcHelper, times(2)).garbageCollect(); in testHelperGcsDefaultWaitTimeWhenUnprovided()
131 verify(mGcHelper, times(2)).garbageCollect(); in testHelperGcsDefaultWaitTimeWhenInvalid()
145 verify(mGcHelper, times(2)).garbageCollect(TEST_WAIT_TIME); in testHelperGcsProvidedWaitTime()
159 verify(mGcHelper, times(1)).garbageCollect(); in testHelperGcsNoRunEnd()
173 verify(mGcHelper, times(2)).garbageCollect(); in testHelperGcsRunEnd()
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/
DLongevityClassRunnerTest.java27 import static org.mockito.Mockito.times;
160 verify(mRunner, times(1)).withBeforeClasses(any(Statement.class)); in testBeforeClassMethodsAddedAsBeforeMethods()
161 verify(mRunner, times(1)) in testBeforeClassMethodsAddedAsBeforeMethods()
225 verify(mRunner, times(1)).withAfterClasses(any(Statement.class)); in testAfterClassMethodsAddedAsAfterMethods()
226 verify(mRunner, times(1)) in testAfterClassMethodsAddedAsAfterMethods()
307 verify(mRunner, times(1)).invokeAndCollectErrors(methodsCaptor.capture(), any()); in testAfterClass_runAsAfterForPassingTest()
333 verify(mRunner, times(1)).invokeAndCollectErrors(methodsCaptor.capture(), any()); in testAfterClass_runAsAfterClassForFailingTest()
346 verify(mRunner, times(1)) in testAfterClassRunOnlyOnce_passingTest()
355 verify(mRunner, times(1)) in testAfterClassRunOnlyOnce_failingTest()
369 verify(listener, times(1)).testIgnored(any()); in testIgnore_excludedClasses()
DScheduledScenarioRunnerTest.java25 import static org.mockito.Mockito.times;
173 verify(runner, times(1)) in testOverTimeTest_idlesAfterTeardownUntilNextScenario()
201 verify(runner, times(1)) in testRespectsAfterTestPolicy_stayInApp()
232 verify(runner, times(1)) in testRespectsAfterTestPolicy_exit()
267 verify(listener, times(1)).testIgnored(any()); in testIgnoredScenario_doesIdle()
269 verify(runner, times(1)) in testIgnoredScenario_doesIdle()
/platform_testing/libraries/health/runners/longevity/
DREADME.md20 **Run simple test suite 50 times, and quit when an error is encountered.**
25 **Run simple test suite 10 times, shuffle all tests, and quit after 30 minutes.**
38 **Run simple test suite 50 times, and quit when an error is encountered.**
44 **Run simple test suite 10 times, shuffle all tests, and quit after 30 minutes.**
50 **Run simple test suite 100 times, and quit when battery drops below 5%.**
64 * `iterations <int>` - the number of times to repeat the suite.
/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/
DIGoogleCameraHelper.java135 public default void mashShutterButton(boolean shouldWaitClickable, int times) { in mashShutterButton() argument
/platform_testing/libraries/flicker/
DREADME.md5 … the code and difficult to identify because the issue is transient and at times difficult to repro…
46 // Number of times to repeat the transition to catch any flaky issues