Home
last modified time | relevance | path

Searched refs:actual (Results 1 – 25 of 36) sorted by relevance

12

/platform_testing/libraries/collectors-helper/adservices/test/src/com/android/helpers/
DSelectAdsLatencyHelperTest.java94 Map<String, Long> actual = mSelectAdsLatencyHelper.getMetrics(); in testInitTimeInLogcat() local
96 assertThat(actual.get(LOG_LABEL_P50_5G)).isEqualTo(102); in testInitTimeInLogcat()
97 assertThat(actual.get(LOG_LABEL_P50_4GPLUS)).isEqualTo(1); in testInitTimeInLogcat()
98 assertThat(actual.get(LOG_LABEL_P50_4G)).isEqualTo(43); in testInitTimeInLogcat()
99 assertThat(actual.get(LOG_LABEL_P90_5G)).isEqualTo(23); in testInitTimeInLogcat()
100 assertThat(actual.get(LOG_LABEL_P90_4GPLUS)).isEqualTo(45); in testInitTimeInLogcat()
101 assertThat(actual.get(LOG_LABEL_P90_4G)).isEqualTo(1); in testInitTimeInLogcat()
102 assertThat(actual.get(LOG_LABEL_REAL_SERVER_P50)).isEqualTo(117); in testInitTimeInLogcat()
110 Map<String, Long> actual = mSelectAdsLatencyHelper.getMetrics(); in testWithNonMatchingInput() local
112 assertThat(actual.size()).isEqualTo(0); in testWithNonMatchingInput()
[all …]
DJSScriptEngineLatencyHelperTest.java77 Map<String, Long> actual = mJSScriptEngineLatencyHelper.getMetrics(); in testInitTimeInLogcat() local
79 assertThat(actual.get(SANDBOX_INIT_TIME_AVG)).isEqualTo((102 + 45) / 2); in testInitTimeInLogcat()
80 assertThat(actual.get(ISOLATE_CREATE_TIME_AVG)).isEqualTo((1 + 1) / 2); in testInitTimeInLogcat()
81 assertThat(actual.get(JAVA_EXECUTION_TIME_AVG)).isEqualTo((43 + 19) / 2); in testInitTimeInLogcat()
82 assertThat(actual.get(WEBVIEW_EXECUTION_TIME_AVG)).isEqualTo((23 + 29) / 2); in testInitTimeInLogcat()
83 assertThat(actual.get(NUM_ITERATIONS)).isEqualTo(2); in testInitTimeInLogcat()
90 Map<String, Long> actual = mJSScriptEngineLatencyHelper.getMetrics(); in testWithEmptyLogcat() local
91 for (Long val : actual.values()) { in testWithEmptyLogcat()
100 Map<String, Long> actual = mJSScriptEngineLatencyHelper.getMetrics(); in testInputStreamThrowsException() local
101 for (Long val : actual.values()) { in testInputStreamThrowsException()
DMeasurementLatencyHelperTest.java72 Map<String, Long> actual = mMeasurementLatencyHelper.getMetrics(); in testInitTimeInLogcat() local
74 assertThat(actual.get(LOG_LABEL_REGISTER_SOURCE_COLD_START)).isEqualTo(65); in testInitTimeInLogcat()
75 assertThat(actual.get(LOG_LABEL_REGISTER_SOURCE_HOT_START)).isEqualTo(17); in testInitTimeInLogcat()
83 Map<String, Long> actual = mMeasurementLatencyHelper.getMetrics(); in testWithNonMatchingInput() local
85 assertThat(actual.size()).isEqualTo(0); in testWithNonMatchingInput()
92 Map<String, Long> actual = mMeasurementLatencyHelper.getMetrics(); in testWithEmptyLogcat() local
93 assertThat(actual.size()).isEqualTo(0); in testWithEmptyLogcat()
100 Map<String, Long> actual = mMeasurementLatencyHelper.getMetrics(); in testInputStreamThrowsException() local
101 for (Long val : actual.values()) { in testInputStreamThrowsException()
/platform_testing/libraries/motion/src/platform/test/motion/truth/
DTimeSeriesSubject.kt30 private constructor(failureMetadata: FailureMetadata, private val actual: TimeSeries?) : in <lambda>() constant
31 Subject(failureMetadata, actual) { in <lambda>()
34 if (actual is TimeSeries && expected is TimeSeries) { in <lambda>()
35 val facts = compareTimeSeries(expected, actual) in <lambda>()
44 private fun compareTimeSeries(expected: TimeSeries, actual: TimeSeries) = in <lambda>()
47 if (actual.frameIds != expected.frameIds) { in <lambda>()
50 add(fact("| but got", actual.frameIds.map { it.label })) in <lambda>()
52 val actualFrameIds = actual.frameIds.toSet() in <lambda>()
67 actual.frameIds.indexOf(it) to expected.frameIds.indexOf(it) in <lambda>()
70 actualToExpectedDataPointIndices = List(actual.frameIds.size) { it to it } in <lambda>()
[all …]
DRecordedMotionSubject.kt41 private val actual: RecordedMotion?, constant
43 ) : Subject(failureMetadata, actual) {
52 val recordedMotion = checkNotNull(actual) in timeSeriesMatchesGolden()
98 val recordedMotion = checkNotNull(actual) in filmstripMatchesGolden()
/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/junit/
DFlagsParameterizationTest.java74 List<FlagsParameterization> actual = FlagsParameterization.allCombinationsOf(); in allCombinationsWith0Flags() local
76 assertEquals(expected, actual); in allCombinationsWith0Flags()
81 List<FlagsParameterization> actual = FlagsParameterization.allCombinationsOf("a"); in allCombinationsWith1Flags() local
86 assertEquals(expected, actual); in allCombinationsWith1Flags()
91 List<FlagsParameterization> actual = FlagsParameterization.allCombinationsOf("a", "b"); in allCombinationsWith2Flags() local
98 assertEquals(expected, actual); in allCombinationsWith2Flags()
103 List<FlagsParameterization> actual = FlagsParameterization.allCombinationsOf("a", "b", "c"); in allCombinationsWith3Flags() local
114 assertEquals(expected, actual); in allCombinationsWith3Flags()
119 List<FlagsParameterization> actual = FlagsParameterization.progressionOf(); in progressionWith0Flags() local
121 assertEquals(expected, actual); in progressionWith0Flags()
[all …]
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/
DLegacyFlickerTestFactoryTest.kt36 val actual = LegacyFlickerTestFactory.nonRotationTests() in checkBuildTest() constant
38 .that(actual) in checkBuildTest()
44 val actual = LegacyFlickerTestFactory.rotationTests() in checkBuildRotationTest() constant
46 .that(actual) in checkBuildRotationTest()
59 val actual = LegacyFlickerTestFactory.rotationTests(supportedRotations = rotations) in checkBuildCustomRotationsTest() constant
62 .that(actual) in checkBuildCustomRotationsTest()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DScreenshotTestRule.kt131 actual: Bitmap, in <lambda>()
137 actual = actual, in <lambda>()
143 actual.recycle() in <lambda>()
166 actual: Bitmap, in <lambda>()
184 actual = actual in <lambda>()
193 if (actual.width != expected.width || actual.height != expected.height) { in <lambda>()
197 given = actual.toIntArray(), in <lambda>()
200 actualWidth = actual.width, in <lambda>()
201 actualHeight = actual.height in <lambda>()
207 actual = actual, in <lambda>()
[all …]
/platform_testing/libraries/motion/src/platform/test/motion/testing/
DJsonSubject.kt26 class JsonSubject private constructor(failureMetadata: FailureMetadata, private val actual: Any?) : in <lambda>() constant
27 Subject(failureMetadata, actual) { in <lambda>()
37 if (actual is JSONObject && expected is JSONObject) { in <lambda>()
39 .that(actual.toString(PRETTY_PRINT_INDENT)) in <lambda>()
41 } else if (actual is JSONArray && expected is JSONArray) { in <lambda>()
43 .that(actual.toString(PRETTY_PRINT_INDENT)) in <lambda>()
DDataPointSubject.kt30 private constructor(failureMetadata: FailureMetadata, private val actual: DataPoint<T>?) : in <lambda>() constant
31 Subject(failureMetadata, actual) { in <lambda>()
34 check("isUnknown").that(actual).isEqualTo(DataPoint.unknownType<T>()) in <lambda>()
38 check("isNotFound").that(actual).isEqualTo(DataPoint.notFound<T>()) in <lambda>()
44 check("hasNativeValue").that(actual).isInstanceOf(ValueDataPoint::class.java) in <lambda>()
45 val valueDataPoint = actual as ValueDataPoint<T> in <lambda>()
55 .that(checkNotNull(actual).asJson()) in <lambda>()
DDataPointTypeSubject.kt31 private constructor(failureMetadata: FailureMetadata, private val actual: DataPointType<T>?) : in <lambda>() constant
32 Subject(failureMetadata, actual) { in <lambda>()
60 val dataPointType = checkNotNull(actual) in <lambda>()
73 val dataPointType = checkNotNull(actual) in <lambda>()
/platform_testing/libraries/motion/tests/src/platform/test/motion/truth/
DTimeSeriesSubjectTest.kt53 val actual = in <lambda>() constant
56 with(assertThrows { assertThat(actual).isEqualTo(expected) }) { in <lambda>()
70 val actual = createTimeSeries(2) in <lambda>() constant
72 with(assertThrows { assertThat(actual).isEqualTo(expected) }) { in <lambda>()
86 val actual = createTimeSeries(2) in <lambda>() constant
88 with(assertThrows { assertThat(actual).isEqualTo(expected) }) { in <lambda>()
102 val actual = in <lambda>() constant
111 with(assertThrows { assertThat(actual).isEqualTo(expected) }) { in <lambda>()
121 val actual = in <lambda>() constant
130 with(assertThrows { assertThat(actual).isEqualTo(expected) }) { in <lambda>()
[all …]
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/report/
DDiffResultExportStrategy.kt38 actual: Bitmap, in reportResult()
72 actual: Bitmap, in reportResult()
82 actual, in reportResult()
DDevicelessDevMachineExportStrategy.kt44 actual: Bitmap, in <lambda>()
69 actual.writeTo(actualImagePath) in <lambda>()
71 actual.writeTo(assetsDir.resolve(imagePath)) in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/
DCheckSubjectBuilder.kt30 fun <T> that(actual: T?): CheckSubject<T> { in that()
31 return CheckSubject(actual, timestamp, extraFacts, reader, lazyMessage) in that()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/datastore/
DDataStoreTest.kt60 val actual = DataStore.getResult(TEST_SCENARIO) in getsElement() constant
61 Truth.assertWithMessage("Expected result").that(actual).isEqualTo(Consts.TEST_RESULT) in getsElement()
74 val actual = DataStore.getResult(TEST_SCENARIO) in replacesElement() constant
75 Truth.assertWithMessage("Expected value").that(actual).isEqualTo(Consts.RESULT_FAILURE) in replacesElement()
DCachedResultReaderTest.kt50 val actual = reader.readEventLogTrace() in readFromStore() constant
51 Truth.assertWithMessage("Event log size").that(actual).isNotNull() in readFromStore()
DCachedResultWriterTest.kt41 val actual = android.tools.flicker.datastore.DataStore.getResult(TEST_SCENARIO) in writeToStore() constant
42 Truth.assertWithMessage("Has key in store").that(expected).isEqualTo(actual) in writeToStore()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/events/
DEventLogSubject.kt56 val actual = focusChanges.map { Fact("Focus change", it) } in <lambda>() constant
57 builder.setActual(actual) in <lambda>()
74 val actual = _focusChanges.map { Fact("Focus change", it) } in <lambda>() constant
79 .setActual(actual) in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/exceptions/
DExceptionMessageBuilder.kt29 private var actual = mutableListOf<String>() variable
60 fun setActual(value: Collection<String>) = apply { actual.addAll(value) } in <lambda>()
83 if (expected.isNotEmpty() || actual.isNotEmpty()) { in <lambda>()
93 actual in <lambda>()
/platform_testing/libraries/flicker/test/src/android/tools/integration/
DFullLegacyTestRun.kt153 private fun validateState(actual: FlickerSubject?, expected: FlickerSubject?) { in validateState()
154 Truth.assertWithMessage("Actual state").that(actual).isNotNull() in validateState()
159 actual: RegionSubject?, in validateVisibleRegion()
162 Truth.assertWithMessage("Actual visible region").that(actual).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()
200 Truth.assertWithMessage("Actual state").that(actual).isNotNull() in validateState()
205 actual: RegionSubject?, in validateVisibleRegion()
208 Truth.assertWithMessage("Actual visible region").that(actual).isNotNull() in validateVisibleRegion()
210 actual?.coversExactly(expected?.region ?: Region()) in validateVisibleRegion()
213 actual?.isHigher(expected?.region ?: Region()) in validateVisibleRegion()
/platform_testing/robolab/roboStandaloneProj/tests/src/com/android/myroboapplication/
DWelcomeActivityTest.java46 Intent actual = ShadowApplication.getInstance().getNextStartedActivity(); in clickingLogin_shouldStartLoginActivity() local
47 assertEquals(expectedIntent.getComponent(), actual.getComponent()); in clickingLogin_shouldStartLoginActivity()
/platform_testing/libraries/sts-common-util/sts-sdk/package/test-app/src/main/java/android/security/sts/sts_test_app_package/
DDeviceTest.java59 AtomicReference<String> actual = new AtomicReference<>(); in testDeviceSideMethod() local
73 actual.set(intent.getStringExtra(INTENT_ARTIFACT)); in testDeviceSideMethod()
97 assertEquals("The target artifact should have been 'secure'", "secure", actual.get()); in testDeviceSideMethod()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/report/
DScubaExportStrategyTest.kt139 actual = createBitmap(Color.GREEN), in reportResult_withoutOptionalArgs_writesActualAndProto()
157 actual = createBitmap(Color.GREEN), in reportResult_withDiff_writesDiff()
176 actual = createBitmap(Color.GREEN), in reportResult_withExpected_writesExpected()
195 actual = createBitmap(Color.GREEN), in reportResult_passed_writesStatus()
209 actual = createBitmap(Color.GREEN), in reportResult_failed_writesStatus()
223 actual = createBitmap(Color.RED), in reportResult_writesCorrectImageContents()
248 actual = createBitmap(Color.RED), in reportResult_duplicateCall_doesNotOverwriteFile()
257 actual = createBitmap(Color.BLACK), in reportResult_duplicateCall_doesNotOverwriteFile()

12