Searched refs:TextClassification (Results 1 – 24 of 24) sorted by relevance
94 final TextClassification reference = new TextClassification.Builder() in testParcel()108 final TextClassification result = TextClassification.CREATOR.createFromParcel(parcel); in testParcel()164 final TextClassification reference = new TextClassification.Builder() in testParcelLegacy()176 final TextClassification result = TextClassification.CREATOR.createFromParcel(parcel); in testParcelLegacy()196 final TextClassification.Request reference = in testParcelParcel()197 new TextClassification.Request.Builder(text, 0, text.length()) in testParcelParcel()208 final TextClassification.Request result = in testParcelParcel()209 TextClassification.Request.CREATOR.createFromParcel(parcel); in testParcelParcel()
146 TextClassification.Request request = new TextClassification.Request.Builder( in testClassifyText()151 TextClassification classification = mClassifier.classifyText(request); in testClassifyText()163 TextClassification.Request request = new TextClassification.Request.Builder( in testClassifyText_url()168 TextClassification classification = mClassifier.classifyText(request); in testClassifyText_url()178 TextClassification.Request request = new TextClassification.Request.Builder( in testClassifyText_address()183 TextClassification classification = mClassifier.classifyText(request); in testClassifyText_address()195 TextClassification.Request request = new TextClassification.Request.Builder( in testClassifyText_url_inCaps()200 TextClassification classification = mClassifier.classifyText(request); in testClassifyText_url_inCaps()213 TextClassification.Request request = new TextClassification.Request.Builder( in testClassifyText_date()218 TextClassification classification = mClassifier.classifyText(request); in testClassifyText_date()[all …]
86 TextClassification.Request request = new TextClassification.Request.Builder( in testCannotResolveIntent()91 TextClassification result = classifier.classifyText(request); in testCannotResolveIntent()92 TextClassification fallbackResult = fallback.classifyText(request); in testCannotResolveIntent()
41 private static final TextClassification TEXT_CLASSIFICATION = new TextClassification.Builder()
19 parcelable TextClassification;20 parcelable TextClassification.Request;
106 public final class TextClassification implements Parcelable { class111 public static final TextClassification EMPTY = new TextClassification.Builder().build();135 private TextClassification( in TextClassification() method in TextClassification516 public TextClassification build() {518 return new TextClassification(mText, mLegacyIcon, mLegacyLabel, mLegacyIntent,782 public static final @android.annotation.NonNull Parcelable.Creator<TextClassification> CREATOR =783 new Parcelable.Creator<TextClassification>() {785 public TextClassification createFromParcel(Parcel in) {786 return new TextClassification(in);790 public TextClassification[] newArray(int size) {[all …]
88 public static Bundle getForeignLanguageExtra(@Nullable TextClassification classification) { in getForeignLanguageExtra()215 public static ArrayList<Intent> getActionsIntents(@Nullable TextClassification classification) { in getActionsIntents()228 @Nullable TextClassification classification, @Nullable String intentAction) { in findAction()249 public static RemoteAction findTranslateAction(@Nullable TextClassification classification) { in findTranslateAction()
93 public TextClassification classifyText(TextClassification.Request request) { in classifyText()98 final BlockingCallback<TextClassification> callback = in classifyText()101 final TextClassification classification = callback.get(); in classifyText()
254 default TextClassification classifyText(@NonNull TextClassification.Request request) { in classifyText()257 return TextClassification.EMPTY; in classifyText()288 default TextClassification classifyText( in classifyText()293 final TextClassification.Request request = new TextClassification.Request.Builder( in classifyText()
61 public TextClassification classifyText(TextClassification.Request request) { in classifyText()
247 public TextClassification classifyText(TextClassification.Request request) { in classifyText()640 private TextClassification createClassificationResult( in createClassificationResult()644 final TextClassification.Builder builder = new TextClassification.Builder() in createClassificationResult()687 builder.setOnClickListener(TextClassification.createIntentOnClickListener( in createClassificationResult()688 TextClassification.createPendingIntent( in createClassificationResult()
253 int start, int end, @NonNull TextClassification classification) { in createSelectionModifiedEvent()325 @NonNull TextClassification classification) { in createSelectionActionEvent()
43 import android.view.textclassifier.TextClassification;80 @Nullable private TextClassification mTextClassification;200 public TextClassification getTextClassification() { in getTextClassification()558 @Nullable TextClassification classification) { in onSelectionUpdated()583 @Nullable TextClassification classification) { in onSelectionAction()618 public void onTextChanged(int start, int end, TextClassification classification) { in onTextChanged()737 @Nullable TextClassification classification, @Nullable TextSelection selection) { in logSelectionModified()768 @Nullable TextClassification classification) { in logSelectionAction()875 private void maybeGenerateTranslateViewEvent(@Nullable TextClassification classification) { in maybeGenerateTranslateViewEvent()885 @Nullable TextClassification classification, String actionLabel) { in maybeGenerateTranslateClickEvent()[all …]
117 import android.view.textclassifier.TextClassification;4082 final TextClassification textClassification = in updateAssistMenuItems()4101 mAssistClickHandlers.put(item, TextClassification.createIntentOnClickListener( in updateAssistMenuItems()4102 TextClassification.createPendingIntent(mTextView.getContext(), in updateAssistMenuItems()4124 TextClassification.createIntentOnClickListener(action.getActionIntent())); in addAssistMenuItem()4140 private boolean hasLegacyAssistItem(TextClassification classification) { in hasLegacyAssistItem()4150 final TextClassification textClassification = in onAssistMenuItemClicked()4161 onClickListener = TextClassification.createIntentOnClickListener( in onAssistMenuItemClicked()4162 TextClassification.createPendingIntent( in onAssistMenuItemClicked()
177 import android.view.textclassifier.TextClassification;12457 final TextClassification.Request request = new TextClassification.Request.Builder( in handleClick()12461 final Supplier<TextClassification> supplier = () -> in handleClick()12463 final Consumer<TextClassification> consumer = classification -> { in handleClick()
22 import android.view.textclassifier.TextClassification;44 in TextClassification.Request request, in onClassifyText()
42 import android.view.textclassifier.TextClassification;127 TextClassification.Request request, ITextClassifierCallback callback) {238 @NonNull TextClassification.Request request, in onClassifyText()240 @NonNull Callback<TextClassification> callback); in onClassifyText()
31 import android.view.textclassifier.TextClassification;143 TextClassification.createPendingIntent(context, resolvedIntent, requestCode); in resolve()
26 import android.view.textclassifier.TextClassification;478 int start, int end, @NonNull TextClassification classification) { in selectionModified()546 @NonNull TextClassification classification) { in selectionAction()
37 import android.view.textclassifier.TextClassification;154 TextClassification.Request request, ITextClassifierCallback callback) in onClassifyText()
4132 android.view.textclassifier.TextClassification$14133 android.view.textclassifier.TextClassification$Builder4134 android.view.textclassifier.TextClassification
META-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
6761 …TextClassification.Request, @NonNull android.os.CancellationSignal, @NonNull android.service.textc…
13330 …lassifier/TextClassificationSessionId;Landroid/view/textclassifier/TextClassification$Request;Land…