| /frameworks/base/core/java/android/view/textclassifier/ |
| TextClassificationSession.java | 17 package android.view.textclassifier; 20 import android.view.textclassifier.SelectionEvent.InvocationMethod; 25 * Session-aware TextClassifier. 28 final class TextClassificationSession implements TextClassifier { 33 private final TextClassifier mDelegate; 40 TextClassificationSession(TextClassificationContext context, TextClassifier delegate) {
|
| TextClassifierImplNative.java | 17 package android.view.textclassifier; 22 * Java wrapper for TextClassifier native library interface. This library is used for detecting 28 System.loadLibrary("textclassifier"); 159 if (mCollection.equals(TextClassifier.TYPE_DATE) && mDatetimeResult != null) { 166 return TextClassifier.TYPE_DATE_TIME; 168 return TextClassifier.TYPE_DATE;
|
| GenerateLinksLogger.java | 17 package android.view.textclassifier; 84 || TextClassifier.TYPE_OTHER.equals(entityType) 85 || TextClassifier.TYPE_UNKNOWN.equals(entityType)) {
|
| TextClassificationContext.java | 17 package android.view.textclassifier; 23 import android.view.textclassifier.TextClassifier.WidgetType; 96 * @param widgetType the type of widget e.g. {@link TextClassifier#WIDGET_TYPE_TEXTVIEW}
|
| SystemTextClassifier.java | 17 package android.view.textclassifier; 26 import android.service.textclassifier.ITextClassificationCallback; 27 import android.service.textclassifier.ITextClassifierService; 28 import android.service.textclassifier.ITextLinksCallback; 29 import android.service.textclassifier.ITextSelectionCallback; 39 * Proxy to the system's default TextClassifier. 43 public final class SystemTextClassifier implements TextClassifier { 49 private final TextClassifier mFallback; 59 .getTextClassifier(TextClassifier.LOCAL); 246 // The response will unfortunately be null and the TextClassifier should depend on it [all...] |
| TextClassifierImpl.java | 17 package android.view.textclassifier; 68 * Default implementation of the {@link TextClassifier} interface. 76 public final class TextClassifierImpl implements TextClassifier { 79 private static final String MODEL_DIR = "/etc/textclassifier/"; 80 private static final String MODEL_FILE_REGEX = "textclassifier\\.(.*)\\.model"; 82 "/data/misc/textclassifier/textclassifier.model"; 85 private final TextClassifier mFallback; 103 Context context, TextClassificationConstants settings, TextClassifier fallback) { 111 this(context, settings, TextClassifier.NO_OP) [all...] |
| TextSelection.java | 17 package android.view.textclassifier; 27 import android.view.textclassifier.TextClassifier.EntityType; 28 import android.view.textclassifier.TextClassifier.Utils; 222 * Returns true if the TextClassifier should return selection suggestions when "dark 282 * @param allowed whether or not the TextClassifier should return selection suggestions 283 * when "dark launched". When a TextClassifier is dark launched, it can suggest 287 * TextClassifier. Not parceled.
|
| TextClassification.java | 17 package android.view.textclassifier; 41 import android.view.textclassifier.TextClassifier.EntityType; 42 import android.view.textclassifier.TextClassifier.Utils; 66 * TextClassification classification = textClassifier.classifyText(allText, 10, 25); 79 * final TextClassification classification = textClassifier.classifyText(allText, 10, 25); 345 * .setEntityType(TextClassifier.TYPE_EMAIL, 0.9) 346 * .setEntityType(TextClassifier.TYPE_OTHER, 0.1)
|
| /frameworks/support/textclassifier/src/main/java/androidx/textclassifier/ |
| TextClassifier.java | 17 package androidx.textclassifier; 38 * TextClassifier acts as a proxy to either the system provided TextClassifier, or an equivalent 45 public class TextClassifier { 49 /** Signifies that the TextClassifier did not identify an entity. */ 75 /** Designates that the TextClassifier should identify all entity types it can. **/ 77 /** Designates that the TextClassifier should identify no entities. **/ 79 /** Designates that the TextClassifier should identify a base set of entities determined by the 80 * TextClassifier. **/ 139 public List<String> getEntities(TextClassifier textClassifier) [all...] |
| TextLinks.java | 17 package androidx.textclassifier; 32 import androidx.textclassifier.TextClassifier.EntityType; 285 private TextClassifier.EntityConfig mEntityConfig; 304 * TextClassifier will look for. 308 public Options setEntityConfig(@Nullable TextClassifier.EntityConfig entityConfig) { 359 * @see #setEntityConfig(TextClassifier.EntityConfig) 362 public TextClassifier.EntityConfig getEntityConfig() { 435 mEntityConfig = TextClassifier.EntityConfig.CREATOR.createFromParcel(in);
|
| TextSelection.java | 17 package androidx.textclassifier; 30 import androidx.textclassifier.TextClassifier.EntityType; 100 * The TextClassifier that generates this object may use it as a way to internally identify 189 * The TextClassifier that generates the TextSelection object may use it as a way to
|
| TextClassification.java | 17 package androidx.textclassifier; 35 import androidx.textclassifier.TextClassifier.EntityType; 54 * TextClassification classification = textClassifier.classifyText(allText, 10, 25); 244 * The TextClassifier that generates this object may use it as a way to internally identify 386 * .setEntityType(TextClassifier.TYPE_EMAIL, 0.9) 387 * .setEntityType(TextClassifier.TYPE_OTHER, 0.1) 512 * The TextClassifier that generates the TextClassification object may use it as a way to
|
| /frameworks/base/core/tests/coretests/src/android/text/util/ |
| LinkifyTest.java | 34 import android.view.textclassifier.SystemTextClassifier; 35 import android.view.textclassifier.TextClassificationConstants; 36 import android.view.textclassifier.TextClassifier; 37 import android.view.textclassifier.TextClassifierImpl; 38 import android.view.textclassifier.TextLinks.TextLinkSpan; 167 final TextClassifier classifier = new TextClassifierImpl(mContext, settings); 176 final TextClassifier classifier = new SystemTextClassifier(mContext, settings); 180 private void testAddLinksAsync_useLegacyIfSmartDisabled(TextClassifier classifier)
|
| /frameworks/base/core/java/android/view/textclassifier/logging/ |
| SmartSelectionEventTracker.java | 17 package android.view.textclassifier.logging; 25 import android.view.textclassifier.TextClassification; 26 import android.view.textclassifier.TextClassifier; 27 import android.view.textclassifier.TextSelection; 417 /** Something else other than User or the default TextClassifier triggered a selection. */ 424 private final @TextClassifier.EntityType String mEntityType; 429 @TextClassifier.EntityType String entityType, String versionTag) { 446 TextClassifier.TYPE_UNKNOWN, NO_VERSION_TAG); 459 TextClassifier.TYPE_UNKNOWN, NO_VERSION_TAG) [all...] |
| /packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
| TableView.java | 25 import android.view.textclassifier.TextClassifier; 45 private final TextClassifier mClassifier;
|
| /frameworks/base/core/java/android/service/textclassifier/ |
| TextClassifierService.java | 17 package android.service.textclassifier; 36 import android.view.textclassifier.SelectionEvent; 37 import android.view.textclassifier.TextClassification; 38 import android.view.textclassifier.TextClassificationContext; 39 import android.view.textclassifier.TextClassificationManager; 40 import android.view.textclassifier.TextClassificationSessionId; 41 import android.view.textclassifier.TextClassifier; 42 import android.view.textclassifier.TextLinks; 43 import android.view.textclassifier.TextSelection [all...] |
| /frameworks/base/core/java/android/webkit/ |
| WebViewProvider.java | 48 import android.view.textclassifier.TextClassifier; 285 public default void setTextClassifier(@Nullable TextClassifier textClassifier) {} 288 public default TextClassifier getTextClassifier() { return TextClassifier.NO_OP; }
|
| WebView.java | 63 import android.view.textclassifier.TextClassifier; [all...] |
| /frameworks/base/core/java/android/widget/ |
| SelectionActionModeHelper.java | 36 import android.view.textclassifier.SelectionEvent; 37 import android.view.textclassifier.SelectionEvent.InvocationMethod; 38 import android.view.textclassifier.SelectionSessionLogger; 39 import android.view.textclassifier.TextClassification; 40 import android.view.textclassifier.TextClassificationConstants; 41 import android.view.textclassifier.TextClassificationManager; 42 import android.view.textclassifier.TextClassifier; 43 import android.view.textclassifier.TextSelection; 61 * (synchronously without the TextClassifier, asynchronously with the TextClassifier) [all...] |
| TextView.java | 166 import android.view.textclassifier.TextClassification; 167 import android.view.textclassifier.TextClassificationContext; 168 import android.view.textclassifier.TextClassificationManager; 169 import android.view.textclassifier.TextClassifier; 170 import android.view.textclassifier.TextLinks; 429 private TextClassifier mTextClassifier; 430 private TextClassifier mTextClassificationSession; [all...] |
| /frameworks/base/core/java/android/text/util/ |
| Linkify.java | 33 import android.view.textclassifier.TextClassifier; 34 import android.view.textclassifier.TextLinks; 35 import android.view.textclassifier.TextLinks.TextLinkSpan; 36 import android.view.textclassifier.TextLinksParams; 104 * @deprecated use {@link android.view.textclassifier.TextClassifier#generateLinks( 115 * Use {@link android.view.textclassifier.TextClassifier#generateLinks(TextLinks.Request)} 602 * @param classifier the TextClassifier to use to generate the link [all...] |
| /external/libtextclassifier/datetime/ |
| parser_test.cc | 58 classifier_ = TextClassifier::FromUnownedBuffer( 152 std::unique_ptr<TextClassifier> classifier_;
|
| /frameworks/base/core/tests/coretests/src/android/widget/ |
| TextViewActivityMouseTest.java | 51 import android.view.textclassifier.TextClassificationManager; 52 import android.view.textclassifier.TextClassifier; 79 .setTextClassifier(TextClassifier.NO_OP);
|
| TextViewActivityTest.java | 81 import android.view.textclassifier.SelectionEvent; 82 import android.view.textclassifier.TextClassificationManager; 83 import android.view.textclassifier.TextClassifier; 84 import android.view.textclassifier.TextLinks; 85 import android.view.textclassifier.TextLinksParams; 117 .setTextClassifier(TextClassifier.NO_OP); 400 TextClassifier textClassifier = textClassificationManager.getTextClassifier(); 403 TextLinks links = textClassifier.generateLinks(request) [all...] |
| /cts/tests/tests/webkit/src/android/webkit/cts/ |
| WebViewTest.java | 57 import android.view.textclassifier.TextClassification; 58 import android.view.textclassifier.TextClassifier; 59 import android.view.textclassifier.TextSelection; [all...] |