Home
last modified time | relevance | path

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

/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DConversationActionTest.java40 private static final String TEXT = "TEXT"; field in ConversationActionTest
49 TEXT,
50 TEXT,
54 EXTRAS.putString(TEXT, TEXT); in EXTRAS.putString() argument
78 .setTextReply(TEXT) in testConversationAction_full()
100 assertThat(conversationAction.getAction().getTitle()).isEqualTo(TEXT); in assertFullConversationAction()
103 assertThat(conversationAction.getTextReply()).isEqualTo(TEXT); in assertFullConversationAction()
104 assertThat(conversationAction.getExtras().keySet()).containsExactly(TEXT); in assertFullConversationAction()
DTextLinksTest.java59 private static final String TEXT = "abcdefghijklmnopqrstuvwxyz"; field in TextLinksTest
68 final TextLinks textLinks = new TextLinks.Builder(TEXT).build(); in testTextLinks_defaultValues()
70 assertEquals(TEXT, textLinks.getText()); in testTextLinks_defaultValues()
77 final TextLinks textLinks = new TextLinks.Builder(TEXT) in testTextLinks_full()
84 assertEquals(TEXT, textLinks.getText()); in testTextLinks_full()
104 final TextLinks textLinks = new TextLinks.Builder(TEXT) in testTextLinks_clearTextLinks()
114 final SpannableString spannableString = SpannableString.valueOf(TEXT); in testTextLinks_apply()
115 final TextLinks textLinks = new TextLinks.Builder(TEXT) in testTextLinks_apply()
153 final SpannableString spannableString = SpannableString.valueOf(TEXT); in testTextLinks_applyStrategyReplace()
156 final TextLinks textLinks = new TextLinks.Builder(TEXT) in testTextLinks_applyStrategyReplace()
[all …]
DConversationActionsTest.java44 private static final String TEXT = "TEXT"; field in ConversationActionsTest
45 private static final Person PERSON = new Person.Builder().setKey(TEXT).build();
50 EXTRAS.putString(TEXT, TEXT); in EXTRAS.putString() argument
57 .setText(TEXT) in testMessage_full()
85 .setText(TEXT) in testRequest_minimal()
103 .setText(TEXT) in testRequest_full()
163 assertThat(message.getText().toString()).isEqualTo(TEXT); in assertFullMessage()
165 assertThat(message.getExtras().keySet()).containsExactly(TEXT); in assertFullMessage()
177 assertThat(request.getConversation().get(0).getText().toString()).isEqualTo(TEXT); in assertMinimalRequest()
187 assertThat(request.getConversation().get(0).getText().toString()).isEqualTo(TEXT); in assertFullRequest()
[all …]
DTextClassificationTest.java56 private static final String TEXT = "abcdefghijklmnopqrstuvwxyz"; field in TextClassificationTest
84 .setText(TEXT) in testTextClassification()
93 assertEquals(TEXT, classification.getText()); in testTextClassification()
133 .setText(TEXT) in testTextClassificationLegacy()
143 assertEquals(TEXT, classification.getText()); in testTextClassificationLegacy()
178 new TextClassification.Request.Builder(TEXT, START, END) in testTextClassificationRequest()
190 new TextClassification.Request.Builder(TEXT, START, END) in testTextClassificationRequest_nullValues()
201 new TextClassification.Request.Builder(TEXT, START, END).build(); in testTextClassificationRequest_defaultValues()
DTextSelectionTest.java51 private static final String TEXT = "abcdefghijklmnopqrstuvwxyz"; field in TextSelectionTest
57 new TextClassification.Builder().setText(TEXT).build();
89 assertThat(selection.getTextClassification().getText()).isEqualTo(TEXT); in testTextSelection()
169 new TextSelection.Request.Builder(TEXT, START, END) in testTextSelectionRequest()
180 assertThat(request.getText().toString()).isEqualTo(TEXT); in testTextSelectionRequest()
193 new TextSelection.Request.Builder(TEXT, START, END) in testTextSelectionRequest_nullValues()
206 new TextSelection.Request.Builder(TEXT, START, END).build(); in testTextSelectionRequest_defaultValues()
DTextClassifierTest.java74 private static final String TEXT = "An email address is test@example.com. A phone number" field in TextClassifierTest
78 new TextSelection.Request.Builder(TEXT, START, END)
82 new TextClassification.Request.Builder(TEXT, START, END)
86 new TextLanguage.Request.Builder(TEXT)
91 .setText(TEXT)
95 .setText(TEXT)
163 assertValidResult(mClassifier.suggestSelection(TEXT, START, END, LOCALES)); in testSuggestSelectionWith4Param()
173 assertValidResult(mClassifier.classifyText(TEXT, START, END, LOCALES)); in testClassifyTextWith4Param()
178 assertValidResult(mClassifier.generateLinks(new TextLinks.Request.Builder(TEXT).build())); in testGenerateLinks()
DTextLanguageTest.java43 private static final String TEXT = "abcdefghijklmnopqrstuvwxyz"; field in TextLanguageTest
81 final TextLanguage.Request request = new TextLanguage.Request.Builder(TEXT) in testTextLanguageRequest()
85 assertEquals(TEXT, request.getText()); in testTextLanguageRequest()
DTextViewIntegrationTest.java156 final String TEXT = "Link: https://www.android.com"; in smartLinkify() local
158 Spannable linkifiedText = createLinkifiedText(TEXT); in smartLinkify()
164 TextLinks.TextLinkSpan[] spans = linkifiedText.getSpans(0, TEXT.length(), in smartLinkify()
174 onView(allOf(withId(R.id.textview), withText(TEXT))).check(matches(isDisplayed())); in smartLinkify()
215 final String TEXT = "Link: https://www.android.com"; in smartSelectionInternal() local
219 textView.setText(TEXT); in smartSelectionInternal()
223 onView(allOf(withId(R.id.textview), withText(TEXT))).check(matches(isDisplayed())); in smartSelectionInternal()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DCompletionInfoTest.java36 private static final String TEXT = "CompletionInfoText"; field in CompletionInfoTest
41 new CompletionInfo(ID, POSITION, TEXT); in testCompletionInfo()
42 CompletionInfo info = new CompletionInfo(ID, POSITION, TEXT, LABEL); in testCompletionInfo()
59 assertEquals(TEXT, info.getText().toString()); in assertCompletionInfo()
/cts/tests/tests/text/src/android/text/cts/
DDynamicLayoutTest.java57 private static final String[] TEXT = {"CharSequence\n", "Char\tSequence\n", "CharSequence"}; field in DynamicLayoutTest
58 private static final CharSequence MULTLINE_CHAR_SEQUENCE = TEXT[0] + TEXT[1] + TEXT[2];
223 assertEquals(TEXT.length, mDynamicLayout.getLineCount()); in testLineLayout()
256 assertEquals(TEXT[0].length(), mDynamicLayout.getLineStart(LINE1)); in testLineLayout()
257 assertEquals(TEXT[0].length() + TEXT[1].length(), mDynamicLayout.getLineStart(LINE2)); in testLineLayout()
468 for (int i = 0; i < TEXT.length; i++) { in testBuilder_ellipsization()
469 if (i == TEXT.length - 1) { // last line in testBuilder_ellipsization()
505 assertThat(layout.getLineCount()).isEqualTo(TEXT.length); in testDisplayTextUsedInsteadOfBase()
508 assertThat(layout.getLineStart(LINE1)).isEqualTo(TEXT[0].length()); in testDisplayTextUsedInsteadOfBase()
509 assertThat(layout.getLineStart(LINE2)).isEqualTo(TEXT[0].length() + TEXT[1].length()); in testDisplayTextUsedInsteadOfBase()
/cts/tests/tests/graphics/src/android/graphics/cts/
DPaintFlagsDrawFilterTest.java43 private static final String TEXT = "Test"; field in PaintFlagsDrawFilterTest
65 mTextWidth = p.measureText(TEXT); in drawText()
70 c.drawText(TEXT, TEXT_X, TEXT_Y, p); in drawText()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DMmsPartTest.java121 updateValues.put(Telephony.Mms.Part.TEXT, MMS_BODY_UPDATE); in testMmsPartUpdate()
182 assertThat(cursor.getString(cursor.getColumnIndex(Telephony.Mms.Part.TEXT))).isEqualTo( in assertThatMmsPartInsertSucceeded()
206 values.put(Telephony.Mms.Part.TEXT, body); in insertIntoMmsPartTable()
DMmsTest.java151 assertThat(partCursor.getString(partCursor.getColumnIndex(Telephony.Mms.Part.TEXT))) in testMmsInsert_canInsertTextMms()
451 values.put(Telephony.Mms.Part.TEXT, body); in insertIntoMmsPartTable()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewPrecomputedTextTest.java48 private static final String TEXT = "Hello, World!"; field in TextViewPrecomputedTextTest
178 final PrecomputedText pct = PrecomputedText.create(TEXT, pctParams); in setText()
DTableLayout_LayoutParamsTest.java186 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs()
194 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs()
DTableRow_LayoutParamsTest.java210 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs()
218 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs()
/cts/tests/appsearch/src/com/android/cts/appsearch/app/
DGlobalSearchSessionPlatformCtsTest.java107 private static final String TEXT = "foo"; field in GlobalSearchSessionPlatformCtsTest
113 .setSubject(TEXT)
520 List<String> results = commandReceiver.globalSearch(TEXT); in assertPackageCannotAccess()
533 List<String> results = commandReceiver.globalSearch(TEXT); in assertPackageCanAccess()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTestUtils.java90 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttributeSet()
98 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttributeSet()
/cts/tests/tests/provider/src/android/provider/cts/
DSmsBackupRestoreTest.java62 private static final String[] MMS_PART_TEXT_PROJECTION = new String[]{Telephony.Mms.Part.TEXT};
241 values.put(Telephony.Mms.Part.TEXT, body); in addMms()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPermissionPolicyTest.java249 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in loadExpectedPermissions()
281 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in loadExpectedPermissionGroupNames()
/cts/tests/tests/view/src/android/view/cts/util/
DXmlUtils.java1305 } else if (eventType == parser.TEXT) { in readValueXml()
1340 } else if (eventType == parser.TEXT) { in readThisValueXml()
1415 } else if (eventType == parser.TEXT) { in readThisValueXml()
/cts/tests/tests/content/src/android/content/cts/util/
DXmlUtils.java1333 } else if (eventType == parser.TEXT) { in readValueXml()
1368 } else if (eventType == parser.TEXT) { in readThisValueXml()
1443 } else if (eventType == parser.TEXT) { in readThisValueXml()
/cts/tests/tests/widget/src/android/widget/cts/util/
DXmlUtils.java1306 } else if (eventType == parser.TEXT) { in readValueXml()
1341 } else if (eventType == parser.TEXT) { in readThisValueXml()
1416 } else if (eventType == parser.TEXT) { in readThisValueXml()
/cts/tests/tests/view/src/android/view/cts/
DLayoutInflaterTest.java131 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs()
/cts/tests/tests/content/src/android/content/cts/
DIntentTest.java345 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in testParseIntent()