Home
last modified time | relevance | path

Searched refs:TextLinkSpan (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/java/android/view/textclassifier/
DTextLinksParams.java26 import android.view.textclassifier.TextLinks.TextLinkSpan;
43 private static final Function<TextLink, TextLinkSpan> DEFAULT_SPAN_FACTORY =
44 textLink -> new TextLinkSpan(textLink);
48 private final Function<TextLink, TextLinkSpan> mSpanFactory;
53 Function<TextLink, TextLinkSpan> spanFactory) { in TextLinksParams()
119 final TextLinkSpan span = mSpanFactory.apply(link); in apply()
152 private Function<TextLink, TextLinkSpan> mSpanFactory = DEFAULT_SPAN_FACTORY;
171 public Builder setSpanFactory(@Nullable Function<TextLink, TextLinkSpan> spanFactory) { in setSpanFactory()
DTextLinks.java140 @Nullable Function<TextLink, TextLinkSpan> spanFactory) { in apply()
504 public static class TextLinkSpan extends ClickableSpan { class in TextLinks
524 public TextLinkSpan(@NonNull TextLink textLink) { in TextLinkSpan() method in TextLinks.TextLinkSpan
651 private Function<TextLink, TextLinkSpan> mSpanFactory;
714 public Options setSpanFactory(@Nullable Function<TextLink, TextLinkSpan> spanFactory) { in setSpanFactory()
735 public Function<TextLink, TextLinkSpan> getSpanFactory() { in getSpanFactory()
/frameworks/base/core/java/android/text/method/
DLinkMovementMethod.java28 import android.view.textclassifier.TextLinks.TextLinkSpan;
146 if (link instanceof TextLinkSpan) { in action()
147 ((TextLinkSpan) link).onClick(widget, TextLinkSpan.INVOCATION_METHOD_KEYBOARD); in action()
227 if (link instanceof TextLinkSpan) { in onTouchEvent()
228 ((TextLinkSpan) link).onClick( in onTouchEvent()
229 widget, TextLinkSpan.INVOCATION_METHOD_TOUCH); in onTouchEvent()
/frameworks/support/textclassifier/src/main/java/androidx/textclassifier/
DTextLinks.java124 final TextLinkSpan span = spanFactory.createSpan(link); in apply()
454 TextLinkSpan createSpan(TextLink textLink); in createSpan()
460 public static class TextLinkSpan extends ClickableSpan { class in TextLinks
464 public TextLinkSpan(@Nullable TextLink textLink) { in TextLinkSpan() method in TextLinks.TextLinkSpan
528 public TextLinkSpan createSpan(TextLink textLink) {
529 return new TextLinkSpan(textLink);
/frameworks/support/textclassifier/src/androidTest/java/androidx/textclassifier/
DTextLinksTest.java55 private static class CustomTextLinkSpan extends TextLinks.TextLinkSpan {
63 public TextLinks.TextLinkSpan createSpan(TextLinks.TextLink textLink) { in createSpan()
186 TextLinks.TextLinkSpan[] spans = text.getSpans(0, 3, TextLinks.TextLinkSpan.class); in testApplyAppliedDefaultSpanFactory()
199 TextLinks.TextLinkSpan[] spans = text.getSpans(0, 3, TextLinks.TextLinkSpan.class); in testApplyAppliedDefaultSpanFactoryReplace()
/frameworks/base/core/tests/coretests/src/android/text/util/
DLinkifyTest.java38 import android.view.textclassifier.TextLinks.TextLinkSpan;
194 final TextLinkSpan[] actualSpans = actual.getSpans(0, actual.length(), TextLinkSpan.class); in testAddLinksAsync_useLegacyIfSmartDisabled()
200 final TextLinkSpan actualSpan = actualSpans[i]; in testAddLinksAsync_useLegacyIfSmartDisabled()
/frameworks/base/core/java/android/text/util/
DLinkify.java35 import android.view.textclassifier.TextLinks.TextLinkSpan;
707 final TextLinkSpan[] old = in addLinksAsync()
708 text.getSpans(0, truncatedText.length(), TextLinkSpan.class); in addLinksAsync()
/frameworks/support/textclassifier/api_legacy/
Dcurrent.txt105 public static class TextLinks.TextLinkSpan extends android.text.style.ClickableSpan {
106 ctor public TextLinks.TextLinkSpan(androidx.textclassifier.TextLinks.TextLink);
D28.0.0-alpha1.txt105 public static class TextLinks.TextLinkSpan extends android.text.style.ClickableSpan {
106 ctor public TextLinks.TextLinkSpan(androidx.view.textclassifier.TextLinks.TextLink);
/frameworks/base/config/
Dhiddenapi-public-dex.txt50167 Landroid/view/textclassifier/TextLinks$TextLinkSpan;
50168 Landroid/view/textclassifier/TextLinks$TextLinkSpan;-><init>(Landroid/view/textclassifier/TextLinks…
50169 Landroid/view/textclassifier/TextLinks$TextLinkSpan;->getTextLink()Landroid/view/textclassifier/Tex…
50170 Landroid/view/textclassifier/TextLinks$TextLinkSpan;->onClick(Landroid/view/View;)V
/frameworks/base/api/
Dcurrent.txt50571 …droid.view.textclassifier.TextLinks.TextLink, android.view.textclassifier.TextLinks.TextLinkSpan>);
50618 public static class TextLinks.TextLinkSpan extends android.text.style.ClickableSpan {
50619 ctor public TextLinks.TextLinkSpan(android.view.textclassifier.TextLinks.TextLink);