Home
last modified time | relevance | path

Searched refs:text (Results 1 – 25 of 3460) sorted by relevance

12345678910>>...139

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/
DLocaleSpanCompatUtilsTests.java25 import android.text.SpannableString;
26 import android.text.Spanned;
27 import android.text.style.StyleSpan;
82 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan() local
83 LocaleSpanCompatUtils.updateLocaleSpan(text, 1, 5, Locale.JAPANESE); in testUpdateLocaleSpan()
84 assertSpanCount(1, text); in testUpdateLocaleSpan()
85 assertLocaleSpan(text, 0, 1, 5, Locale.JAPANESE, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testUpdateLocaleSpan()
90 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan() local
92 text.setSpan(styleSpan, 0, 7, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testUpdateLocaleSpan()
93 LocaleSpanCompatUtils.updateLocaleSpan(text, 1, 5, Locale.JAPANESE); in testUpdateLocaleSpan()
[all …]
/packages/modules/RuntimeI18n/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt554 Landroid/icu/impl/locale/XLocaleDistance;->english:Landroid/icu/text/LocaleDisplayNames;
600 Landroid/icu/impl/Normalizer2Impl;->addComposites(ILandroid/icu/text/UnicodeSet;)V
614 Landroid/icu/impl/Normalizer2Impl;->enumLcccRange(IIILandroid/icu/text/UnicodeSet;)V
615 Landroid/icu/impl/Normalizer2Impl;->enumNorm16PropertyStartsRange(IIILandroid/icu/text/UnicodeSet;)V
685 Landroid/icu/impl/number/CompactData;->getResourceBundleKey(Ljava/lang/String;Landroid/icu/text/Com…
693 Landroid/icu/impl/number/DecimalFormatProperties;->compactStyle:Landroid/icu/text/CompactDecimalFor…
695 Landroid/icu/impl/number/DecimalFormatProperties;->currencyPluralInfo:Landroid/icu/text/CurrencyPlu…
726 Landroid/icu/impl/number/DecimalFormatProperties;->pluralRules:Landroid/icu/text/PluralRules;
771 …fier;-><init>(Landroid/icu/impl/number/ParameterizedModifier;Landroid/icu/text/PluralRules;Landroi…
774 Landroid/icu/impl/number/MutablePatternModifier$ImmutablePatternModifier;->rules:Landroid/icu/text/…
[all …]
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DLocaleUtils.java65 final String text = localeElements[INDEX_LANGUAGE]; in constructLocaleFromString() local
66 if (isValidLanguage(text)) { in constructLocaleFromString()
67 builder.setLanguage(text); in constructLocaleFromString()
73 final String text = localeElements[INDEX_SCRIPT]; in constructLocaleFromString() local
74 if (isValidScript(text)) { in constructLocaleFromString()
75 builder.setScript(text); in constructLocaleFromString()
76 } else if (isValidRegion(text)) { in constructLocaleFromString()
77 builder.setRegion(text); in constructLocaleFromString()
84 final String text = localeElements[INDEX_REGION]; in constructLocaleFromString() local
85 if (!hasRegion && isValidRegion(text)) { in constructLocaleFromString()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/elements/
DAnnotatedText.kt19 import android.text.Spanned
20 import android.text.style.ClickableSpan
22 import androidx.compose.foundation.text.BasicText
27 import androidx.compose.ui.text.AnnotatedString
28 import androidx.compose.ui.text.LinkAnnotation
29 import androidx.compose.ui.text.LinkInteractionListener
30 import androidx.compose.ui.text.SpanStyle
31 import androidx.compose.ui.text.TextStyle
32 import androidx.compose.ui.text.buildAnnotatedString
33 import androidx.compose.ui.text.style.TextDecoration
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSpannableStringUtils.java19 import android.text.Spannable;
20 import android.text.SpannableString;
21 import android.text.Spanned;
22 import android.text.SpannedString;
23 import android.text.TextUtils;
24 import android.text.style.SuggestionSpan;
25 import android.text.style.URLSpan;
82 public static CharSequence concatWithNonParagraphSuggestionSpansOnly(CharSequence... text) { in concatWithNonParagraphSuggestionSpansOnly() argument
83 if (text.length == 0) { in concatWithNonParagraphSuggestionSpansOnly()
87 if (text.length == 1) { in concatWithNonParagraphSuggestionSpansOnly()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPhoneNumberUtil.java18 import android.text.Spannable;
19 import android.text.SpannableStringBuilder;
20 import android.text.Spanned;
21 import android.text.TextUtils;
22 import android.text.style.TtsSpan;
37 public static CharSequence expandByTts(CharSequence text) { in expandByTts() argument
38 if ((text == null) || (text.length() <= 0) in expandByTts()
39 || (!isPhoneNumberDigits(text))) { in expandByTts()
40 return text; in expandByTts()
42 Spannable spannable = new SpannableStringBuilder(text); in expandByTts()
[all …]
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DStringUtils.java110 public static int codePointCount(@Nullable final CharSequence text) { in codePointCount() argument
111 if (isEmpty(text)) { in codePointCount()
114 return Character.codePointCount(text, 0, text.length()); in codePointCount()
128 public static boolean containsInArray(@Nonnull final String text, in containsInArray() argument
131 if (text.equals(element)) { in containsInArray()
146 public static boolean containsInCommaSplittableText(@Nonnull final String text, in containsInCommaSplittableText() argument
151 return containsInArray(text, extraValues.split(SEPARATOR_FOR_COMMA_SPLITTABLE_TEXT)); in containsInCommaSplittableText()
155 public static String removeFromCommaSplittableTextIfExists(@Nonnull final String text, in removeFromCommaSplittableTextIfExists() argument
161 if (!containsInArray(text, elements)) { in removeFromCommaSplittableTextIfExists()
166 if (!text.equals(element)) { in removeFromCommaSplittableTextIfExists()
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/map/
Dbluetooth_map_test.py75 def _wait_for_message_on_mce(self, text): argument
86 _MAP_MSG_EVENT, lambda e: e['data'] == text, _EVENT_TIMEOUT_SEC)
88 'Successfully got the unread message: %s' % text)
92 (_EVENT_TIMEOUT_SEC, _MAP_MSG_EVENT, text))
94 def _wait_for_message_on_mse(self, text): argument
107 _SMS_MSG_EVENT, lambda e: e['data']['Text'] == text,
110 'Successfully received the incoming message: %s' % text)
114 (_EVENT_TIMEOUT_SEC, _SMS_MSG_EVENT, text))
116 def _create_message_on_mse(self, text): argument
122 self.sec_phone.sl4a.smsSendTextMessage(self.pri_number, text, False)
[all …]
/packages/apps/Settings/tests/uitests/src/com/android/settings/biometrics2/ui/view/
DFingerprintEnrollmentActivityTest.kt128 Until.hasObject(By.text("Choose your backup screen lock method")), in <lambda>()
145 if (device.wait(Until.hasObject(By.text("More")), 50L)) { in <lambda>()
147 } else if (device.wait(Until.hasObject(By.text("I agree")), 50L)) { in <lambda>()
158 while (i < more && device.findObject(By.text("More")).also { moreBtn = it } != null) { in <lambda>()
161 device.wait(Until.hasObject(By.text("More")), IDLE_TIMEOUT) in <lambda>()
164 assertThat(device.wait(Until.hasObject(By.text("No thanks")), IDLE_TIMEOUT)).isTrue() in <lambda>()
165 assertThat(device.wait(Until.hasObject(By.text("I agree")), IDLE_TIMEOUT)).isTrue() in <lambda>()
178 val agreeBtn = device.findObject(By.text("I agree")) in <lambda>()
183 assertThat(device.wait(Until.hasObject(By.text(DO_IT_LATER)), IDLE_TIMEOUT)).isTrue() in <lambda>()
189 val startBtn = device.findObject(By.text("Start")) in <lambda>()
[all …]
/packages/modules/Bluetooth/system/gd/os/linux_generic/
Dfiles_test.cc34 std::string text = "Hello world!\n"; in TEST() local
35 ASSERT_TRUE(WriteToFile(temp_file.string(), text)); in TEST()
44 std::string text = "Hello world!\n"; in TEST() local
45 ASSERT_TRUE(WriteToFile(temp_file.string(), text)); in TEST()
46 EXPECT_THAT(ReadSmallFile(temp_file.string()), Optional(StrEq(text))); in TEST()
50 EXPECT_THAT(ReadSmallFile(to_file.string()), Optional(StrEq(text))); in TEST()
58 std::string text = "Hello world!\n"; in TEST() local
59 ASSERT_TRUE(WriteToFile(temp_file.string(), text)); in TEST()
60 EXPECT_THAT(ReadSmallFile(temp_file.string()), Optional(StrEq(text))); in TEST()
67 std::string text = "Hello world!\n"; in TEST() local
[all …]
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/activities/util/
DUrlUtils.java21 import android.text.Html;
22 import android.text.Spannable;
23 import android.text.SpannableString;
24 import android.text.method.LinkMovementMethod;
25 import android.text.style.ClickableSpan;
26 import android.text.style.URLSpan;
45 public static void setUrlText(TextView textView, String text) { in setUrlText() argument
47 new SpannableString(Html.fromHtml(text, Html.FROM_HTML_MODE_COMPACT)); in setUrlText()
52 textView.setText(text); in setUrlText()
56 private static boolean handleUrlSpan(SpannableString text) { in handleUrlSpan() argument
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DICalendarTest.java34 String text = "BEGIN:STUB\n" + in testAddProperty() local
45 assertEquals(text, component.toString()); in testAddProperty()
50 String text = "BEGIN:STUB\n" + in testAddComponent() local
65 assertEquals(text, parent.toString()); in testAddComponent()
70 String text = "BEGIN:STUB\n" + in testParseBasicComponent() local
76 ICalendar.Component component = ICalendar.parseComponent(text); in testParseBasicComponent()
156 String text = "BEGIN:VEVENT\nEND:VEVENT\n"; in testParseBareEvent() local
157 ICalendar.Component event = ICalendar.parseEvent(text); in testParseBareEvent()
166 String text = "BEGIN:VEVENT\n" + in testParseEvent1() local
172 ICalendar.Component event = ICalendar.parseEvent(text); in testParseEvent1()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardTextsSet.java21 import android.text.TextUtils;
66 private static int searchTextNameEnd(final String text, final int start) { in searchTextNameEnd() argument
67 final int size = text.length(); in searchTextNameEnd()
69 final char c = text.charAt(pos); in searchTextNameEnd()
85 String text = rawText; in resolveTextReference() local
91 " reference indirection: " + text); in resolveTextReference()
95 final int size = text.length(); in resolveTextReference()
102 final char c = text.charAt(pos); in resolveTextReference()
103 if (text.startsWith(PREFIX_TEXT, pos)) { in resolveTextReference()
105 sb = new StringBuilder(text.substring(0, pos)); in resolveTextReference()
[all …]
/packages/apps/Contacts/src/com/android/contacts/format/
DFormatUtils.java20 import android.text.SpannableString;
21 import android.text.style.StyleSpan;
107 SpannableString text = new SpannableString(input); in applyStyleToSpan() local
108 text.setSpan(new StyleSpan(style), start, end, flags); in applyStyleToSpan()
109 return text; in applyStyleToSpan()
113 public static void copyToCharArrayBuffer(String text, CharArrayBuffer buffer) { in copyToCharArrayBuffer() argument
114 if (text != null) { in copyToCharArrayBuffer()
116 if (data == null || data.length < text.length()) { in copyToCharArrayBuffer()
117 buffer.data = text.toCharArray(); in copyToCharArrayBuffer()
119 text.getChars(0, text.length(), data, 0); in copyToCharArrayBuffer()
[all …]
DTextHighlighter.java19 import android.text.SpannableString;
20 import android.text.style.CharacterStyle;
21 import android.text.style.StyleSpan;
47 public void setPrefixText(TextView view, String text, String prefix) { in setPrefixText() argument
48 view.setText(applyPrefixHighlight(text, prefix)); in setPrefixText()
61 public void applyMaskingHighlight(SpannableString text, int start, int end) { in applyMaskingHighlight() argument
63 text.setSpan(getStyleSpan(), start, end, 0); in applyMaskingHighlight()
72 public CharSequence applyPrefixHighlight(CharSequence text, String prefix) { in applyPrefixHighlight() argument
74 return text; in applyPrefixHighlight()
85 int index = FormatUtils.indexOfWordPrefix(text, trimmedPrefix); in applyPrefixHighlight()
[all …]
/packages/apps/Dialer/java/com/android/dialer/i18n/
DDialerBidiFormatter.java21 import android.text.SpannableStringBuilder;
22 import android.text.SpannedString;
23 import android.text.TextUtils;
54 public static CharSequence format(@Nullable CharSequence text) { in format() argument
55 if (TextUtils.isEmpty(text)) { in format()
56 return text; in format()
62 Matcher matcher = Patterns.PHONE.matcher(text.toString()); in format()
71 spannableStringBuilder.append(text.subSequence(currIndex, start)); in format()
79 String.valueOf(LRE), text.subSequence(start, end), String.valueOf(PDF)))); in format()
85 if (currIndex < text.length()) { in format()
[all …]
/packages/apps/Settings/src/com/android/settings/
DLinkifyUtils.java19 import android.text.Spannable;
20 import android.text.TextPaint;
21 import android.text.method.LinkMovementMethod;
22 import android.text.style.ClickableSpan;
49 public static boolean linkify(TextView textView, StringBuilder text, in linkify() argument
52 final int beginIndex = text.indexOf(PLACE_HOLDER_LINK_BEGIN); in linkify()
54 textView.setText(text); in linkify()
57 text.delete(beginIndex, beginIndex + PLACE_HOLDER_LINK_BEGIN.length()); in linkify()
58 final int endIndex = text.indexOf(PLACE_HOLDER_LINK_END); in linkify()
60 textView.setText(text); in linkify()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DStringTexture.java24 import android.text.TextPaint;
25 import android.text.TextUtils;
36 private StringTexture(String text, TextPaint paint, in StringTexture() argument
39 mText = text; in StringTexture()
54 String text, float textSize, int color) { in newInstance() argument
55 return newInstance(text, getDefaultPaint(textSize, color)); in newInstance()
59 String text, float textSize, int color, in newInstance() argument
66 text = TextUtils.ellipsize( in newInstance()
67 text, paint, lengthLimit, TextUtils.TruncateAt.END).toString(); in newInstance()
69 return newInstance(text, paint); in newInstance()
[all …]
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DMoreWirelessSettingsTest2.java161 (By.text(CONFIGURE_WIFI_PREFERENCE_TEXT)), TIMEOUT); in testWifiMenuLoadConfigure()
181 By.text(ADD_NETWORK_MENU_SAVE_BUTTON_TEXT)), TIMEOUT).isEnabled()); in testAddNetworkMenu_Default()
183 By.text(ADD_NETWORK_MENU_CANCEL_BUTTON_TEXT)), TIMEOUT).isEnabled()); in testAddNetworkMenu_Default()
225 mDevice.wait(Until.findObject(By.text("Manual")), TIMEOUT).click(); in testAddNetworkMenu_Proxy()
236 mDevice.wait(Until.findObject(By.text("Proxy Auto-Config")), TIMEOUT).click(); in testAddNetworkMenu_Proxy()
260 mDevice.wait(Until.findObject(By.text("Static")), TIMEOUT).click(); in testAddNetworkMenu_IpSettings()
288 assertNotNull(mDevice.wait(Until.findObject(By.text(PHASE2_MENU_NONE_TEXT)), TIMEOUT)); in testPhase2Settings()
289 assertNotNull(mDevice.wait(Until.findObject(By.text(PHASE2_MENU_MSCHAPV2_TEXT)), TIMEOUT)); in testPhase2Settings()
290 assertNotNull(mDevice.wait(Until.findObject(By.text(PHASE2_MENU_GTC_TEXT)), TIMEOUT)); in testPhase2Settings()
309 By.text(CACERT_MENU_PLEASE_SELECT_TEXT)), TIMEOUT)); in testCaCertSettings()
[all …]
DNotificationSettingsTests.java81 Until.findObject(By.text("Notifications")), TIMEOUT); in testNotificationsSettingsListForCalculator()
83 mDevice.wait(Until.findObject(By.text("Blink light")), TIMEOUT); in testNotificationsSettingsListForCalculator()
85 Until.findObject(By.text("On for all apps")), TIMEOUT); in testNotificationsSettingsListForCalculator()
89 Until.findObject(By.text("All apps")), TIMEOUT); in testNotificationsSettingsListForCalculator()
91 UiObject2 app = mDevice.wait(Until.findObject(By.text("Calculator")), TIMEOUT); in testNotificationsSettingsListForCalculator()
99 Until.findObject(By.text("Notifications")), TIMEOUT); in testNotificationsSettingsListForPhone()
101 mDevice.wait(Until.findObject(By.text("Blink light")), TIMEOUT); in testNotificationsSettingsListForPhone()
103 Until.findObject(By.text("On for all apps")), TIMEOUT); in testNotificationsSettingsListForPhone()
107 Until.findObject(By.text("All apps")), TIMEOUT); in testNotificationsSettingsListForPhone()
113 UiObject2 phone = scrollTo(mDevice, apps, By.text("Phone"), Direction.DOWN); in testNotificationsSettingsListForPhone()
[all …]
DAppsSettingsRetainFilterTests.kt42 device.clickObject(By.text("Calculator")) in testDisablingSystemAppAndRotateDevice()
43 device.clickObject(By.text("Disable")) in testDisablingSystemAppAndRotateDevice()
44 device.clickObject(By.text("Disable app")) // Click on "Disable App" on dialog. in testDisablingSystemAppAndRotateDevice()
45 device.assertObject(By.text("Enable")) in testDisablingSystemAppAndRotateDevice()
47 device.clickObject(By.text("All apps")) in testDisablingSystemAppAndRotateDevice()
48 device.clickObject(By.text("Disabled apps")) in testDisablingSystemAppAndRotateDevice()
50 device.assertObject(By.text("Disabled apps")) in testDisablingSystemAppAndRotateDevice()
52 device.assertObject(By.text("Disabled apps")) in testDisablingSystemAppAndRotateDevice()
53 device.clickObject(By.text("Calculator")) in testDisablingSystemAppAndRotateDevice()
54 device.clickObject(By.text("Enable")) in testDisablingSystemAppAndRotateDevice()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DPermissionDecisionsTest.kt55 By.hasChild(By.text("You gave $APP_PACKAGE_NAME access to location")) in testAcceptPermissionDialogShowsDecisionWithGrantedAccess()
56 .hasChild(By.text("Today")) in testAcceptPermissionDialogShowsDecisionWithGrantedAccess()
69 By.hasChild(By.text("You denied $APP_PACKAGE_NAME access to location")) in testDenyPermissionDialogShowsDecisionWithDeniedAccess()
70 .hasChild(By.text("Today")) in testDenyPermissionDialogShowsDecisionWithDeniedAccess()
85 By.hasChild(By.text("You denied $APP_PACKAGE_NAME access to location")) in testAppUninstallRemovesDecision()
86 .hasChild(By.text("Today")), in testAppUninstallRemovesDecision()
102 By.hasChild(By.text("You gave $APP_PACKAGE_NAME access to location")) in testClickOnDecisionAndChangeAccessUpdatesDecision()
103 .hasChild(By.text("Today")) in testClickOnDecisionAndChangeAccessUpdatesDecision()
107 waitFindObject(By.text(APP_PACKAGE_NAME)) in testClickOnDecisionAndChangeAccessUpdatesDecision()
108 waitFindObject(By.text("Location access for this app")) in testClickOnDecisionAndChangeAccessUpdatesDecision()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidWordLevelSpellCheckerSession.java24 import android.text.TextUtils;
146 private static int getCheckabilityInScript(final String text, final int script) { in getCheckabilityInScript() argument
147 if (TextUtils.isEmpty(text) || text.length() <= 1) return CHECKABILITY_TOO_SHORT; in getCheckabilityInScript()
152 final int firstCodePoint = text.codePointAt(0); in getCheckabilityInScript()
158 final int length = text.length(); in getCheckabilityInScript()
160 for (int i = 0; i < length; i = text.offsetByCodePoints(i, 1)) { in getCheckabilityInScript()
161 final int codePoint = text.codePointAt(i); in getCheckabilityInScript()
192 private boolean isInDictForAnyCapitalization(final String text, final int capitalizeType) { in isInDictForAnyCapitalization() argument
195 if (mService.isValidWord(mLocale, text)) return true; in isInDictForAnyCapitalization()
201 final String lowerCaseText = text.toLowerCase(mLocale); in isInDictForAnyCapitalization()
[all …]
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/dvr/
DDvrLibraryTest.java58 ByResource.text(controller.getTargetResources(), R.string.dvr_main_recent)); in setUp()
61 ByResource.text( in setUp()
65 ByResource.text(controller.getTargetResources(), R.string.dvr_main_series)); in setUp()
69 ByResource.text( in setUp()
109 ByResource.text( in testEmptyLibrary()
131 By.text( in testScheduleRecordings()
142 By.text( in testScheduleRecordings()
162 ByResource.text( in testScheduleRecordings()
168 ByResource.text( in testScheduleRecordings()
196 ByResource.text( in testScheduleRecordings()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DRichInputConnectionAndTextRangeTests.java26 import android.text.SpannableString;
27 import android.text.TextUtils;
28 import android.text.style.SuggestionSpan;
77 public MockConnection(final CharSequence text, final int cursorPosition) { in MockConnection() argument
85 TextUtils.writeToParcel(text.subSequence(0, cursorPosition), p, 0 /* flags */); in MockConnection()
86 TextUtils.writeToParcel(text.subSequence(cursorPosition, text.length()), p, in MockConnection()
314 SpannableString text = new SpannableString("This is a string for test"); in helpTestGetSuggestionSpansAtWord() local
315 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), in helpTestGetSuggestionSpansAtWord()
317 mockInputMethodService.setInputConnection(new MockConnection(text, cursorPos)); in helpTestGetSuggestionSpansAtWord()
327 text = new SpannableString("This is a string for test"); in helpTestGetSuggestionSpansAtWord()
[all …]

12345678910>>...139