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/base/core/tests/overlaytests/remount/src/com/android/overlaytest/remounted/
DOverlayRemountedTestBase.java54 void assertResource(String resourceName, String expectedValue) in assertResource() argument
62 if (result.equals(expectedValue + "\n") || in assertResource()
63 result.endsWith("-> " + expectedValue + "\n")) { in assertResource()
73 fail(String.format("expected: <[%s]> in: <[%s]>", expectedValue, result)); in assertResource()
/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/native/services/surfaceflinger/CompositionEngine/tests/
DRegionMatcher.h28 explicit RegionMatcher(const Region& expectedValue) : expected(expectedValue) {} in RegionMatcher()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DSettingsHelper.java107 @Nullable String expectedValue) { in assertNewValue() argument
109 if (!Objects.equals(actualValue, expectedValue)) { in assertNewValue()
111 + actualValue + "' , got '" + expectedValue + "'"); in assertNewValue()
/frameworks/base/core/tests/coretests/src/android/util/
DSparseDoubleArrayTest.java102 final double expectedValue = map.get(expectedKey); in testKeyValueAt() local
105 assertEquals("Wrong value at index " + i, expectedValue, sda.valueAt(i), PRECISION); in testKeyValueAt()
/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/base/core/tests/overlaytests/device/src/com/android/overlaytest/
DFabricatedOverlaysTest.java259 void waitForResourceValue(final int expectedValue) throws TimeoutException { in waitForResourceValue() argument
268 if (resourceValue == expectedValue) { in waitForResourceValue()
275 + expectedValue + "': current value is '" + resourceValue + "'"); in waitForResourceValue()
/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/services/tests/servicestests/src/com/android/server/adb/
DAdbDebuggingManagerTest.java461 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/
DContentProviderOperation.java410 final String expectedValue = values.getAsString(projection[i]); in applyInternal() local
411 if (!TextUtils.equals(cursorValue, expectedValue)) { in applyInternal()
414 + " when expected " + expectedValue + " for column " in applyInternal()
/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()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBstatsCpuTimesValidationTest.java622 final String expectedValue = Boolean.toString(enabled); in assertTrackPerProcStateCpuTimesSetting() local
625 return expectedValue.equals(actualValue) in assertTrackPerProcStateCpuTimesSetting()
626 ? null : "expected=" + expectedValue + ", actual=" + actualValue; in assertTrackPerProcStateCpuTimesSetting()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DGsmCdmaPhone.java3255 boolean expectedValue = userObject.first; in handleMessage()
3259 + " setting to " + expectedValue + " on phone " + mPhoneId in handleMessage()
4602 boolean expectedValue = info == null ? true : info.areUiccApplicationsEnabled(); in reapplyUiccAppsEnablementIfNeeded()
4606 if (expectedValue != mUiccApplicationsEnabled) { in reapplyUiccAppsEnablementIfNeeded()
4607 mCi.enableUiccApplications(expectedValue, Message.obtain( in reapplyUiccAppsEnablementIfNeeded()
4609 new Pair<Boolean, Integer>(expectedValue, retries))); in reapplyUiccAppsEnablementIfNeeded()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java4357 List<TimingSession> timingSessions, int bucketIndex, long expectedValue) { in runTestGetTimeUntilEJQuotaConsumedLocked() argument
4369 expectedValue, in runTestGetTimeUntilEJQuotaConsumedLocked()