Home
last modified time | relevance | path

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

/cts/hostsidetests/trustedvoice/src/android/trustedvoice/cts/
DTrustedVoiceHostTest.java112 String testString = ""; in testUnlock() local
118 testString = line.split(":")[1].trim(); in testUnlock()
123 assertNotNull("Test string must not be null", testString); in testUnlock()
124 assertEquals("Test string does not match", TEST_STRING, testString); in testUnlock()
/cts/hostsidetests/abioverride/src/android/abioverride/cts/
DAbiOverrideTest.java95 String testString = ""; in testAbiIs32bit() local
100 testString = line.split(":")[1].trim(); in testAbiIs32bit()
105 assertTrue("No result found in logs", testString.startsWith(TEST_STRING)); in testAbiIs32bit()
107 assertEquals("Incorrect abi", TEST_STRING + "false", testString); in testAbiIs32bit()
/cts/hostsidetests/sample/src/android/sample/cts/
DSampleHostTest.java75 String testString = ""; in testLogcat() local
80 testString = line.split(":")[1].trim(); in testLogcat()
85 assertEquals("Incorrect test string", TEST_STRING, testString); in testLogcat()
DSampleHostJUnit4Test.java100 String testString = ""; in testLogcat() local
105 testString = line.split(":")[1].trim(); in testLogcat()
110 assertEquals("Incorrect test string", TEST_STRING, testString); in testLogcat()
/cts/tests/tests/graphics/src/android/graphics/cts/
DTypefaceTest.java258 final String testString = "abcde"; in testInvalidCmapFont() local
259 float widthDefaultTypeface = measureText(testString, Typeface.DEFAULT); in testInvalidCmapFont()
260 float widthCustomTypeface = measureText(testString, typeface); in testInvalidCmapFont()
269 final String testString = "abcde"; in testInvalidCmapFont2() local
270 float widthDefaultTypeface = measureText(testString, Typeface.DEFAULT); in testInvalidCmapFont2()
271 float widthCustomTypeface = measureText(testString, typeface); in testInvalidCmapFont2()
302 final String testString = "\u0100\u0400"; in testInvalidCmapFont_unsortedEntries() local
303 final float widthDefaultTypeface = measureText(testString, Typeface.DEFAULT); in testInvalidCmapFont_unsortedEntries()
304 final float widthCustomTypeface = measureText(testString, typeface); in testInvalidCmapFont_unsortedEntries()
317 final String testString = "\u0100\uFE00\u0400\uFE00"; in testInvalidCmapFont_unsortedEntries() local
[all …]
/cts/tests/tests/text/src/android/text/cts/
DTextUtilsTest.java1880 String testString = "abccbadecdebz"; in testSplitPattern() local
1881 assertEquals(calculateCharsCount(testString, "c") + 1, in testSplitPattern()
1882 TextUtils.split(testString, Pattern.compile("c")).length); in testSplitPattern()
1883 assertEquals(calculateCharsCount(testString, "a") + 1, in testSplitPattern()
1884 TextUtils.split(testString, Pattern.compile("a")).length); in testSplitPattern()
1885 assertEquals(calculateCharsCount(testString, "z") + 1, in testSplitPattern()
1886 TextUtils.split(testString, Pattern.compile("z")).length); in testSplitPattern()
1887 assertEquals(calculateCharsCount(testString, "de") + 1, in testSplitPattern()
1888 TextUtils.split(testString, Pattern.compile("de")).length); in testSplitPattern()
1889 int totalCount = 1 + calculateCharsCount(testString, "a") in testSplitPattern()
[all …]
DStaticLayoutTest.java613 private List<CharSequence> buildTestCharSequences(String testString, Normalizer.Form[] forms) { in buildTestCharSequences() argument
618 normalizedStrings.add(Normalizer.normalize(testString, form)); in buildTestCharSequences()
659 for (String testString: testStrings) { in testGetOffset_ASCII()
660 for (CharSequence seq: buildTestCharSequences(testString, Normalizer.Form.values())) { in testGetOffset_ASCII()
682 String testString = "ab\r\nde"; in testGetOffset_ASCII() local
683 for (CharSequence seq: buildTestCharSequences(testString, Normalizer.Form.values())) { in testGetOffset_ASCII()
716 for (String testString: testStrings) { in testGetOffset_UNICODE()
717 for (CharSequence seq: buildTestCharSequences(testString, Normalizer.Form.values())) { in testGetOffset_UNICODE()
743 String testString = "\u00C1\u00C2\u00C3\u00C4\u00C5"; in testGetOffset_UNICODE_Normalization() local
745 for (CharSequence seq: buildTestCharSequences(testString, oneUnicodeForms)) { in testGetOffset_UNICODE_Normalization()
[all …]
/cts/hostsidetests/tv/src/com/android/cts/tv/
DTvInputManagerHostTest.java108 String testString = ""; in testInputUpdated() local
117 testString = line.split(":")[1].trim(); in testInputUpdated()
121 if (!testString.isEmpty()) { in testInputUpdated()
127 assertEquals("Incorrect test string", INPUT_UPDATED_STRING, testString); in testInputUpdated()
/cts/tests/tests/text/src/android/text/method/cts/
DBaseMovementMethodTest.java76 final String testString = testLine + "\n" + testLine; in testOnGenericMotionEvent_horizontalScroll() local
81 mTextView.setText(testString, EDITABLE); in testOnGenericMotionEvent_horizontalScroll()
141 final String testString = testLine + "\n" + testLine; in testOnGenericMotionEvent_verticalScroll() local
146 mTextView.setText(testString, EDITABLE); in testOnGenericMotionEvent_verticalScroll()
/cts/tests/tests/proto/src/android/util/proto/cts/
DProtoOutputStreamSwitchedWriteTest.java252 testString(1, "", typedPo, switchedPo); in testWriteString()
253 testString(2, null, typedPo, switchedPo); in testWriteString()
254 testString(3, "ABCD", typedPo, switchedPo); in testWriteString()
262 private void testString(int id, String val, in testString() method in ProtoOutputStreamSwitchedWriteTest
/cts/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/
DSustainedPerformanceHostTest.java180 String testString = ""; in testShader() local
185 testString = line.split(":")[1].trim(); in testShader()
189 if (testString.isEmpty()) { in testShader()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super_range/d/
DTSuper.java47 public void testString(String s) { in testString() method in TSuper
DT_invoke_super_range_12.smali31 …v5}, Ldot/junit/opcodes/invoke_super_range/d/T_invoke_super_range_12;->testString(Ljava/lang/Strin…
DTSuper.smali59 .method public testString(Ljava/lang/String;)V
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super/d/
DTSuper.java47 public void testString(String s) { in testString() method in TSuper
DT_invoke_super_12.smali31 …invoke-super {v5, v5}, Ldot/junit/opcodes/invoke_super/d/T_invoke_super_12;->testString(Ljava/lang…
DTSuper.smali59 .method public testString(Ljava/lang/String;)V
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DExactCanvasTests.java143 final String testString = "THIS IS A TEST"; in testBasicText() local
150 canvas.drawText(testString, 30, 50, p); in testBasicText()
156 final String testString = "THIS IS A TEST ON A CIRCLE PATH"; in drawTestTextOnPath() local
162 canvas.drawTextOnPath(testString, path, 0f, 0f, p); in drawTestTextOnPath()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java150 String testString = mContext.getString(R.string.context_test_string1); in testGetString() local
151 assertEquals("This is %s string.", testString); in testGetString()
153 testString = mContext.getString(R.string.context_test_string1, "expected"); in testGetString()
154 assertEquals("This is expected string.", testString); in testGetString()
156 testString = mContext.getString(R.string.context_test_string2); in testGetString()
157 assertEquals("This is test string.", testString); in testGetString()
161 testString = mContext.getString(0, "expected"); in testGetString()
168 testString = mContext.getString(0); in testGetString()
/cts/tests/tests/widget/src/android/widget/cts/
DAutoCompleteTextViewTest.java760 String testString = ""; in testOnFilterComplete() local
763 testString = "8337777"; in testOnFilterComplete()
765 testString = "tes"; in testOnFilterComplete()
774 mInstrumentation.sendStringSync(testString); in testOnFilterComplete()
781 testString = "84428"; in testOnFilterComplete()
783 testString = "that"; in testOnFilterComplete()
785 mInstrumentation.sendStringSync(testString); in testOnFilterComplete()
DTextViewTest.java6216 final String testString = "abcdefghijklmnopqrstuvwxyz i\u0307\u0301 άέήίΐόύΰώάυ ή"; in testAllCaps_Localization() local
6233 UCharacter.toUpperCase(locale, testString), in testAllCaps_Localization()
6234 tv.getTransformationMethod().getTransformation(testString, tv).toString()); in testAllCaps_Localization()
/cts/tests/tests/content/src/android/content/res/cts/
DResources_ThemeTest.java88 final TypedArray ta = mResTheme.obtainStyledAttributes(new int[] { R.attr.testString }); in testObtainStyledAttributesWithInlineStringInTheme()