Home
last modified time | relevance | path

Searched refs:expectedValues (Results 1 – 14 of 14) sorted by relevance

/frameworks/minikin/tests/unittest/
DLayoutTest.cpp62 std::vector<float> expectedValues; in TEST_F() local
80 expectedValues.resize(text.size()); in TEST_F()
81 for (size_t i = 0; i < expectedValues.size(); ++i) { in TEST_F()
82 expectedValues[i] = 10.0f; in TEST_F()
84 expectAdvances(expectedValues, layout.getAdvances()); in TEST_F()
99 expectedValues.resize(text.size()); in TEST_F()
100 for (size_t i = 0; i < expectedValues.size(); ++i) { in TEST_F()
101 expectedValues[i] = 10.0f; in TEST_F()
103 expectAdvances(expectedValues, layout.getAdvances()); in TEST_F()
118 expectedValues.resize(text.size()); in TEST_F()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsMessageBodyTest.java549 int[] expectedValues) in callGsmLengthMethods() argument
553 assertEquals("msgCount", expectedValues[0], values[0]); in callGsmLengthMethods()
554 assertEquals("codeUnitCount", expectedValues[1], values[1]); in callGsmLengthMethods()
555 assertEquals("codeUnitsRemaining", expectedValues[2], values[2]); in callGsmLengthMethods()
556 assertEquals("codeUnitSize", expectedValues[3], values[3]); in callGsmLengthMethods()
561 assertEquals("msgCount", expectedValues[0], values[0]); in callGsmLengthMethods()
562 assertEquals("codeUnitCount", expectedValues[1], values[1]); in callGsmLengthMethods()
563 assertEquals("codeUnitsRemaining", expectedValues[2], values[2]); in callGsmLengthMethods()
564 assertEquals("codeUnitSize", expectedValues[3], values[3]); in callGsmLengthMethods()
569 assertEquals("msgCount", expectedValues[0], ted.msgCount); in callGsmLengthMethods()
[all …]
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/
DAnimatedSharedAsStateTest.kt154 val expectedValues = lerp(fromValues, toValues, fraction = 0.25f) in animateElementValues() constant
155 assertThat(lastValueInFrom).isEqualTo(expectedValues) in animateElementValues()
156 assertThat(lastValueInTo).isEqualTo(expectedValues) in animateElementValues()
160 val expectedValues = lerp(fromValues, toValues, fraction = 0.5f) in animateElementValues() constant
161 assertThat(lastValueInFrom).isEqualTo(expectedValues) in animateElementValues()
162 assertThat(lastValueInTo).isEqualTo(expectedValues) in animateElementValues()
166 val expectedValues = lerp(fromValues, toValues, fraction = 0.75f) in animateElementValues() constant
167 assertThat(lastValueInFrom).isEqualTo(expectedValues) in animateElementValues()
168 assertThat(lastValueInTo).isEqualTo(expectedValues) in animateElementValues()
267 val expectedValues = lerp(fromValues, toValues, fraction = 0.25f) in animateSceneValues() constant
[all …]
/frameworks/opt/telephony/testing/src/com/android/internal/telephony/testing/
DCursorSubject.java78 ContentValues expectedValues = new ContentValues(); in hasRowValues() local
80 expectedValues.put(mActual.getColumnName(i), values[i].toString()); in hasRowValues()
86 check("Row: %s", mActual.getPosition()).that(actualValues).isEqualTo(expectedValues); in hasRowValues()
/frameworks/base/core/tests/coretests/src/android/content/
DContentProviderOperationTest.java233 ContentValues expectedValues = new ContentValues(values); in testValueBackRefs() local
234 expectedValues.put("a1", (long) 103); in testValueBackRefs()
235 expectedValues.put("a2", (long) 101); in testValueBackRefs()
236 expectedValues.put("a3", (long) 102); in testValueBackRefs()
245 assertEquals(expectedValues, v2); in testValueBackRefs()
/frameworks/base/core/tests/coretests/src/android/view/
DViewDebugTest.java379 Object[] expectedValues, byte[] argumentBuffer) throws Exception { in expectDeserializedArguments() argument
381 assertEquals("test helper not used correctly", argCount, expectedValues.length); in expectDeserializedArguments()
392 assertArrayEquals((byte[]) expectedValues[i], (byte[]) actualArgs[i]); in expectDeserializedArguments()
394 assertEquals(expectedValues[i], actualArgs[i]); in expectDeserializedArguments()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DCamera2SurfaceViewTestCase.java349 List<T> expectedValues = new ArrayList<T>(); in waitForResultValue() local
350 expectedValues.add(expectedValue); in waitForResultValue()
351 waitForAnyResultValue(listener, resultKey, expectedValues, numResultsWait); in waitForResultValue()
372 List<T> expectedValues, int numResultsWait) { in waitForAnyResultValue() argument
373 if (numResultsWait < 0 || listener == null || expectedValues == null) { in waitForAnyResultValue()
384 for ( T expectedValue : expectedValues) { in waitForAnyResultValue()
396 "Unable to get the expected result value " + expectedValues + " for key " + in waitForAnyResultValue()
/frameworks/base/tests/Input/src/com/android/server/input/
DInputShellCommandTest.java146 private void assertAxisValues(MotionEvent event, Map<Integer, Float> expectedValues) { in assertAxisValues() argument
147 for (var entry : expectedValues.entrySet()) { in assertAxisValues()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkManagementServiceTest.java435 final ArrayMap<Integer, Boolean> expectedValues = expected.get(chain); in testFirewallChains() local
441 expectedValues.get(state), mNMService.isNetworkRestricted(TEST_UID)); in testFirewallChains()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
DBroadcastDispatcherTest.kt415 val expectedValues = fakeIntents.map { it to receiver } in <lambda>() constant
416 assertThat(collectedValues).containsExactlyElementsIn(expectedValues) in <lambda>()
/frameworks/base/services/core/java/com/android/server/policy/
DDeviceStateProviderImpl.java650 SensorBooleanSupplier(@NonNull Sensor sensor, @NonNull List<NumericRange> expectedValues) { in SensorBooleanSupplier() argument
652 mExpectedValues = expectedValues; in SensorBooleanSupplier()
/frameworks/av/media/libeffects/dynamicsproc/
DEffectDynamicsProcessing.cpp369 uint32_t expectedValues) { in DP_checkSizesInt() argument
375 if (valueSize < expectedValues * sizeof(int32_t)) { in DP_checkSizesInt()
377 (uint32_t)(expectedValues * sizeof(int32_t))); in DP_checkSizesInt()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DCameraMetadataTest.java595 byte[] expectedValues = new byte[] { 0, 10, 20, 30 }; in testReadWriteEnumWithCustomValues()
596 assertArrayEquals(expectedValues, aeAntibandingModeValues); in testReadWriteEnumWithCustomValues()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java8656 List<ShareTargetInfo> expectedValues = new ArrayList<>(); in testParseShareTargetsFromManifest() local
8657 expectedValues.add(new ShareTargetInfo( in testParseShareTargetsFromManifest()
8662 expectedValues.add(new ShareTargetInfo(new ShareTargetInfo.TargetData[]{ in testParseShareTargetsFromManifest()
8678 assertEquals(expectedValues.size(), shareTargets.size()); in testParseShareTargetsFromManifest()
8680 for (int i = 0; i < expectedValues.size(); i++) { in testParseShareTargetsFromManifest()
8681 ShareTargetInfo expected = expectedValues.get(i); in testParseShareTargetsFromManifest()
8707 List<ShareTargetInfo> expectedValues = new ArrayList<>(); in testShareTargetInfo_saveToXml() local
8708 expectedValues.add(new ShareTargetInfo( in testShareTargetInfo_saveToXml()
8713 expectedValues.add(new ShareTargetInfo(new ShareTargetInfo.TargetData[]{ in testShareTargetInfo_saveToXml()
8724 for (int i = 0; i < expectedValues.size(); i++) { in testShareTargetInfo_saveToXml()
[all …]