Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DByteBufferReaderTest.java145 String expectedValue = "Hello World"; in readString() local
146 ByteBuffer buffer = ByteBuffer.wrap(expectedValue.getBytes(StandardCharsets.US_ASCII)); in readString()
149 assertEquals(expectedValue, actualValue); in readString()
160 String expectedValue = "Hello World"; in readStringWithByteLength() local
161 ByteBuffer buffer = ByteBuffer.allocate(expectedValue.length() + 1); in readStringWithByteLength()
162 buffer.put((byte) expectedValue.length()); in readStringWithByteLength()
163 buffer.put(expectedValue.getBytes(StandardCharsets.US_ASCII)); in readStringWithByteLength()
168 assertEquals(expectedValue, actualValue); in readStringWithByteLength()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java783 Object expectedValue = expectedArguments[i + 1]; in assertDataRow() local
784 if (expectedValue instanceof Uri) { in assertDataRow()
785 expectedValue = ContentUris.parseId((Uri) expectedValue); in assertDataRow()
787 if (expectedValue == null) { in assertDataRow()
790 if (expectedValue instanceof Long) { in assertDataRow()
792 expectedValue, actual.getAsLong(columnName)); in assertDataRow()
793 } else if (expectedValue instanceof Integer) { in assertDataRow()
795 expectedValue, actual.getAsInteger(columnName)); in assertDataRow()
796 } else if (expectedValue instanceof String) { in assertDataRow()
798 expectedValue, actual.getAsString(columnName)); in assertDataRow()
[all …]
DContactsProvider2Test.java5896 private void assertVisibility(long rawContactId, String expectedValue) { in assertVisibility() argument
5898 null, Contacts.IN_VISIBLE_GROUP, expectedValue); in assertVisibility()
7654 boolean defaultValue, boolean expectedValue) { in assertBooleanUriParameter() argument
7655 assertEquals(expectedValue, ContactsProvider2.readBooleanQueryParameter( in assertBooleanUriParameter()
9232 private void assertQueryParameter(String uriString, String parameter, String expectedValue) { in assertQueryParameter() argument
9233 assertEquals(expectedValue, ContactsProvider2.getQueryParameter( in assertQueryParameter()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DPowerComponentUtilUnitTest.java79 int expectedValue = mComponentFields[i].getInt(null); in testToPowerComponent() local
80 assertWithMessage("%s should be convected to %s", componentName, expectedValue) in testToPowerComponent()
82 .isEqualTo(expectedValue); in testToPowerComponent()
86 int expectedValue = mComponentFields[i].getInt(null); in testToPowerComponent() local
87 assertWithMessage("%s should be convected to %s", componentName, expectedValue) in testToPowerComponent()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DBasePreferenceControllerTestCase.java59 protected static final void assertAvailability(int actualValue, int expectedValue) { in assertAvailability() argument
62 expectedValue, availabilityToString(expectedValue)) in assertAvailability()
63 .that(actualValue).isEqualTo(expectedValue); in assertAvailability()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DMetricsUtilsTest.java190 MetricsUtils.LogHistParms hp, int expectedKey, int expectedValue) { in bucketValueAndVerify() argument
192 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); in bucketValueAndVerify()
196 int expectedKey, int expectedValue) { in bucketValueAndVerify() argument
198 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); in bucketValueAndVerify()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DMoreKeySpecTests.java304 final String[] moreKeys, final String[] expected, final boolean expectedValue) { in assertGetBooleanValue() argument
307 assertEquals(message + " [value]", expectedValue, actualValue); in assertGetBooleanValue()
344 final int expectedValue) { in assertGetIntValue() argument
347 assertEquals(message + " [value]", expectedValue, actualValue); in assertGetIntValue()
/packages/modules/ExtServices/java/tests/src/android/ext/services/autofill/
DEditDistanceScorerTest.java82 public static void assertFloat(float actualValue, float expectedValue) { in assertFloat() argument
83 assertThat(actualValue).isWithin(0.01F).of(expectedValue); in assertFloat()
DExactMatchTest.java96 public static void assertFloat(float actualValue, float expectedValue) { in assertFloat() argument
97 assertThat(actualValue).isWithin(0.01F).of(expectedValue); in assertFloat()
DCreditCardMatcherTest.java94 public static void assertFloat(float actualValue, float expectedValue) { in assertFloat() argument
95 assertThat(actualValue).isWithin(0.01F).of(expectedValue); in assertFloat()
/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/
DEnableContentCapturePreferenceControllerTest.java98 private void assertProperty(int expectedValue) throws SettingNotFoundException { in assertProperty() argument
101 .isEqualTo(expectedValue); in assertProperty()
DShowClipAccessNotificationPreferenceControllerTest.java136 private void assertProperty(int expectedValue) throws SettingNotFoundException { in assertProperty() argument
140 .isEqualTo(expectedValue); in assertProperty()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarVendorExtensionManagerTest.java235 final Long expectedValue = 100L; in testLongProperty() local
239 expectedValue); in testLongProperty()
245 assertEquals(expectedValue, actualValue); in testLongProperty()
/packages/modules/StatsD/statsd/tests/
DLogEvent_test.cpp162 vector<uint8_t> expectedValue = {'t', 'e', 's', 't'}; in TEST() local
163 EXPECT_EQ(expectedValue, storageItem.mValue.storage_value); in TEST()
222 vector<uint8_t> expectedValue(message, message + 5); in TEST() local
223 EXPECT_EQ(expectedValue, item.mValue.storage_value); in TEST()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DCarPropertyTest.java256 Object[] expectedValue = {"MIXED property", false, 5, 4, 3.2f}; in testMixedTypeProperty() local
257 propertyManager.setProperty(Object[].class, MIXED_TYPE_PROPERTY, 0, expectedValue); in testMixedTypeProperty()
262 assertArrayEquals(expectedValue, result.getValue()); in testMixedTypeProperty()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DSilentModeHandlerUnitTest.java217 String expectedValue = expectedMode ? VALUE_SILENT_MODE : VALUE_NON_SILENT_MODE; in assertSilentMode() local
220 if (handler.isSilentMode() == expectedMode && contents.equals(expectedValue)) { in assertSilentMode()
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/
DParentalControlsTest.java103 int minAge, int maxAge, int selectedAge, boolean expectedValue) { in assertRatingViewIsChecked() argument
118 expectedValue, in assertRatingViewIsChecked()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/units/
DUnitsBasePreferenceControllerTest.java138 String expectedValue = Integer.toString(DEFAULT_UNIT.getId()); in onCarServiceConnected_setsUnitBeingUsedAsPreferenceValue() local
140 assertThat(mPreference.getValue()).isEqualTo(expectedValue); in onCarServiceConnected_setsUnitBeingUsedAsPreferenceValue()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/storage/
DDatabaseManagerTest.java1124 void testSetGetA2dpOptionalCodecsCase(int test, boolean stored, int value, int expectedValue) { in testSetGetA2dpOptionalCodecsCase() argument
1132 Assert.assertEquals(expectedValue, in testSetGetA2dpOptionalCodecsCase()
1136 Assert.assertEquals(expectedValue, in testSetGetA2dpOptionalCodecsCase()
1155 Assert.assertEquals(expectedValue, in testSetGetA2dpOptionalCodecsCase()
1158 Assert.assertEquals(expectedValue, in testSetGetA2dpOptionalCodecsCase()
/packages/modules/StatsD/lib/libstatssocket/tests/
Dstats_event_test.cpp72 void checkScalar(uint8_t** buffer, T expectedValue) { in checkScalar() argument
73 EXPECT_EQ(readNext<T>(buffer), expectedValue); in checkScalar()
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/table/packed/
DPackedTableReaderWriterTest.java358 for (int expectedValue : expectedValuesForKey) { in findIntValueEntryDuplicateKeys()
359 assertEquals(expectedValue, currentEntry.getIntValue()); in findIntValueEntryDuplicateKeys()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java1153 int expectedValue) { in assertMultipathPreferenceIsEventually() argument
1156 assertNotSame(oldValue, expectedValue); in assertMultipathPreferenceIsEventually()
1160 if (actualValue == expectedValue) { in assertMultipathPreferenceIsEventually()
1165 + ") nor expected (" + expectedValue + ")"); in assertMultipathPreferenceIsEventually()
1170 + expectedValue + " ; actual = " + mCm.getMultipathPreference(network)); in assertMultipathPreferenceIsEventually()
/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspace.java2050 private void enforceDragParity(String event, int update, int expectedValue) {
2051 enforceDragParity(this, event, update, expectedValue);
2053 enforceDragParity(getChildAt(i), event, update, expectedValue);
2057 private void enforceDragParity(View v, String event, int update, int expectedValue) {
2063 if (value != expectedValue) {
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DUserHalHelperTest.java1338 int expectedType, int expectedValue) { in assertAssociation() argument
1347 + UserIdentificationAssociationValue.toString(expectedValue) + ", got " in assertAssociation()