/cts/tests/tests/media/src/android/media/cts/ |
D | ExifInterfaceTest.java | 255 private void assertIntTag(ExifInterface exifInterface, String tag, int expectedValue) { in assertIntTag() argument 257 assertEquals(expectedValue, intValue); in assertIntTag() 260 private void assertFloatTag(ExifInterface exifInterface, String tag, float expectedValue) { in assertFloatTag() argument 262 assertEquals(expectedValue, doubleValue, DIFFERENCE_TOLERANCE); in assertFloatTag() 265 private void assertStringTag(ExifInterface exifInterface, String tag, String expectedValue) { in assertStringTag() argument 272 assertEquals(expectedValue, stringValue); in assertStringTag() 276 ExpectedValue expectedValue, String verboseTag, boolean assertRanges) { in compareWithExpectedValue() argument 281 assertEquals(expectedValue.hasThumbnail, exifInterface.hasThumbnail()); in compareWithExpectedValue() 282 if (expectedValue.hasThumbnail) { in compareWithExpectedValue() 286 assertEquals(expectedValue.thumbnailOffset, thumbnailRange[0]); in compareWithExpectedValue() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/ |
D | AugmentedHelper.java | 114 public static void assertAutofillValue(@NonNull AutofillValue expectedValue, in assertAutofillValue() argument 117 assertWithMessage("expected value is not text: %s", expectedValue) in assertAutofillValue() 118 .that(expectedValue.isText()).isTrue(); in assertAutofillValue() 119 assertAutofillValue(expectedValue.getTextValue().toString(), actualValue); in assertAutofillValue() 122 public static void assertAutofillValue(@NonNull String expectedValue, in assertAutofillValue() argument 128 .isEqualTo(expectedValue); in assertAutofillValue()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | SettingsTest.java | 249 final int expectedValue = i % 2; in testNoStaleValueModifiedFromSameProcess() local 251 Settings.System.VIBRATE_WHEN_RINGING, expectedValue); in testNoStaleValueModifiedFromSameProcess() local 254 assertSame("Settings write must be atomic", expectedValue, actualValue); in testNoStaleValueModifiedFromSameProcess() 268 final int expectedValue = i % 2; in testNoStaleValueModifiedFromOtherProcess() local 270 + Settings.System.VIBRATE_WHEN_RINGING + " " + expectedValue); in testNoStaleValueModifiedFromOtherProcess() local 273 assertSame("Settings write must be atomic", expectedValue, actualValue); in testNoStaleValueModifiedFromOtherProcess() 287 final int expectedValue = i % 2; in testNoStaleValueModifiedFromMultipleProcesses() local 290 Settings.System.VIBRATE_WHEN_RINGING, expectedValue); in testNoStaleValueModifiedFromMultipleProcesses() local 294 Settings.System.VIBRATE_WHEN_RINGING, expectedValue); in testNoStaleValueModifiedFromMultipleProcesses() local 297 assertSame("Settings write must be atomic", expectedValue, actualValue); in testNoStaleValueModifiedFromMultipleProcesses()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | Preconditions.java | 61 String expectedName, T expectedValue) { in checkEquals() argument 62 if (!Objects.equals(arg, expectedValue)) { in checkEquals() 66 argName, expectedName, arg, expectedValue)); in checkEquals()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | DatabaseAsserts.java | 247 Object expectedValue = expectedValues.get(column); in equalsWithExpectedValues() local 249 expectedValue = expectedValues.getAsString(column); in equalsWithExpectedValues() 251 if (expectedValue != null && !expectedValue.equals(value) || value != null in equalsWithExpectedValues() 252 && !value.equals(expectedValue)) { in equalsWithExpectedValues() 257 .append(expectedValue) in equalsWithExpectedValues()
|
D | ContactsContract_DataUsageTest.java | 134 private void assertDataUsageEquals(long dataId, int expectedValue) { in assertDataUsageEquals() argument 144 assertEquals(expectedValue, actual); in assertDataUsageEquals() 148 "ifnull(" + Data.TIMES_USED + ",0)=" + expectedValue, null).length); in assertDataUsageEquals()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | AutofillValueTest.java | 234 private void autofillCompoundButton(@Nullable AutofillValue value, boolean expectedValue, 247 "compoundButton", mCompoundButton, expectedValue); 259 assertThat(mCompoundButton.isChecked()).isEqualTo(expectedValue); 287 private void autofillListValue(@Nullable AutofillValue value, int expectedValue, 300 "spinner", mSpinner, expectedValue); 315 assertThat(mSpinner.getSelectedItemPosition()).isEqualTo(expectedValue); 479 private void autofillRadioGroup(@Nullable AutofillValue value, int expectedValue, 494 "radioGroup", 2, mRadioGroup, expectedValue); 507 if (expectedValue == 0) {
|
D | Helper.java | 505 public static void assertTextOnly(ViewNode node, String expectedValue) { in assertTextOnly() argument 506 assertText(node, expectedValue, false); in assertTextOnly() 514 String expectedValue) { in assertTextOnly() argument 516 assertText(node, expectedValue, false); in assertTextOnly() 523 public static void assertTextAndValue(ViewNode node, String expectedValue) { in assertTextAndValue() argument 524 assertText(node, expectedValue, true); in assertTextAndValue() 532 String expectedValue) { in assertTextAndValue() argument 534 assertTextAndValue(node, expectedValue); in assertTextAndValue() 542 String expectedValue) { in assertValue() argument 544 assertTextValue(node, expectedValue); in assertValue() [all …]
|
D | DateValueSanitizerTest.java | 77 final AutofillValue expectedValue = AutofillValue.forDate(expectedDate); in testSanitize_ok() local 86 assertThat(sanitizedValue).isEqualTo(expectedValue); in testSanitize_ok()
|
D | AuthenticationTest.java | 735 final String expectedValue = where == ClientStateLocation.FILL_RESPONSE_ONLY in fillDatasetAuthWithClientState() local 737 assertClientState("on save", saveRequest.data, "CSI", expectedValue); in fillDatasetAuthWithClientState() 1115 final String expectedValue = where == ClientStateLocation.FILL_RESPONSE_ONLY in fillResponseAuthWithClientState() local 1117 assertClientState("on save", saveRequest.data, "CSI", expectedValue); in fillResponseAuthWithClientState() 1122 String expectedValue) { in assertClientState() argument 1126 .that(extraValue).isEqualTo(expectedValue); in assertClientState()
|
D | VirtualContainerActivityTest.java | 789 protected void assertLabel(ViewNode node, String expectedValue) { in assertLabel() argument 792 assertTextOnly(node, expectedValue); in assertLabel() 794 assertTextAndValue(node, expectedValue); in assertLabel()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilitySoftKeyboardModesTest.java | 130 private void waitForCallbackValueWithLock(int expectedValue) throws Exception { in waitForCallbackValueWithLock() argument 135 if (mLastCallbackValue == expectedValue) { in waitForCallbackValueWithLock() 147 + "> does not match expected value < " + expectedValue + ">"); in waitForCallbackValueWithLock()
|
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/ |
D | ProcessStatsDumpsysTest.java | 367 long expectedValue) { in assertTagValueSumAbout() argument 371 + "' expected to be >= " + expectedValue + " but was: " in assertTagValueSumAbout() 372 + sum, sum >= expectedValue); in assertTagValueSumAbout() 374 + "' expected to be <= (" + expectedValue + ") * " in assertTagValueSumAbout() 376 + sum, sum <= (expectedValue * DURATION_TIME_MAX_FACTOR)); in assertTagValueSumAbout()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | StepCounterTestActivity.java | 306 final float expectedValue = 1.0f; in verifyStepDetectorMeasurements() local 309 getString(R.string.snsr_event_value, expectedValue, value0, sensorName); in verifyStepDetectorMeasurements() 310 Assert.assertEquals(eventValueMessage, expectedValue, value0); in verifyStepDetectorMeasurements()
|
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
D | BNNMTest.java | 91 byte expectedValue = c_byte[i]; in testWithTolerance() 93 int delta = (expectedValue - actualValue); in testWithTolerance() 103 ": expected " + (expectedValue & 0xff) + in testWithTolerance()
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarPropertyManagerTest.java | 275 boolean expectedValue = !currentValue; in setBooleanPropertyHelper() 277 mCarPropertyManager.setBooleanProperty(propId, areaId, expectedValue); in setBooleanPropertyHelper() 280 return expectedValue == currentValue; in setBooleanPropertyHelper()
|
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/ |
D | SmsTestHelper.java | 62 public void assertSmsColumnEquals(String columnName, Uri uri, String expectedValue) { in assertSmsColumnEquals() argument 68 assertThat(cursor.getString(cursor.getColumnIndex(columnName))).isEqualTo(expectedValue); in assertSmsColumnEquals()
|
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/ |
D | TimeoutTest.java | 143 public static void assertFloat(float actualValue, float expectedValue) { in assertFloat() argument 144 assertThat(actualValue).isWithin(1.0e-10f).of(expectedValue); in assertFloat()
|
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/ |
D | TimeoutTest.java | 143 public static void assertFloat(float actualValue, float expectedValue) { in assertFloat() argument 144 assertThat(actualValue).isWithin(1.0e-10f).of(expectedValue); in assertFloat()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ResourcesTest.java | 152 final String expectedValue) { in checkGetText1() argument 156 expectedValue); in checkGetText1() 157 assertEquals("Returned wrong configuration-based simple value: expected " + expectedValue in checkGetText1() 159 expectedValue, actual); in checkGetText1() 163 final String expectedValue) { in checkGetText2() argument 167 expectedValue); in checkGetText2() 168 assertEquals("Returned wrong configuration-based simple value: expected " + expectedValue in checkGetText2() 170 expectedValue, actual); in checkGetText2()
|
/cts/tests/framework/base/windowmanager/dndtargetapp/src/android/server/wm/dndtargetapp/ |
D | DropTarget.java | 241 protected String checkQueryResult(Uri uri, String expectedValue) { in checkQueryResult() argument 250 if (!expectedValue.equals(value)) { in checkQueryResult()
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityManagerTest.java | 484 boolean expectedValue, Object waitObject, String message) in assertAtomicBooleanBecomes() argument 489 while ((atomicBoolean.get() != expectedValue) in assertAtomicBooleanBecomes() 494 assertTrue(message, atomicBoolean.get() == expectedValue); in assertAtomicBooleanBecomes()
|
/cts/tests/tests/netsecpolicy/src/android/security/ |
D | NetworkSecurityPolicyTestBase.java | 60 int expectedValue = (mCleartextTrafficExpectedToBePermitted) in testApplicationInfoFlag() local 62 assertEquals(expectedValue, appInfo.flags & ApplicationInfo.FLAG_USES_CLEARTEXT_TRAFFIC); in testApplicationInfoFlag()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | LayoutInflaterTest.java | 401 final CharSequence expectedValue = targetContext.getString(valueResId); in checkViewTag() local 402 assertEquals(tagId + " has tag " + expectedValue, expectedValue, tag); in checkViewTag()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeImageTransformTest.java | 258 final float expectedValue = expectedValues[i]; in verifyMatrixMatches() local 260 assertEquals("Value [" + i + "]", expectedValue, value, 0.01f); in verifyMatrixMatches()
|