Home
last modified time | relevance | path

Searched refs:expectedValue (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DExifInterfaceTest.java240 private void assertIntTag(ExifInterface exifInterface, String tag, int expectedValue) { in assertIntTag() argument
242 assertEquals(expectedValue, intValue); in assertIntTag()
245 private void assertDoubleTag(ExifInterface exifInterface, String tag, float expectedValue) { in assertDoubleTag() argument
247 assertEquals(expectedValue, doubleValue, DIFFERENCE_TOLERANCE); in assertDoubleTag()
250 private void assertStringTag(ExifInterface exifInterface, String tag, String expectedValue) { in assertStringTag() argument
257 assertEquals(expectedValue, stringValue); in assertStringTag()
261 ExpectedValue expectedValue, String verboseTag) { in compareWithExpectedValue() argument
266 assertEquals(expectedValue.hasThumbnail, exifInterface.hasThumbnail()); in compareWithExpectedValue()
267 if (expectedValue.hasThumbnail) { in compareWithExpectedValue()
272 assertEquals(expectedValue.thumbnailWidth, thumbnailBitmap.getWidth()); in compareWithExpectedValue()
[all …]
/frameworks/support/exifinterface/tests/src/android/support/media/
DExifInterfaceTest.java342 private void assertIntTag(ExifInterface exifInterface, String tag, int expectedValue) { in assertIntTag() argument
344 assertEquals(expectedValue, intValue); in assertIntTag()
347 private void assertFloatTag(ExifInterface exifInterface, String tag, float expectedValue) { in assertFloatTag() argument
349 assertEquals(expectedValue, doubleValue, DIFFERENCE_TOLERANCE); in assertFloatTag()
352 private void assertStringTag(ExifInterface exifInterface, String tag, String expectedValue) { in assertStringTag() argument
359 assertEquals(expectedValue, stringValue); in assertStringTag()
363 ExpectedValue expectedValue, String verboseTag) { in compareWithExpectedValue() argument
368 assertEquals(expectedValue.hasThumbnail, exifInterface.hasThumbnail()); in compareWithExpectedValue()
369 if (expectedValue.hasThumbnail) { in compareWithExpectedValue()
374 assertEquals(expectedValue.thumbnailWidth, thumbnailBitmap.getWidth()); in compareWithExpectedValue()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DByteBufferReaderTest.java145 String expectedValue = "Hello World"; in readString() local
146 ByteBuffer buffer = ByteBuffer.wrap(expectedValue.getBytes(StandardCharsets.US_ASCII)); in readString()
149 assertEquals(expectedValue, actualValue); in readString()
160 String expectedValue = "Hello World"; in readStringWithByteLength() local
161 ByteBuffer buffer = ByteBuffer.allocate(expectedValue.length() + 1); in readStringWithByteLength()
162 buffer.put((byte) expectedValue.length()); in readStringWithByteLength()
163 buffer.put(expectedValue.getBytes(StandardCharsets.US_ASCII)); in readStringWithByteLength()
168 assertEquals(expectedValue, actualValue); in readStringWithByteLength()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/solver/
DExecutionPath.java64 public ExecutionPath addBranch(Expr pred, boolean expectedValue) { in addBranch() argument
66 Preconditions.checkNull(expectedValue ? mTrueBranch : mFalseBranch, in addBranch()
67 "Cannot add two " + expectedValue + "branches"); in addBranch()
71 if (expectedValue == knownValue) { in addBranch()
80 ExecutionBranch edge = new ExecutionBranch(path, pred, expectedValue); in addBranch()
81 path.mKnownValues.put(pred, expectedValue); in addBranch()
82 if (expectedValue) { in addBranch()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DNoVariableIncludeTest.java33 String expectedValue = getActivity().getResources().getString(R.string.app_name); in testInclude() local
34 assertEquals(expectedValue, mBinder.included.textView.getText().toString()); in testInclude()
36 assertEquals(expectedValue, noIdInclude.getText().toString()); in testInclude()
DNoIdTest.java71 String expectedValue = view.getResources().getString(R.string.app_name); in testResourceTag() local
72 assertEquals(expectedValue, view.getTag()); in testResourceTag()
79 String expectedValue = view.getResources().getString(android.R.string.ok); in testAndroidResourceTag() local
80 assertEquals(expectedValue, view.getTag()); in testAndroidResourceTag()
DNoVariablesTest.java31 String expectedValue = getActivity().getResources().getString(R.string.app_name); in testAssign() local
32 assertEquals(expectedValue, mBinder.textView.getText().toString()); in testAssign()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DPreconditions.java65 String expectedName, T expectedValue) { in checkEquals() argument
66 if (!Objects.equals(arg, expectedValue)) { in checkEquals()
70 argName, expectedName, arg, expectedValue)); in checkEquals()
DCameraErrorCollector.java587 int expectedValue, float errorPercent) { in expectSimilarValues() argument
590 actualValue <= (expectedValue * (1.0f + errorPercent))) && succ; in expectSimilarValues()
592 actualValue >= (expectedValue * (1.0f - errorPercent))) && succ; in expectSimilarValues()
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
DBNNMTest.java133 byte expectedValue = c_byte[i]; in testWithTolerance()
135 int delta = (expectedValue - actualValue); in testWithTolerance()
145 ": expected " + (expectedValue & 0xff) + in testWithTolerance()
/frameworks/rs/driver/runtime/
Drs_core.c44 …ttribute__((overloadable)) rsAtomicCas(volatile int32_t *ptr, int32_t expectedValue, int32_t newVa… in rsAtomicCas() argument
45 return __sync_val_compare_and_swap(ptr, expectedValue, newValue); in rsAtomicCas()
48 …ribute__((overloadable)) rsAtomicCas(volatile uint32_t *ptr, uint32_t expectedValue, uint32_t newV… in rsAtomicCas() argument
49 return __sync_val_compare_and_swap(ptr, expectedValue, newValue); in rsAtomicCas()
/frameworks/support/design/tests/src/android/support/design/widget/
DAppBarLayoutBaseTest.java114 protected void assertAppBarElevation(float expectedValue) { in assertAppBarElevation() argument
116 assertEquals(expectedValue, ViewCompat.getElevation(mAppBar), 0.05f); in assertAppBarElevation()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DCamera2SurfaceViewTestCase.java348 T expectedValue, int numResultsWait) { in waitForResultValue() argument
350 expectedValues.add(expectedValue); in waitForResultValue()
384 for ( T expectedValue : expectedValues) { in waitForAnyResultValue()
389 if (value.equals(expectedValue)) { in waitForAnyResultValue()
/frameworks/base/core/java/android/content/
DContentProviderOperation.java332 final String expectedValue = values.getAsString(projection[i]); in apply() local
333 if (!TextUtils.equals(cursorValue, expectedValue)) { in apply()
337 + " when expected " + expectedValue + " for column " in apply()
/frameworks/support/transition/tests/src/android/support/transition/
DChangeImageTransformTest.java213 final float expectedValue = expectedValues[i]; in verifyMatrixMatches() local
215 assertEquals("Value [" + i + "]", expectedValue, value, 0.01f); in verifyMatrixMatches()
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DBugreportReceiverTest.java910 private void assertPropertyValue(String key, String expectedValue) { in assertPropertyValue() argument
916 if (expectedValue.equals(actualValue)) { in assertPropertyValue()
920 + ") does not match expected value (" + expectedValue in assertPropertyValue()
926 assertEquals("Wrong value for property '" + key + "'", expectedValue, actualValue); in assertPropertyValue()
/frameworks/base/libs/androidfw/tests/
DResTable_test.cpp272 void testU16StringToInt(const char16_t* str, uint32_t expectedValue, in testU16StringToInt() argument
295 ASSERT_EQ(expectedValue, out.data) << "Failed with " << s; in testU16StringToInt()