/frameworks/base/core/tests/coretests/src/android/text/method/ |
D | WordIteratorTest.java | 154 final String text = "text"; in testSetCharSequence() local 177 final String text = "aaaa bbbb cccc dddd eeee ffff gggg hhhh iiii jjjj kkkk llll mmmm nnnn"; in testWindowWidth() local 194 final String text = "abc def-ghi. jkl"; in testPreceding() local 234 final String text = "abc def-ghi. jkl"; in testFollowing() local 274 final String text = "abc def-ghi. jkl"; in testIsBoundary() local 302 final String text = "abc def-ghi. jkl"; in testNextBoundary() local 349 final String text = "abc def-ghi. jkl"; in testPrevBoundary() local 396 final String text = "abc def-ghi. jkl"; in testGetBeginning() local 424 final String text = "abc def-ghi. jkl"; in testGetBeginning() local 447 final String text = "\u3042\u30A2\u30A3\u30A4"; in testGetBeginning() local [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
D | StaticLayoutPerfTest.java | 56 private PrecomputedText makeMeasured(CharSequence text, TextPaint paint) { in makeMeasured() 61 private PrecomputedText makeMeasured(CharSequence text, TextPaint paint, int strategy, in makeMeasured() 71 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testCreate_FixedText_NoStyle_Greedy_NoHyphenation() local 85 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testCreate_RandomText_NoStyled_Greedy_NoHyphenation() local 100 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testCreate_RandomText_NoStyled_Greedy_Hyphenation() local 115 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testCreate_RandomText_NoStyled_Balanced_NoHyphenation() local 130 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testCreate_RandomText_NoStyled_Balanced_Hyphenation() local 145 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, STYLE_TEXT); in testCreate_RandomText_Styled_Greedy_NoHyphenation() local 160 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Greedy_NoHyphenation() local 177 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Greedy_NoHyphenation_DirDifferent() local [all …]
|
D | PrecomputedTextPerfTest.java | 63 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testCreate_NoStyled_Hyphenation() local 80 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testCreate_NoStyled_NoHyphenation() local 97 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testCreate_NoStyled_Hyphenation_WidthOnly() local 114 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testCreate_NoStyled_NoHyphenation_WidthOnly() local 131 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, STYLE_TEXT); in testCreate_Styled_Hyphenation() local 148 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, STYLE_TEXT); in testCreate_Styled_NoHyphenation() local 165 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, STYLE_TEXT); in testCreate_Styled_Hyphenation_WidthOnly() local 182 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, STYLE_TEXT); in testCreate_Styled_NoHyphenation_WidthOnly() local
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewActivityMouseTest.java | 108 final String text = "abc def ghi."; in testContextMenu() local 176 final String text = "abc def ghi."; in testDragAndDrop() local 192 final String text = "abc def ghi."; in testDragAndDrop_longClick() local 259 final String text = "abcd efg hijk lmn"; in testSelectTextByDoubleClickAndDrag() local 270 final String text = "abcd efg hijk lmn"; in testSelectTextByDoubleClickAndDrag_reverse() local 281 final String text = "abcd efg hijk lmn"; in testSelectTextByLongPressAndDrag() local 292 final String text = "abcd efg hijk lmn"; in testSelectTextByLongPressAndDrag_reverse() local 311 final String text = builder.toString(); in testSelectTextByTripleClick() local 345 final String text = builder.toString(); in testSelectTextByTripleClickAndDrag() local 374 final String text = builder.toString(); in testSelectTextByTripleClickAndDrag_reverse() local
|
D | TextViewActivityTest.java | 153 final String text = "\u0623\u064F\u067A\u0633\u0652"; in testPositionCursorAtTextAtIndex_arabic() local 173 final String text = "\u0915\u093E"; in testPositionCursorAtTextAtIndex_devanagari() local 221 final String text = "\uD83D\uDE00\uD83D\uDE01\uD83D\uDE02\uD83D\uDE03"; in testLongPressAndDragToSelect_emoji() local 235 final String text = "abc def ghi."; in testDragAndDrop() local 295 final String text = "Toolbar appears after selection."; in testToolbarAppearsAfterSelection() local 366 final String text = "Toolbar appears after performing accessibility's ACTION_LONG_CLICK."; in testToolbarAppearsAccessibilityLongClick() local 382 final String text = "abcd efg hijk"; in testToolbarMenuItemClickAfterSelectionChange() local 496 final String text = "text"; in testToolbarAndInsertionHandle() local 514 final String text = "abcd efg hijk"; in testToolbarAndSelectionHandle() local 549 final String text = "abcd efg hijk "; in testInsertionHandle() local [all …]
|
D | SuggestionsPopupWindowTest.java | 84 final Spannable text = (Spannable) textView.getText(); in setSuggestionSpan() local 93 final String text = "abc def ghi"; in testOnTextContextMenuItem() local 111 final String text = "abc def ghi"; in testSelectionActionMode() local 133 final String text = "abc def ghi"; in testInsertionActionMode() local 162 final String text = "abc def ghi"; in testSuggestionItems() local 200 final String text = "abc def ghi"; in testMisspelled() local 227 final String text = "abc def ghi"; in testEasyCorrect() local 263 final String text = "abc def ghi"; in testTextAppearanceInSuggestionsPopup() local 365 final String text = "abc"; in testCursorVisibility() local 390 final String text = "abc"; in testCursorVisibilityWhenImeConsumesInput() local
|
/frameworks/base/tools/powermodel/test/com/android/powermodel/ |
D | CsvParserTest.java | 62 final String text = ""; in testEmpty() local 74 final String text = "\n"; in testOnlyNewline() local 86 final String text = "one,twoo,3\nfour,5,six\n"; in testTwoLines() local 101 final String text = "\"\",\"\",\"\"\n"; in testEscapedEmpty() local 114 final String text = "\"one\",\"twoo\",\"3\"\n"; in testEscapedText() local 127 final String text = "\"\"\"\",\"\"\"\"\"\",\"\"\"\"\n"; in testEscapedQuotes() local 140 final String text = "\",\",\",\",\",\"\n"; in testEscapedCommas() local 153 final String text = "\"\"\",\",\"\"\",\",\"\"\",\"\n"; in testEscapedQuotesAndCommas() local 166 final String text = "a,b,c"; in testNoNewline() local 179 final String text = "a,b,,"; in testNoNewlineWithCommas() local [all …]
|
/frameworks/base/core/java/android/text/ |
D | Selection.java | 40 public static final int getSelectionStart(CharSequence text) { in getSelectionStart() 51 public static final int getSelectionEnd(CharSequence text) { in getSelectionEnd() 58 private static int getSelectionMemory(CharSequence text) { in getSelectionMemory() 77 public static void setSelection(Spannable text, int start, int stop) { in setSelection() 85 private static void setSelection(Spannable text, int start, int stop, int memory) { in setSelection() 106 private static void updateMemory(Spannable text, int memory) { in updateMemory() 122 private static void removeMemory(Spannable text) { in removeMemory() 152 public static final void setSelection(Spannable text, int index) { in setSelection() 159 public static final void selectAll(Spannable text) { in selectAll() 166 public static final void extendSelection(Spannable text, int index) { in extendSelection() [all …]
|
D | Editable.java | 58 public Editable replace(int st, int en, CharSequence text); in replace() 64 public Editable insert(int where, CharSequence text, int start, int end); in insert() 70 public Editable insert(int where, CharSequence text); in insert() 82 public Editable append(CharSequence text); in append() 88 public Editable append(CharSequence text, int start, int end); in append() 94 public Editable append(char text); in append()
|
D | Html.java | 253 public static String toHtml(Spanned text) { in toHtml() 267 public static String toHtml(Spanned text, int option) { in toHtml() 276 public static String escapeHtml(CharSequence text) { in escapeHtml() 282 private static void withinHtml(StringBuilder out, Spanned text, int option) { in withinHtml() 291 private static void encodeTextAlignmentByDiv(StringBuilder out, Spanned text, int option) { in encodeTextAlignmentByDiv() 327 private static void withinDiv(StringBuilder out, Spanned text, int start, int end, in withinDiv() 346 private static String getTextDirection(Spanned text, int start, int end) { in getTextDirection() 354 private static String getTextStyles(Spanned text, int start, int end, in getTextStyles() 398 private static void withinBlockquote(StringBuilder out, Spanned text, int start, int end, in withinBlockquote() 407 private static void withinBlockquoteIndividual(StringBuilder out, Spanned text, int start, in withinBlockquoteIndividual() [all …]
|
D | SpanWatcher.java | 29 public void onSpanAdded(Spannable text, Object what, int start, int end); in onSpanAdded() 34 public void onSpanRemoved(Spannable text, Object what, int start, int end); in onSpanRemoved() 40 public void onSpanChanged(Spannable text, Object what, int ostart, int oend, in onSpanChanged()
|
/frameworks/base/core/java/android/text/method/ |
D | MovementMethod.java | 36 public void initialize(TextView widget, Spannable text); in initialize() 37 public boolean onKeyDown(TextView widget, Spannable text, int keyCode, KeyEvent event); in onKeyDown() 38 public boolean onKeyUp(TextView widget, Spannable text, int keyCode, KeyEvent event); in onKeyUp() 45 public boolean onKeyOther(TextView view, Spannable text, KeyEvent event); in onKeyOther() 47 public void onTakeFocus(TextView widget, Spannable text, int direction); in onTakeFocus() 48 public boolean onTrackballEvent(TextView widget, Spannable text, MotionEvent event); in onTrackballEvent() 49 public boolean onTouchEvent(TextView widget, Spannable text, MotionEvent event); in onTouchEvent() 50 public boolean onGenericMotionEvent(TextView widget, Spannable text, MotionEvent event); in onGenericMotionEvent()
|
D | KeyListener.java | 63 public boolean onKeyDown(View view, Editable text, in onKeyDown() 71 public boolean onKeyUp(View view, Editable text, in onKeyUp() 79 public boolean onKeyOther(View view, Editable text, KeyEvent event); in onKeyOther()
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | TextViewPrecomputedTextPerfTest.java | 90 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testNewLayout_RandomText() local 109 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testNewLayout_RandomText_Selectable() local 132 final CharSequence text = PrecomputedText.create( in testNewLayout_PrecomputedText() local 154 final CharSequence text = PrecomputedText.create( in testNewLayout_PrecomputedText_Selectable() local 174 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testSetText_RandomText() local 191 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testSetText_RandomText_Selectable() local 212 final CharSequence text = PrecomputedText.create( in testSetText_PrecomputedText() local 232 final CharSequence text = PrecomputedText.create( in testSetText_PrecomputedText_Selectable() local 251 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testOnMeasure_RandomText() local 271 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testOnMeasure_RandomText_Selectable() local [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | XmlSerializerWrapper.java | 104 public XmlSerializer text(String text) throws IOException{ in text() argument 108 public XmlSerializer text(char[] buf, int start, int len) throws IOException { in text() method in XmlSerializerWrapper 112 public void cdsect(String text) in cdsect() 117 public void entityRef(String text) throws IOException { in entityRef() 121 public void processingInstruction(String text) throws IOException { in processingInstruction() 125 public void comment(String text) throws IOException { in comment() 129 public void docdecl(String text) throws IOException { in docdecl() 133 public void ignorableWhitespace(String text) throws IOException { in ignorableWhitespace()
|
/frameworks/base/core/java/android/widget/ |
D | MultiAutoCompleteTextView.java | 94 protected void performFiltering(CharSequence text, int keyCode) { in performFiltering() 119 Editable text = getText(); in enoughToFilter() local 171 protected void performFiltering(CharSequence text, int start, int end, in performFiltering() 190 protected void replaceText(CharSequence text) { in replaceText() 213 public int findTokenStart(CharSequence text, int cursor); in findTokenStart() 219 public int findTokenEnd(CharSequence text, int cursor); in findTokenEnd() 225 public CharSequence terminateToken(CharSequence text); in terminateToken() 233 public int findTokenStart(CharSequence text, int cursor) { in findTokenStart() 246 public int findTokenEnd(CharSequence text, int cursor) { in findTokenEnd() 261 public CharSequence terminateToken(CharSequence text) { in terminateToken()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | ConfigurableTexts.java | 40 public int add(final TextView text) { in add() 44 public int add(final TextView text, final int labelResId) { in add() 69 public void remove(final TextView text) { in remove() 79 private void setTextSizeH(TextView text, int sp) { in setTextSizeH() 83 private void setTextLabelH(TextView text, int labelResId) { in setTextLabelH()
|
/frameworks/base/core/java/android/text/util/ |
D | Rfc822Tokenizer.java | 45 public static void tokenize(CharSequence text, Collection<Rfc822Token> out) { in tokenize() 171 public static Rfc822Token[] tokenize(CharSequence text) { in tokenize() 210 public int findTokenStart(CharSequence text, int cursor) { in findTokenStart() 241 public int findTokenEnd(CharSequence text, int cursor) { in findTokenEnd() 311 public CharSequence terminateToken(CharSequence text) { in terminateToken()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ListItemFactory.java | 155 public static View button(int position, Context context, String text, int desiredHeight) { in button() 176 public static View convertButton(View convertView, String text, int position) { in convertButton() 195 public static View text(int position, Context context, String text, int desiredHeight) { in text() method in ListItemFactory 216 public static View convertText(View convertView, String text, int position) { in convertText() 236 public static View doubleText(int position, Context context, String text, int desiredHeight) { in doubleText() 279 public static View convertDoubleText(View convertView, String text, int position) { in convertDoubleText()
|
/frameworks/base/tools/aapt/ |
D | pseudolocalize.h | 19 String16 text(const String16& text) { return text; } in text() function 20 String16 placeholder(const String16& text) { return text; } in placeholder()
|
/frameworks/minikin/tests/unittest/ |
D | MeasuredTextTest.cpp | 46 std::vector<uint16_t> text(CHAR_COUNT, 'a'); in TEST() local 62 auto text = utf8ToUtf16("Hello, World!"); in TEST() local 80 auto text = utf8ToUtf16("\u0028"); // U+0028 has 1em in LTR, 3em in RTL. in TEST() local 94 auto text = utf8ToUtf16("\u0028"); // U+0028 has 1em in LTR, 3em in RTL. in TEST() local 108 auto text = utf8ToUtf16("Hello, World!"); in TEST() local 133 auto text = utf8ToUtf16("Hello, World!"); in TEST() local 151 auto text = utf8ToUtf16("Hello, World!"); in TEST() local 176 auto text = utf8ToUtf16("Hello, World!"); in TEST() local 255 auto text = utf8ToUtf16("Hello, World!"); in TEST() local 341 auto text = utf8ToUtf16("Hello, World!"); in TEST() local [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/ |
D | AnnotationLinkSpanTest.java | 54 final CharSequence text = getContext().getText( in linkifyText_textAttachedWithSpan() local 67 final CharSequence text = "text without any annotation tag"; in linkifyText_withoutAnnotationTag_textWithoutSpan() local 80 final CharSequence text = getContext().getText( in linkifyText_twoLinkInfoWithSameAnnotation_listenerInvoked() local
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | Item.java | 32 public String text; field in Item 36 public Item(int id, String text) { in Item() 40 public Item(int id, String text, Bitmap icon) { in Item()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardClockAccessibilityDelegate.java | 44 CharSequence text = event.getContentDescription(); in onInitializeAccessibilityEvent() local 55 CharSequence text = ((TextView) host).getText(); in onPopulateAccessibilityEvent() local 76 private CharSequence replaceFancyColon(CharSequence text) { in replaceFancyColon()
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | UiBot.java | 65 public UiObject getNotification(String text) { in getNotification() 80 public UiObject2 getNotification2(String text) { in getNotification2() 123 public void clickOnNotification(String text) { in clickOnNotification() 133 public UiObject getObject(String text) { in getObject() 155 public UiObject getVisibleObject(String text) { in getVisibleObject()
|