/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/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/common/ |
D | PreferenceControllerTestUtil.java | 38 public static void assertAvailability(int actualValue, int expectedValue) { in assertAvailability() argument 41 expectedValue, availabilityToString(expectedValue)) in assertAvailability() 42 .that(actualValue).isEqualTo(expectedValue); in assertAvailability()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarRemoteDeviceManagerUnitTest.java | 94 PackageInfo expectedValue = mock(PackageInfo.class); in testGetEndpointPackageInfo() local 96 .thenReturn(expectedValue); in testGetEndpointPackageInfo() 98 assertThat(mRemoteDeviceManager.getEndpointPackageInfo(zone)).isEqualTo(expectedValue); in testGetEndpointPackageInfo() 213 boolean expectedValue = true; in testIsOccupantZonePowerOn() 214 when(mService.isOccupantZonePowerOn(zone)).thenReturn(expectedValue); in testIsOccupantZonePowerOn() 216 assertThat(mRemoteDeviceManager.isOccupantZonePowerOn(zone)).isEqualTo(expectedValue); in testIsOccupantZonePowerOn()
|
/packages/apps/Car/systemlibs/car-scalable-ui-lib/test/unit/src/com/android/car/scalableui/model/ |
D | RoleTest.java | 30 int expectedValue = 25; in testGetValue() local 31 Role role = new Role(expectedValue); in testGetValue() 33 assertThat(actualValue).isEqualTo(expectedValue); in testGetValue()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | BaseContactsProvider2Test.java | 801 Object expectedValue = expectedArguments[i + 1]; in assertDataRow() local 802 if (expectedValue instanceof Uri) { in assertDataRow() 803 expectedValue = ContentUris.parseId((Uri) expectedValue); in assertDataRow() 805 if (expectedValue == null) { in assertDataRow() 808 if (expectedValue instanceof Long) { in assertDataRow() 810 expectedValue, actual.getAsLong(columnName)); in assertDataRow() 811 } else if (expectedValue instanceof Integer) { in assertDataRow() 813 expectedValue, actual.getAsInteger(columnName)); in assertDataRow() 814 } else if (expectedValue instanceof String) { in assertDataRow() 816 expectedValue, actual.getAsString(columnName)); in assertDataRow() [all …]
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/responsive/ |
D | SizeSpecTest.kt | 78 for ((sizeSpec, expectedValue) in combinations) { in validate_getCalculatedValue() constant 80 assertThat(value).isEqualTo(expectedValue) in validate_getCalculatedValue() 101 for ((sizeSpec, expectedValue) in combinations) { in validate_getRemainderSpaceValue() constant 103 assertThat(value).isEqualTo(expectedValue) in validate_getRemainderSpaceValue()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
D | PowerComponentUtilUnitTest.java | 92 int expectedValue = mPowerComponentFields[i].getInt(null); in testToPowerComponent() local 93 assertWithMessage("%s should be convected to %s", componentName, expectedValue) in testToPowerComponent() 95 .isEqualTo(expectedValue); in testToPowerComponent() 99 int expectedValue = mPowerComponentFields[i].getInt(null); in testToPowerComponent() local 100 assertWithMessage("%s should be convected to %s", componentName, expectedValue) in testToPowerComponent()
|
D | SilentModeHandlerUnitTest.java | 245 String expectedValue = expectedMode ? VALUE_SILENT_MODE : VALUE_NON_SILENT_MODE; in assertSilentMode() local 249 && (isForcedMode || contents.equals(expectedValue))) { in assertSilentMode()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/data/measurement/migration/ |
D | MigrationTestHelper.java | 126 Object expectedValue = expectedElement.getValue(); in doContentValueMatch() local 140 if (expectedValue.equals(actualValue)) { in doContentValueMatch() 143 if (expectedValue instanceof Number in doContentValueMatch() 145 ((Number) expectedValue).floatValue(), in doContentValueMatch()
|
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/providers/MediationProvider/src/com/android/sdksandbox/cts/provider/mediationtest/ |
D | MediationTestSdkApiImpl.java | 73 public void checkCanCallMediateeInterface(boolean inSandbox, String expectedValue) { in checkCanCallMediateeInterface() argument 81 if (!clientPackageName.equals(expectedValue)) { in checkCanCallMediateeInterface() 86 + expectedValue); in checkCanCallMediateeInterface()
|
D | IMediationTestSdkApi.aidl | 24 void checkCanCallMediateeInterface(boolean inSandbox, String expectedValue); in checkCanCallMediateeInterface() argument
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | AggregateOtherAppsDataTest.java | 150 private static <T> void assertAggregation(AggregationType<T> aggregationType, T expectedValue) in assertAggregation() argument 153 aggregationType, expectedValue, NOW.minus(1000, DAYS), NOW.plus(1000, DAYS)); in assertAggregation() 157 AggregationType<T> aggregationType, T expectedValue, Instant startTime, Instant endTime) in assertAggregation() argument 169 assertThat(response.get(aggregationType)).isEqualTo(expectedValue); in assertAggregation()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/shared/migration/ |
D | MigrationTestHelper.java | 143 Object expectedValue = expectedElement.getValue(); in doContentValueMatch() local 157 if (expectedValue.equals(actualValue)) { in doContentValueMatch() 160 if (expectedValue instanceof Number in doContentValueMatch() 162 ((Number) expectedValue).floatValue(), in doContentValueMatch()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/ |
D | BiometricSettingsProviderTest.kt | 81 val expectedValue = false in getSuggestionState_shouldQueryFeatureProvider() constant 82 setSupportFaceEnroll(expectedValue) in getSuggestionState_shouldQueryFeatureProvider() 86 .isEqualTo(expectedValue) in getSuggestionState_shouldQueryFeatureProvider()
|
/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/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/async/ |
D | CircularByteBufferTest.java | 209 byte expectedValue = (byte) (startValue & 0xFF); in checkTestBytes() 210 if (expectedValue != buffer[pos + i]) { in checkTestBytes() 212 + ", expected=" + (((int) expectedValue) & 0xFF) in checkTestBytes()
|
/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/services/Car/tests/CarServiceTest/src/com/android/car/ |
D | CarVendorExtensionManagerTest.java | 248 final Long expectedValue = 100L; in testLongProperty() local 252 expectedValue); in testLongProperty() 258 assertEquals(expectedValue, actualValue); in testLongProperty()
|
/packages/modules/OnDevicePersonalization/tests/cts/service/src/com/android/ondevicepersonalization/testing/sampleservice/ |
D | SampleWorker.java | 271 final long expectedValue = appParams.getLong(SampleServiceApi.KEY_EXPECTED_LOG_DATA_VALUE); in handleReadLog() local 289 if (value == expectedValue) { in handleReadLog() 372 byte[] expectedValue = expandByteArray(value, repeatCount); in handleReadLocalData() 374 success = Arrays.equals(expectedValue, actualValue); in handleReadLocalData()
|