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 String testString = ""; in getLog() local
55 testString = line.split(":")[1].trim(); in getLog()
59 return testString; 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.java1881 String testString = "abccbadecdebz"; in testSplitPattern() local
1882 assertEquals(calculateCharsCount(testString, "c") + 1, in testSplitPattern()
1883 TextUtils.split(testString, Pattern.compile("c")).length); in testSplitPattern()
1884 assertEquals(calculateCharsCount(testString, "a") + 1, in testSplitPattern()
1885 TextUtils.split(testString, Pattern.compile("a")).length); in testSplitPattern()
1886 assertEquals(calculateCharsCount(testString, "z") + 1, in testSplitPattern()
1887 TextUtils.split(testString, Pattern.compile("z")).length); in testSplitPattern()
1888 assertEquals(calculateCharsCount(testString, "de") + 1, in testSplitPattern()
1889 TextUtils.split(testString, Pattern.compile("de")).length); in testSplitPattern()
1890 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/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.java107 String testString = ""; in testLogcat() local
112 testString = line.split(":")[1].trim(); in testLogcat()
117 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.java79 final String testString = testLine + "\n" + testLine; in testOnGenericMotionEvent_horizontalScroll() local
84 mTextView.setText(testString, EDITABLE); in testOnGenericMotionEvent_horizontalScroll()
144 final String testString = testLine + "\n" + testLine; in testOnGenericMotionEvent_verticalScroll() local
149 mTextView.setText(testString, EDITABLE); in testOnGenericMotionEvent_verticalScroll()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityNodeInfoTest.java243 final String testString = "test string%s"; in testParcelTextImageSpans_haveSameContentDescriptions() local
246 final Spannable stringWithSpans = new SpannableString(testString); in testParcelTextImageSpans_haveSameContentDescriptions()
250 replaceSpan(stringWithSpans, replaceSpan1, testString.indexOf(replaceSpan1), span1); in testParcelTextImageSpans_haveSameContentDescriptions()
251 replaceSpan(stringWithSpans, replaceSpan2, testString.indexOf(replaceSpan2), span2); in testParcelTextImageSpans_haveSameContentDescriptions()
271 final String testString = "test string%s"; in testNoCopySpan_avoidsOutOfBounds() local
274 final Spannable stringWithSpans = new SpannableString(testString); in testNoCopySpan_avoidsOutOfBounds()
277 replaceSpan(stringWithSpans, replaceSpan1, testString.indexOf(replaceSpan1), span1); in testNoCopySpan_avoidsOutOfBounds()
278 replaceSpan(stringWithSpans, replaceSpan2, testString.indexOf(replaceSpan2), span2); in testNoCopySpan_avoidsOutOfBounds()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DExactCanvasTests.java155 final String testString = "THIS IS A TEST"; in testBasicText() local
162 canvas.drawText(testString, 30, 50, p); in testBasicText()
168 final String testString = "THIS IS A TEST ON A CIRCLE PATH"; in drawTestTextOnPath() local
175 File file = TypefaceTestUtil.getFirstFont(testString, p); in drawTestTextOnPath()
180 canvas.drawTextOnPath(testString, path, 0f, 0f, p); in drawTestTextOnPath()
/cts/tests/tests/widget/src/android/widget/cts/
DAutoCompleteTextViewTest.java759 String testString = ""; in testOnFilterComplete() local
762 testString = "8337777"; in testOnFilterComplete()
764 testString = "tes"; in testOnFilterComplete()
773 mInstrumentation.sendStringSync(testString); in testOnFilterComplete()
780 testString = "84428"; in testOnFilterComplete()
782 testString = "that"; in testOnFilterComplete()
784 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.java172 String testString = mContext.getString(R.string.context_test_string1); in testGetString() local
173 assertEquals("This is %s string.", testString); in testGetString()
175 testString = mContext.getString(R.string.context_test_string1, "expected"); in testGetString()
176 assertEquals("This is expected string.", testString); in testGetString()
178 testString = mContext.getString(R.string.context_test_string2); in testGetString()
179 assertEquals("This is test string.", testString); in testGetString()
183 testString = mContext.getString(0, "expected"); in testGetString()
190 testString = mContext.getString(0); in testGetString()
/cts/tests/tests/content/src/android/content/res/cts/
DResources_ThemeTest.java88 final TypedArray ta = mResTheme.obtainStyledAttributes(new int[] { R.attr.testString }); in testObtainStyledAttributesWithInlineStringInTheme()

12