/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/report/ |
D | ScubaExportStrategyTest.kt | 62 val subject = ExportToScubaStrategy(GoldenPathManager(context, pathConfig = PathConfig())) in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement() constant 64 assertThat(subject.getPathOnDeviceFor(IMAGE_ACTUAL).name) in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement() 66 assertThat(subject.getPathOnDeviceFor(IMAGE_EXPECTED).name) in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement() 68 assertThat(subject.getPathOnDeviceFor(IMAGE_DIFF).name) in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement() 70 assertThat(subject.getPathOnDeviceFor(RESULT_PROTO).name) in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement() 72 assertThat(subject.getPathOnDeviceFor(RESULT_BIN_PROTO).name) in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement() 79 val subject = ExportToScubaStrategy(GoldenPathManager(context, pathConfig = pathConfig)) in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement() constant 81 assertThat(subject.getPathOnDeviceFor(IMAGE_ACTUAL).name) in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement() 83 assertThat(subject.getPathOnDeviceFor(IMAGE_EXPECTED).name) in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement() 85 assertThat(subject.getPathOnDeviceFor(IMAGE_DIFF).name) in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement() [all …]
|
/platform_testing/libraries/motion/tests/src/platform/test/motion/view/ |
D | AnimationSamplingTest.kt | 33 val subject = evenlySampled(1, sampleAtStart = false, sampleAtEnd = false) in evenlySampled_1_inMiddle() constant 34 assertThat(subject.sampleAt).allowTolerance().containsExactly(1 / 2f).inOrder() in evenlySampled_1_inMiddle() 39 val subject = evenlySampled(1, sampleAtStart = true, sampleAtEnd = false) in evenlySampled_1_atStart() constant 40 assertThat(subject.sampleAt).allowTolerance().containsExactly(0f).inOrder() in evenlySampled_1_atStart() 45 val subject = evenlySampled(1, sampleAtStart = false, sampleAtEnd = true) in evenlySampled_1_atEnd() constant 46 assertThat(subject.sampleAt).allowTolerance().containsExactly(1f).inOrder() in evenlySampled_1_atEnd() 58 val subject = evenlySampled(2, sampleAtStart = false, sampleAtEnd = false) in evenlySampled_2_inMiddle() constant 59 assertThat(subject.sampleAt).allowTolerance().containsExactly(1 / 3f, 2 / 3f).inOrder() in evenlySampled_2_inMiddle() 64 val subject = evenlySampled(2, sampleAtStart = true, sampleAtEnd = false) in evenlySampled_2_atStart() constant 65 assertThat(subject.sampleAt).allowTolerance().containsExactly(0f, 1 / 2f).inOrder() in evenlySampled_2_atStart() [all …]
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/events/ |
D | EventLogSubjectTest.kt | 17 package android.tools.flicker.subject.events 82 val subject = subjectsParser.eventLogSubject ?: error("Event log subject not built") in canDetectFocusChanges() constant 83 subject.focusChanges("WinA", "WinB", "WinC") in canDetectFocusChanges() 84 subject.focusChanges("WinA", "WinB") in canDetectFocusChanges() 85 subject.focusChanges("WinB", "WinC") in canDetectFocusChanges() 86 subject.focusChanges("WinA") in canDetectFocusChanges() 87 subject.focusChanges("WinB") in canDetectFocusChanges() 88 subject.focusChanges("WinC") in canDetectFocusChanges() 97 val subject = subjectsParser.eventLogSubject ?: error("Event log subject not built") in canDetectFocusDoesNotChange() constant 98 subject.focusDoesNotChange() in canDetectFocusDoesNotChange()
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/surfaceflinger/ |
D | LayerTraceEntrySubjectTest.kt | 17 package android.tools.flicker.subject.surfaceflinger 22 import android.tools.flicker.subject.layers.LayerTraceEntrySubject 23 import android.tools.flicker.subject.layers.LayersTraceSubject 193 val subject = LayerTraceEntrySubject(layerTraceEntry) in orComponentMatcher_visibility_oneVisibleOtherInvisible() constant 199 subject.isVisible(ComponentNameMatcher(app1Name)) in orComponentMatcher_visibility_oneVisibleOtherInvisible() 200 subject.isInvisible(ComponentNameMatcher(app2Name)) in orComponentMatcher_visibility_oneVisibleOtherInvisible() 202 subject.isInvisible(component) in orComponentMatcher_visibility_oneVisibleOtherInvisible() 203 subject.isVisible(component) in orComponentMatcher_visibility_oneVisibleOtherInvisible() 223 val subject = LayerTraceEntrySubject(layerTraceEntry) in orComponentMatcher_visibility_oneVisibleOtherMissing() constant 229 subject.isVisible(ComponentNameMatcher(app1Name)) in orComponentMatcher_visibility_oneVisibleOtherMissing() [all …]
|
D | LayerSubjectTest.kt | 17 package android.tools.flicker.subject.surfaceflinger 21 import android.tools.flicker.subject.layers.LayerSubject 22 import android.tools.flicker.subject.layers.LayersTraceSubject
|
D | LayersTraceSubjectTest.kt | 17 package android.tools.flicker.subject.surfaceflinger in <lambda>() 25 import android.tools.flicker.subject.layers.LayersTraceSubject in <lambda>() 26 import android.tools.flicker.subject.region.RegionSubject in <lambda>() 275 val subject = LayersTraceSubject(trace, reader).last() in <lambda>() constant 278 subject.visibleRegion(TestComponents.FIXED_APP).coversExactly(DISPLAY_REGION_ROTATED) in <lambda>() 283 val pipRegion = subject.visibleRegion(TestComponents.PIP_APP).region in <lambda>() 285 subject.visibleRegion(TestComponents.FIXED_APP).coversExactly(expectedWithoutPip) in <lambda>() 293 val subject = LayersTraceSubject(trace, reader).last() in <lambda>() constant 294 val pipRegion = subject.visibleRegion(TestComponents.PIP_APP).region in <lambda>() 295 subject in <lambda>() [all …]
|
/platform_testing/libraries/motion/tests/src/platform/test/motion/golden/ |
D | DataPointTypeTest.kt | 31 private val subject = in <lambda>() constant in platform.test.motion.golden.DataPointTypeTest 48 assertThat(subject.makeDataPoint(null)).isEqualTo(nullValue<Native>()) in <lambda>() 54 val dataPoint = subject.makeDataPoint(nativeValue) in <lambda>() 59 assertThat(valueDataPoint.type).isSameInstanceAs(subject) in <lambda>() 64 val dataPoint = subject.fromJson(JSONObject.NULL) in <lambda>() 72 val dataPoint = subject.fromJson(NotFoundDataPoint.instance.asJson()) in <lambda>() 80 val dataPoint = subject.fromJson("one") in <lambda>() 85 assertThat(valueDataPoint.type).isSameInstanceAs(subject) in <lambda>() 91 val json = subject.toJson(Native("one")) in <lambda>()
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/assertions/ |
D | TestSubjectsParser.kt | 19 import android.tools.flicker.subject.events.EventLogSubject 20 import android.tools.flicker.subject.layers.LayerTraceEntrySubject 21 import android.tools.flicker.subject.layers.LayersTraceSubject 22 import android.tools.flicker.subject.wm.WindowManagerStateSubject 23 import android.tools.flicker.subject.wm.WindowManagerTraceSubject
|
D | BaseSubjectsParserTestParse.kt | 21 import android.tools.flicker.subject.FlickerSubject 22 import android.tools.flicker.subject.FlickerTraceSubject 67 val subject = doParseTrace(parser) ?: error("$subjectName not built") in parseTraceSubject() constant 69 Truth.assertWithMessage(subjectName).that(subject.subjects).isNotEmpty() in parseTraceSubject() 71 .that(getTime(subject.subjects.first().timestamp)) in parseTraceSubject() 74 .that(getTime(subject.subjects.last().timestamp)) in parseTraceSubject() 94 val subject = doParseTrace(parser) in readTraceNullWhenDoesNotExist() constant 96 Truth.assertWithMessage(subjectName).that(subject).isNull() in readTraceNullWhenDoesNotExist() 104 val subject = doParseState(parser, tag) ?: error("$subjectName tag=$tag not built") in doParseStateSubjectAndValidate() constant 107 .that(getTime(subject.timestamp)) in doParseStateSubjectAndValidate()
|
D | AssertionDataFactoryTest.kt | 20 import android.tools.flicker.subject.layers.LayerTraceEntrySubject 21 import android.tools.flicker.subject.layers.LayersTraceSubject 22 import android.tools.flicker.subject.wm.WindowManagerStateSubject 23 import android.tools.flicker.subject.wm.WindowManagerTraceSubject
|
/platform_testing/libraries/flicker/src/android/tools/flicker/assertions/ |
D | FlickerTest.kt | 19 import android.tools.flicker.subject.events.EventLogSubject 20 import android.tools.flicker.subject.layers.LayerTraceEntrySubject 21 import android.tools.flicker.subject.layers.LayersTraceSubject 22 import android.tools.flicker.subject.region.RegionTraceSubject 23 import android.tools.flicker.subject.wm.WindowManagerStateSubject 24 import android.tools.flicker.subject.wm.WindowManagerTraceSubject
|
D | AssertionDataImpl.kt | 19 import android.tools.flicker.subject.FlickerSubject 32 val subject = run.getSubjectOfType(tag, expectedSubjectClass) in checkAssertion() constant 33 subject?.let { assertion(it) } in checkAssertion()
|
D | AssertionFactory.kt | 20 import android.tools.flicker.subject.FlickerSubject 21 import android.tools.flicker.subject.FlickerTraceSubject 22 import android.tools.flicker.subject.events.EventLogSubject 23 import android.tools.flicker.subject.layers.LayerTraceEntrySubject 24 import android.tools.flicker.subject.layers.LayersTraceSubject 25 import android.tools.flicker.subject.region.RegionTraceSubject 26 import android.tools.flicker.subject.wm.WindowManagerStateSubject 27 import android.tools.flicker.subject.wm.WindowManagerTraceSubject
|
D | BaseFlickerTest.kt | 19 import android.tools.flicker.subject.events.EventLogSubject 20 import android.tools.flicker.subject.layers.LayerTraceEntrySubject 21 import android.tools.flicker.subject.layers.LayersTraceSubject 22 import android.tools.flicker.subject.region.RegionTraceSubject 23 import android.tools.flicker.subject.wm.WindowManagerStateSubject 24 import android.tools.flicker.subject.wm.WindowManagerTraceSubject
|
D | SubjectsParser.kt | 20 import android.tools.flicker.subject.FlickerSubject 21 import android.tools.flicker.subject.events.EventLogSubject 22 import android.tools.flicker.subject.layers.LayerTraceEntrySubject 23 import android.tools.flicker.subject.layers.LayersTraceSubject 24 import android.tools.flicker.subject.wm.WindowManagerStateSubject 25 import android.tools.flicker.subject.wm.WindowManagerTraceSubject
|
D | AssertionDataFactory.kt | 20 import android.tools.flicker.subject.FlickerSubject 21 import android.tools.flicker.subject.FlickerTraceSubject
|
D | ReaderAssertionRunner.kt | 19 import android.tools.flicker.subject.exceptions.FlickerAssertionError 20 import android.tools.flicker.subject.exceptions.FlickerAssertionWrapperError
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/wm/ |
D | WindowManagerStateSubjectTest.kt | 17 package android.tools.flicker.subject.wm 89 val subject = in canDetectAboveAppWindowVisibility_isInvisible() constant 93 subject in canDetectAboveAppWindowVisibility_isInvisible() 99 subject in canDetectAboveAppWindowVisibility_isInvisible() 126 val subject = in canDetectWindowCoversAtLeastRegion_largerRegion() constant 130 subject in canDetectWindowCoversAtLeastRegion_largerRegion() 136 subject.visibleRegion(TestComponents.LAUNCHER).coversAtLeast(Region(0, 0, 1440, 2961)) in canDetectWindowCoversAtLeastRegion_largerRegion() 152 val subject = in canDetectWindowCoversExactlyRegion_smallerRegion() constant 156 subject in canDetectWindowCoversExactlyRegion_smallerRegion() 162 subject.visibleRegion(TestComponents.LAUNCHER).coversAtMost(Region(0, 0, 100, 100)) in canDetectWindowCoversExactlyRegion_smallerRegion() [all …]
|
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/ |
D | AppLayerRemainInsideDisplayBounds.kt | 31 containsAtLeastOneDisplay().invoke("appLayerRemainInsideDisplayBounds") { subject -> in <lambda>() method 32 subject.entry.displays.forEach { display -> in <lambda>() 33 subject in <lambda>()
|
/platform_testing/libraries/motion/tests/src/platform/test/motion/ |
D | MotionTestRuleTest.kt | 42 private val subject = MotionTestRule(Unit, goldenPathManager) constant 54 assertThat(subject.readGoldenTimeSeries("empty_timeseries", emptyMap())) in readGoldenTimeSeries_withExistingGolden_returnsParsedJson() 62 subject.readGoldenTimeSeries("no_golden", emptyMap()) in readGoldenTimeSeries_withUnavailableGolden_throwsGoldenNotFoundException() 70 subject.readGoldenTimeSeries("invalid_json_data", emptyMap()) in readGoldenTimeSeries_withInvalidJsonFile_throwsJSONException() 76 subject.writeGeneratedTimeSeries( in writeGeneratedTimeSeries_createsFile() 89 subject.writeGeneratedTimeSeries( in writeGeneratedTimeSeries_writesTimeSeries() 111 subject.writeGeneratedTimeSeries( in writeGeneratedTimeSeries_includesMetadata() 137 subject.writeGeneratedTimeSeries( in writeGeneratedTimeSeries_withScreenshots_writesVideoAndIncludesMetadata() 178 subject.writeGeneratedTimeSeries( in writeGeneratedTimeSeries_withInvalidIdentifier_throws()
|
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/ |
D | GoldenPathManagerTest.kt | 33 val subject = GoldenPathManager(InstrumentationRegistry.getInstrumentation().context) in goldenImageIdentifierResolver_appendsPng() constant 35 val localGoldenFullImagePath = subject.goldenImageIdentifierResolver(testName = "test1") in goldenImageIdentifierResolver_appendsPng() 42 val subject = in goldenIdentifierResolver_includesPathConfig() constant 48 subject.goldenIdentifierResolver(testName = "test1", extension = "png").split("/") in goldenIdentifierResolver_includesPathConfig() 55 val subject = GoldenPathManager(context) in goldenIdentifierResolver_allowsOverrideFileExtension() constant 56 val result = subject.goldenIdentifierResolver(testName = "test1", extension = "proto") in goldenIdentifierResolver_allowsOverrideFileExtension()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/wm/ |
D | WindowStateSubject.kt | 17 package android.tools.flicker.subject.wm 21 import android.tools.flicker.subject.FlickerSubject 22 import android.tools.flicker.subject.region.RegionSubject
|
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/events/ |
D | EventLogSubject.kt | 17 package android.tools.flicker.subject.events in <lambda>() 21 import android.tools.flicker.subject.FlickerSubject in <lambda>() 22 import android.tools.flicker.subject.exceptions.ExceptionMessageBuilder in <lambda>() 23 import android.tools.flicker.subject.exceptions.IncorrectFocusException in <lambda>()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/io/ |
D | ResultArtifactDescriptorTest.kt | 61 val subject = in createDescriptorAndValidateFileNameWithTag() constant 63 subject.startsWith(tag) in createDescriptorAndValidateFileNameWithTag() 64 subject.endsWith(traceType.fileName) in createDescriptorAndValidateFileNameWithTag()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/inputmethod/ |
D | InputMethodServiceEntrySubject.kt | 17 package android.tools.flicker.subject.inputmethod 19 import android.tools.flicker.subject.FlickerSubject
|