Home
last modified time | relevance | path

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

12345678910>>...22

/frameworks/base/core/tests/coretests/src/android/text/method/
DWordIteratorTest.java154 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/
DStaticLayoutPerfTest.java56 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 …]
DPrecomputedTextPerfTest.java63 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/
DTextViewActivityMouseTest.java120 final String text = "abc def ghi."; in testContextMenu() local
188 final String text = "abc def ghi."; in testDragAndDrop() local
205 final String text = "abc def ghi."; in testDragAndDrop_longClick() local
273 final String text = "abcd efg hijk lmn"; in testSelectTextByDoubleClickAndDrag() local
284 final String text = "abcd efg hijk lmn"; in testSelectTextByDoubleClickAndDrag_reverse() local
295 final String text = "abcd efg hijk lmn"; in testSelectTextByLongPressAndDrag() local
306 final String text = "abcd efg hijk lmn"; in testSelectTextByLongPressAndDrag_reverse() local
325 final String text = builder.toString(); in testSelectTextByTripleClick() local
359 final String text = builder.toString(); in testSelectTextByTripleClickAndDrag() local
388 final String text = builder.toString(); in testSelectTextByTripleClickAndDrag_reverse() local
DTextViewActivityTest.java144 final String text = "\u0623\u064F\u067A\u0633\u0652"; in testPositionCursorAtTextAtIndex_arabic() local
164 final String text = "\u0915\u093E"; in testPositionCursorAtTextAtIndex_devanagari() local
212 final String text = "\uD83D\uDE00\uD83D\uDE01\uD83D\uDE02\uD83D\uDE03"; in testLongPressAndDragToSelect_emoji() local
226 final String text = "abc def ghi."; in testDragAndDrop() local
286 final String text = "Toolbar appears after selection."; in testToolbarAppearsAfterSelection() local
423 final String text = "text"; in testToolbarAndInsertionHandle() local
441 final String text = "abcd efg hijk"; in testToolbarAndSelectionHandle() local
476 final String text = "abcd efg hijk "; in testInsertionHandle() local
495 final String text = "abcd\n" + "efg\n" + "hijk\n"; in testInsertionHandle_multiLine() local
514 final String text = "abcd efg hijk lmn"; in testSelectionHandles() local
[all …]
DSuggestionsPopupWindowTest.java82 final Spannable text = (Spannable) textView.getText(); in setSuggestionSpan() local
91 final String text = "abc def ghi"; in testOnTextContextMenuItem() local
109 final String text = "abc def ghi"; in testSelectionActionMode() local
131 final String text = "abc def ghi"; in testInsertionActionMode() local
160 final String text = "abc def ghi"; in testSuggestionItems() local
198 final String text = "abc def ghi"; in testMisspelled() local
225 final String text = "abc def ghi"; in testEasyCorrect() local
261 final String text = "abc def ghi"; in testTextAppearanceInSuggestionsPopup() local
/frameworks/base/tools/powermodel/test/com/android/powermodel/
DCsvParserTest.java62 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/
DSelection.java40 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 …]
DEditable.java58 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()
DHtml.java250 public static String toHtml(Spanned text) { in toHtml()
264 public static String toHtml(Spanned text, int option) { in toHtml()
273 public static String escapeHtml(CharSequence text) { in escapeHtml()
279 private static void withinHtml(StringBuilder out, Spanned text, int option) { in withinHtml()
288 private static void encodeTextAlignmentByDiv(StringBuilder out, Spanned text, int option) { in encodeTextAlignmentByDiv()
324 private static void withinDiv(StringBuilder out, Spanned text, int start, int end, in withinDiv()
343 private static String getTextDirection(Spanned text, int start, int end) { in getTextDirection()
351 private static String getTextStyles(Spanned text, int start, int end, in getTextStyles()
395 private static void withinBlockquote(StringBuilder out, Spanned text, int start, int end, in withinBlockquote()
404 private static void withinBlockquoteIndividual(StringBuilder out, Spanned text, int start, in withinBlockquoteIndividual()
[all …]
DSpanWatcher.java29 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/
DMovementMethod.java36 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()
DKeyListener.java63 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/
DTextViewPrecomputedTextPerfTest.java90 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/android/widget/
DMultiAutoCompleteTextView.java94 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/core/java/android/view/textclassifier/intent/
DLegacyClassificationIntentFactory.java58 public List<LabeledIntent> create(Context context, String text, boolean foreignText, in create()
106 private static List<LabeledIntent> createForEmail(Context context, String text) { in createForEmail()
129 private static List<LabeledIntent> createForPhone(Context context, String text) { in createForPhone()
167 private static List<LabeledIntent> createForAddress(Context context, String text) { in createForAddress()
186 private static List<LabeledIntent> createForUrl(Context context, String text) { in createForUrl()
221 private static List<LabeledIntent> createForFlight(Context context, String text) { in createForFlight()
268 private static List<LabeledIntent> createForDictionary(Context context, String text) { in createForDictionary()
/frameworks/base/core/java/android/text/util/
DRfc822Tokenizer.java45 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/packages/SystemUI/src/com/android/systemui/volume/
DConfigurableTexts.java40 public int add(final TextView text) { in add()
44 public int add(final TextView text, final int labelResId) { in add()
71 private void setTextSizeH(TextView text, int sp) { in setTextSizeH()
75 private void setTextLabelH(TextView text, int labelResId) { in setTextLabelH()
/frameworks/base/core/tests/coretests/src/android/util/
DListItemFactory.java155 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() argument
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/minikin/tests/unittest/
DMeasuredTextTest.cpp45 std::vector<uint16_t> text(CHAR_COUNT, 'a'); in TEST() local
61 auto text = utf8ToUtf16("Hello, World!"); in TEST() local
79 auto text = utf8ToUtf16("Hello, World!"); in TEST() local
104 auto text = utf8ToUtf16("Hello, World!"); in TEST() local
122 auto text = utf8ToUtf16("Hello, World!"); in TEST() local
147 auto text = utf8ToUtf16("Hello, World!"); in TEST() local
217 auto text = utf8ToUtf16("Hello, World!"); in TEST() local
294 auto text = utf8ToUtf16("Hello, World!"); in TEST() local
364 auto text = utf8ToUtf16("Hello, World!"); in TEST() local
/frameworks/base/tools/aapt/
Dpseudolocalize.h19 String16 text(const String16& text) { return text; } in text() function
20 String16 placeholder(const String16& text) { return text; } in placeholder()
/frameworks/base/apct-tests/perftests/textclassifier/src/android/view/textclassifier/
DTextClassifierPerfTest.java68 String text = mSize == ACTUAL_REQUEST ? "Where are you?" : generateRandomString(mSize); in testSuggestConversationActions() local
78 String text = mSize == ACTUAL_REQUEST in testDetectLanguage() local
87 private static ConversationActions.Request createConversationActionsRequest(CharSequence text) { in createConversationActionsRequest()
97 private static TextLanguage.Request createTextLanguageRequest(CharSequence text) { in createTextLanguageRequest()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DItem.java32 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/
DKeyguardClockAccessibilityDelegate.java42 CharSequence text = event.getContentDescription(); in onInitializeAccessibilityEvent() local
53 CharSequence text = ((TextView) host).getText(); in onPopulateAccessibilityEvent() local
74 private CharSequence replaceFancyColon(CharSequence text) { in replaceFancyColon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java206 final CharSequence text = mContext.getString(R.string.ext_media_missing_message); in updateMissingPrivateVolumes() local
235 final CharSequence text = mContext.getString( in onDiskScannedInternal() local
342 final CharSequence text = mContext.getString( in onVolumeChecking() local
363 final CharSequence text = mContext.getString( in onVolumeMounted() local
379 final CharSequence text = mContext.getString( in onVolumeMounted() local
410 final CharSequence text = mContext.getString( in onVolumeEjecting() local
423 final CharSequence text = mContext.getString( in onVolumeUnmountable() local
441 final CharSequence text = mContext.getString( in onVolumeRemoved() local
458 final CharSequence text = mContext.getString( in onVolumeBadRemoval() local
474 final CharSequence text; in onMoveProgress() local
[all …]

12345678910>>...22