/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | ExifInterfaceTest.java | 240 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ByteBufferReaderTest.java | 145 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/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | Preconditions.java | 65 String expectedName, T expectedValue) { in checkEquals() argument 66 if (!Objects.equals(arg, expectedValue)) { in checkEquals() 70 argName, expectedName, arg, expectedValue)); in checkEquals()
|
D | CameraErrorCollector.java | 587 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/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
D | SettingsHelper.java | 107 @Nullable String expectedValue) { in assertNewValue() argument 109 if (!Objects.equals(actualValue, expectedValue)) { in assertNewValue() 111 + actualValue + "' , got '" + expectedValue + "'"); in assertNewValue()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | MetricsUtilsTest.java | 188 MetricsUtils.LogHistParms hp, int expectedKey, int expectedValue) { in bucketValueAndVerify() argument 190 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); in bucketValueAndVerify() 194 int expectedKey, int expectedValue) { in bucketValueAndVerify() argument 196 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); in bucketValueAndVerify()
|
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/ |
D | BNNMTest.java | 133 byte expectedValue = c_byte[i]; in testWithTolerance() 135 int delta = (expectedValue - actualValue); in testWithTolerance() 145 ": expected " + (expectedValue & 0xff) + in testWithTolerance()
|
/frameworks/rs/driver/runtime/ |
D | rs_core.c | 44 …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/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | Camera2SurfaceViewTestCase.java | 348 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/tests/coretests/src/com/android/internal/os/ |
D | BstatsCpuTimesValidationTest.java | 603 final String expectedValue = Boolean.toString(enabled); in assertTrackPerProcStateCpuTimesSetting() local 606 return expectedValue.equals(actualValue) in assertTrackPerProcStateCpuTimesSetting() 607 ? null : "expected=" + expectedValue + ", actual=" + actualValue; in assertTrackPerProcStateCpuTimesSetting() 640 private void assertApproximateValue(String errorPrefix, long expectedValue, long actualValue) { in assertApproximateValue() argument 641 assertValueRange(errorPrefix, actualValue, expectedValue * 0.5, expectedValue * 1.5); in assertApproximateValue()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/adb/ |
D | AdbDebuggingManagerTest.java | 461 long expectedValue = Math.min( in testKeystoreExpirationTimes() local 465 if (Math.abs(delay - expectedValue) > epsilon) { in testKeystoreExpirationTimes() 467 + ", is outside the expected value of " + expectedValue); in testKeystoreExpirationTimes()
|
/frameworks/base/core/java/android/content/ |
D | ContentProviderOperation.java | 353 final String expectedValue = values.getAsString(projection[i]); in applyInternal() local 354 if (!TextUtils.equals(cursorValue, expectedValue)) { in applyInternal() 357 + " when expected " + expectedValue + " for column " in applyInternal()
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | BugreportReceiverTest.java | 910 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/ |
D | ResTable_test.cpp | 272 void testU16StringToInt(const char16_t* str, uint32_t expectedValue, in testU16StringToInt() argument 295 ASSERT_EQ(expectedValue, out.data) << "Failed with " << s; in testU16StringToInt()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | GsmCdmaPhone.java | 3108 boolean expectedValue = userObject.first; in handleMessage() 3112 + " setting to " + expectedValue + " on phone " + mPhoneId in handleMessage() 4429 boolean expectedValue = info == null ? true : info.areUiccApplicationsEnabled(); in reapplyUiccAppsEnablementIfNeeded() 4433 if (expectedValue != mUiccApplicationsEnabled) { in reapplyUiccAppsEnablementIfNeeded() 4434 mCi.enableUiccApplications(expectedValue, Message.obtain( in reapplyUiccAppsEnablementIfNeeded() 4436 new Pair<Boolean, Integer>(expectedValue, retries))); in reapplyUiccAppsEnablementIfNeeded()
|