Home
last modified time | relevance | path

Searched defs:text (Results 1 – 25 of 98) sorted by relevance

1234

/cts/tests/tests/text/src/android/text/cts/
DSelectionTest.java44 CharSequence text = "hello, world"; in testGetSelectionStart() local
62 CharSequence text = "hello, world"; in testGetSelectionEnd() local
80 CharSequence text = "hello, world"; in testSetSelection1() local
137 CharSequence text = "hello, world"; in testRemoveSelection() local
157 CharSequence text = "hello, world"; in testSelectAll() local
184 CharSequence text = "hello\nworld"; in testMoveLeft() local
212 CharSequence text = "hello\nworld"; in testMoveRight() local
244 CharSequence text = "Google\nhello,world"; in testMoveUp() local
284 CharSequence text = "aaa\nmm"; in testMoveUpAfterTyping() local
309 CharSequence text = "aa\nm"; in testMoveUpKeepsOriginalMemoryPosition() local
[all …]
DSpannedStringTest.java46 String text = "test valueOf"; in testValueOf() local
61 String text = "hello, world"; in testSubSequence() local
DSpannableStringTest.java59 String text = "test valueOf"; in testValueOf() local
76 String text = "hello, world"; in testSetSpan() local
131 String text = "hello, world"; in testSubSequence() local
DSpannableStringBuilderTest.java173 CharSequence text = "hi"; in testReplace1() local
206 CharSequence text = "ahiabc"; in testReplace2() local
282 CharSequence text = builder.subSequence(0, 2); in testSubSequence() local
624 String text = "p_in_s"; in testGetSpans_returnsEmptyIfSetSpanIsNotCalled() local
705 String text = "p_in_s"; in testGetSpans_returnsSpansInInsertionOrderWhenTheLaterCoversTheFirst() local
723 String text = "p_in_s"; in testGetSpans_returnsSpansSortedFirstByPriorityThenByInsertionOrder() local
750 String text = "p_in_s"; in testGetSpans_returnsSpansInInsertionOrderAfterRemoveSpanCalls() local
785 final String text = new String(charArray, 0, 50000); in testReplace_shouldNotThrowIndexOutOfBoundsExceptionForLongText() local
/cts/tests/tests/text/src/android/text/style/cts/
DUnderlineSpanTest.java94 private float textWidth(CharSequence text) { in textWidth()
107 final SpannableString text = new SpannableString("P."); in testDoesntAffectWidth() local
115 final SpannableString text = new SpannableString("P."); in testDoesntAffectWidth() local
123 final SpannableString text = new SpannableString("P. P."); in testDoesntAffectWidth() local
131 final SpannableString text = new SpannableString("P. P."); in testDoesntAffectWidth() local
150 final SpannableString text = new SpannableString("P."); in testDoesntAffectWidth_safeSubclass() local
170 final SpannableString text = new SpannableString("P."); in testDoesntAffectWidth_noUnderlineSubclass() local
194 final SpannableString text = new SpannableString("P."); in testAffectsWidth_ElegantSubclass() local
DReplacementSpanTest.java46 public void draw(Canvas canvas, CharSequence text, int start, int end, in draw()
51 public int getSize(Paint paint, CharSequence text, int start, int end, in getSize()
DStrikethroughSpanTest.java97 private float textWidth(CharSequence text) { in textWidth()
109 final SpannableString text = new SpannableString("P."); in testDoesntAffectWidth() local
DIconMarginSpanTest.java68 Spanned text = Html.fromHtml("<b>hello</b>"); in testDrawLeadingMargin() local
94 Spanned text = Html.fromHtml("cts test."); in testChooseHeight() local
DDrawableMarginSpanTest.java83 Spanned text = Html.fromHtml("<b>hello</b>"); in testDrawLeadingMargin() local
120 Spanned text = Html.fromHtml("cts test."); in testChooseHeight() local
/cts/tests/tests/widget/src/android/widget/cts/
DMultiAutoCompleteTextViewTest.java179 String text = "Android test."; in testPerformFiltering() local
198 String text = "CTS."; in testReplaceText() local
214 public int findTokenStart(CharSequence text, int cursor) { in findTokenStart()
231 public int findTokenEnd(CharSequence text, int cursor) { in findTokenEnd()
246 public CharSequence terminateToken(CharSequence text) { in terminateToken()
275 protected void performFiltering(CharSequence text, int keyCode) { in performFiltering()
279 protected void performFiltering(CharSequence text, int start, int end, int keyCode) { in performFiltering()
283 protected void replaceText(CharSequence text) { in replaceText()
DTextViewFadingEdgeTest.java158 private final MockTextView createTextView(String text, boolean horizontalFadingEnabled, in createTextView()
195 final String text; field in TextViewFadingEdgeTest.TestCase
203 TestCase(String errorMsg, String text, boolean horizontalFadingEnabled, int gravity, in TestCase()
216 TestCase(String errorMsg, String text, boolean horizontalFadingEnabled, int gravity, in TestCase()
/cts/tests/tests/text/src/android/text/method/cts/
DTextKeyListenerTest.java104 final Spannable text = new SpannableStringBuilder("123456"); in testOnSpanAdded() local
154 final Spannable text = new SpannableStringBuilder("123456"); in testOnSpanChanged() local
169 CharSequence text = "123456"; in testClear() local
182 final Spannable text = new SpannableStringBuilder("123456"); in testOnSpanRemoved() local
220 String text = mTextView.getText().toString(); in testPressKey() local
236 final String text = "abcd"; in testOnKeyOther() local
DMultiTapKeyListenerTest.java81 final Spannable text = new SpannableStringBuilder("123456"); in testOnSpanAdded() local
98 final Spannable text = new SpannableStringBuilder("123456"); in testOnSpanChanged() local
259 final Spannable text = new SpannableStringBuilder("123456"); in testOnSpanRemoved() local
/cts/tests/tests/widget/src/android/widget/cts/util/
DListItemFactory.java154 public static View button(int position, Context context, String text, int desiredHeight) { in button()
175 public static View convertButton(View convertView, String text, int position) { in convertButton()
194 public static View text(int position, Context context, String text, int desiredHeight) { in text() method in ListItemFactory
215 public static View convertText(View convertView, String text, int position) { in convertText()
235 public static View doubleText(int position, Context context, String text, int desiredHeight) { in doubleText()
277 public static View convertDoubleText(View convertView, String text, int position) { in convertDoubleText()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTextActionTest.java82 final AccessibilityNodeInfo text = mUiAutomation.getRootInActiveWindow() in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction() local
110 final AccessibilityNodeInfo text = mUiAutomation.getRootInActiveWindow() in testEditableTextView_shouldExposeAndRespondToSetTextAction() local
135 final AccessibilityNodeInfo text = mUiAutomation.getRootInActiveWindow() in testEditText_shouldExposeAndRespondToSetTextAction() local
205 final AccessibilityNodeInfo text = mUiAutomation.getRootInActiveWindow() in testTextLocations_textViewShouldProvideWhenRequested() local
222 final AccessibilityNodeInfo text = mUiAutomation.getRootInActiveWindow() in testTextLocations_textOutsideOfViewBounds_locationsShouldBeNull() local
275 final AccessibilityNodeInfo text = mUiAutomation.getRootInActiveWindow() in testTextLocations_withRequestPreparer_shouldHoldOffUntilReady() local
334 final AccessibilityNodeInfo text = mUiAutomation.getRootInActiveWindow() in testTextLocations_withUnresponsiveRequestPreparer_shouldTimeout() local
420 final AccessibilityNodeInfo text = mUiAutomation.getRootInActiveWindow() in findSingleSpanInViewWithText() local
433 private void makeTextViewVisibleAndSetText(final TextView textView, final CharSequence text) { in makeTextViewVisibleAndSetText()
DAccessibilityTextTraversalTest.java58 final AccessibilityNodeInfo text = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() local
273 final AccessibilityNodeInfo text = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityWordOverContentDescription() local
488 final AccessibilityNodeInfo text = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityCharacterOverText() local
738 final AccessibilityNodeInfo text = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() local
1236 final AccessibilityNodeInfo text = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityWordOverText() local
1486 final AccessibilityNodeInfo text = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityWordOverEditTextWithContentDescription() local
1741 final AccessibilityNodeInfo text = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityWordOverTextExtend() local
2235 final AccessibilityNodeInfo text = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityLineOverText() local
2490 final AccessibilityNodeInfo text = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityLineOverTextExtend() local
2984 final AccessibilityNodeInfo text = getInstrumentation().getUiAutomation() in testActionNextAndPreviousAtGranularityParagraphOverText() local
[all …]
/cts/tests/tests/text/src/android/text/util/cts/
DRfc822TokenizerTest.java52 String text = ", " + token1 + "\",\"" + token2 + ";" + token3 + " <;>" + token4; in testFindTokenStart() local
120 String text = "text"; in testTerminateToken() local
133 String text = "\"Berg\" (home) <berg\\@example.com>, tom\\@example.com (work)"; in testTokenize() local
157 String text = "\"Berg\" (home) <berg\\@example.com>, tom\\@example.com (work)"; in testTokenize_withListParam() local
/cts/libs/vogar-expect/src/vogar/util/
DMarkResetConsole.java34 public void println(String text) { in println()
38 public void print(String text) { in print()
/cts/tests/tests/telephony/src/android/telephony/cts/
DVisualVoicemailServiceTest.java139 String text = "//CTSVVM:STATUS:st=R;rc=0;srv=1;dn=1;ipt=1;spt=0;u=eg@example.com;pw=1"; in testPermissionlessService_ignored() local
460 private VisualVoicemailSms getSmsFromText(String clientPrefix, String text) { in getSmsFromText()
465 private VisualVoicemailSms getSmsFromText(String clientPrefix, String text, in getSmsFromText()
475 private void assertVisualVoicemailSmsNotReceived(String clientPrefix, String text) { in assertVisualVoicemailSmsNotReceived()
489 String text, in getSmsFromText()
498 try (SentSmsObserver observer = new SentSmsObserver(mContext, text)) { in getSmsFromText() argument
529 String text, boolean expectVvmSms) { in getSmsFromData()
562 private void setupSmsReceiver(String text) { in setupSmsReceiver()
576 public SmsBroadcastReceiver(String text) { in SmsBroadcastReceiver()
630 public SentSmsObserver(Context context, String text) { in SentSmsObserver()
/cts/tests/tests/graphics/src/android/graphics/cts/
DCanvasTest.java1315 final char[] text = { 'a', 'n', 'd', 'r', 'o', 'i', 'd' }; in testDrawArrayTextNegativeIndex() local
1323 final char[] text = { 'a', 'n', 'd', 'r', 'o', 'i', 'd' }; in testDrawArrayTextNegativeCount() local
1331 final char[] text = { 'a', 'n', 'd', 'r', 'o', 'i', 'd' }; in testDrawArrayTextTextLengthTooSmall() local
1340 final char[] text = { 'a', 'n', 'd', 'r', 'o', 'i', 'd' }; in testDrawArrayText() local
1396 final String text = "android"; in testDrawTextRun() local
1431 final String text = "android"; in testDrawTextRunNegativeIndex() local
1441 final String text = "android"; in testDrawTextRunNegativeCount() local
1450 final String text = "android"; in testDrawTextRunContestIndexTooLarge() local
1459 final String text = "android"; in testDrawTextRunContestIndexTooSmall() local
1469 final String text = "android"; in testDrawTextRunIndexTooLarge() local
[all …]
/cts/tests/tests/preference2/src/android/preference2/cts/
DTestUtils.java87 UiObject text = new UiObject(new UiSelector().text(searchText)); in tapOnViewWithText() local
109 UiObject text = new UiObject(new UiSelector().text(searchText)); in isTextShown() local
122 boolean isTextHidden(String text) { in isTextHidden()
130 boolean isTextFocused(String text) { in isTextFocused()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DBaseInputConnectionTest.java84 Spannable text = new SpannableString("Test ComposingSpans"); in testOpComposingSpans() local
115 final Editable text = connection.getEditable(); in testOpTextMethods() local
161 final Editable text = connection.getEditable(); in testFinishComposingText() local
/cts/tests/tests/telephony/src/android/telephony/gsm/cts/
DSmsManagerTest.java33 protected ArrayList<String> divideMessage(String text) { in divideMessage()
53 …protected void sendTextMessage(String destAddr, String text, PendingIntent sentIntent, PendingInte… in sendTextMessage()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DDummyActivity.java27 TextView text = new TextView(this); in onCreate() local
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DCopyPasteTest.java91 private void askCrossProfileReceiverToCopy(String text) throws Exception { in askCrossProfileReceiverToCopy()
106 CharSequence text = item.getText(); in getTextFromClipboard() local

1234