Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 59) sorted by relevance

123

/platform_testing/libraries/motion/tests/src/platform/test/motion/truth/
DTimeSeriesSubjectTest.kt52 val expected = createTimeSeries(2) in <lambda>() constant
54 expected.copy(frameIds = listOf(expected.frameIds[0], SupplementalFrameId("x"))) in <lambda>()
56 with(assertThrows { assertThat(actual).isEqualTo(expected) }) { in <lambda>()
69 val expected = createTimeSeries(3) in <lambda>() constant
72 with(assertThrows { assertThat(actual).isEqualTo(expected) }) { in <lambda>()
85 val expected = createTimeSeries(1) in <lambda>() constant
88 with(assertThrows { assertThat(actual).isEqualTo(expected) }) { in <lambda>()
101 val expected = createTimeSeries(2) in <lambda>() constant
103 expected.copy( in <lambda>()
106 putAll(expected.features) in <lambda>()
[all …]
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/matchers/
DAlmostPerfectMatcherTest.kt31 val expected = rgb(200, 200, 5) in diffColor_exactMatch() constant
36 expected = intArrayOf(expected), in diffColor_exactMatch()
49 val expected = rgb(200, 200, 5) in diffColor_almostMatchLowRed() constant
54 expected = intArrayOf(expected), in diffColor_almostMatchLowRed()
67 val expected = rgb(200, 200, 200) in diffColor_almostMatchHighRed() constant
72 expected = intArrayOf(expected), in diffColor_almostMatchHighRed()
85 val expected = rgb(200, 200, 200) in diffColor_notMatch() constant
90 expected = intArrayOf(expected), in diffColor_notMatch()
109 expected = first.toIntArray(), in performDiff_sameBitmaps()
127 expected = first.toIntArray(), in performDiff_sameSize_partialCompare_checkDiffImage()
DHumanEyeMatcherTest.kt17 val expected = rgb(5, 200, 200) in <lambda>() constant
22 expected = intArrayOf(expected), in <lambda>()
34 val expected = rgb(5, 200, 200) in <lambda>() constant
39 expected = intArrayOf(expected), in <lambda>()
51 val expected = rgb(200, 200, 200) in <lambda>() constant
56 expected = intArrayOf(expected), in <lambda>()
68 val expected = rgb(200, 200, 200) in <lambda>() constant
73 expected = intArrayOf(expected), in <lambda>()
90 expected = first.toIntArray(), in <lambda>()
106 expected = first, in <lambda>()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/
DTraceParserTest.kt149 private fun testSliceUsingElapsedTimestamp(from: Long, to: Long, expected: List<Timestamp>) { in testSliceUsingElapsedTimestamp()
150 return testSliceUsingElapsedTimestamp(from, to, expected.map { it.elapsedNanos }) in testSliceUsingElapsedTimestamp()
157 expected: List<Timestamp> in testSliceUsingElapsedTimestamp()
159 return testSliceUsingElapsedTimestamp(from, to, expected.map { it.elapsedNanos }) in testSliceUsingElapsedTimestamp()
165 expected: List<Timestamp> in testSliceUsingElapsedTimestamp()
167 return testSliceUsingElapsedTimestamp(from, to, expected.map { it.elapsedNanos }) in testSliceUsingElapsedTimestamp()
171 private fun testSliceUsingElapsedTimestamp(from: Long, to: Timestamp?, expected: List<Long>) { in testSliceUsingElapsedTimestamp()
175 expected in testSliceUsingElapsedTimestamp()
183 expected: List<Timestamp> in testSliceUsingElapsedTimestamp()
188 expected.map { it.elapsedNanos } in testSliceUsingElapsedTimestamp()
[all …]
/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/junit/
DFlagsParameterizationTest.java55 @Test(expected = UnsupportedOperationException.class)
75 List<FlagsParameterization> expected = List.of(new FlagsParameterization(Map.of())); in allCombinationsWith0Flags() local
76 assertEquals(expected, actual); in allCombinationsWith0Flags()
82 List<FlagsParameterization> expected = in allCombinationsWith1Flags() local
86 assertEquals(expected, actual); in allCombinationsWith1Flags()
92 List<FlagsParameterization> expected = in allCombinationsWith2Flags() local
98 assertEquals(expected, actual); in allCombinationsWith2Flags()
104 List<FlagsParameterization> expected = in allCombinationsWith3Flags() local
114 assertEquals(expected, actual); in allCombinationsWith3Flags()
120 List<FlagsParameterization> expected = List.of(new FlagsParameterization(Map.of())); in progressionWith0Flags() local
[all …]
/platform_testing/libraries/motion/src/platform/test/motion/truth/
DTimeSeriesSubject.kt33 override fun isEqualTo(expected: Any?) { in <lambda>()
34 if (actual is TimeSeries && expected is TimeSeries) { in <lambda>()
35 val facts = compareTimeSeries(expected, actual) in <lambda>()
40 super.isEqualTo(expected) in <lambda>()
44 private fun compareTimeSeries(expected: TimeSeries, actual: TimeSeries) = in <lambda>()
47 if (actual.frameIds != expected.frameIds) { in <lambda>()
49 add(fact("| expected", expected.frameIds.map { it.label })) in <lambda>()
53 val expectedFrameIds = expected.frameIds.toSet() in <lambda>()
67 actual.frameIds.indexOf(it) to expected.frameIds.indexOf(it) in <lambda>()
74 if (actual.features.keys != expected.features.keys) { in <lambda>()
[all …]
/platform_testing/libraries/motion/src/platform/test/motion/testing/
DJsonSubject.kt36 override fun isEqualTo(expected: Any?) { in <lambda>()
37 if (actual is JSONObject && expected is JSONObject) { in <lambda>()
40 .isEqualTo(expected.toString(PRETTY_PRINT_INDENT)) in <lambda>()
41 } else if (actual is JSONArray && expected is JSONArray) { in <lambda>()
44 .isEqualTo(expected.toString(PRETTY_PRINT_INDENT)) in <lambda>()
46 super.isEqualTo(expected) in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/layers/
DLayerSubject.kt81 fun hasBufferSize(expected: Size): LayerSubject = apply { in <lambda>()
83 check { "Buffer size" }.that(bufferSize).isEqual(expected) in <lambda>()
91 fun hasLayerSize(expected: Size): LayerSubject = apply { in <lambda>()
94 check { "Number of layers" }.that(layerSize).isEqual(expected) in <lambda>()
98 fun hasScalingMode(expected: Int): LayerSubject = apply { in <lambda>()
99 check { "Scaling mode" }.that(layer.effectiveScalingMode).isEqual(expected) in <lambda>()
105 fun hasBufferOrientation(expected: Int): LayerSubject = apply { in <lambda>()
109 check { "Buffer orientation" }.that(actualOrientation).isEqual(expected) in <lambda>()
/platform_testing/libraries/sts-common-util/sts-sdk/package/native-poc/src/
Dnative-sample.cpp10 std::string expected = "memory_corrupt"; in main() local
11 if (expected.compare(argv[1]) != 0) { in main()
30 std::string expected = "secure"; in main() local
31 if (expected.compare(argv[2]) != 0) { in main()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DScreenshotTestRule.kt178 val expected = fetchExpectedImage(goldenIdentifier) in <lambda>() constant
179 if (expected == null) { in <lambda>()
193 if (actual.width != expected.width || actual.height != expected.height) { in <lambda>()
196 expected = expected.toIntArray(), in <lambda>()
198 expectedWidth = expected.width, in <lambda>()
199 expectedHeight = expected.height, in <lambda>()
209 expected = expected, in <lambda>()
213 val expectedWidth = expected.width in <lambda>()
214 val expectedHeight = expected.height in <lambda>()
215 expected.recycle() in <lambda>()
[all …]
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/matchers/
DPixelPerfectMatcher.kt29 expected: IntArray, in <lambda>()
35 check(expected.size == given.size) in <lambda>()
44 expected.indices.forEach { index -> in <lambda>()
47 expected[index] == given[index] -> same++ in <lambda>()
DAlmostPerfectMatcher.kt39 expected: IntArray, in <lambda>()
45 check(expected.size == given.size) { "Size of two bitmaps does not match" } in <lambda>()
54 expected.indices.forEach { index -> in <lambda>()
57 areSame(expected[index], given[index]) -> same++ in <lambda>()
86 expected: IntArray, in <lambda>()
105 if (areSame(expected[expectedIndex], given[actualIndex])) { in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/exceptions/
DExceptionMessageBuilder.kt28 private var expected = "" variable
58 fun setExpected(value: Any?) = apply { expected = value?.toString() ?: "null" } in <lambda>()
83 if (expected.isNotEmpty() || actual.isNotEmpty()) { in <lambda>()
88 if (expected.isNotEmpty()) { in <lambda>()
90 appendLine(expected) in <lambda>()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/report/
DDiffResultExportStrategy.kt41 expected: Bitmap? = null, in reportResult()
75 expected: Bitmap?, in reportResult()
85 expected, in reportResult()
/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/javasound/
DJavaAudioCapturerFactoryTests.java64 @Test(expected = NullPointerException.class)
72 @Test(expected = NullPointerException.class)
80 @Test(expected = NullPointerException.class)
88 @Test(expected = IllegalArgumentException.class)
/platform_testing/libraries/audio-test-harness/client-lib/src/test/java/com/android/media/audiotestharness/client/grpc/
DGrpcAudioCaptureStreamTests.java122 @Test(expected = NullPointerException.class)
127 @Test(expected = NullPointerException.class)
132 @Test(expected = NullPointerException.class)
203 short[] expected = new short[AudioTestHarnessTestImpl.MESSAGE.length / 2];
207 .get(expected);
213 assertArrayEquals(expected, actual);
217 @Test(expected = IllegalArgumentException.class)
224 @Test(expected = IllegalArgumentException.class)
231 @Test(expected = IllegalArgumentException.class)
238 @Test(expected = IllegalArgumentException.class)
/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/service/
DCaptureChunkStreamObserverOutputStreamTests.java61 @Test(expected = NullPointerException.class)
66 @Test(expected = NullPointerException.class)
72 @Test(expected = NullPointerException.class)
104 @Test(expected = IllegalStateException.class)
143 @Test(expected = IllegalStateException.class)
225 @Test(expected = IllegalStateException.class)
286 String message, List<byte[]> expected, List<byte[]> actual) { in assertListsContainSameByteArrays() argument
289 expected.size(), in assertListsContainSameByteArrays()
291 for (int i = 0; i < expected.size(); i++) { in assertListsContainSameByteArrays()
292 byte[] expectedBytes = expected.get(i); in assertListsContainSameByteArrays()
/platform_testing/libraries/flicker/test/src/android/tools/integration/
DFullLegacyTestRun.kt153 private fun validateState(actual: FlickerSubject?, expected: FlickerSubject?) { in validateState()
155 Truth.assertWithMessage("Expected state").that(expected).isNotNull() in validateState()
160 expected: RegionSubject?, in validateVisibleRegion()
163 Truth.assertWithMessage("Expected visible region").that(expected).isNotNull() in validateVisibleRegion()
164 actual?.coversExactly(expected?.region ?: Region()) in validateVisibleRegion()
166 val failure: Result<Any?> = runCatching { actual?.isHigher(expected?.region ?: Region()) } in validateVisibleRegion()
DFullTestRun.kt199 private fun validateState(actual: FlickerSubject?, expected: FlickerSubject?) { in validateState()
201 Truth.assertWithMessage("Expected state").that(expected).isNotNull() in validateState()
206 expected: RegionSubject?, in validateVisibleRegion()
209 Truth.assertWithMessage("Expected visible region").that(expected).isNotNull() in validateVisibleRegion()
210 actual?.coversExactly(expected?.region ?: Region()) in validateVisibleRegion()
213 actual?.isHigher(expected?.region ?: Region()) in validateVisibleRegion()
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/view/
DViewFrameBuilderTest.kt37 @Test(expected = IllegalArgumentException::class)
42 @Test(expected = IllegalArgumentException::class)
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/foldable/
DUnfoldAnimationTestingUtils.kt41 fun waitForPositionsToMatch(expected: Set<Icon>, currentProvider: () -> Set<Icon>) { in <lambda>()
44 commonIcons(expected, currentProvider()).all { (expected, current) -> in <lambda>() method
45 expected.position == current.position in <lambda>()
/platform_testing/tests/automotive/mobly_tests/utilities/
Dspectatio_utils.py504 def verify_sms_app_unread_message(self, expected): argument
510 expected,
513 if actual_unread_message_badge_displayed != expected:
518 def verify_sms_preview_text(self, expected, text): argument
524 expected,
527 if actual_message_preview_displayed != expected:
537 def is_assistant_sms_transcription_plate_displayed(self,expected): argument
540 if visibility_status == expected:
544 def verify_sms_preview_timestamp(self, expected): argument
550 expected,
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/annotation/
DFlickerTest.kt21 annotation class FlickerTest(val expected: Array<String>) constant in android.tools.flicker.annotation.FlickerTest
/platform_testing/libraries/flicker/test/src/android/tools/flicker/datastore/
DCachedResultWriterTest.kt37 val expected = writer.write() in writeToStore() constant
42 Truth.assertWithMessage("Has key in store").that(expected).isEqualTo(actual) in writeToStore()
/platform_testing/libraries/metrics-helper/src/android/support/test/metricshelper/
DMetricsAsserts.java100 public static void assertHasLog(String message, MetricsReader reader, LogMaker expected) { in assertHasLog() argument
102 assertHasLog(message, new ReaderQueue(reader), expected); in assertHasLog()
108 public static void assertHasLog(String message, Queue<LogMaker> queue, LogMaker expected) { in assertHasLog() argument
109 assertTrue(message, !findMatchingLogs(queue, expected).isEmpty()); in assertHasLog()

123