Home
last modified time | relevance | path

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

12

/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DBaseMetricListenerInstrumentedTest.java134 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testReportMetrics() local
137 SendToInstrumentation.INST_STATUS_IN_PROGRESS), capture.capture()); in testReportMetrics()
138 List<Bundle> capturedBundle = capture.getAllValues(); in testReportMetrics()
180 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testReportMetrics_withIncludeFilters() local
183 SendToInstrumentation.INST_STATUS_IN_PROGRESS), capture.capture()); in testReportMetrics_withIncludeFilters()
185 List<Bundle> capturedBundle = capture.getAllValues(); in testReportMetrics_withIncludeFilters()
228 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testReportMetrics_withIncludeFilters_multiGroup() local
231 SendToInstrumentation.INST_STATUS_IN_PROGRESS), capture.capture()); in testReportMetrics_withIncludeFilters_multiGroup()
233 List<Bundle> capturedBundle = capture.getAllValues(); in testReportMetrics_withIncludeFilters_multiGroup()
272 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testReportMetrics_withExcludeFilters() local
[all …]
DLogcatCollectorTest.java123 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testLogcatCollectionOnEveryTestEnd() local
126 SendToInstrumentation.INST_STATUS_IN_PROGRESS), capture.capture()); in testLogcatCollectionOnEveryTestEnd()
127 List<Bundle> capturedBundle = capture.getAllValues(); in testLogcatCollectionOnEveryTestEnd()
173 .getLogcatSince(captureFinalTime.capture(), Mockito.any(File.class)); in testLogcatCollectionWithBeforeDuration()
195 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testLogcatCollectionWithBeforeDuration() local
198 SendToInstrumentation.INST_STATUS_IN_PROGRESS), capture.capture()); in testLogcatCollectionWithBeforeDuration()
244 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testLogcatCollectionWithDirectoryOption() local
247 SendToInstrumentation.INST_STATUS_IN_PROGRESS), capture.capture()); in testLogcatCollectionWithDirectoryOption()
279 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testLogcatOnlyOnTestFailureOption() local
282 SendToInstrumentation.INST_STATUS_IN_PROGRESS), capture.capture()); in testLogcatOnlyOnTestFailureOption()
[all …]
DScreenshotOnFailureCollectorTest.java132 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testSavePngAsFile() local
135 SendToInstrumentation.INST_STATUS_IN_PROGRESS), capture.capture()); in testSavePngAsFile()
136 List<Bundle> capturedBundle = capture.getAllValues(); in testSavePngAsFile()
168 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testSaveUixAsFile() local
172 capture.capture()); in testSaveUixAsFile()
173 List<Bundle> capturedBundle = capture.getAllValues(); in testSaveUixAsFile()
205 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testNoUixWithoutOption() local
209 capture.capture()); in testNoUixWithoutOption()
210 List<Bundle> capturedBundle = capture.getAllValues(); in testNoUixWithoutOption()
DGcaEventLogCollectorTest.java103 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testGcaEventLogCollectionOnTestEnd_includeFailure() local
107 capture.capture()); in testGcaEventLogCollectionOnTestEnd_includeFailure()
108 List<Bundle> capturedBundle = capture.getAllValues(); in testGcaEventLogCollectionOnTestEnd_includeFailure()
159 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testGcaEventLogCollectOnTestEnd_skipFailure() local
163 capture.capture()); in testGcaEventLogCollectOnTestEnd_skipFailure()
164 List<Bundle> capturedBundle = capture.getAllValues(); in testGcaEventLogCollectOnTestEnd_skipFailure()
DBatteryStatsListenerTest.java170 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testTestRunToBytesCollector() local
173 SendToInstrumentation.INST_STATUS_IN_PROGRESS), capture.capture()); in testTestRunToBytesCollector()
174 List<Bundle> capturedBundle = capture.getAllValues(); in testTestRunToBytesCollector()
216 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testTestCaseCollector() local
219 SendToInstrumentation.INST_STATUS_IN_PROGRESS), capture.capture()); in testTestCaseCollector()
220 List<Bundle> capturedBundle = capture.getAllValues(); in testTestCaseCollector()
DScreenRecordCollectorTest.java151 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testScreenRecord() local
155 capture.capture()); in testScreenRecord()
156 List<Bundle> capturedBundle = capture.getAllValues(); in testScreenRecord()
326 ArgumentCaptor<Bundle> capture = ArgumentCaptor.forClass(Bundle.class); in testNullMethodNameDoesNotAppearInVideoName() local
330 capture.capture()); in testNullMethodNameDoesNotAppearInVideoName()
331 Bundle metrics = capture.getValue(); in testNullMethodNameDoesNotAppearInVideoName()
/platform_testing/libraries/audio-test-harness/proto/
Daudio_test_harness_service.proto25 // for capture and playback by the DUT using external, independent devices on
28 // Initiates a capture from a host audio device and streams back the resulting
33 // A request from the client to start a new capture.
35 // If the capture is started successfully, the host will return a series of
39 // A chunk of capture data sent by the host to the client.
Daudio_device.proto29 // Indicates that a given device can capture audio.
Daudio_format.proto31 // The desired number of channels to capture, by default 1.
/platform_testing/libraries/motion/compose/src/platform/test/motion/compose/
DComposeFeatureCaptures.kt70 capture: FeatureCapture<SemanticsNode, *>, in TimeSeriesCaptureScope()
71 name: String = capture.name, in TimeSeriesCaptureScope()
80 feature(capture, name) in TimeSeriesCaptureScope()
DMotionTestValues.kt71 capture: FeatureCapture<T, *>, in feature()
77 FeatureCapture(name) { capture.capture(it.get(motionTestValueKey)) }, in feature()
/platform_testing/libraries/motion/src/platform/test/motion/golden/
DTimeSeriesCapture.kt28 fun capture(observed: T) = captureFn(observed) in capture() method in platform.test.motion.golden.FeatureCapture
47 val dataPoint = if (observing != null) using.capture(observing) else DataPoint.notFound() in capture()
/platform_testing/libraries/motion/compose/tests/src/platform/test/motion/compose/
DComposeFeatureCapturesTest.kt59 assertThat(ComposeFeatureCaptures.dpSize.capture(semanticsNode)) in dpSize_capturesDataPoint()
68 assertThat(ComposeFeatureCaptures.size.capture(semanticsNode)) in size_capturesDataPoint()
81 assertThat(ComposeFeatureCaptures.positionInRoot.capture(semanticsNode)) in positionInRoot_capturesDataPoint()
99 assertThat(ComposeFeatureCaptures.alpha.capture(semanticsNode)).hasNativeValue(0.5f) in alpha_capturesDataPoint()
112 ComposeFeatureCaptures.alpha.capture(semanticsNode) in alpha_withoutExport_throws()
/platform_testing/host_runners/utils/tests/src/com/android/runner/utils/
DInstrumentationResultProtoParserTest.java275 inOrder.verify(mMockListener).testEnded(Mockito.eq(td), captureTestMetrics.capture()); in testOneTestSuccessWithMetrics()
280 verify(mMockListener).testEnded(Mockito.eq(td), captureTestMetrics.capture()); in testOneTestSuccessWithMetrics()
325 verify(mMockListener1).testEnded(Mockito.eq(td), captureListener1Metrics.capture()); in testOneTestSuccessWithMultipleListeners()
332 verify(mMockListener2).testEnded(Mockito.eq(td), captureListener2Metrics.capture()); in testOneTestSuccessWithMultipleListeners()
362 inOrder.verify(mMockListener).testRunEnded(Mockito.eq(27013L), captureRunMetrics.capture()); in testOneRunSuccessWithMetrics()
367 verify(mMockListener).testRunEnded(Mockito.eq(27013L), captureRunMetrics.capture()); in testOneRunSuccessWithMetrics()
391 inOrder.verify(mMockListener).testEnded(Mockito.eq(td), captureTestMetrics.capture()); in testOneTestAndRunSuccessWithMetrics()
392 inOrder.verify(mMockListener).testRunEnded(Mockito.eq(27013L), captureRunMetrics.capture()); in testOneTestAndRunSuccessWithMetrics()
396 verify(mMockListener).testEnded(Mockito.eq(td), captureTestMetrics.capture()); in testOneTestAndRunSuccessWithMetrics()
397 verify(mMockListener).testRunEnded(Mockito.eq(27013L), captureRunMetrics.capture()); in testOneTestAndRunSuccessWithMetrics()
[all …]
/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/service/
DAudioTestHarnessImplTests.java126 mBlockingStub.capture(AudioTestHarnessService.CaptureRequest.getDefaultInstance()); in capture_properlyAllocatesDefaultCapturer()
134 mBlockingStub.capture(AudioTestHarnessService.CaptureRequest.getDefaultInstance()); in capture_properlyCreatesCaptureSession()
169 mStub.capture( in capture_callsStopOnSessionWhenCanceled()
189 mBlockingStub.capture(AudioTestHarnessService.CaptureRequest.getDefaultInstance()); in capture_properlyStartsCaptureSession()
205 .capture(AudioTestHarnessService.CaptureRequest.getDefaultInstance()) in capture_throwsProperStatusException_failureToOpenCapturer()
221 .capture(AudioTestHarnessService.CaptureRequest.getDefaultInstance()) in capture_throwsProperStatusException_failureToStartCapturer()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/
DColorUtils.kt25 val screenshot: Bitmap = Screenshot.capture().bitmap in <lambda>()
54 fun UiDevice.hasBlackScreen(): Boolean = Screenshot.capture().bitmap.isBlack() in darkerThan()
/platform_testing/libraries/motion/tests/src/platform/test/motion/view/
DViewToolkitTest.kt33 import platform.test.motion.view.ViewRecordingSpec.Companion.capture in <lambda>()
67 sceneRoot.capture(evenlySampled(10)) { in <lambda>()
97 val recordedMotion = motionRule.record(animator, sceneRoot.capture(evenlySampled(10)) {}) in <lambda>()
/platform_testing/libraries/motion/src/platform/test/motion/view/
DViewToolkit.kt69 fun <T> T.capture( in <lambda>() method
87 fun <T : View> T.capture( in <lambda>() method
91 capture( in <lambda>()
/platform_testing/libraries/audio-test-harness/client-lib/src/test/java/com/android/media/audiotestharness/client/grpc/
DAudioTestHarnessTestImpl.java39 public void capture( in capture() method in AudioTestHarnessTestImpl
DGrpcAudioTestHarnessClientTests.java107 .newStream(audioTestHarnessStubArgumentCaptor.capture()); in startCapture_createsNewStubWithProperChannel()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DScreenshotAsserter.kt55 val captureStrategy: BitmapSupplier = { Screenshot.capture().bitmap } in <lambda>()
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DClassMetricRuleTest.java76 verify(mMockInstrumentation, times(2)).addResults(addResultsCaptor.capture()); in testRunsSpecifiedCollectorsAndReportRunMetrics()
98 verify(mMockInstrumentation, times(1)).addResults(addResultsCaptor.capture()); in testUsesTestCallbackRatherThanRunCallback()
DDex2oatPressureRuleTest.java118 .runCompileCommand(compiledPackages.capture(), any(String.class)); in testInvokesCompilationCyclically()
169 compiledPackagesWhenTestEnded.capture(), in testNoAdditionalCompilationIsTriggeredAfterTestFinishes()
180 .runCompileCommand(compiledPackagesWhenRuleReturns.capture(), any(String.class)); in testNoAdditionalCompilationIsTriggeredAfterTestFinishes()
308 verify(rule, atLeastOnce()).runCompileCommand(compiledInTest1.capture(), any(String.class)); in testMultipleTestsParsePackageNamesIndependently()
316 .runCompileCommand(compiledInBothTests.capture(), any(String.class)); in testMultipleTestsParsePackageNamesIndependently()
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/
DLongevityClassRunnerTest.java367 verify(mRunner, times(1)).invokeAndCollectErrors(methodsCaptor.capture(), any()); in testAfterClass_runAsAfterForPassingTest()
393 verify(mRunner, times(1)).invokeAndCollectErrors(methodsCaptor.capture(), any()); in testAfterClass_runAsAfterClassForFailingTest()
439 verify(notifier).fireTestStarted(captor.capture()); in testReportIteration_noIterationSet()
459 verify(notifier).fireTestStarted(captor.capture()); in testReportIteration_withIteration_withDefaultSeparator()
481 verify(notifier).fireTestStarted(captor.capture()); in testReportIteration_withIteration_withCustomSeparator()
569 verify(notifier, atLeastOnce()).fireTestFailure(failureCaptor.capture()); in verifyForAssertionFailures()
/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/javasound/
DJavaAudioCapturerTests.java147 verify(mExecutor).execute(runnableArgCaptor.capture()); in attachOutput_attachesOutputSuccessfully_outputStream()
187 verify(mExecutor).execute(runnableArgCaptor.capture()); in attachOutput_attachesOutputSuccessfully_file()
209 verify(mExecutor).execute(runnableArgCaptor.capture()); in close_stopsPublisherAsExpected()

12