/frameworks/base/packages/ExtServices/tests/src/android/ext/services/autofill/ |
H A D | EditDistanceScorerTest.java | 110 public static void assertFloat(float actualValue, float expectedValue) { argument 111 assertThat(actualValue).isWithin(0.01F).of(expectedValue);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | Preconditions.java | 59 * @param expectedValue Expected value 65 String expectedName, T expectedValue) { 66 if (!Objects.equals(arg, expectedValue)) { 70 argName, expectedName, arg, expectedValue)); 64 checkEquals(String argName, T arg, String expectedName, T expectedValue) argument
|
H A D | CameraErrorCollector.java | 587 int expectedValue, float errorPercent) { 590 actualValue <= (expectedValue * (1.0f + errorPercent))) && succ; 592 actualValue >= (expectedValue * (1.0f - errorPercent))) && succ; 585 expectSimilarValues( String formattedMsg, String tooSmall, String tooLarge, int actualValue, int expectedValue, float errorPercent) argument
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
H A D | MetricsUtilsTest.java | 185 MetricsUtils.LogHistParms hp, int expectedKey, int expectedValue) { 187 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); 191 int expectedKey, int expectedValue) { 193 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); 184 bucketValueAndVerify(String prefix, long value, SparseIntArray h, MetricsUtils.LogHistParms hp, int expectedKey, int expectedValue) argument 190 bucketValueAndVerify(String prefix, int value, SparseIntArray h, int[] hp, int expectedKey, int expectedValue) argument
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/solver/ |
H A D | ExecutionPath.java | 64 public ExecutionPath addBranch(Expr pred, boolean expectedValue) { argument 66 Preconditions.checkNull(expectedValue ? mTrueBranch : mFalseBranch, 67 "Cannot add two " + expectedValue + "branches"); 71 if (expectedValue == knownValue) { 80 ExecutionBranch edge = new ExecutionBranch(path, pred, expectedValue); 81 path.mKnownValues.put(pred, expectedValue); 82 if (expectedValue) {
|
/frameworks/base/libs/androidfw/tests/ |
H A D | ResTable_test.cpp | 272 void testU16StringToInt(const char16_t* str, uint32_t expectedValue, argument 295 ASSERT_EQ(expectedValue, out.data) << "Failed with " << s;
|
/frameworks/rs/driver/runtime/ |
H A D | rs_core.c | 44 extern int32_t __attribute__((overloadable)) rsAtomicCas(volatile int32_t *ptr, int32_t expectedValue, int32_t newValue) { argument 45 return __sync_val_compare_and_swap(ptr, expectedValue, newValue); 48 extern uint32_t __attribute__((overloadable)) rsAtomicCas(volatile uint32_t *ptr, uint32_t expectedValue, uint32_t newValue) { argument 49 return __sync_val_compare_and_swap(ptr, expectedValue, newValue);
|
/frameworks/support/viewpager2/src/androidTest/java/androidx/viewpager2/widget/ |
H A D | SwipeTest.java | 125 private void assertStateCorrect(int expectedValue, BaseActivity activity) { argument 127 matches(withText(String.valueOf(expectedValue))));
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | ExifInterfaceTest.java | 240 private void assertIntTag(ExifInterface exifInterface, String tag, int expectedValue) { argument 242 assertEquals(expectedValue, intValue); 245 private void assertDoubleTag(ExifInterface exifInterface, String tag, float expectedValue) { argument 247 assertEquals(expectedValue, doubleValue, DIFFERENCE_TOLERANCE); 250 private void assertStringTag(ExifInterface exifInterface, String tag, String expectedValue) { argument 257 assertEquals(expectedValue, stringValue); 261 ExpectedValue expectedValue, String verboseTag) { 266 assertEquals(expectedValue.hasThumbnail, exifInterface.hasThumbnail()); 267 if (expectedValue.hasThumbnail) { 272 assertEquals(expectedValue 260 compareWithExpectedValue(ExifInterface exifInterface, ExpectedValue expectedValue, String verboseTag) argument 315 testExifInterfaceCommon(File imageFile, ExpectedValue expectedValue) argument 356 testSaveAttributes_withFileName(File imageFile, ExpectedValue expectedValue) argument 378 testSaveAttributes_withFileDescriptor(File imageFile, ExpectedValue expectedValue) argument 411 testSaveAttributes_withInputStream(File imageFile, ExpectedValue expectedValue) argument [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | BstatsCpuTimesValidationTest.java | 601 final String expectedValue = Boolean.toString(enabled); 604 return expectedValue.equals(actualValue) 605 ? null : "expected=" + expectedValue + ", actual=" + actualValue; 638 private void assertApproximateValue(String errorPrefix, long expectedValue, long actualValue) { argument 639 assertValueRange(errorPrefix, actualValue, expectedValue * 0.5, expectedValue * 1.5);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
H A D | Camera2SurfaceViewTestCase.java | 340 * @param expectedValue The result value need to be waited for 348 T expectedValue, int numResultsWait) { 350 expectedValues.add(expectedValue); 384 for ( T expectedValue : expectedValues) { 389 if (value.equals(expectedValue)) { 346 waitForResultValue(SimpleCaptureCallback listener, CaptureResult.Key<T> resultKey, T expectedValue, int numResultsWait) argument
|
/frameworks/support/compat/src/androidTest/java/androidx/core/text/util/ |
H A D | LinkifyCompatTest.java | 255 private boolean containsUrl(URLSpan[] spans, String expectedValue) { argument 257 if (span.getURL().equals(expectedValue)) {
|
/frameworks/support/exifinterface/src/androidTest/java/androidx/exifinterface/media/ |
H A D | ExifInterfaceTest.java | 695 private void assertIntTag(ExifInterface exifInterface, String tag, int expectedValue) { argument 697 assertEquals(expectedValue, intValue); 700 private void assertFloatTag(ExifInterface exifInterface, String tag, float expectedValue) { argument 702 assertEquals(expectedValue, doubleValue, DIFFERENCE_TOLERANCE); 705 private void assertStringTag(ExifInterface exifInterface, String tag, String expectedValue) { argument 712 assertEquals(expectedValue, stringValue); 716 ExpectedValue expectedValue, String verboseTag) { 721 assertEquals(expectedValue.hasThumbnail, exifInterface.hasThumbnail()); 722 if (expectedValue.hasThumbnail) { 727 assertEquals(expectedValue 715 compareWithExpectedValue(ExifInterface exifInterface, ExpectedValue expectedValue, String verboseTag) argument 772 testExifInterfaceCommon(String fileName, ExpectedValue expectedValue) argument 793 testSaveAttributes_withFileName(String fileName, ExpectedValue expectedValue) argument [all...] |
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
H A D | BugreportReceiverTest.java | 910 private void assertPropertyValue(String key, String expectedValue) { argument 916 if (expectedValue.equals(actualValue)) { 920 + ") does not match expected value (" + expectedValue 926 assertEquals("Wrong value for property '" + key + "'", expectedValue, actualValue);
|