Home
last modified time | relevance | path

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

/aosp12/frameworks/base/core/tests/coretests/src/android/app/appsearch/external/util/
H A 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()
/aosp12/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/utils/
H A DStreamUtilsTest.java41 String expectedString = "expected"; in inputStreamToString() local
42 InputStream inputStream = new ByteArrayInputStream(expectedString.getBytes(UTF_8)); in inputStreamToString()
46 assertThat(resultString).isEqualTo(expectedString); in inputStreamToString()
64 String expectedString = "expected"; in inputStreamToStringSafe() local
65 InputStream inputStream = new ByteArrayInputStream(expectedString.getBytes(UTF_8)); in inputStreamToStringSafe()
69 assertThat(resultString).isEqualTo(expectedString); in inputStreamToStringSafe()
/aosp12/frameworks/base/core/tests/coretests/src/android/database/
H A DDatabaseLocaleTest.java113 String expectedString = new String(new int[] {0xFE000}, 0, 1); in testHoge() local
114 mDatabase.execSQL("INSERT INTO test(id, data) VALUES(1, '" + expectedString + "')"); in testHoge()
120 assertEquals(expectedString.length(), actualString.length()); in testHoge()
121 for (int i = 0; i < expectedString.length(); i++) { in testHoge()
122 assertEquals((int)expectedString.charAt(i), (int)actualString.charAt(i)); in testHoge()
124 assertEquals(expectedString, actualString); in testHoge()
/aosp12/build/soong/androidmk/parser/
H A Dmake_strings_test.go84 expectedString := dumpArray(test.expected)
85 if gotString != expectedString {
86 t.Errorf("expected:\n%s\ngot:\n%s", expectedString, gotString)
213 expectedString := dumpArray(test.expected)
214 if gotString != expectedString {
215 t.Errorf("with:\n%q\nexpected:\n%s\ngot:\n%s", test.in.Dump(), expectedString, gotString)
/aosp12/frameworks/base/core/tests/coretests/src/android/content/
H A DAssetTest.java37 String expectedString = "OneTwoThreeFourFiveSixSevenEightNineTen"; in verifyTextAsset() local
45 + " expected " + expectedString.charAt(curIndex) in verifyTextAsset()
47 buffer[i], expectedString.charAt(curIndex)); in verifyTextAsset()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/
H A DTileAdapterDelegateTest.java108 String expectedString = mContext.getString(POSITION_STRING_ID, position); in testStateDescriptionHasPositionForCurrentTile() local
111 assertThat(mInfo.getStateDescription()).isEqualTo(expectedString); in testStateDescriptionHasPositionForCurrentTile()
135 String expectedString = mContext.getString(R.string.accessibility_qs_edit_tile_add_action); in testClickAddAction() local
138 assertThat(action.getLabel().toString()).contains(expectedString); in testClickAddAction()
150 String expectedString = mContext.getString( in testClickRemoveAction() local
154 assertThat(action.getLabel().toString()).contains(expectedString); in testClickRemoveAction()
/aosp12/packages/services/Car/tests/carservice_test/src/com/android/car/
H A DCarVendorExtensionManagerTest.java202 String expectedString = generateRandomString(2 * MILLION, in testLargeStringProperty() local
208 expectedString); in testLargeStringProperty()
214 assertEquals(expectedString, actualString); in testLargeStringProperty()
219 final String expectedString = "εὕρηκα!"; // Test some utf as well. in testStringProperty() local
224 expectedString); in testStringProperty()
230 assertEquals(expectedString, actualString); in testStringProperty()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
H A DMagnificationCapabilitiesTest.java55 final String expectedString = mContext.getString( in getSummary_fullScreenMode_expectedSummary() local
57 assertThat(actualString).isEqualTo(expectedString); in getSummary_fullScreenMode_expectedSummary()
/aosp12/frameworks/base/core/tests/coretests/src/android/text/format/
H A DFormatterTest.java220 String expectedString, long expectedRounded) { in checkFormatBytes() argument
222 expectedString, expectedRounded); in checkFormatBytes()
226 String expectedString, long expectedRounded) { in checkFormatBytes() argument
229 assertEquals(expectedString, r.value); in checkFormatBytes()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/dream/
H A DWhenToDreamPreferenceControllerTest.java63 final String expectedString = in updateSummary() local
67 verify(mockPref).setSummary(expectedString); in updateSummary()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
H A DCpuFrequenciesTest.java74 String expectedString = "0:1900800/4:1958400"; in testToString_returnsSanitizedStringUsedToParse() local
77 assertEquals(expectedString, cpuFrequencies.toString()); in testToString_returnsSanitizedStringUsedToParse()
/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
H A DInetAddressesTest.java84 public void parseNumericAddress(String address, String expectedString) { in parseNumericAddress() argument
86 assertEquals(expectedString, inetAddress.getHostAddress()); in parseNumericAddress()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
H A DStringUtilTest.java117 final SpannableStringBuilder expectedString = (SpannableStringBuilder) charSequence; in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan() local
118 final TtsSpan[] ttsSpans = expectedString.getSpans(0, expectedString.length(), in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan()
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DValidateNotificationPeopleTest.java244 String expectedString = Arrays.toString(expected); in assertStringArrayEquals() local
246 assertEquals(message + ": arrays differ", expectedString, resultString); in assertStringArrayEquals()
/aosp12/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DFileRotatorTest.java430 final String expectedString = Arrays.toString(expected);
432 fail("expected: " + expectedString + " but was: " + actualString);
/aosp12/packages/modules/StatsD/lib/libstatssocket/tests/
H A Dstats_event_test.cpp76 void checkString(uint8_t** buffer, const string& expectedString) { in checkString() argument
79 EXPECT_EQ(parsedString, expectedString); in checkString()
/aosp12/build/soong/android/
H A Dpaths_test.go169 func checkValidOptionalPath(t *testing.T, path OptionalPath, expectedString string) {
174 if path.String() != expectedString {
175 …t.Errorf("Initialized OptionalPath String() should return %q, not %q", expectedString, path.String…
/aosp12/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/
H A DTimerFragmentTest.java669 final String expectedString = Arrays.toString(expected); in assertIndicatorsEquals() local
671 fail(String.format("Expected %s, found %s", expectedString, actualString)); in assertIndicatorsEquals()
/aosp12/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
H A DAccessPointTest.java468 String expectedString = mContext.getString(R.string.speed_label_very_fast) + " / "
470 assertThat(ap.getSummary()).isEqualTo(expectedString);
505 String expectedString =
510 .isEqualTo(expectedString);
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
H A DWifiHealthMonitorTest.java590 String expectedString = "authentication failure: 11 "; in testFailureStats() local
594 assertEquals(true, failureStats.toString().contains(expectedString)); in testFailureStats()
/aosp12/packages/apps/TV/libs/
H A Dtruth-0.45.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/aosp12/packages/apps/Messaging/build/gcheckstyle/
H A Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com ...