Home
last modified time | relevance | path

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

12345678910>>...42

/aosp12/frameworks/base/core/tests/coretests/src/android/text/method/
H A DWordIteratorTest.java154 final String text = "text"; in testSetCharSequence() 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
544 final String text = "abc!? (^^;) def"; in testGetPunctuationBeginning() local
579 final String text = "abc!? (^^;) def"; in testGetPunctuationEnd() local
611 final String text = "abc!? (^^;) def"; in testIsAfterPunctuation() local
627 final String text = "abc!? (^^;) def"; in testIsOnPunctuation() local
[all …]
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/
H A DLocaleSpanCompatUtilsTests.java82 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan() local
90 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan() local
101 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan() local
111 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan() local
121 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan() local
133 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan() local
147 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan() local
158 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan() local
169 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan() local
180 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan() local
[all …]
/aosp12/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
H A DICalendarTest.java33 String text = "BEGIN:STUB\n" + in testAddProperty() local
49 String text = "BEGIN:STUB\n" + in testAddComponent() local
69 String text = "BEGIN:STUB\n" + in testParseBasicComponent() local
165 String text = "BEGIN:VEVENT\n" + in testParseEvent1() local
189 String text = "BEGIN:VEVENT\n" + in testParseEvent2() local
208 String text = "BEGIN:VEVENT\n" + in testParseInvalidProperty() local
256 String text = "BEGIN:PARENT\n" + in testParseUnexpectedEndComponent() local
265 String text = "BEGIN:STUB\n" + in testParseNoEndComponent() local
274 String text = "BEGIN:VEVENT\n" + in testNormalize() local
290 String text = "BEGIN:VEVENT\n" + in testNormalizeBadSep() local
[all …]
/aosp12/frameworks/base/apct-tests/perftests/core/src/android/text/
H A DStaticLayoutPerfTest.java56 private PrecomputedText makeMeasured(CharSequence text, TextPaint paint) { in makeMeasured()
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
196 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Greedy_Hyphenation() local
213 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Balanced_NoHyphenation() local
230 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Balanced_Hyphenation() local
247 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_Styled_Greedy_NoHyphenation() local
352 final PrecomputedText text = makeMeasured( in testDraw_PrecomputedText_Styled() local
370 final PrecomputedText text = makeMeasured( in testDraw_PrecomputedText_NoStyled() local
388 final PrecomputedText text = makeMeasured( in testDraw_PrecomputedText_Styled_WithoutCache() local
[all …]
H A 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
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/
H A 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
H A DTextViewActivityTest.java173 final String text = "\u0915\u093E"; in testPositionCursorAtTextAtIndex_devanagari() local
235 final String text = "abc def ghi."; in testDragAndDrop() 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
606 final String text = "hello the world"; in testInsertionHandle_longPressToSelect() local
620 final String text = "hello the world"; in testInsertionHandle_longPressAndDragToSelect() local
636 final String text = "hello the world"; in testInsertionHandle_doubleTapToSelect() local
948 final String text = "abc def"; in testSetSelectionAndActionMode() local
[all …]
H A DSuggestionsPopupWindowTest.java93 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
/aosp12/frameworks/base/tools/powermodel/test/com/android/powermodel/
H A DCsvParserTest.java62 final String text = ""; in testEmpty() local
74 final String text = "\n"; in testOnlyNewline() local
101 final String text = "\"\",\"\",\"\"\n"; in testEscapedEmpty() local
140 final String text = "\",\",\",\",\",\"\n"; in testEscapedCommas() local
166 final String text = "a,b,c"; in testNoNewline() local
179 final String text = "a,b,,"; in testNoNewlineWithCommas() local
192 final String text = "a,b,\",\""; in testNoNewlineWithQuote() local
205 final String text = "aasdfadfadfad"; in testNoCommas() local
232 final String text = big + "," + big; in testMaxLengthTwice() local
259 final String text = big + ",b,c,d,e,f,g"; in testBufferBoundary() local
[all …]
/aosp12/frameworks/base/core/java/android/text/
H A 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()
106 private static void updateMemory(Spannable text, int memory) { in updateMemory()
122 private static void removeMemory(Spannable text) { in removeMemory()
159 public static final void selectAll(Spannable text) { in selectAll()
183 public static final void removeSelection(Spannable text) { in removeSelection()
198 public static boolean moveUp(Spannable text, Layout layout) { in moveUp()
269 public static boolean moveDown(Spannable text, Layout layout) { in moveDown()
305 public static boolean moveLeft(Spannable text, Layout layout) { in moveLeft()
[all …]
H A 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()
H A 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()
982 private static void endBlockElement(Editable text) { in endBlockElement()
995 private static void handleBr(Editable text) { in handleBr()
1005 private static void endLi(Editable text) { in endLi()
1016 private static void endBlockquote(Editable text) { in endBlockquote()
1026 private static void endHeading(Editable text) { in endHeading()
1105 private static void endCssStyle(Editable text) { in endCssStyle()
1159 private static void endFont(Editable text) { in endFont()
[all …]
/aosp12/frameworks/base/core/java/android/text/method/
H A 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()
/aosp12/frameworks/base/apct-tests/perftests/core/src/android/widget/
H A 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
212 final CharSequence text = PrecomputedText.create( in testSetText_PrecomputedText() local
232 final CharSequence text = PrecomputedText.create( in testSetText_PrecomputedText_Selectable() local
295 final CharSequence text = PrecomputedText.create( in testOnMeasure_PrecomputedText() local
318 final CharSequence text = PrecomputedText.create( in testOnMeasure_PrecomputedText_Selectable() local
396 final CharSequence text = PrecomputedText.create( in testOnDraw_PrecomputedText() local
[all …]
/aosp12/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
H A DLocaleUtils.java65 final String text = localeElements[INDEX_LANGUAGE]; in constructLocaleFromString() local
73 final String text = localeElements[INDEX_SCRIPT]; in constructLocaleFromString() local
84 final String text = localeElements[INDEX_REGION]; in constructLocaleFromString() local
104 private static boolean isValidLanguage(final String text) { in isValidLanguage()
108 private static boolean isValidScript(final String text) { in isValidScript()
112 private static boolean isValidRegion(final String text) { in isValidRegion()
117 private static boolean isAlphabetSequence(final String text, final int lower, final int upper) { in isAlphabetSequence()
130 private static boolean isDigitSequence(final String text, final int lower, final int upper) { in isDigitSequence()
/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DXmlSerializerWrapper.java104 public XmlSerializer text(String text) throws IOException{ in text() method in XmlSerializerWrapper
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()
/aosp12/frameworks/base/core/java/android/widget/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A 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()
/aosp12/packages/apps/Car/SystemUI/tests/src/com/android/systemui/wm/
H A DBarControlPolicyTest.java64 String text = "sample text"; in reloadFromSetting_invalidPolicyControlString_doesNotSetFilters() local
68 text in reloadFromSetting_invalidPolicyControlString_doesNotSetFilters() local
78 String text = "immersive.status=" + PACKAGE_NAME; in reloadFromSetting_validPolicyControlString_setsFilters() local
82 text in reloadFromSetting_validPolicyControlString_setsFilters() local
92 String text = "immersive.status=" + PACKAGE_NAME; in reloadFromSetting_filtersSet_doesNotSetFiltersAgain() local
96 text in reloadFromSetting_filtersSet_doesNotSetFiltersAgain() local
/aosp12/frameworks/base/core/java/android/text/util/
H A 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()
/aosp12/frameworks/base/core/tests/coretests/src/android/util/
H A 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()
/aosp12/system/bt/gd/os/linux_generic/
H A Dfiles_test.cc34 std::string text = "Hello world!\n"; in TEST() local
44 std::string text = "Hello world!\n"; in TEST() local
58 std::string text = "Hello world!\n"; in TEST() local
67 std::string text = "Hello world!\n"; in TEST() local
79 std::string text; in TEST() local
/aosp12/packages/apps/Tag/src/com/android/apps/tag/record/
H A DTextRecord.java48 private TextRecord(String languageCode, String text) { in TextRecord()
55 TextView text = (TextView) inflater.inflate(R.layout.tag_text, parent, false); in getView() local
107 String text = new String(payload, in parse() local
129 public static NdefRecord newTextRecord(String text, Locale locale) { in newTextRecord()
133 public static NdefRecord newTextRecord(String text, Locale locale, boolean encodeInUtf8) { in newTextRecord()
/aosp12/frameworks/minikin/tests/unittest/
H A DMeasuredTextTest.cpp46 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 …]
/aosp12/frameworks/base/tools/aapt/
H A Dpseudolocalize.h19 String16 text(const String16& text) { return text; } in text() argument
20 String16 placeholder(const String16& text) { return text; } in placeholder()

12345678910>>...42