Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/src/android/media/cts/
DExifInterfaceTest.java226 private void assertIntTag(ExifInterface exifInterface, String tag, int expectedValue) { in assertIntTag() argument
228 assertEquals(expectedValue, intValue); in assertIntTag()
231 private void assertFloatTag(ExifInterface exifInterface, String tag, float expectedValue) { in assertFloatTag() argument
233 assertEquals(expectedValue, doubleValue, DIFFERENCE_TOLERANCE); in assertFloatTag()
236 private void assertStringTag(ExifInterface exifInterface, String tag, String expectedValue) { in assertStringTag() argument
243 assertEquals(expectedValue, stringValue); in assertStringTag()
247 ExpectedValue expectedValue, String verboseTag) { in compareWithExpectedValue() argument
252 assertEquals(expectedValue.hasThumbnail, exifInterface.hasThumbnail()); in compareWithExpectedValue()
253 if (expectedValue.hasThumbnail) { in compareWithExpectedValue()
258 assertEquals(expectedValue.thumbnailWidth, thumbnailBitmap.getWidth()); in compareWithExpectedValue()
[all …]
/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()
DCameraErrorCollector.java573 int expectedValue, float errorPercent) { in expectSimilarValues() argument
576 actualValue <= (expectedValue * (1.0f + errorPercent))) && succ; in expectSimilarValues()
578 actualValue >= (expectedValue * (1.0f - errorPercent))) && succ; in expectSimilarValues()
/cts/tests/tests/provider/src/android/provider/cts/
DSettingsTest.java219 final int expectedValue = i % 2; in testNoStaleValueModifiedFromSameProcess() local
221 Settings.System.VIBRATE_WHEN_RINGING, expectedValue); in testNoStaleValueModifiedFromSameProcess() local
224 assertSame("Settings write must be atomic", expectedValue, actualValue); in testNoStaleValueModifiedFromSameProcess()
237 final int expectedValue = i % 2; in testNoStaleValueModifiedFromOtherProcess() local
239 + Settings.System.VIBRATE_WHEN_RINGING + " " + expectedValue); in testNoStaleValueModifiedFromOtherProcess() local
242 assertSame("Settings write must be atomic", expectedValue, actualValue); in testNoStaleValueModifiedFromOtherProcess()
255 final int expectedValue = i % 2; in testNoStaleValueModifiedFromMultipleProcesses() local
258 Settings.System.VIBRATE_WHEN_RINGING, expectedValue); in testNoStaleValueModifiedFromMultipleProcesses() local
262 Settings.System.VIBRATE_WHEN_RINGING, expectedValue); in testNoStaleValueModifiedFromMultipleProcesses() local
265 assertSame("Settings write must be atomic", expectedValue, actualValue); in testNoStaleValueModifiedFromMultipleProcesses()
DMediaStore_FilesTest.java539 private void assertStringColumn(Uri fileUri, String columnName, String expectedValue) { in assertStringColumn() argument
544 assertEquals(expectedValue, cursor.getString(index)); in assertStringColumn()
/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.java178 private void assertDataUsageEquals(long dataId, int expectedValue) { in assertDataUsageEquals() argument
188 assertEquals(expectedValue, actual); in assertDataUsageEquals()
192 "ifnull(" + Data.TIMES_USED + ",0)=" + expectedValue, null).length); in assertDataUsageEquals()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DAutofillValueTest.java228 private void autofillCompoundButton(@Nullable AutofillValue value, boolean expectedValue, in autofillCompoundButton() argument
241 "compoundButton", mCompoundButton, expectedValue); in autofillCompoundButton()
253 assertThat(mCompoundButton.isChecked()).isEqualTo(expectedValue); in autofillCompoundButton()
281 private void autofillListValue(@Nullable AutofillValue value, int expectedValue, in autofillListValue() argument
294 "spinner", mSpinner, expectedValue); in autofillListValue()
306 assertThat(mSpinner.getSelectedItemPosition()).isEqualTo(expectedValue); in autofillListValue()
470 private void autofillRadioGroup(@Nullable AutofillValue value, int expectedValue, in autofillRadioGroup() argument
485 "radioGroup", 2, mRadioGroup, expectedValue); in autofillRadioGroup()
498 if (expectedValue == 0) { in autofillRadioGroup()
DHelper.java437 static void assertTextOnly(ViewNode node, String expectedValue) { in assertTextOnly() argument
438 assertText(node, expectedValue, false); in assertTextOnly()
445 static void assertTextOnly(AssistStructure structure, String resourceId, String expectedValue) { in assertTextOnly() argument
447 assertText(node, expectedValue, false); in assertTextOnly()
454 static void assertTextAndValue(ViewNode node, String expectedValue) { in assertTextAndValue() argument
455 assertText(node, expectedValue, true); in assertTextAndValue()
463 String expectedValue) { in assertTextAndValue() argument
465 assertTextAndValue(node, expectedValue); in assertTextAndValue()
473 String expectedValue) { in assertValue() argument
475 assertTextValue(node, expectedValue); in assertValue()
[all …]
DDateValueSanitizerTest.java76 final AutofillValue expectedValue = AutofillValue.forDate(expectedDate); in testSanitize_ok() local
85 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.java783 protected void assertLabel(ViewNode node, String expectedValue) { in assertLabel() argument
786 assertTextOnly(node, expectedValue); in assertLabel()
788 assertTextAndValue(node, expectedValue); in assertLabel()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilitySoftKeyboardModesTest.java154 private void waitForCallbackValueWithLock(int expectedValue) throws Exception { in waitForCallbackValueWithLock() argument
159 if (mLastCallbackValue == expectedValue) { in waitForCallbackValueWithLock()
171 + "> 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/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/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/accessibility/src/android/view/accessibility/cts/
DAccessibilityManagerTest.java336 boolean expectedValue, Object waitObject, String message) in assertAtomicBooleanBecomes() argument
341 while ((atomicBoolean.get() != expectedValue) in assertAtomicBooleanBecomes()
346 assertTrue(message, atomicBoolean.get() == expectedValue); in assertAtomicBooleanBecomes()
/cts/tests/tests/content/src/android/content/res/cts/
DResourcesTest.java143 final String expectedValue) { in checkGetText1() argument
147 expectedValue); in checkGetText1()
148 assertEquals("Returned wrong configuration-based simple value: expected " + expectedValue in checkGetText1()
150 expectedValue, actual); in checkGetText1()
154 final String expectedValue) { in checkGetText2() argument
158 expectedValue); in checkGetText2()
159 assertEquals("Returned wrong configuration-based simple value: expected " + expectedValue in checkGetText2()
161 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/camera/src/android/hardware/camera2/cts/testcases/
DCamera2SurfaceViewTestCase.java335 T expectedValue, int numResultsWait) { in waitForResultValue() argument
337 expectedValues.add(expectedValue); in waitForResultValue()
371 for ( T expectedValue : expectedValues) { in waitForAnyResultValue()
376 if (value.equals(expectedValue)) { in waitForAnyResultValue()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeImageTransformTest.java225 final float expectedValue = expectedValues[i]; in verifyMatrixMatches() local
227 assertEquals("Value [" + i + "]", expectedValue, value, 0.01f); in verifyMatrixMatches()
/cts/tests/tests/view/src/android/view/cts/
DLayoutInflaterTest.java395 final CharSequence expectedValue = targetContext.getString(valueResId); in checkViewTag() local
396 assertEquals(tagId + " has tag " + expectedValue, expectedValue, tag); in checkViewTag()
/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/net/src/android/net/cts/
DConnectivityManagerTest.java1022 int expectedValue) { in assertMultipathPreferenceIsEventually() argument
1025 assertNotSame(oldValue, expectedValue); in assertMultipathPreferenceIsEventually()
1029 if (actualValue == expectedValue) { in assertMultipathPreferenceIsEventually()
1034 + ") nor expected (" + expectedValue + ")"); in assertMultipathPreferenceIsEventually()
1039 + expectedValue + " ; actual = " + mCm.getMultipathPreference(network)); in assertMultipathPreferenceIsEventually()
/cts/tests/tests/util/src/android/util/cts/
DArraySetTest.java363 int expectedValue = ((i >= indexToDelete) ? (i + 1) : i) * 10;
364 assertEquals(expectedValue, set.valueAt(i).intValue());

12