Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/src/android/media/cts/
DExifInterfaceTest.java243 private void assertIntTag(ExifInterface exifInterface, String tag, int expectedValue) { in assertIntTag() argument
245 assertEquals(expectedValue, intValue); in assertIntTag()
248 private void assertFloatTag(ExifInterface exifInterface, String tag, float expectedValue) { in assertFloatTag() argument
250 assertEquals(expectedValue, doubleValue, DIFFERENCE_TOLERANCE); in assertFloatTag()
253 private void assertStringTag(ExifInterface exifInterface, String tag, String expectedValue) { in assertStringTag() argument
260 assertEquals(expectedValue, stringValue); in assertStringTag()
264 ExpectedValue expectedValue, String verboseTag, boolean assertRanges) { in compareWithExpectedValue() argument
269 assertEquals(expectedValue.hasThumbnail, exifInterface.hasThumbnail()); in compareWithExpectedValue()
270 if (expectedValue.hasThumbnail) { in compareWithExpectedValue()
274 assertEquals(expectedValue.thumbnailOffset, thumbnailRange[0]); in compareWithExpectedValue()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DSettingsTest.java248 final int expectedValue = i % 2; in testNoStaleValueModifiedFromSameProcess() local
250 Settings.System.VIBRATE_WHEN_RINGING, expectedValue); in testNoStaleValueModifiedFromSameProcess() local
253 assertSame("Settings write must be atomic", expectedValue, actualValue); in testNoStaleValueModifiedFromSameProcess()
267 final int expectedValue = i % 2; in testNoStaleValueModifiedFromOtherProcess() local
269 + Settings.System.VIBRATE_WHEN_RINGING + " " + expectedValue); in testNoStaleValueModifiedFromOtherProcess() local
272 assertSame("Settings write must be atomic", expectedValue, actualValue); in testNoStaleValueModifiedFromOtherProcess()
286 final int expectedValue = i % 2; in testNoStaleValueModifiedFromMultipleProcesses() local
289 Settings.System.VIBRATE_WHEN_RINGING, expectedValue); in testNoStaleValueModifiedFromMultipleProcesses() local
293 Settings.System.VIBRATE_WHEN_RINGING, expectedValue); in testNoStaleValueModifiedFromMultipleProcesses() local
296 assertSame("Settings write must be atomic", expectedValue, actualValue); in testNoStaleValueModifiedFromMultipleProcesses()
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/
DAugmentedHelper.java114 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/camera/utils/src/android/hardware/camera2/cts/helpers/
DPreconditions.java61 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/
DDatabaseAsserts.java247 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()
DContactsContract_DataUsageTest.java134 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/
DAutofillValueTest.java234 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);
312 assertThat(mSpinner.getSelectedItemPosition()).isEqualTo(expectedValue);
476 private void autofillRadioGroup(@Nullable AutofillValue value, int expectedValue,
491 "radioGroup", 2, mRadioGroup, expectedValue);
504 if (expectedValue == 0) {
DHelper.java505 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 …]
DDateValueSanitizerTest.java77 final AutofillValue expectedValue = AutofillValue.forDate(expectedDate); in testSanitize_ok() local
86 assertThat(sanitizedValue).isEqualTo(expectedValue); in testSanitize_ok()
DAuthenticationTest.java735 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()
DVirtualContainerActivityTest.java789 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/
DAccessibilitySoftKeyboardModesTest.java130 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/
DProcessStatsDumpsysTest.java367 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/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DTimeoutTest.java143 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/tests/src/com/android/compatibility/common/util/
DTimeoutTest.java143 public static void assertFloat(float actualValue, float expectedValue) { in assertFloat() argument
144 assertThat(actualValue).isWithin(1.0e-10f).of(expectedValue); in assertFloat()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DStepCounterTestActivity.java306 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/car/src/android/car/cts/
DCarPropertyManagerTest.java275 boolean expectedValue = !currentValue; in setBooleanPropertyHelper()
277 mCarPropertyManager.setBooleanProperty(propId, areaId, expectedValue); in setBooleanPropertyHelper()
280 return expectedValue == currentValue; in setBooleanPropertyHelper()
/cts/tests/tests/rsblas/src/android/renderscript/cts/
DBNNMTest.java91 byte expectedValue = c_byte[i]; in testWithTolerance()
93 int delta = (expectedValue - actualValue); in testWithTolerance()
103 ": expected " + (expectedValue & 0xff) + in testWithTolerance()
/cts/tests/tests/content/src/android/content/res/cts/
DResourcesTest.java152 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/
DDropTarget.java241 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/
DAccessibilityManagerTest.java484 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/
DNetworkSecurityPolicyTestBase.java60 int expectedValue = (mCleartextTrafficExpectedToBePermitted) in testApplicationInfoFlag() local
62 assertEquals(expectedValue, appInfo.flags & ApplicationInfo.FLAG_USES_CLEARTEXT_TRAFFIC); in testApplicationInfoFlag()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeImageTransformTest.java258 final float expectedValue = expectedValues[i]; in verifyMatrixMatches() local
260 assertEquals("Value [" + i + "]", expectedValue, value, 0.01f); in verifyMatrixMatches()
/cts/tests/tests/view/src/android/view/cts/
DLayoutInflaterTest.java401 final CharSequence expectedValue = targetContext.getString(valueResId); in checkViewTag() local
402 assertEquals(tagId + " has tag " + expectedValue, expectedValue, tag); in checkViewTag()
/cts/tests/tests/net/src/android/net/cts/
DConnectivityManagerTest.java653 int expectedValue) { in assertMultipathPreferenceIsEventually() argument
656 assertNotSame(oldValue, expectedValue); in assertMultipathPreferenceIsEventually()
660 if (actualValue == expectedValue) { in assertMultipathPreferenceIsEventually()
665 + ") nor expected (" + expectedValue + ")"); in assertMultipathPreferenceIsEventually()
670 + expectedValue + " ; actual = " + mCm.getMultipathPreference(network)); in assertMultipathPreferenceIsEventually()

12