/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | ConversationActionTest.java | 40 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()
|
D | TextLinksTest.java | 59 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 …]
|
D | ConversationActionsTest.java | 44 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 …]
|
D | TextClassificationTest.java | 56 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()
|
D | TextSelectionTest.java | 51 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()
|
D | TextLanguageTest.java | 43 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()
|
D | TextClassifierTest.java | 74 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()
|
D | TextViewIntegrationTest.java | 156 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/ |
D | CompletionInfoTest.java | 36 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/ |
D | DynamicLayoutTest.java | 57 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/ |
D | PaintFlagsDrawFilterTest.java | 43 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/ |
D | MmsPartTest.java | 121 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()
|
D | MmsTest.java | 151 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/ |
D | TextViewPrecomputedTextTest.java | 48 private static final String TEXT = "Hello, World!"; field in TextViewPrecomputedTextTest 178 final PrecomputedText pct = PrecomputedText.create(TEXT, pctParams); in setText()
|
D | TableLayout_LayoutParamsTest.java | 186 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs() 194 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs()
|
D | TableRow_LayoutParamsTest.java | 210 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs() 218 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | DrawableTestUtils.java | 90 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttributeSet() 98 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttributeSet()
|
/cts/tests/appsearch/src/com/android/cts/appsearch/app/ |
D | GlobalSearchSessionPlatformCtsTest.java | 107 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/provider/src/android/provider/cts/ |
D | SmsBackupRestoreTest.java | 61 private static final String[] MMS_PART_TEXT_PROJECTION = new String[]{Telephony.Mms.Part.TEXT}; 239 values.put(Telephony.Mms.Part.TEXT, body); in addMms()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | XmlUtils.java | 1306 } 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/util/ |
D | XmlUtils.java | 1305 } 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/view/src/android/view/cts/ |
D | LayoutInflaterTest.java | 131 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | IntentTest.java | 345 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in testParseIntent()
|