/frameworks/base/core/tests/coretests/src/android/os/ |
D | MemoryFileTest.java | 55 newFile.writeBytes(testString, 0, 0, testString.length); in testPurge() 59 file.readBytes(testString, 0, 0, testString.length); in testPurge() 77 byte[] buffer = new byte[testString.length]; in testRun() 80 file.writeBytes(testString, 0, 2000, testString.length); in testRun() 81 file.readBytes(buffer, 2000, 0, testString.length); in testRun() 82 compareBuffers(testString, buffer, testString.length); in testRun() 85 buffer = new byte[testString.length]; in testRun() 88 os.write(testString); in testRun() 91 is.mark(testString.length); in testRun() 93 compareBuffers(testString, buffer, testString.length); in testRun() [all …]
|
/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 | 54 String testString = "a\uFEFF"; in testGetPrimaryHorizontal_zwnbsp() local 55 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_zwnbsp() 65 String testString = "\u0915\u093E"; in testGetPrimaryHorizontal_devanagari() local 66 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_devanagari() 78 String testString = "\uD83C\uDDFA\uD83C\uDDF8\uD83C\uDDFF"; in testGetPrimaryHorizontal_flagEmoji() local 79 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, in testGetPrimaryHorizontal_flagEmoji()
|
D | TextUtilsTest.java | 752 final String testString = "a\uD800\uDC00a"; in testTrimToSize() local 754 testString, TextUtils.trimToSize(testString, 5)); in testTrimToSize() 756 testString, TextUtils.trimToSize(testString, 4)); in testTrimToSize() 758 "a\uD800\uDC00", TextUtils.trimToSize(testString, 3)); in testTrimToSize() 760 "a", TextUtils.trimToSize(testString, 2)); in testTrimToSize() 762 "a", TextUtils.trimToSize(testString, 1)); in testTrimToSize()
|
D | StaticLayoutTest.java | 656 private List<CharSequence> buildTestCharSequences(String testString, Normalizer.Form[] forms) { in buildTestCharSequences() argument 661 normalizedStrings.add(Normalizer.normalize(testString, form)); in buildTestCharSequences() 700 String testString = "\u05DE\u05E1\u05E2\u05D3\u05D4"; // Hebrew Characters in testGetOffset_UNICODE_Hebrew() local 701 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 | 143 String testString; in testFromString() local 146 testString = "Vodafone IT,web.omnitel.it,,,,,,,,,222,10,,DUN"; in testFromString() 151 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString() 154 testString = "[ApnSettingV2] Name,apn,,,,,,,,,123,45,,mms|*,IPV6,IP,true,14"; in testFromString() 160 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString() 163 testString = "[ApnSettingV2] Name,apn, ,,,,,,,,123,45,,mms|*,IPV6, IP,true,14"; in testFromString() 168 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString() 171 … testString = "[ApnSettingV3] Name,apn,,,,,,,,,123,45,,mms|*,IPV6,IP,true,14,,,,,,,spn,testspn"; in testFromString() 176 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString() 179 testString = in testFromString() [all …]
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/ |
D | SingleStreamDiffScriptWriterTest.java | 79 String testString = "abcd"; in writeChunk_withExistingBytesInBuffer_writesBufferFirst() local 80 writeStringAsBytesToWriter(testString, mDiffScriptWriter); in writeChunk_withExistingBytesInBuffer_writesBufferFirst() 87 String.format("%d\n%s\n%d-%d\n", testString.length(), testString, 0, 19)); in writeChunk_withExistingBytesInBuffer_writesBufferFirst()
|
/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 | 970 std::string testString; in TEST() member 1267 SCOPED_TRACE("Test for \"" + testCase.testString + "\" with locales " + in TEST() 1270 auto runs = itemize(collection, testCase.testString.c_str(), testCase.requestedLocales); in TEST()
|