Home
last modified time | relevance | path

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

/cts/tests/wearable/src/android/wearable/cts/
DCtsIsolatedWearableSensingService.java247 String expectedString; in onDataProvided() local
255 expectedString = data.getString(EXPECTED_STRING_KEY); in onDataProvided()
262 expectedString, statusConsumer); in onDataProvided()
265 expectedString, statusConsumer, connectionId); in onDataProvided()
330 expectedString = data.getString(EXPECTED_STRING_KEY); in onDataProvided()
331 verifyDataReceivedFromPfd(expectedString, statusConsumer); in onDataProvided()
334 expectedString = data.getString(EXPECTED_STRING_KEY); in onDataProvided()
335 verifyMetadata(expectedString, statusConsumer); in onDataProvided()
377 String expectedString, Consumer<Integer> statusConsumer) throws IOException { in verifyDataReceivedFromWearableViaNonConcurrentConnection() argument
386 expectedString, statusConsumer, mSecureWearableConnection); in verifyDataReceivedFromWearableViaNonConcurrentConnection()
[all …]
DWearableSensingManagerIsolatedServiceTest.java1456 private void verifyDataReceivedFromWearable(String expectedString) throws Exception { in verifyDataReceivedFromWearable() argument
1458 verifyDataReceivedFromWearable(expectedString, /* connectionId= */ INVALID_CONNECTION_ID); in verifyDataReceivedFromWearable()
1461 private void verifyDataReceivedFromWearable(String expectedString, int connectionId) in verifyDataReceivedFromWearable() argument
1465 instruction.putString(EXPECTED_STRING_KEY, expectedString); in verifyDataReceivedFromWearable()
1528 private void verifyDataReceivedFromReadOnlyPfd(String expectedString) throws Exception { in verifyDataReceivedFromReadOnlyPfd() argument
1531 instruction.putString(EXPECTED_STRING_KEY, expectedString); in verifyDataReceivedFromReadOnlyPfd()
1536 private void verifyExpectedMetadataReceived(String expectedString) throws Exception { in verifyExpectedMetadataReceived() argument
1539 instruction.putString(EXPECTED_STRING_KEY, expectedString); in verifyExpectedMetadataReceived()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DBaseInputConnectionTest.java229 final CharSequence expectedString = in verifyDeleteSurroundingTextMain() local
233 final int expectedSelectionStart = Selection.getSelectionStart(expectedString); in verifyDeleteSurroundingTextMain()
234 final int expectedSelectionEnd = Selection.getSelectionEnd(expectedString); in verifyDeleteSurroundingTextMain()
235 verifyTextAndSelection(ic, expectedString, expectedSelectionStart, expectedSelectionEnd); in verifyDeleteSurroundingTextMain()
294 final CharSequence expectedString = InputConnectionTestUtils.formatString(expectedState); in verifyDeleteSurroundingTextInCodePointsMain() local
295 final int expectedSelectionStart = Selection.getSelectionStart(expectedString); in verifyDeleteSurroundingTextInCodePointsMain()
296 final int expectedSelectionEnd = Selection.getSelectionEnd(expectedString); in verifyDeleteSurroundingTextInCodePointsMain()
297 verifyTextAndSelection(ic, expectedString, expectedSelectionStart, expectedSelectionEnd); in verifyDeleteSurroundingTextInCodePointsMain()
667 final CharSequence expectedString = InputConnectionTestUtils.formatString(expectedState); in verifyReplaceText() local
668 final int expectedSelectionStart = Selection.getSelectionStart(expectedString); in verifyReplaceText()
[all …]
/cts/tests/tests/content/src/android/content/res/cts/
DRawResourceTest.java59 final String expectedString = "OneTwoThreeFourFiveSixSevenEightNineTen"; in verifyTextAsset() local
67 + " expected " + expectedString.charAt(curIndex) in verifyTextAsset()
69 buffer[i], expectedString.charAt(curIndex)); in verifyTextAsset()
DResourcesTest.java1009 final String expectedString = "OneTwoThreeFourFiveSixSevenEightNineTen"; in verifyTextAsset() local
1017 + " expected " + expectedString.charAt(curIndex) in verifyTextAsset()
1019 buffer[i], expectedString.charAt(curIndex)); in verifyTextAsset()
/cts/tests/tests/database/src/android/database/cts/
DCursorWindowTest.java312 String expectedString = ""; in testCopyStringToBuffer() local
315 expectedString += baseString; in testCopyStringToBuffer()
323 cursorWindow.putString(expectedString, 0, 0); in testCopyStringToBuffer()
328 assertEquals(expectedString, in testCopyStringToBuffer()
332 expectedString += baseString; in testCopyStringToBuffer()
334 cursorWindow.putString(expectedString, 0, 1); in testCopyStringToBuffer()
338 assertEquals(expectedString, in testCopyStringToBuffer()
340 assertEquals(70, expectedString.length()); in testCopyStringToBuffer()
341 assertEquals(expectedString.length(), charArrayBuffer.data.length); in testCopyStringToBuffer()
/cts/tests/tests/security/src/android/security/cts/
DIntrusionDetectionEventTest.java122 String expectedString = "IntrusionDetectionEvent{mType=0}"; in testToString_returnsExpectedFormat() local
123 assertEquals(expectedString, event.toString()); in testToString_returnsExpectedFormat()
/cts/tests/tests/text/src/android/text/format/cts/
DDateFormatTest.java172 String expectedString = "12/18/08"; in testFormatMethods() local
175 assertEquals(expectedString, actual.toString()); in testFormatMethods()
178 assertEquals(expectedString, actual.toString()); in testFormatMethods()
180 assertEquals(expectedString, actual.toString()); in testFormatMethods()
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DAppSearchBlobHandleCtsTest.java119 String expectedString = in testBlobHandleToString() local
128 assertThat(blobHandle.toString()).isEqualTo(expectedString); in testBlobHandleToString()
DAppSearchSchemaCtsTest.java769 String expectedString = in testAppSearchSchema_toString() local
880 String[] lines = expectedString.split("\n"); in testAppSearchSchema_toString()
900 String expectedString = in testAppSearchSchema_toStringNoDescriptionSet() local
918 String[] lines = expectedString.split("\n"); in testAppSearchSchema_toStringNoDescriptionSet()
DGenericDocumentCtsTest.java284 String expectedString = in testDocument_toString() local
314 String[] lines = expectedString.split("\n"); in testDocument_toString()
338 String expectedString = in testDocumentEmptyProperties_toString() local
356 String[] lines = expectedString.split("\n"); in testDocumentEmptyProperties_toString()
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_parcel.cpp244 const std::string expectedString = kTestcase.substr(0, i); in TEST_F() local
245 const std::vector<std::string> expectedVector = {expectedString, in TEST_F()
246 expectedString}; in TEST_F()
255 EXPECT_EQ(expectedString, readString); in TEST_F()
/cts/tests/tests/text/src/android/text/cts/
DTextUtilsTest.java199 final String expectedString = in testListEllipsize_rtl() local
201 final float enoughWidth = paint.measureText(expectedString); in testListEllipsize_rtl()
203 assertEquals(expectedString, in testListEllipsize_rtl()