/frameworks/base/core/tests/coretests/src/android/os/ |
D | MemoryFileTest.java | 54 newFile.writeBytes(testString, 0, 0, testString.length); in testPurge() 58 file.readBytes(testString, 0, 0, testString.length); in testPurge() 76 byte[] buffer = new byte[testString.length]; in testRun() 79 file.writeBytes(testString, 0, 2000, testString.length); in testRun() 80 file.readBytes(buffer, 2000, 0, testString.length); in testRun() 81 compareBuffers(testString, buffer, testString.length); in testRun() 84 buffer = new byte[testString.length]; in testRun() 87 os.write(testString); in testRun() 90 is.mark(testString.length); in testRun() 92 compareBuffers(testString, buffer, testString.length); in testRun() [all …]
|
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/widget/ |
D | EmojiInputFilterTest.java | 70 final String testString = "abc"; in testFilter_withString() local 72 .thenReturn(new SpannableString(testString)); in testFilter_withString() 73 final CharSequence result = mInputFilter.filter(testString, 0, 1, null, 0, 1); in testFilter_withString() 82 final Spannable testString = new SpannableString("abc"); in testFilter_withSpannable() local 83 when(mEmojiCompat.process(any(Spannable.class), anyInt(), anyInt())).thenReturn(testString); in testFilter_withSpannable() 85 final CharSequence result = mInputFilter.filter(testString, 0, 1, null, 0, 1); in testFilter_withSpannable() 88 assertSame(result, testString); in testFilter_withSpannable() 89 verify(mEmojiCompat, times(1)).process(sameCharSequence(testString.subSequence(0, 1)), in testFilter_withSpannable() 95 final Spannable testString = new SpannableString("abc"); in testFilter_whenEmojiCompatLoading() local 98 final CharSequence result = mInputFilter.filter(testString, 0, 1, null, 0, 1); in testFilter_whenEmojiCompatLoading() [all …]
|
D | EmojiTextWatcherTest.java | 59 final Spannable testString = new SpannableString("abc"); in testOnTextChanged_callsProcess() local 62 mTextWatcher.onTextChanged(testString, 0, 0, 1); in testOnTextChanged_callsProcess() 64 verify(mEmojiCompat, times(1)).process(sameCharSequence(testString), eq(0), eq(1), in testOnTextChanged_callsProcess() 71 final Spannable testString = new SpannableString("abc"); in testOnTextChanged_whenEmojiCompatLoading() local 74 mTextWatcher.onTextChanged(testString, 0, 0, 1); in testOnTextChanged_whenEmojiCompatLoading() 83 final Spannable testString = new SpannableString("abc"); in testOnTextChanged_whenEmojiCompatLoadFailed() local 86 mTextWatcher.onTextChanged(testString, 0, 0, 1); in testOnTextChanged_whenEmojiCompatLoadFailed() 95 final Spannable testString = new SpannableString("abc"); in testSetEmojiReplaceStrategy() local 100 mTextWatcher.onTextChanged(testString, 0, 0, 1); in testSetEmojiReplaceStrategy() 107 mTextWatcher.onTextChanged(testString, 0, 0, 1); in testSetEmojiReplaceStrategy() [all …]
|
D | EmojiExtractTextLayoutTest.java | 145 final String testString = "anytext"; in testSetEmojiReplaceStrategyCallEmojiCompatWithCorrectStrategy() local 146 extractEditText.setText(testString); in testSetEmojiReplaceStrategyCallEmojiCompatWithCorrectStrategy() 148 verify(emojiCompat, times(1)).process(sameCharSequence(testString), anyInt(), anyInt(), in testSetEmojiReplaceStrategyCallEmojiCompatWithCorrectStrategy()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmAlphabetTest.java | 134 StringBuilder testString = new StringBuilder(300); in testBasic() local 137 for (int i = 0; i < 9; i++, testString.append('@')) { in testBasic() 138 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); in testBasic() 139 assertEquals(testString.toString(), in testBasic() 152 testString.append(c); in testBasic() 159 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); in testBasic() 160 assertEquals(testString.toString(), in testBasic() 165 testString.append(sGsmExtendedChars); in testBasic() 174 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); in testBasic() 175 assertEquals(testString.toString(), in testBasic() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | StaticLayoutTextMeasuringTest.java | 53 String testString = "a\uFEFF"; in testGetPrimaryHorizontal_zwnbsp() local 54 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_zwnbsp() 64 String testString = "\u0915\u093E"; in testGetPrimaryHorizontal_devanagari() local 65 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_devanagari() 77 String testString = "\uD83C\uDDFA\uD83C\uDDF8\uD83C\uDDFF"; in testGetPrimaryHorizontal_flagEmoji() local 78 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_flagEmoji()
|
D | TextUtilsTest.java | 751 final String testString = "a\uD800\uDC00a"; in testTrimToSize() local 753 testString, TextUtils.trimToSize(testString, 5)); in testTrimToSize() 755 testString, TextUtils.trimToSize(testString, 4)); in testTrimToSize() 757 "a\uD800\uDC00", TextUtils.trimToSize(testString, 3)); in testTrimToSize() 759 "a", TextUtils.trimToSize(testString, 2)); in testTrimToSize() 761 "a", TextUtils.trimToSize(testString, 1)); in testTrimToSize()
|
D | StaticLayoutTest.java | 654 private List<CharSequence> buildTestCharSequences(String testString, Normalizer.Form[] forms) { in buildTestCharSequences() argument 659 normalizedStrings.add(Normalizer.normalize(testString, form)); in buildTestCharSequences() 698 String testString = "\u05DE\u05E1\u05E2\u05D3\u05D4"; // Hebrew Characters in testGetOffset_UNICODE_Hebrew() local 699 for (CharSequence seq: buildTestCharSequences(testString, Normalizer.Form.values())) { in testGetOffset_UNICODE_Hebrew()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | ApnSettingTest.java | 151 String testString; in testFromString() local 154 testString = "Vodafone IT,web.omnitel.it,,,,,,,,,222,10,,DUN"; in testFromString() 159 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString() 162 testString = "[ApnSettingV2] Name,apn,,,,,,,,,123,45,,mms|*,IPV6,IP,true,14"; in testFromString() 167 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString() 170 testString = "[ApnSettingV2] Name,apn, ,,,,,,,,123,45,,mms|*,IPV6, IP,true,14"; in testFromString() 175 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString() 180 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString() 183 … testString = "[ApnSettingV3] Name,apn,,,,,,,,,123,45,,mms|*,IPV6,IP,true,14,,,,,,,spn,testspn"; in testFromString() 187 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString() [all …]
|
/frameworks/support/compat/src/androidTest/java/androidx/core/graphics/ |
D | PaintCompatHasGlyphTest.java | 57 public PaintCompatHasGlyphTest(String testString, boolean expectedResult) { in PaintCompatHasGlyphTest() argument 58 mTestString = testString; in PaintCompatHasGlyphTest()
|
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/text/ |
D | EmojiCompatTest.java | 173 CharSequence testString = "abc"; in testProcess_returnsSameCharSequence_pre19() local 174 assertSame(testString, EmojiCompat.get().process(testString)); in testProcess_returnsSameCharSequence_pre19() 176 testString = new SpannableString("abc"); in testProcess_returnsSameCharSequence_pre19() 177 assertSame(testString, EmojiCompat.get().process(testString)); in testProcess_returnsSameCharSequence_pre19() 179 testString = new TestString(new int[]{CHAR_DEFAULT_EMOJI_STYLE}).toString(); in testProcess_returnsSameCharSequence_pre19() 180 assertSame(testString, EmojiCompat.get().process(testString)); in testProcess_returnsSameCharSequence_pre19() 827 final TestString testString = new TestString(EMOJI_SINGLE_CODEPOINT); in testHandleDeleteSurroundingText_pre19() local 829 final Editable editable = spy(new SpannableStringBuilder(testString.toString())); in testHandleDeleteSurroundingText_pre19() 831 Selection.setSelection(editable, testString.emojiEndIndex()); in testHandleDeleteSurroundingText_pre19() 846 final TestString testString = new TestString(EMOJI_SINGLE_CODEPOINT); in testOnKeyDown_pre19() local [all …]
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintTest.java | 151 final String testString = in testHasGlyph_variationSelectors() local 157 assertTrue(signature + " is expected to be true", p.hasGlyph(testString)); in testHasGlyph_variationSelectors() 159 assertFalse(signature + " is expected to be false", p.hasGlyph(testString)); in testHasGlyph_variationSelectors()
|
/frameworks/minikin/tests/unittest/ |
D | FontCollectionItemizeTest.cpp | 969 std::string testString; in TEST() member 1266 SCOPED_TRACE("Test for \"" + testCase.testString + "\" with locales " + in TEST() 1270 itemize(collection, testCase.testString.c_str(), testCase.requestedLocales, &runs); in TEST()
|