Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/misc/src/android/media/misc/cts/
DExifInterfaceTest.java290 private void assertIntTag(ExifInterface exifInterface, String tag, int expectedValue) { in assertIntTag() argument
292 assertEquals(expectedValue, intValue); in assertIntTag()
295 private void assertFloatTag(ExifInterface exifInterface, String tag, float expectedValue) { in assertFloatTag() argument
297 assertEquals(expectedValue, doubleValue, DIFFERENCE_TOLERANCE); in assertFloatTag()
300 private void assertStringTag(ExifInterface exifInterface, String tag, String expectedValue) { in assertStringTag() argument
307 assertEquals(expectedValue, stringValue); in assertStringTag()
311 ExpectedValue expectedValue, String verboseTag, boolean assertRanges) { in compareWithExpectedValue() argument
316 assertEquals(expectedValue.hasThumbnail, exifInterface.hasThumbnail()); in compareWithExpectedValue()
317 if (expectedValue.hasThumbnail) { in compareWithExpectedValue()
321 assertEquals(expectedValue.thumbnailOffset, thumbnailRange[0]); in compareWithExpectedValue()
[all …]
/cts/tests/devicepolicy/src/android/devicepolicy/cts/utils/
DBundleUtils.java149 private static void assertBooleanKey(Bundle bundle, String key, boolean expectedValue) { in assertBooleanKey() argument
154 .that(value).isEqualTo(expectedValue); in assertBooleanKey()
157 private static void assertIntKey(Bundle bundle, String key, int expectedValue) { in assertIntKey() argument
161 .that(value).isEqualTo(expectedValue); in assertIntKey()
164 private static void assertStringKey(Bundle bundle, String key, String expectedValue) { in assertStringKey() argument
168 .that(value).isEqualTo(expectedValue); in assertStringKey()
171 private static void assertStringsKey(Bundle bundle, String key, String[] expectedValue) { in assertStringsKey() argument
177 .containsExactlyElementsIn(expectedValue).inOrder(); in assertStringsKey()
/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/
DBaseBroadcastTest.java255 final Object expectedValue = expected.get(key); in compareExtras() local
257 if (expectedValue == actualValue) { in compareExtras()
259 } else if (expectedValue == null || actualValue == null) { in compareExtras()
262 if (actualValue.getClass() != expectedValue.getClass()) { in compareExtras()
265 if (expectedValue.getClass().isArray()) { in compareExtras()
266 if (Array.getLength(actualValue) != Array.getLength(expectedValue)) { in compareExtras()
269 for (int i = 0; i < Array.getLength(expectedValue); ++i) { in compareExtras()
270 if (!Objects.equal(Array.get(actualValue, i), Array.get(expectedValue, i))) { in compareExtras()
274 } else if (expectedValue instanceof ArrayList) { in compareExtras()
275 final ArrayList<?> expectedList = (ArrayList<?>) expectedValue; in compareExtras()
[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()
/cts/tests/tests/provider/src/android/provider/cts/settings/
DSettingsTest.java257 final int expectedValue = i % 2; in testNoStaleValueModifiedFromSameProcess() local
259 Settings.System.VIBRATE_WHEN_RINGING, expectedValue); in testNoStaleValueModifiedFromSameProcess() local
262 assertSame("Settings write must be atomic", expectedValue, actualValue); in testNoStaleValueModifiedFromSameProcess()
276 final int expectedValue = i % 2; in testNoStaleValueModifiedFromOtherProcess() local
278 + " system " + Settings.System.VIBRATE_WHEN_RINGING + " " + expectedValue); in testNoStaleValueModifiedFromOtherProcess() local
281 assertSame("Settings write must be atomic", expectedValue, actualValue); in testNoStaleValueModifiedFromOtherProcess()
295 final int expectedValue = i % 2; in testNoStaleValueModifiedFromMultipleProcesses() local
298 Settings.System.VIBRATE_WHEN_RINGING, expectedValue); in testNoStaleValueModifiedFromMultipleProcesses() local
303 Settings.System.VIBRATE_WHEN_RINGING, expectedValue); in testNoStaleValueModifiedFromMultipleProcesses() local
306 assertSame("Settings write must be atomic", expectedValue, actualValue); in testNoStaleValueModifiedFromMultipleProcesses()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DAugmentedHelper.java154 public static void assertAutofillValue(@NonNull AutofillValue expectedValue, in assertAutofillValue() argument
157 assertWithMessage("expected value is not text: %s", expectedValue) in assertAutofillValue()
158 .that(expectedValue.isText()).isTrue(); in assertAutofillValue()
159 assertAutofillValue(expectedValue.getTextValue().toString(), actualValue); in assertAutofillValue()
162 public static void assertAutofillValue(@NonNull String expectedValue, in assertAutofillValue() argument
168 .isEqualTo(expectedValue); in assertAutofillValue()
DHelper.java565 public static void assertTextOnly(ViewNode node, String expectedValue) { in assertTextOnly() argument
566 assertText(node, expectedValue, false); in assertTextOnly()
574 String expectedValue) { in assertTextOnly() argument
576 assertText(node, expectedValue, false); in assertTextOnly()
583 public static void assertTextAndValue(ViewNode node, String expectedValue) { in assertTextAndValue() argument
584 assertText(node, expectedValue, true); in assertTextAndValue()
592 String expectedValue) { in assertTextAndValue() argument
594 assertTextAndValue(node, expectedValue); in assertTextAndValue()
602 String expectedValue) { in assertValue() argument
604 assertTextValue(node, expectedValue); in assertValue()
[all …]
/cts/tests/tests/contactsprovider/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/credentials/src/android/credentials/cts/testcore/
DDeviceConfigStateRequiredRule.java45 Context deviceConfigContext, String expectedValue) { in DeviceConfigStateRequiredRule() argument
50 mExpectedValue = expectedValue; in DeviceConfigStateRequiredRule()
/cts/tests/autofillservice/src/android/autofillservice/cts/credman/
DDeviceConfigStateRequiredRule.java45 Context deviceConfigContext, String expectedValue) { in DeviceConfigStateRequiredRule() argument
50 mExpectedValue = expectedValue; in DeviceConfigStateRequiredRule()
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
DDateValueSanitizerTest.java77 final AutofillValue expectedValue = AutofillValue.forDate(expectedDate); in testSanitize_ok() local
86 assertThat(sanitizedValue).isEqualTo(expectedValue); in testSanitize_ok()
/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/tests/mediapc/common/src/android/mediapc/cts/common/
DRequiredMeasurement.java71 public Builder<T> addRequiredValue(Integer performanceClass, T expectedValue) { in addRequiredValue() argument
72 this.expectedValuesBuilder().put(performanceClass, expectedValue); in addRequiredValue()
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/
DCheckoutActivityTest.java511 private void autofillCompoundButton(AutofillValue value, boolean expectedValue,
527 ID_SAVE_CC, compoundButton, expectedValue);
534 assertThat(compoundButton.isChecked()).isEqualTo(expectedValue);
553 private void autofillListValue(AutofillValue value, int expectedValue,
569 ID_CC_EXPIRATION, spinner, expectedValue);
576 assertThat(spinner.getSelectedItemPosition()).isEqualTo(expectedValue);
765 private void autofillRadioGroup(AutofillValue value, int expectedValue,
782 ID_ADDRESS, 2, radioGroup, expectedValue);
791 if (expectedValue == 0) {
/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/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DSmsTestHelper.java62 public void assertSmsColumnEquals(String columnName, Uri uri, String expectedValue) { in assertSmsColumnEquals() argument
68 assertThat(cursor.getString(cursor.getColumnIndex(columnName))).isEqualTo(expectedValue); in assertSmsColumnEquals()
/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/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilitySoftKeyboardTest.java226 private void waitForCallbackValueWithLock(int expectedValue) throws Exception { in waitForCallbackValueWithLock() argument
231 if (mLastCallbackValue == expectedValue) { in waitForCallbackValueWithLock()
243 + "> does not match expected value < " + expectedValue + ">"); in waitForCallbackValueWithLock()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/vibrator/
DVibratorStatsTests.java166 private void assertSingleValueOccurred(int expectedValue, in assertSingleValueOccurred() argument
169 Arrays.asList(new HashSet<>(Arrays.asList(expectedValue))), in assertSingleValueOccurred()
/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.java176 final String expectedValue) { in checkGetText1() argument
180 expectedValue); in checkGetText1()
181 assertEquals("Returned wrong configuration-based simple value: expected " + expectedValue in checkGetText1()
183 expectedValue, actual); in checkGetText1()
187 final String expectedValue) { in checkGetText2() argument
191 expectedValue); in checkGetText2()
192 assertEquals("Returned wrong configuration-based simple value: expected " + expectedValue in checkGetText2()
194 expectedValue, actual); in checkGetText2()
/cts/tests/framework/base/windowmanager/dndtargetapp/src/android/server/wm/dndtargetapp/
DDropTarget.java279 protected String checkQueryResult(Uri uri, String expectedValue) { in checkQueryResult() argument
288 if (!expectedValue.equals(value)) { in checkQueryResult()
/cts/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/
DDropTarget.java282 protected String checkQueryResult(Uri uri, String expectedValue) { in checkQueryResult() argument
291 if (!expectedValue.equals(value)) { in checkQueryResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/midilib/
DJavaMidiTestModule.java270 int expectedValue = mMatchStream.get(mReceiveStreamPos) & 0x000000FF; in matchStream() local
274 + " : 0x" + Integer.toHexString(expectedValue) in matchStream()

12