Home
last modified time | relevance | path

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

12

/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/
DLogHelper.java50 StringBuilder testString = new StringBuilder(); in getLog() local
55 testString.append(line.split(":")[1].trim()); in getLog()
59 return testString.toString(); in getLog()
70 String testString = getLog(device, tag); in waitForLog() local
71 if (testString.contains(expectedOutput)) { in waitForLog()
82 String testString = getLog(device, tag); in assertLog() local
84 assertThat(testString).isIn(expectedOutputs); in assertLog()
90 String testString = getLog(device, tag); in assumeLog() local
95 testString.contains(expectedOutput)); in assumeLog()
100 String testString = getLog(device, tag); in parseDutVolume() local
[all …]
/cts/tests/tests/text/src/android/text/cts/
DSerifFallbackTest.java84 final String testString = "\u9AA8"; // Han character used in Japanese, Chinese, Korean in testSerifFallback() local
94 testString, 0, testString.length(), 0, testString.length(), 0, 0, false, paint); in testSerifFallback()
100 testString, 0, testString.length(), 0, testString.length(), 0, 0, false, paint); in testSerifFallback()
DTextUtilsTest.java1923 String testString = "abccbadecdebz"; in testSplitPattern() local
1924 assertEquals(calculateCharsCount(testString, "c") + 1, in testSplitPattern()
1925 TextUtils.split(testString, Pattern.compile("c")).length); in testSplitPattern()
1926 assertEquals(calculateCharsCount(testString, "a") + 1, in testSplitPattern()
1927 TextUtils.split(testString, Pattern.compile("a")).length); in testSplitPattern()
1928 assertEquals(calculateCharsCount(testString, "z") + 1, in testSplitPattern()
1929 TextUtils.split(testString, Pattern.compile("z")).length); in testSplitPattern()
1930 assertEquals(calculateCharsCount(testString, "de") + 1, in testSplitPattern()
1931 TextUtils.split(testString, Pattern.compile("de")).length); in testSplitPattern()
1932 int totalCount = 1 + calculateCharsCount(testString, "a") in testSplitPattern()
[all …]
DStaticLayoutTest.java653 private List<CharSequence> buildTestCharSequences(String testString, Normalizer.Form[] forms) { in buildTestCharSequences() argument
658 normalizedStrings.add(Normalizer.normalize(testString, form)); in buildTestCharSequences()
699 for (String testString: testStrings) { in testGetOffset_ASCII()
700 for (CharSequence seq: buildTestCharSequences(testString, Normalizer.Form.values())) { in testGetOffset_ASCII()
722 String testString = "ab\r\nde"; in testGetOffset_ASCII() local
723 for (CharSequence seq: buildTestCharSequences(testString, Normalizer.Form.values())) { in testGetOffset_ASCII()
756 for (String testString: testStrings) { in testGetOffset_UNICODE()
757 for (CharSequence seq: buildTestCharSequences(testString, Normalizer.Form.values())) { in testGetOffset_UNICODE()
783 String testString = "\u00C1\u00C2\u00C3\u00C4\u00C5"; in testGetOffset_UNICODE_Normalization() local
785 for (CharSequence seq: buildTestCharSequences(testString, oneUnicodeForms)) { in testGetOffset_UNICODE_Normalization()
[all …]
/cts/hostsidetests/packagemanager/abioverride/src/android/abioverride/cts/
DAbiOverrideTest.java100 String testString = ""; in testAbiIs32bit() local
105 testString = line.split(":")[1].trim(); in testAbiIs32bit()
110 assertTrue("No result found in logs", testString.startsWith(TEST_STRING)); in testAbiIs32bit()
112 assertEquals("Incorrect abi", TEST_STRING + "false", testString); in testAbiIs32bit()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/proxy/
DPassthroughTestHelper.java120 for (String testString : testStrings) { in passthrough()
121 print.println(testString); in passthrough()
124 if (!line.equals(testString)) { in passthrough()
125 throw new Exception("Unmatched line: " + line + "\nWith:" + testString); in passthrough()
/cts/hostsidetests/sample/src/android/sample/cts/
DSampleHostJUnit4Test.java105 String testString = ""; in testLogcat() local
110 testString = line.split(":")[1].trim(); in testLogcat()
115 assertEquals("Incorrect test string", TEST_STRING, testString); in testLogcat()
/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/graphics/src/android/graphics/cts/
DTypefaceTest.java302 final String testString = "abcde"; in testInvalidCmapFont() local
303 float widthDefaultTypeface = measureText(testString, Typeface.DEFAULT); in testInvalidCmapFont()
304 float widthCustomTypeface = measureText(testString, typeface); in testInvalidCmapFont()
313 final String testString = "abcde"; in testInvalidCmapFont2() local
314 float widthDefaultTypeface = measureText(testString, Typeface.DEFAULT); in testInvalidCmapFont2()
315 float widthCustomTypeface = measureText(testString, typeface); in testInvalidCmapFont2()
346 final String testString = "\u0100\u0400"; in testInvalidCmapFont_unsortedEntries() local
347 final float widthDefaultTypeface = measureText(testString, Typeface.DEFAULT); in testInvalidCmapFont_unsortedEntries()
348 final float widthCustomTypeface = measureText(testString, typeface); in testInvalidCmapFont_unsortedEntries()
361 final String testString = "\u0100\uFE00\u0400\uFE00"; in testInvalidCmapFont_unsortedEntries() local
[all …]
/cts/tests/tests/telecom/aidl/android/telecom/cts/
DITestInterface.aidl24 String testLoopback(String testString); in testLoopback() argument
/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/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/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.java181 String testString = ""; in testShader() local
186 testString = line.split(":")[1].trim(); in testShader()
190 if (testString.isEmpty()) { in testShader()
/cts/tests/tests/text/src/android/text/method/cts/
DBaseMovementMethodTest.java86 final String testString = testLine + "\n" + testLine; in testOnGenericMotionEvent_horizontalScroll() local
91 mTextView.setText(testString, EDITABLE); in testOnGenericMotionEvent_horizontalScroll()
151 final String testString = testLine + "\n" + testLine; in testOnGenericMotionEvent_verticalScroll() local
156 mTextView.setText(testString, EDITABLE); in testOnGenericMotionEvent_verticalScroll()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityNodeInfoTest.java244 final String testString = "test string%s"; in testParcelTextImageSpans_haveSameContentDescriptions() local
247 final Spannable stringWithSpans = new SpannableString(testString); in testParcelTextImageSpans_haveSameContentDescriptions()
251 replaceSpan(stringWithSpans, replaceSpan1, testString.indexOf(replaceSpan1), span1); in testParcelTextImageSpans_haveSameContentDescriptions()
252 replaceSpan(stringWithSpans, replaceSpan2, testString.indexOf(replaceSpan2), span2); in testParcelTextImageSpans_haveSameContentDescriptions()
272 final String testString = "test string%s"; in testNoCopySpan_avoidsOutOfBounds() local
275 final Spannable stringWithSpans = new SpannableString(testString); in testNoCopySpan_avoidsOutOfBounds()
278 replaceSpan(stringWithSpans, replaceSpan1, testString.indexOf(replaceSpan1), span1); in testNoCopySpan_avoidsOutOfBounds()
279 replaceSpan(stringWithSpans, replaceSpan2, testString.indexOf(replaceSpan2), span2); in testNoCopySpan_avoidsOutOfBounds()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DExactCanvasTests.java159 final String testString = "THIS IS A TEST"; in testBasicText() local
166 canvas.drawText(testString, 30, 50, p); in testBasicText()
172 final String testString = "THIS IS A TEST ON A CIRCLE PATH"; in drawTestTextOnPath() local
179 File file = TypefaceTestUtil.getFirstFont(testString, p); in drawTestTextOnPath()
184 canvas.drawTextOnPath(testString, path, 0f, 0f, p); in drawTestTextOnPath()
/cts/tests/tests/widget/src/android/widget/cts/
DAutoCompleteTextViewTest.java767 String testString = ""; in testOnFilterComplete() local
770 testString = "8337777"; in testOnFilterComplete()
772 testString = "tes"; in testOnFilterComplete()
781 mInstrumentation.sendStringSync(testString); in testOnFilterComplete()
788 testString = "84428"; in testOnFilterComplete()
790 testString = "that"; in testOnFilterComplete()
792 mInstrumentation.sendStringSync(testString); in testOnFilterComplete()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/bokeh/
DCameraBokehActivity.java349 String testString = "Mode: " + mModeNames.get(mNextCombination.mMode); in setUntestedCombination() local
351 testString += "\nIntent: Capture"; in setUntestedCombination()
353 testString += "\nIntent: Preview"; in setUntestedCombination()
355 testString += "\n\nPress Next if the bokeh effect works as intended"; in setUntestedCombination()
356 mTestLabel.setText(testString); in setUntestedCombination()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java216 String testString = mContext.getString(R.string.context_test_string1); in testGetString() local
217 assertEquals("This is %s string.", testString); in testGetString()
219 testString = mContext.getString(R.string.context_test_string1, "expected"); in testGetString()
220 assertEquals("This is expected string.", testString); in testGetString()
222 testString = mContext.getString(R.string.context_test_string2); in testGetString()
223 assertEquals("This is test string.", testString); in testGetString()
227 testString = mContext.getString(0, "expected"); in testGetString()
234 testString = mContext.getString(0); in testGetString()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DAdbUtils.java749 public static String escapeRegexSpecialChars(String testString) { in escapeRegexSpecialChars() argument
750 Matcher m = regexSpecialCharsEscapedPattern.matcher(testString); in escapeRegexSpecialChars()

12