/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | BaseMetricListenerInstrumentedTest.java | 134 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 …]
|
D | LogcatCollectorTest.java | 123 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 …]
|
D | ScreenshotOnFailureCollectorTest.java | 132 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()
|
D | GcaEventLogCollectorTest.java | 103 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()
|
D | BatteryStatsListenerTest.java | 170 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()
|
D | ScreenRecordCollectorTest.java | 151 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/ |
D | audio_test_harness_service.proto | 25 // 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.
|
D | audio_device.proto | 29 // Indicates that a given device can capture audio.
|
D | audio_format.proto | 31 // The desired number of channels to capture, by default 1.
|
/platform_testing/libraries/motion/compose/src/platform/test/motion/compose/ |
D | ComposeFeatureCaptures.kt | 70 capture: FeatureCapture<SemanticsNode, *>, in TimeSeriesCaptureScope() 71 name: String = capture.name, in TimeSeriesCaptureScope() 80 feature(capture, name) in TimeSeriesCaptureScope()
|
D | MotionTestValues.kt | 71 capture: FeatureCapture<T, *>, in feature() 77 FeatureCapture(name) { capture.capture(it.get(motionTestValueKey)) }, in feature()
|
/platform_testing/libraries/motion/src/platform/test/motion/golden/ |
D | TimeSeriesCapture.kt | 28 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/ |
D | ComposeFeatureCapturesTest.kt | 59 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/ |
D | InstrumentationResultProtoParserTest.java | 275 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/ |
D | AudioTestHarnessImplTests.java | 126 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/ |
D | ColorUtils.kt | 25 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/ |
D | ViewToolkitTest.kt | 33 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/ |
D | ViewToolkit.kt | 69 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/ |
D | AudioTestHarnessTestImpl.java | 39 public void capture( in capture() method in AudioTestHarnessTestImpl
|
D | GrpcAudioTestHarnessClientTests.java | 107 .newStream(audioTestHarnessStubArgumentCaptor.capture()); in startCapture_createsNewStubWithProperChannel()
|
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/ |
D | ScreenshotAsserter.kt | 55 val captureStrategy: BitmapSupplier = { Screenshot.capture().bitmap } in <lambda>()
|
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/ |
D | ClassMetricRuleTest.java | 76 verify(mMockInstrumentation, times(2)).addResults(addResultsCaptor.capture()); in testRunsSpecifiedCollectorsAndReportRunMetrics() 98 verify(mMockInstrumentation, times(1)).addResults(addResultsCaptor.capture()); in testUsesTestCallbackRatherThanRunCallback()
|
D | Dex2oatPressureRuleTest.java | 118 .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/ |
D | LongevityClassRunnerTest.java | 367 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/ |
D | JavaAudioCapturerTests.java | 147 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()
|