Home
last modified time | relevance | path

Searched refs:TextLinks (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/core/java/android/view/textclassifier/
DTextLinksParams.java25 import android.view.textclassifier.TextLinks.TextLink;
26 import android.view.textclassifier.TextLinks.TextLinkSpan;
45 @TextLinks.ApplyStrategy
51 @TextLinks.ApplyStrategy int applyStrategy, in TextLinksParams()
103 @TextLinks.Status
104 public int apply(@NonNull Spannable text, @NonNull TextLinks textLinks) { in apply()
113 return TextLinks.STATUS_UNSUPPORTED_CHARACTER; in apply()
117 return TextLinks.STATUS_DIFFERENT_TEXT; in apply()
120 return TextLinks.STATUS_NO_LINKS_FOUND; in apply()
130 if (mApplyStrategy == TextLinks.APPLY_STRATEGY_REPLACE) { in apply()
[all …]
DTextLinks.java57 public final class TextLinks implements Parcelable { class
104 private TextLinks(String fullText, ArrayList<TextLink> links, Bundle extras) { in TextLinks() method in TextLinks
182 public static final @android.annotation.NonNull Parcelable.Creator<TextLinks> CREATOR =
183 new Parcelable.Creator<TextLinks>() {
185 public TextLinks createFromParcel(Parcel in) {
186 return new TextLinks(in);
190 public TextLinks[] newArray(int size) {
191 return new TextLinks[size];
195 private TextLinks(Parcel in) { in TextLinks() method in TextLinks
753 public TextLinks build() { in build()
[all …]
DTextLinks.aidl19 parcelable TextLinks;
20 parcelable TextLinks.Request;
DTextClassifier.java331 default TextLinks generateLinks(@NonNull TextLinks.Request request) { in generateLinks()
334 return new TextLinks.Builder(request.getText().toString()).build(); in generateLinks()
735 public static TextLinks generateLegacyLinks(@NonNull TextLinks.Request request) { in generateLegacyLinks()
737 final TextLinks.Builder links = new TextLinks.Builder(string); in generateLegacyLinks()
755 TextLinks.Builder links, String string, @EntityType String entityType) { in addLinks()
DSystemTextClassifier.java132 public TextLinks generateLinks(@NonNull TextLinks.Request request) { in generateLinks()
144 final BlockingCallback<TextLinks> callback = in generateLinks()
147 final TextLinks links = callback.get(); in generateLinks()
DTextClassificationSession.java75 public TextLinks generateLinks(TextLinks.Request request) { in generateLinks()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextLinksTest.java72 final TextLinks reference = new TextLinks.Builder(fullText) in testParcel()
82 final TextLinks result = TextLinks.CREATOR.createFromParcel(parcel); in testParcel()
83 final List<TextLinks.TextLink> resultList = new ArrayList<>(result.getLinks()); in testParcel()
114 final TextLinks.Request reference = new TextLinks.Request.Builder("text") in testParcelOptions()
128 final TextLinks.Request result = TextLinks.Request.CREATOR.createFromParcel(parcel); in testParcelOptions()
/frameworks/base/core/java/android/service/textclassifier/
DITextClassifierService.aidl26 import android.view.textclassifier.TextLinks;
49 in TextLinks.Request request, in onGenerateLinks()
DTextClassifierService.java50 import android.view.textclassifier.TextLinks;
152 TextLinks.Request request, ITextClassifierCallback callback) {
295 @NonNull TextLinks.Request request, in onGenerateLinks()
297 @NonNull Callback<TextLinks> callback); in onGenerateLinks()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewActivityTest.java83 import android.view.textclassifier.TextLinks;
330 TextLinks.TextLink textLink = addLinkifiedTextToTextView(R.id.textview); in testToolbarAppearsAfterLinkClicked()
340 final TextLinks.TextLink textLink = addLinkifiedTextToTextView(R.id.nonselectable_textview); in testToolbarAppearsAfterLinkClickedNonselectable()
380 final TextLinks.TextLink textLink = addLinkifiedTextToTextView(R.id.nonselectable_textview); in testSelectionRemovedWhenNonselectableTextLosesFocus()
399 TextLinks.TextLink textLink = addLinkifiedTextToTextView(R.id.nonselectable_textview); in testSelectionRemovedFromNonselectableTextWhenWindowLosesFocus()
418 private TextLinks.TextLink addLinkifiedTextToTextView(int id) throws Throwable { in addLinkifiedTextToTextView()
425 TextLinks.Request request = new TextLinks.Request.Builder(content).build(); in addLinkifiedTextToTextView()
426 TextLinks links = textClassifier.generateLinks(request); in addLinkifiedTextToTextView()
428 .setApplyStrategy(TextLinks.APPLY_STRATEGY_REPLACE) in addLinkifiedTextToTextView()
/frameworks/base/core/java/android/text/method/
DLinkMovementMethod.java29 import android.view.textclassifier.TextLinks.TextLinkSpan;
/frameworks/base/services/core/java/com/android/server/textclassifier/
DTextClassificationManagerService.java58 import android.view.textclassifier.TextLinks;
218 TextLinks.Request request, ITextClassifierCallback callback) in onGenerateLinks()
/frameworks/base/core/java/android/widget/
DTextView.java185 import android.view.textclassifier.TextLinks;
12618 public boolean requestActionMode(@NonNull TextLinks.TextLinkSpan clickedSpan) { in requestActionMode()
12643 public boolean handleClick(@NonNull TextLinks.TextLinkSpan clickedSpan) { in handleClick()
/frameworks/base/config/
Dpreloaded-classes7407 android.view.textclassifier.TextLinks$1
7408 android.view.textclassifier.TextLinks$Builder
7409 android.view.textclassifier.TextLinks$Request$1
7410 android.view.textclassifier.TextLinks$Request
7411 android.view.textclassifier.TextLinks$TextLink$1
7412 android.view.textclassifier.TextLinks$TextLink
7413 android.view.textclassifier.TextLinks$TextLinkSpan
7414 android.view.textclassifier.TextLinks
Dboot-image-profile.txt17931 …textclassifier/TextClassificationSessionId;Landroid/view/textclassifier/TextLinks$Request;Landroid…
24967 …android/view/textclassifier/TextLinks$Request$1;->createFromParcel(Landroid/os/Parcel;)Landroid/vi…
24968 HSPLandroid/view/textclassifier/TextLinks$Request$1;->createFromParcel(Landroid/os/Parcel;)Ljava/la…
24969 HSPLandroid/view/textclassifier/TextLinks$Request;-><init>(Ljava/lang/CharSequence;Landroid/os/Loca…
24970 HSPLandroid/view/textclassifier/TextLinks$Request;->access$300(Landroid/os/Parcel;)Landroid/view/te…
24971 HSPLandroid/view/textclassifier/TextLinks$Request;->getCallingPackageName()Ljava/lang/String;
24972 …PLandroid/view/textclassifier/TextLinks$Request;->readFromParcel(Landroid/os/Parcel;)Landroid/view…
24973 HSPLandroid/view/textclassifier/TextLinks$Request;->setSystemTextClassifierMetadata(Landroid/view/t…
24974 HSPLandroid/view/textclassifier/TextLinks$Request;->writeToParcel(Landroid/os/Parcel;I)V
47729 Landroid/view/textclassifier/TextLinks$1;
[all …]
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/base/api/
Dtest-current.txt3804TextLinks.Request, @NonNull android.os.CancellationSignal, @NonNull android.service.textclassifier…
Dcurrent.txt57529 …blic default android.view.textclassifier.TextLinks generateLinks(@NonNull android.view.textclassif…
57715 public final class TextLinks implements android.os.Parcelable {
57716 …l.function.Function<android.view.textclassifier.TextLinks.TextLink,android.view.textclassifier.Tex…
57719 …method @NonNull public java.util.Collection<android.view.textclassifier.TextLinks.TextLink> getLin…
57724 …l public static final android.os.Parcelable.Creator<android.view.textclassifier.TextLinks> CREATOR;
57732 public static final class TextLinks.Builder {
57733 ctor public TextLinks.Builder(@NonNull String);
57734 …method @NonNull public android.view.textclassifier.TextLinks.Builder addLink(int, int, @NonNull ja…
57735 …method @NonNull public android.view.textclassifier.TextLinks.Builder addLink(int, int, @NonNull ja…
57736 method @NonNull public android.view.textclassifier.TextLinks build();
[all …]
Dsystem-current.txt10083TextLinks.Request, @NonNull android.os.CancellationSignal, @NonNull android.service.textclassifier…
/frameworks/base/non-updatable-api/
Dsystem-current.txt8965TextLinks.Request, @NonNull android.os.CancellationSignal, @NonNull android.service.textclassifier…
/frameworks/base/services/
Dart-profile31188 …textclassifier/TextClassificationSessionId;Landroid/view/textclassifier/TextLinks$Request;Landroid…
31299 …textclassifier/TextClassificationSessionId;Landroid/view/textclassifier/TextLinks$Request;Landroid…
31308 …textclassifier/TextClassificationSessionId;Landroid/view/textclassifier/TextLinks$Request;Landroid…