/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ByteBufferReaderTest.java | 145 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/ |
D | BaseContactsProvider2Test.java | 783 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 …]
|
D | ContactsProvider2Test.java | 5896 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/ |
D | PowerComponentUtilUnitTest.java | 79 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/ |
D | BasePreferenceControllerTestCase.java | 59 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/ |
D | MetricsUtilsTest.java | 190 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/ |
D | MoreKeySpecTests.java | 304 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/ |
D | EditDistanceScorerTest.java | 82 public static void assertFloat(float actualValue, float expectedValue) { in assertFloat() argument 83 assertThat(actualValue).isWithin(0.01F).of(expectedValue); in assertFloat()
|
D | ExactMatchTest.java | 96 public static void assertFloat(float actualValue, float expectedValue) { in assertFloat() argument 97 assertThat(actualValue).isWithin(0.01F).of(expectedValue); in assertFloat()
|
D | CreditCardMatcherTest.java | 94 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/ |
D | EnableContentCapturePreferenceControllerTest.java | 98 private void assertProperty(int expectedValue) throws SettingNotFoundException { in assertProperty() argument 101 .isEqualTo(expectedValue); in assertProperty()
|
D | ShowClipAccessNotificationPreferenceControllerTest.java | 136 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/ |
D | CarVendorExtensionManagerTest.java | 235 final Long expectedValue = 100L; in testLongProperty() local 239 expectedValue); in testLongProperty() 245 assertEquals(expectedValue, actualValue); in testLongProperty()
|
/packages/modules/StatsD/statsd/tests/ |
D | LogEvent_test.cpp | 162 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/ |
D | CarPropertyTest.java | 256 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/ |
D | SilentModeHandlerUnitTest.java | 217 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/ |
D | ParentalControlsTest.java | 103 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/ |
D | UnitsBasePreferenceControllerTest.java | 138 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/ |
D | DatabaseManagerTest.java | 1124 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/ |
D | stats_event_test.cpp | 72 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/ |
D | PackedTableReaderWriterTest.java | 358 for (int expectedValue : expectedValuesForKey) { in findIntValueEntryDuplicateKeys() 359 assertEquals(expectedValue, currentEntry.getIntValue()); in findIntValueEntryDuplicateKeys()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | ConnectivityManagerTest.java | 1153 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/ |
D | Workspace.java | 2050 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/ |
D | UserHalHelperTest.java | 1338 int expectedType, int expectedValue) { in assertAssociation() argument 1347 + UserIdentificationAssociationValue.toString(expectedValue) + ", got " in assertAssociation()
|