Home
last modified time | relevance | path

Searched refs:testString (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/os/
DMemoryFileTest.java55 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/
DGsmAlphabetTest.java134 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/
DStaticLayoutTextMeasuringTest.java54 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()
DTextUtilsTest.java754 final String testString = "a\uD800\uDC00a"; in testTrimToSize() local
756 testString, TextUtils.trimToSize(testString, 5)); in testTrimToSize()
758 testString, TextUtils.trimToSize(testString, 4)); in testTrimToSize()
760 "a\uD800\uDC00", TextUtils.trimToSize(testString, 3)); in testTrimToSize()
762 "a", TextUtils.trimToSize(testString, 2)); in testTrimToSize()
764 "a", TextUtils.trimToSize(testString, 1)); in testTrimToSize()
DStaticLayoutTest.java656 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/
DApnSettingTest.java142 String testString; in testFromString() local
145 testString = "Vodafone IT,web.omnitel.it,,,,,,,,,222,10,,DUN"; in testFromString()
150 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString()
153 testString = "[ApnSettingV2] Name,apn,,,,,,,,,123,45,,mms|*,IPV6,IP,true,14"; 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()
170testString = "[ApnSettingV3] Name,apn,,,,,,,,,123,45,,mms|*,IPV6,IP,true,14,,,,,,,spn,testspn"; in testFromString()
175 assertApnSettingEqual(expectedApn, ApnSetting.fromString(testString)); in testFromString()
178 testString = in testFromString()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileViewImplTest.kt66 val testString = "TEST STRING" in testSecondaryLabelNotModified_unavailable() constant
68 state.secondaryLabel = testString in testSecondaryLabelNotModified_unavailable()
72 assertThat(state.secondaryLabel as CharSequence).isEqualTo(testString) in testSecondaryLabelNotModified_unavailable()
78 val testString = "TEST STRING" in testSecondaryLabelNotModified_booleanInactive() constant
80 state.secondaryLabel = testString in testSecondaryLabelNotModified_booleanInactive()
84 assertThat(state.secondaryLabel as CharSequence).isEqualTo(testString) in testSecondaryLabelNotModified_booleanInactive()
90 val testString = "TEST STRING" in testSecondaryLabelNotModified_booleanActive() constant
92 state.secondaryLabel = testString in testSecondaryLabelNotModified_booleanActive()
96 assertThat(state.secondaryLabel as CharSequence).isEqualTo(testString) in testSecondaryLabelNotModified_booleanActive()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/
DSingleStreamDiffScriptWriterTest.java79 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/opt/net/ims/tests/src/com/android/ims/rcs/uce/presence/publish/
DPublishControllerImplTest.java283 final String testString = "<?xml version='1.0' encoding='utf-8' standalone='yes' " in testRemoveNumber() local
313 String result = PublishUtils.removeNumbersFromUris(testString); in testRemoveNumber()
315 assertFalse("still contained 5555551212: " + testString, result.contains("5555551212")); in testRemoveNumber()
316 assertFalse("still contained 555-555-1212: " + testString, result.contains("555-555-1212")); in testRemoveNumber()
/frameworks/base/errorprone/tests/java/com/google/errorprone/bugpatterns/android/
DEfficientParcelableCheckerTest.java37 public void testString() { in testString() method in EfficientParcelableCheckerTest
/frameworks/base/tests/vcn/java/com/android/server/vcn/util/
DPersistableBundleUtilsTest.java98 String testString, in TestClass() argument
102 mTestString = testString; in TestClass()
/frameworks/native/libs/renderengine/tests/
DRenderEngineThreadedTest.cpp44 std::string testString = "XYZ"; in TEST_F() local
46 mThreadedRE->dump(testString); in TEST_F()
/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintTest.java151 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/av/media/libstagefright/renderfright/tests/
DRenderEngineThreadedTest.cpp43 std::string testString = "XYZ"; in TEST_F() local
45 mThreadedRE->dump(testString); in TEST_F()
/frameworks/minikin/tests/unittest/
DFontCollectionItemizeTest.cpp980 std::string testString; in TEST() member
1277 SCOPED_TRACE("Test for \"" + testCase.testString + "\" with locales " + in TEST()
1280 auto runs = itemize(collection, testCase.testString.c_str(), testCase.requestedLocales); in TEST()