Home
last modified time | relevance | path

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

12345678910>>...25

/frameworks/base/apct-tests/perftests/core/src/android/text/
DStaticLayoutPerfTest.java84 private PrecomputedText makeMeasured(CharSequence text, TextPaint paint) { in makeMeasured()
89 private PrecomputedText makeMeasured(CharSequence text, TextPaint paint, int strategy, in makeMeasured()
99 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testCreate_FixedText_NoStyle_Greedy_NoHyphenation() local
113 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testCreate_RandomText_NoStyled_Greedy_NoHyphenation() local
128 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testCreate_RandomText_NoStyled_Greedy_Hyphenation() local
143 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testCreate_RandomText_NoStyled_Balanced_NoHyphenation() local
158 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testCreate_RandomText_NoStyled_Balanced_Hyphenation() local
173 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT); in testCreate_RandomText_NoStyled_Balanced_Hyphenation_Fast() local
188 final CharSequence text = mTextUtil.nextRandomParagraph(WORD_LENGTH, STYLE_TEXT); in testCreate_RandomText_Styled_Greedy_NoHyphenation() local
203 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Greedy_NoHyphenation() 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/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/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/tests/coretests/src/android/widget/
DTextViewActivityMouseTest.java108 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
DTextViewActivityTest.java163 final String text = "\u0623\u064F\u067A\u0633\u0652"; in testPositionCursorAtTextAtIndex_arabic() local
183 final String text = "\u0915\u093E"; in testPositionCursorAtTextAtIndex_devanagari() local
231 final String text = "\uD83D\uDE00\uD83D\uDE01\uD83D\uDE02\uD83D\uDE03"; in testLongPressAndDragToSelect_emoji() local
245 final String text = "abc def ghi."; in testDragAndDrop() local
305 final String text = "Toolbar appears after selection."; in testToolbarAppearsAfterSelection() local
370 final String text = "Toolbar appears after performing accessibility's ACTION_LONG_CLICK."; in testToolbarAppearsAccessibilityLongClick() local
385 final String text = "abcd efg hijk"; in testToolbarMenuItemClickAfterSelectionChange() local
423 final String text = "hello world"; in testSelectionOnCreateActionModeReturnsFalse() local
520 final String text = "text"; in testToolbarAndInsertionHandle() local
537 final String text = "abcd efg hijk"; in testToolbarAndSelectionHandle() 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
127 final String text = "abc def ghi"; in testInsertionActionMode() local
154 final String text = "abc def ghi"; in testSuggestionItems() local
192 final String text = "abc def ghi"; in testMisspelled() local
219 final String text = "abc def ghi"; in testEasyCorrect() local
255 final String text = "abc def ghi"; in testTextAppearanceInSuggestionsPopup() local
357 final String text = "abc"; in testCursorVisibility() local
382 final String text = "abc"; in testCursorVisibilityWhenImeConsumesInput() local
DTextViewPopulateCharacterBoundsTest.java77 private TextView createTextView(String text, float textSize, int width, int height) { in createTextView()
93 final String text = "IIVX"; in testPopulateCharacterBounds_LTR() local
122 final String text = "IVVI"; in testPopulateCharacterBounds_LTR_multiline() local
152 final String text = "IV\nVI"; in testPopulateCharacterBounds_LTR_newline() local
185 final String text = "\u05D0\u05D0\u05D1\u05D1"; in testPopulateCharacterBounds_RTL() local
214 final String text = "\u05D0\u05D1\u05D1\u05D0"; in testPopulateCharacterBounds_RTL_multiline() local
244 final String text = "\u05D0\u05D1\n\u05D1\u05D0"; in testPopulateCharacterBounds_RTL_newline() local
278 final String text = "IV\u05D0\u05D1IV"; in testPopulateCharacterBounds_BiDi() local
311 final String text = "IV\u05D0\u05D1IV"; in testPopulateCharacterBounds_BiDi_multiline() local
346 final String text = "IVVI"; in testPopulateCharacterBounds_charactersWithInvisibleRegion() local
[all …]
DTextViewTest.java191 String text = "HelloWorld"; in testUseDynamicLayout() local
216 String text = "HelloWorld"; in testUseDynamicLayout_SPANNABLE() local
242 String text = "HelloWorld"; in testUseDynamicLayout_EDITABLE() local
339 final String text = "Hello world"; in transformedToOriginal_noOffsetMapping() local
353 final String text = "Hello world"; in originalToTransformed_noOffsetMapping() local
367 final CharSequence text = "Hello world"; in originalToTransformed_hasOffsetMapping() local
397 final CharSequence text = "Hello world"; in transformedToOriginal_hasOffsetMapping() local
438 public void setText(CharSequence text, BufferType type) { in setText()
/frameworks/base/core/java/android/text/
DSelection.java41 public static final int getSelectionStart(CharSequence text) { in getSelectionStart()
52 public static final int getSelectionEnd(CharSequence text) { in getSelectionEnd()
59 private static int getSelectionMemory(CharSequence text) { in getSelectionMemory()
78 public static void setSelection(Spannable text, int start, int stop) { in setSelection()
86 private static void setSelection(Spannable text, int start, int stop, int memory) { in setSelection()
107 private static void updateMemory(Spannable text, int memory) { in updateMemory()
123 private static void removeMemory(Spannable text) { in removeMemory()
153 public static final void setSelection(Spannable text, int index) { in setSelection()
160 public static final void selectAll(Spannable text) { in selectAll()
167 public static final void extendSelection(Spannable text, int index) { in extendSelection()
[all …]
DHtml.java253 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 …]
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()
/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()
/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/com/android/internal/util/
DXmlSerializerWrapper.java105 public XmlSerializer text(String text) throws IOException{ in text() argument
109 public XmlSerializer text(char[] buf, int start, int len) throws IOException { in text() method in XmlSerializerWrapper
113 public void cdsect(String text) in cdsect()
118 public void entityRef(String text) throws IOException { in entityRef()
122 public void processingInstruction(String text) throws IOException { in processingInstruction()
126 public void comment(String text) throws IOException { in comment()
130 public void docdecl(String text) throws IOException { in docdecl()
134 public void ignorableWhitespace(String text) throws IOException { in ignorableWhitespace()
/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/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()
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/
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/tests/src/com/android/systemui/accessibility/floatingmenu/
DMenuEduTooltipViewTest.java53 final CharSequence text = "Message"; in show_matchMessageText() local
65 final CharSequence text = "Message"; in show_menuOnLeft_onRightOfAnchor() local
78 final CharSequence text = "Message"; in show_menuCloseToLeftOfCenter_onLeftOfAnchor() local
96 final CharSequence text = "Message"; in show_menuOnRight_onLeftOfAnchor() local
/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() 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/core/java/android/view/contentprotection/
DContentProtectionUtils.java34 CharSequence text = event.getText(); in getEventTextLower() local
47 CharSequence text = viewNode.getText(); in getViewNodeTextLower() local
60 String text = viewNode.getHint(); in getHintTextLower() local
/frameworks/base/core/tests/coretests/src/android/text/
DDynamicLayoutOffsetMappingTest.java41 final String text = "abcde"; in textWithOffsetMapping() local
57 final String text = "abcdef"; in textWithOffsetMapping_deletion() local
86 final String text = "abcdef"; in textWithOffsetMapping_insertion() local
107 final String text = "abcdef"; in textWithOffsetMapping_replace() local
124 final String text = "abcdef"; in textWithOffsetMapping_blockBeforeTextChanged_deletion() local
148 final String text = "abcdef"; in textWithOffsetMapping_blockBeforeTextChanged_insertion() local
169 final String text = "abcdef"; in textWithOffsetMapping_blockBeforeTextChanged_replace() local
186 String text = "abcdef"; in textWithOffsetMapping_onlyCallOnTextChanged_notCrash() local
218 TestNoBeforeTextChangeSpannableString(CharSequence text) { in TestNoBeforeTextChangeSpannableString()
/frameworks/minikin/tests/unittest/
DMeasuredTextTest.cpp50 std::vector<uint16_t> text(CHAR_COUNT, 'a'); in TEST() local
66 auto text = utf8ToUtf16("Hello, World!"); in TEST() local
88 auto text = utf8ToUtf16("\u0028"); // U+0028 has 1em in LTR, 3em in RTL. in TEST() local
106 auto text = utf8ToUtf16("\u0028"); // U+0028 has 1em in LTR, 3em in RTL. in TEST() local
124 auto text = utf8ToUtf16("Hello, World!"); in TEST() local
162 auto text = utf8ToUtf16("Hello, World!"); in TEST() local
184 auto text = utf8ToUtf16("Hello, World!"); in TEST() local
215 auto text = utf8ToUtf16("Hello, World!"); in TEST() local
298 auto text = utf8ToUtf16("Hello, World!"); in TEST() local
389 auto text = utf8ToUtf16("Hello, World!"); in TEST() local
[all …]
/frameworks/libs/modules-utils/java/com/android/modules/utils/
DBinaryXmlSerializer.java107 private void writeToken(int token, @Nullable String text) throws IOException { in writeToken()
328 public XmlSerializer text(char[] buf, int start, int len) throws IOException { in text() method in BinaryXmlSerializer
334 public XmlSerializer text(String text) throws IOException { in text() method in BinaryXmlSerializer
340 public void cdsect(String text) throws IOException { in cdsect()
345 public void entityRef(String text) throws IOException { in entityRef()
350 public void processingInstruction(String text) throws IOException { in processingInstruction()
355 public void comment(String text) throws IOException { in comment()
360 public void docdecl(String text) throws IOException { in docdecl()
365 public void ignorableWhitespace(String text) throws IOException { in ignorableWhitespace()
/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()

12345678910>>...25