Home
last modified time | relevance | path

Searched refs:expectedString (Results 1 – 18 of 18) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/entitlement/http/
DStreamUtilsTest.java45 String expectedString = "expected"; in inputStreamToString() local
46 try (InputStream in = new ByteArrayInputStream(expectedString.getBytes(UTF_8))) { in inputStreamToString()
48 assertThat(resultString).isEqualTo(expectedString); in inputStreamToString()
67 String expectedString = "expected"; in inputStreamToStringSafe() local
68 try (InputStream in = new ByteArrayInputStream(expectedString.getBytes(UTF_8))) { in inputStreamToStringSafe()
70 assertThat(resultString).isEqualTo(expectedString); in inputStreamToStringSafe()
93 String expectedString = "expected"; in inputStreamToGunzipString() local
94 try (InputStream in = new ByteArrayInputStream(HttpClient.toGzipBytes(expectedString))) { in inputStreamToGunzipString()
96 assertThat(resultString).isEqualTo(expectedString); in inputStreamToGunzipString()
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/util/
DIndentingStringBuilderTest.java36 String expectedString = "\n IndentLevel1\n IndentLevel1\nIndentLevel0,\n"; in testAppendIndentedStrings() local
38 assertThat(str).isEqualTo(expectedString); in testAppendIndentedStrings()
68 String expectedString = "String\n 1\ntrue"; in testAppendIndentedObjects() local
70 assertThat(str).isEqualTo(expectedString); in testAppendIndentedObjects()
85 String expectedString = "\n\n\n\n"; in testAppendIndentedStrings_doesNotIndentLineBreak() local
87 assertThat(str).isEqualTo(expectedString); in testAppendIndentedStrings_doesNotIndentLineBreak()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetClccResponseTest.java74 String expectedString = in buildString() local
91 assertThat(response.toString()).isEqualTo(expectedString); in buildString()
109 String expectedString = in buildString_withNoNumber() local
126 assertThat(response.toString()).isEqualTo(expectedString); in buildString_withNoNumber()
DHeadsetVendorSpecificResultCodeTest.java64 String expectedString = in buildString() local
73 assertThat(builder.toString()).isEqualTo(expectedString); in buildString()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarVendorExtensionManagerTest.java215 String expectedString = generateRandomString(2 * MILLION, in testLargeStringProperty() local
221 expectedString); in testLargeStringProperty()
227 assertEquals(expectedString, actualString); in testLargeStringProperty()
232 final String expectedString = "εὕρηκα!"; // Test some utf as well. in testStringProperty() local
237 expectedString); in testStringProperty()
243 assertEquals(expectedString, actualString); in testStringProperty()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/
DStackEventTest.java38 String expectedString = in toString_returnsInfo() local
56 assertThat(event.toString()).isEqualTo(expectedString); in toString_returnsInfo()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DInetAddressesTest.java84 public void parseNumericAddress(String address, String expectedString) { in parseNumericAddress() argument
86 assertEquals(expectedString, inetAddress.getHostAddress()); in parseNumericAddress()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DMagnificationCapabilitiesTest.java61 final String expectedString = mContext.getString( in getSummary_fullScreenMode_expectedSummary() local
63 assertThat(actualString).isEqualTo(expectedString); in getSummary_fullScreenMode_expectedSummary()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DAppInstallFiltersTest.java117 final String expectedString = in testToString() local
119 assertThat(originalFilters.toString()).isEqualTo(expectedString); in testToString()
DFrequencyCapFiltersTest.java160 final String expectedString = in testToString() local
170 assertThat(originalFilters.toString()).isEqualTo(expectedString); in testToString()
DKeyedFrequencyCapTest.java156 final String expectedString = in testToString() local
162 assertThat(originalCap.toString()).isEqualTo(expectedString); in testToString()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/ble/
DDiscoveryAdvertisementTest.java199 final String expectedString = in fromBytes_succeed() local
209 assertThat(ADVERTISEMENT.toString()).isEqualTo(expectedString); in fromBytes_succeed()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpCoverArtStorageTest.java332 String expectedString = in toString_returnsDeviceInfo() local
345 Assert.assertEquals(expectedString, mAvrcpCoverArtStorage.toString()); in toString_returnsDeviceInfo()
/packages/modules/StatsD/lib/libstatssocket/tests/
Dstats_event_test.cpp77 void checkString(uint8_t** buffer, const string& expectedString) { in checkString() argument
80 EXPECT_EQ(parsedString, expectedString); in checkString()
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/
DTimerFragmentTest.java669 final String expectedString = Arrays.toString(expected); in assertIndicatorsEquals() local
671 fail(String.format("Expected %s, found %s", expectedString, actualString)); in assertIndicatorsEquals()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiHealthMonitorTest.java601 String expectedString = "authentication failure: 11 "; in testFailureStats() local
605 assertEquals(true, failureStats.toString().contains(expectedString)); in testFailureStats()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/kanon/
DKAnonCallerImplTest.java677 String expectedString = in getPathToJoinInBinaryHttp_shouldReturnCorrectString() local
690 assertThat(actualString).isEqualTo(expectedString); in getPathToJoinInBinaryHttp_shouldReturnCorrectString()
/packages/apps/TV/libs/
Dtruth-0.45.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...