Home
last modified time | relevance | path

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

/cts/tests/tests/content/src/android/content/cts/
DContextTest.java48 String testString = mContext.getString(R.string.context_test_string1); in testGetString() local
49 assertEquals("This is %s string.", testString); in testGetString()
51 testString = mContext.getString(R.string.context_test_string1, "expected"); in testGetString()
52 assertEquals("This is expected string.", testString); in testGetString()
54 testString = mContext.getString(R.string.context_test_string2); in testGetString()
55 assertEquals("This is test string.", testString); in testGetString()
59 testString = mContext.getString(0, "expected"); in testGetString()
66 testString = mContext.getString(0); in testGetString()
/cts/tests/tests/text/src/android/text/cts/
DTextUtilsTest.java1669 String testString = "abccbadecdebz"; in testSplitPattern() local
1670 assertEquals(calculateCharsCount(testString, "c") + 1, in testSplitPattern()
1671 TextUtils.split(testString, Pattern.compile("c")).length); in testSplitPattern()
1672 assertEquals(calculateCharsCount(testString, "a") + 1, in testSplitPattern()
1673 TextUtils.split(testString, Pattern.compile("a")).length); in testSplitPattern()
1674 assertEquals(calculateCharsCount(testString, "z") + 1, in testSplitPattern()
1675 TextUtils.split(testString, Pattern.compile("z")).length); in testSplitPattern()
1676 assertEquals(calculateCharsCount(testString, "de") + 1, in testSplitPattern()
1677 TextUtils.split(testString, Pattern.compile("de")).length); in testSplitPattern()
1678 int totalCount = 1 + calculateCharsCount(testString, "a") in testSplitPattern()
[all …]
DStaticLayoutTest.java603 private List<CharSequence> buildTestCharSequences(String testString, Normalizer.Form[] forms) { in buildTestCharSequences() argument
608 normalizedStrings.add(Normalizer.normalize(testString, form)); in buildTestCharSequences()
648 for (String testString: testStrings) { in testGetOffset_ASCII()
649 for (CharSequence seq: buildTestCharSequences(testString, Normalizer.Form.values())) { in testGetOffset_ASCII()
671 String testString = "ab\r\nde"; in testGetOffset_ASCII() local
672 for (CharSequence seq: buildTestCharSequences(testString, Normalizer.Form.values())) { in testGetOffset_ASCII()
704 for (String testString: testStrings) { in testGetOffset_UNICODE()
705 for (CharSequence seq: buildTestCharSequences(testString, Normalizer.Form.values())) { in testGetOffset_UNICODE()
730 String testString = "\u00C1\u00C2\u00C3\u00C4\u00C5"; in testGetOffset_UNICODE_Normalization() local
732 for (CharSequence seq: buildTestCharSequences(testString, oneUnicodeForms)) { in testGetOffset_UNICODE_Normalization()
[all …]
/cts/hostsidetests/sample/src/android/sample/cts/
DSampleHostTest.java128 String testString = ""; in testLogcat() local
133 testString = line.split(":")[1].trim(); in testLogcat()
138 assertEquals("Incorrect test string", TEST_STRING, testString); in testLogcat()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DTestPlan.java98 for (String testString : testStrings) { in parseTestList()
99 String[] classMethodPair = testString.split(METHOD_DELIM); in parseTestList()
104 filter.addExcludedClass(testString); in parseTestList()
110 for (String testString : testStrings) { in parseTestList()
111 String[] classMethodPair = testString.split(METHOD_DELIM); in parseTestList()
116 filter.addIncludedClass(testString); in parseTestList()
/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.d31 …4..v5}, dot.junit.opcodes.invoke_super_range.d.T_invoke_super_range_12/testString(Ljava/lang/Strin…
DTSuper.d67 .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.d31 …invoke-super {v5, v5}, dot.junit.opcodes.invoke_super.d.T_invoke_super_12/testString(Ljava/lang/St…
DTSuper.d67 .method public testString(Ljava/lang/String;)V
/cts/tests/tests/widget/src/android/widget/cts/
DAutoCompleteTextViewTest.java154 String testString = "TryToTest"; in testEnoughToFilter()
155 mAutoCompleteTextView.setText(testString); in testEnoughToFilter()
163 String testString = "No"; in testEnoughToFilter()
164 mAutoCompleteTextView.setText(testString); in testEnoughToFilter()
378 String testString = ""; in testOnFilterComplete() local
381 testString = "8337777"; in testOnFilterComplete()
383 testString = "tes"; in testOnFilterComplete()
394 mInstrumentation.sendStringSync(testString); in testOnFilterComplete()
406 testString = "84428"; in testOnFilterComplete()
408 testString = "that"; in testOnFilterComplete()
[all …]
DTextViewTest.java4044 String testString = "abcdefghijklmnopqrstuvwxyz"; in testAllCapsLocalization() local
4058 testString.toUpperCase(locale), in testAllCapsLocalization()
4059 tv.getTransformationMethod().getTransformation(testString, tv).toString()); in testAllCapsLocalization()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DExactCanvasTests.java152 final String testString = "THIS IS A TEST"; in testBasicText() local
161 canvas.drawText(testString, 30, 50, p); in testBasicText()
/cts/hostsidetests/aadb/src/com/android/cts/aadb/
DTestDeviceFuncTest.java288 String testString = "blah"; in doTestSyncFiles() local
290 stream.write(testString.getBytes()); in doTestSyncFiles()
307 assertTrue(tmpFileContents.contains(testString)); in doTestSyncFiles()