Home
last modified time | relevance | path

Searched refs:capture (Results 1 – 25 of 40) sorted by relevance

12

/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DPushFilePreparerTest.java314 Capture<Set<String>> capture = new Capture<>(); in testPush_abiDirectory_noBitness() local
319 EasyMock.capture(capture))) in testPush_abiDirectory_noBitness()
326 Set<String> capValue = capture.getValue(); in testPush_abiDirectory_noBitness()
348 Capture<Set<String>> capture = new Capture<>(); in testPush_abiDirectory_noBitness_withModule() local
356 EasyMock.capture(capture))) in testPush_abiDirectory_noBitness_withModule()
363 Set<String> capValue = capture.getValue(); in testPush_abiDirectory_noBitness_withModule()
386 Capture<Set<String>> capture = new Capture<>(); in testPush_abiDirectory() local
391 EasyMock.capture(capture))) in testPush_abiDirectory()
397 Set<String> capValue = capture.getValue(); in testPush_abiDirectory()
424 Capture<Set<String>> capture = new Capture<>(); in testPush_moduleName_dirs() local
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/
DBasePostProcessorTest.java121 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testPostProcessing() local
122 mMockListener.testRunEnded(EasyMock.anyLong(), EasyMock.capture(capture)); in testPostProcessing()
128 HashMap<String, Metric> finalMetrics = capture.getValue(); in testPostProcessing()
146 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testPerTestPostProcessing() local
148 EasyMock.anyObject(), EasyMock.anyLong(), EasyMock.capture(capture)); in testPerTestPostProcessing()
154 HashMap<String, Metric> processedMetrics = capture.getValue(); in testPerTestPostProcessing()
181 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testAllTestMetricsPostProcessing() local
186 EasyMock.anyObject(), EasyMock.anyLong(), EasyMock.capture(dummyCapture)); in testAllTestMetricsPostProcessing()
188 EasyMock.anyObject(), EasyMock.anyLong(), EasyMock.capture(dummyCapture)); in testAllTestMetricsPostProcessing()
189 mMockListener.testRunEnded(EasyMock.anyLong(), EasyMock.capture(capture)); in testAllTestMetricsPostProcessing()
[all …]
DAveragePostProcessorTest.java57 mMockListener.testRunEnded(EasyMock.eq(15L), EasyMock.capture(captured)); in testAverage_double()
80 mMockListener.testRunEnded(EasyMock.eq(15L), EasyMock.capture(captured)); in testAverage_long()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DFilePullerLogCollectorTest.java74 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testPullAndLog() local
81 mMockListener.testEnded(EasyMock.eq(test), EasyMock.eq(50L), EasyMock.capture(capture)); in testPullAndLog()
87 HashMap<String, Metric> metricCaptured = capture.getValue(); in testPullAndLog()
109 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testSkipTestCollection() local
111 mMockListener.testEnded(EasyMock.eq(test), EasyMock.eq(50L), EasyMock.capture(capture)); in testSkipTestCollection()
117 HashMap<String, Metric> metricCaptured = capture.getValue(); in testSkipTestCollection()
137 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testPostProcessFiles() local
144 mMockListener.testEnded(EasyMock.eq(test), EasyMock.eq(50L), EasyMock.capture(capture)); in testPostProcessFiles()
DDumpHeapCollectorTest.java123 .testLog(dataNameCaptor.capture(), dataTypeCaptor.capture(), inputCaptor.capture()); in testCollect_success()
158 .testLog(dataNameCaptor.capture(), dataTypeCaptor.capture(), inputCaptor.capture()); in testCollectSuccess_thresholdTooHigh()
180 .testLog(dataNameCaptor.capture(), dataTypeCaptor.capture(), inputCaptor.capture()); in testCollectNoError_processNotFound()
DBaseDeviceMetricCollectorTest.java317 .testEnded(Mockito.eq(test), Mockito.anyLong(), mCapturedMetrics.capture()); in verifyFiltering()
416 .testEnded(Mockito.eq(test1), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_include()
420 .testEnded(Mockito.eq(test2), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_include()
425 .testEnded(Mockito.eq(test3), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_include()
464 .testEnded(Mockito.eq(test1), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_exclude()
468 .testEnded(Mockito.eq(test2), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_exclude()
473 .testEnded(Mockito.eq(test3), Mockito.anyLong(), mCapturedMetrics.capture()); in testActualRunAnnotated_exclude()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DGoogleBenchmarkResultParserTest.java93 (TestDescription) EasyMock.anyObject(), EasyMock.capture(capture1)); in testParseSimpleFile()
95 (TestDescription) EasyMock.anyObject(), EasyMock.capture(capture2)); in testParseSimpleFile()
97 (TestDescription) EasyMock.anyObject(), EasyMock.capture(capture3)); in testParseSimpleFile()
151 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testParseSimpleFile_twoTests() local
153 (TestDescription) EasyMock.anyObject(), EasyMock.capture(capture)); in testParseSimpleFile_twoTests()
163 HashMap<String, Metric> results = capture.getValue(); in testParseSimpleFile_twoTests()
226 Capture<HashMap<String, Metric>> capture = new Capture<>(); in testParseSimpleFile_withWarning() local
228 (TestDescription) EasyMock.anyObject(), EasyMock.capture(capture)); in testParseSimpleFile_withWarning()
236 HashMap<String, Metric> results = capture.getValue(); in testParseSimpleFile_withWarning()
DDeviceTestCaseTest.java194 Capture<TestDescription> capture = new Capture<>(); in testRun_checkAnnotation() local
195 listener.testStarted(EasyMock.capture(capture)); in testRun_checkAnnotation()
197 EasyMock.capture(capture), (HashMap<String, Metric>) EasyMock.anyObject()); in testRun_checkAnnotation()
198 listener.testStarted(EasyMock.capture(capture)); in testRun_checkAnnotation()
200 EasyMock.capture(capture), (HashMap<String, Metric>) EasyMock.anyObject()); in testRun_checkAnnotation()
207 List<TestDescription> descriptions = capture.getValues(); in testRun_checkAnnotation()
DInstalledInstrumentationsTestTest.java76 mMockListener.testRunEnded(EasyMock.anyLong(), EasyMock.capture(captureMetrics)); in testRun()
161 mMockListener.testRunEnded(EasyMock.anyLong(), EasyMock.capture(captureMetrics)); in testRun_withCollectors()
DInstrumentationTestTest.java169 inOrder.verify(mInstrumentationTest).setRunnerArgs(runner.capture()); in testRun()
491 verify(mInstrumentationTest).getTestReRunner(testCaptor.capture()); in testRun_rerunCoverage()
977 inOrder.verify(mInstrumentationTest).setRunnerArgs(runner.capture()); in testRun_withCollectors()
/tools/tradefederation/contrib/src/com/android/wireless/tests/
DWifiStressTest.java312 List<List<String>> capture = new ArrayList<>(1); in parseOutputFile() local
313 String key = test.mPatternMap.retrieve(capture, line); in parseOutputFile()
317 test.mTestName, key, capture.toString()); in parseOutputFile()
321 int count = Integer.parseInt(capture.get(0).get(0)); in parseOutputFile()
322 int total = Integer.parseInt(capture.get(0).get(1)); in parseOutputFile()
329 runMetrics.put(key, capture.get(0).get(0)); in parseOutputFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DJUnitToInvocationResultForwarderTest.java118 Capture<TestDescription> capture = new Capture<>(); in testStartTest_annotations() local
119 mListener.testStarted(EasyMock.capture(capture)); in testStartTest_annotations()
125 TestDescription desc = capture.getValue(); in testStartTest_annotations()
DJsonHttpTestResultReporterTest.java70 verify(mReporter).postResults(jsonCaptor.capture()); in testSkipFailedRuns_notSet()
86 verify(mReporter).postResults(jsonCaptor.capture()); in testSkipFailedRuns_set()
DBugreportCollectorTest.java353 listener.testEnded(EasyMock.eq(test), EasyMock.capture(mTestCapture)); in setListenerTestRunExpectations()
354 listener.testRunEnded(EasyMock.anyInt(), EasyMock.capture(mRunCapture)); in setListenerTestRunExpectations()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/
DProtoResultParserTest.java142 Capture<LogFile> capture = new Capture<>(); in testEvents() local
155 mMockListener.logAssociation(EasyMock.eq("subprocess-log1"), EasyMock.capture(capture)); in testEvents()
202 LogFile capturedFile = capture.getValue(); in testEvents()
409 Capture<LogFile> capture = new Capture<>(); in testEvents_subprocess() local
420 mMockListener.logAssociation(EasyMock.eq("subprocess-log1"), EasyMock.capture(capture)); in testEvents_subprocess()
479 LogFile capturedFile = capture.getValue(); in testEvents_subprocess()
/tools/tradefederation/contrib/src/com/android/graphics/tests/
DOpenGlPerformanceTest.java299 List<List<String>> capture = new ArrayList<>(1); in parseOutputFile() local
300 String key = mPatternMap.retrieve(capture, line); in parseOutputFile()
303 for (int i = 0; i < capture.size(); i++) { in parseOutputFile()
304 CLog.v("caputre.get[%d]: %s", i, capture.get(i).toString()); in parseOutputFile()
307 CLog.v("Retrieve key: %s, catpure: %s", key, capture.toString()); in parseOutputFile()
315 fps[iterationId] = Double.parseDouble(capture.get(0).get(0)); in parseOutputFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DGceSshTunnelMonitorTest.java112 ArgumentCaptor<String> capture = ArgumentCaptor.forClass(String.class); in testInitGce() local
123 Mockito.anyLong(), Mockito.anyLong(), Mockito.anyInt(), capture.capture()); in testInitGce()
124 List<String> args = capture.getAllValues(); in testInitGce()
/tools/tradefederation/contrib/src/com/android/media/tests/
DVideoEditingPerformanceTest.java220 List<List<String>> capture = new ArrayList<>(1); in parseOutputFile() local
221 String key = mPatternMap.retrieve(capture, line); in parseOutputFile()
224 capture.toString())); in parseOutputFile()
232 runMetrics.put(key, capture.get(0).get(0)); in parseOutputFile()
DMediaPlayerStressTest.java176 List<List<String>> capture = new ArrayList<>(1); in parseOutputFile() local
177 String key = mPatternMap.retrieve(capture, line); in parseOutputFile()
180 key, capture.toString())); in parseOutputFile()
188 runMetrics.put(key, capture.get(0).get(0)); in parseOutputFile()
DCameraStressTest.java286 List<List<String>> capture = new ArrayList<>(1); in parseOutputFile() local
287 String pattern = test.mPatternMap.retrieve(capture, line); in parseOutputFile()
291 countExpected = Integer.parseInt(capture.get(0).get(0)); in parseOutputFile()
294 countActual = Integer.parseInt(capture.get(0).get(0)); in parseOutputFile()
315 test.mTestName, key, capture.toString())); in parseOutputFile()
DCameraLatencyTest.java248 List<List<String>> capture = new ArrayList<>(1); in parseOutputFile() local
249 String key = test.mPatternMap.retrieve(capture, line); in parseOutputFile()
252 capture.toString()); in parseOutputFile()
261 runMetrics.put(key, capture.get(0).get(0)); in parseOutputFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DSubprocessTestResultsParserTest.java243 mockRunListener.invocationFailed((EasyMock.capture(cap))); in testParse_invocationFailed()
475 Capture<LogFile> capture = new Capture<>(); in testParse_logAssociation() local
476 mockRunListener.logAssociation(EasyMock.eq("dataname"), EasyMock.capture(capture)); in testParse_logAssociation()
498 LogFile received = capture.getValue(); in testParse_logAssociation()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceTest.java1805 EasyMock.capture(filesCapture), in testInstallPackages_default_runtimePermissionNotSupported()
1807 EasyMock.capture(optionsCapture), in testInstallPackages_default_runtimePermissionNotSupported()
1838 EasyMock.capture(filesCapture), in testInstallPackages_default_runtimePermissionSupported()
1840 EasyMock.capture(optionsCapture), in testInstallPackages_default_runtimePermissionSupported()
1868 EasyMock.capture(optionsCapture), in testInstallPackagesForUser_default_runtimePermissionNotSupported()
1904 EasyMock.capture(optionsCapture), in testInstallPackagesForUser_default_runtimePermissionSupported()
1938 EasyMock.capture(filesCapture), in testInstallPackages_default_timeout()
1940 EasyMock.capture(optionsCapture), in testInstallPackages_default_timeout()
1967 EasyMock.capture(filePathsCapture), in testInstallRemotePackages_default_runtimePermissionNotSupported()
1969 EasyMock.capture(optionsCapture), in testInstallRemotePackages_default_runtimePermissionNotSupported()
[all …]
/tools/tradefederation/contrib/tests/src/com/android/regression/tests/
DDetectRegressionTest.java153 runResultCaptor.capture(), in testRunRegressionDetection()
154 testResultCaptor.capture()); in testRunRegressionDetection()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DTestInvocationTest.java390 mMockBuildProvider.cleanUp(EasyMock.capture(captured)); in testInvoke_noBuild()
420 mMockBuildProvider.cleanUp(EasyMock.capture(captured)); in testInvoke_noBuildRetry()
634 EasyMock.expect(mockRescheduler.scheduleConfig(EasyMock.capture(capturedConfig))) in testInvoke_resume()
1227 mMockSummaryListener.putSummary(EasyMock.capture(mUriCapture)); in setupMockListeners()
1856 mMockTestListener.testRunEnded(EasyMock.anyLong(), EasyMock.capture(captured)); in testMetricCollectionChain()
1900 mMockTestListener.testRunEnded(EasyMock.anyLong(), EasyMock.capture(captured)); in testMetricCollectionChain_disabled()
1955 mMockTestListener.testRunEnded(EasyMock.anyLong(), EasyMock.capture(captured)); in testProcessorCollectionChain()
2007 mMockTestListener.testRunEnded(EasyMock.anyLong(), EasyMock.capture(captured)); in testProcessorCollectionChain_logSaver()

12