HomeSort by relevance Sort by last modified time
    Searched defs:textclassifier (Results 1 - 25 of 41) sorted by null

1 2

  /frameworks/base/core/java/android/view/textclassifier/
TextClassificationSessionFactory.java 17 package android.view.textclassifier;
22 * An interface for creating a session-aware TextClassifier.
29 * Creates and returns a session-aware TextClassifier.
34 TextClassifier createTextClassificationSession(
Log.java 17 package android.view.textclassifier;
22 * Logging for android.view.textclassifier package.
TextClassificationSessionId.java 17 package android.view.textclassifier;
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}
TextLinksParams.java 17 package android.view.textclassifier;
25 import android.view.textclassifier.TextLinks.TextLink;
26 import android.view.textclassifier.TextLinks.TextLinkSpan;
49 private final TextClassifier.EntityConfig mEntityConfig;
56 mEntityConfig = TextClassifier.EntityConfig.createWithHints(null);
70 entitiesToFind.add(TextClassifier.TYPE_URL);
73 entitiesToFind.add(TextClassifier.TYPE_EMAIL);
76 entitiesToFind.add(TextClassifier.TYPE_PHONE);
79 entitiesToFind.add(TextClassifier.TYPE_ADDRESS);
82 TextClassifier.EntityConfig.createWithExplicitEntityList(entitiesToFind)
    [all...]
EntityConfidence.java 17 package android.view.textclassifier;
GenerateLinksLogger.java 17 package android.view.textclassifier;
84 || TextClassifier.TYPE_OTHER.equals(entityType)
85 || TextClassifier.TYPE_UNKNOWN.equals(entityType)) {
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)
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) {
SelectionSessionLogger.java 17 package android.view.textclassifier;
238 * Creates a string id that may be used to identify a TextClassifier result.
258 * {@link android.view.textclassifier.TextClassifierImpl}.
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...]
TextClassificationManager.java 17 package android.view.textclassifier;
26 import android.service.textclassifier.TextClassifierService;
27 import android.view.textclassifier.TextClassifier.TextClassifierType;
52 private TextClassifier mCustomTextClassifier;
55 private TextClassifier mLocalTextClassifier;
58 private TextClassifier mSystemTextClassifier;
72 * Returns the text classifier that was set via {@link #setTextClassifier(TextClassifier)}.
76 * @see #setTextClassifier(TextClassifier)
79 public TextClassifier getTextClassifier()
    [all...]
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;
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.
  /frameworks/base/core/tests/coretests/src/android/view/textclassifier/
TextClassificationConstantsTest.java 17 package android.view.textclassifier;
SelectionEventTest.java 17 package android.view.textclassifier;
TextLinksTest.java 17 package android.view.textclassifier;
45 result.put(TextClassifier.TYPE_ADDRESS, address);
48 result.put(TextClassifier.TYPE_PHONE, phone);
51 result.put(TextClassifier.TYPE_OTHER, other);
75 assertEquals(TextClassifier.TYPE_OTHER, resultList.get(0).getEntity(0));
76 assertEquals(1.f, resultList.get(0).getConfidenceScore(TextClassifier.TYPE_OTHER), 1e-7f);
80 assertEquals(TextClassifier.TYPE_ADDRESS, resultList.get(1).getEntity(0));
81 assertEquals(TextClassifier.TYPE_OTHER, resultList.get(1).getEntity(1));
82 assertEquals(TextClassifier.TYPE_PHONE, resultList.get(1).getEntity(2));
83 assertEquals(.8f, resultList.get(1).getConfidenceScore(TextClassifier.TYPE_ADDRESS), 1e-7f)
    [all...]
TextSelectionTest.java 17 package android.view.textclassifier;
41 .setEntityType(TextClassifier.TYPE_ADDRESS, 0.3f)
42 .setEntityType(TextClassifier.TYPE_PHONE, 0.7f)
43 .setEntityType(TextClassifier.TYPE_URL, 0.1f)
58 assertEquals(TextClassifier.TYPE_PHONE, result.getEntity(0));
59 assertEquals(TextClassifier.TYPE_ADDRESS, result.getEntity(1));
60 assertEquals(TextClassifier.TYPE_URL, result.getEntity(2));
61 assertEquals(0.7f, result.getConfidenceScore(TextClassifier.TYPE_PHONE), 1e-7f);
62 assertEquals(0.3f, result.getConfidenceScore(TextClassifier.TYPE_ADDRESS), 1e-7f);
63 assertEquals(0.1f, result.getConfidenceScore(TextClassifier.TYPE_URL), 1e-7f)
    [all...]
TextClassificationTest.java 17 package android.view.textclassifier;
89 .setEntityType(TextClassifier.TYPE_ADDRESS, 0.3f)
90 .setEntityType(TextClassifier.TYPE_PHONE, 0.7f)
118 assertEquals(TextClassifier.TYPE_PHONE, result.getEntity(0));
119 assertEquals(TextClassifier.TYPE_ADDRESS, result.getEntity(1));
120 assertEquals(0.7f, result.getConfidenceScore(TextClassifier.TYPE_PHONE), 1e-7f);
121 assertEquals(0.3f, result.getConfidenceScore(TextClassifier.TYPE_ADDRESS), 1e-7f);
  /frameworks/support/textclassifier/src/androidTest/java/androidx/textclassifier/
TextSelectionTest.java 17 package androidx.textclassifier;
40 .setEntityType(TextClassifier.TYPE_ADDRESS, 0.3f)
41 .setEntityType(TextClassifier.TYPE_PHONE, 0.7f)
42 .setEntityType(TextClassifier.TYPE_URL, 0.1f)
56 assertEquals(TextClassifier.TYPE_PHONE, result.getEntity(0));
57 assertEquals(TextClassifier.TYPE_ADDRESS, result.getEntity(1));
58 assertEquals(TextClassifier.TYPE_URL, result.getEntity(2));
59 assertEquals(0.7f, result.getConfidenceScore(TextClassifier.TYPE_PHONE), 1e-7f);
60 assertEquals(0.3f, result.getConfidenceScore(TextClassifier.TYPE_ADDRESS), 1e-7f);
61 assertEquals(0.1f, result.getConfidenceScore(TextClassifier.TYPE_URL), 1e-7f)
    [all...]
  /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/tests/coretests/src/android/view/textclassifier/logging/
GenerateLinksLoggerTest.java 17 package android.view.textclassifier.logging;
29 import android.view.textclassifier.GenerateLinksLogger;
30 import android.view.textclassifier.TextClassifier;
31 import android.view.textclassifier.TextLinks;
61 phoneEntityScores.put(TextClassifier.TYPE_PHONE, 0.9f);
62 phoneEntityScores.put(TextClassifier.TYPE_OTHER, 0.1f);
64 addressEntityScores.put(TextClassifier.TYPE_ADDRESS, 1f);
85 assertHasLog(logs, TextClassifier.TYPE_ADDRESS, 1, addressText.length(),
87 assertHasLog(logs, TextClassifier.TYPE_PHONE, 1, phoneText.length()
    [all...]
  /frameworks/support/textclassifier/src/main/java/androidx/textclassifier/
EntityConfidence.java 17 package 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...]
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

Completed in 395 milliseconds

1 2