OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:textclassifier
(Results
26 - 41
of
41
) sorted by null
1
2
/frameworks/support/textclassifier/src/androidTest/java/androidx/textclassifier/
TextClassificationTest.java
17
package androidx.
textclassifier
;
82
.setEntityType(
TextClassifier
.TYPE_ADDRESS, 0.3f)
83
.setEntityType(
TextClassifier
.TYPE_PHONE, 0.7f)
136
assertEquals(
TextClassifier
.TYPE_PHONE, result.getEntity(0));
137
assertEquals(
TextClassifier
.TYPE_ADDRESS, result.getEntity(1));
138
assertEquals(0.7f, result.getConfidenceScore(
TextClassifier
.TYPE_PHONE), 1e-7f);
139
assertEquals(0.3f, result.getConfidenceScore(
TextClassifier
.TYPE_ADDRESS), 1e-7f);
TextLinksTest.java
17
package androidx.
textclassifier
;
68
private
TextClassifier
mClassifier;
73
mClassifier = new
TextClassifier
();
75
mDummyEntityScores.put(
TextClassifier
.TYPE_ADDRESS, 0.2f);
76
mDummyEntityScores.put(
TextClassifier
.TYPE_PHONE, 0.7f);
77
mDummyEntityScores.put(
TextClassifier
.TYPE_OTHER, 0.3f);
83
result.put(
TextClassifier
.TYPE_ADDRESS, address);
86
result.put(
TextClassifier
.TYPE_PHONE, phone);
89
result.put(
TextClassifier
.TYPE_OTHER, other);
113
assertEquals(
TextClassifier
.TYPE_OTHER, resultList.get(0).getEntity(0))
[
all
...]
/cts/tests/tests/view/src/android/view/textclassifier/cts/
TextClassificationManagerTest.java
17
package android.view.
textclassifier
.cts;
29
import android.view.
textclassifier
.SelectionEvent;
30
import android.view.
textclassifier
.TextClassification;
31
import android.view.
textclassifier
.TextClassificationContext;
32
import android.view.
textclassifier
.TextClassificationManager;
33
import android.view.
textclassifier
.
TextClassifier
;
34
import android.view.
textclassifier
.TextLinks;
35
import android.view.
textclassifier
.TextSelection;
67
private
TextClassifier
mClassifier
[
all
...]
TextClassifierValueObjectsTest.java
17
package android.view.
textclassifier
.cts;
36
import android.view.
textclassifier
.TextClassification;
37
import android.view.
textclassifier
.
TextClassifier
;
38
import android.view.
textclassifier
.TextSelection;
44
*
TextClassifier
value objects tests.
46
* <p>Contains unit tests for value objects passed to/from
TextClassifier
APIs.
65
.setEntityType(
TextClassifier
.TYPE_ADDRESS, addressScore)
66
.setEntityType(
TextClassifier
.TYPE_EMAIL, emailScore)
73
assertEquals(
TextClassifier
.TYPE_EMAIL, selection.getEntity(0))
[
all
...]
/frameworks/base/core/java/android/view/textclassifier/
TextClassificationConstants.java
17
package android.view.
textclassifier
;
29
*
TextClassifier
specific settings.
105
.add(
TextClassifier
.TYPE_ADDRESS)
106
.add(
TextClassifier
.TYPE_EMAIL)
107
.add(
TextClassifier
.TYPE_PHONE)
108
.add(
TextClassifier
.TYPE_URL)
109
.add(
TextClassifier
.TYPE_DATE)
110
.add(
TextClassifier
.TYPE_DATE_TIME)
111
.add(
TextClassifier
.TYPE_FLIGHT_NUMBER).toString();
134
Slog.e(LOG_TAG, "Bad
TextClassifier
settings: " + settings)
[
all
...]
SelectionEvent.java
17
package android.view.
textclassifier
;
24
import android.view.
textclassifier
.
TextClassifier
.EntityType;
25
import android.view.
textclassifier
.
TextClassifier
.WidgetType;
103
/** Something else other than User or the default
TextClassifier
triggered a selection. */
126
private String mWidgetType =
TextClassifier
.WIDGET_TYPE_UNKNOWN;
219
TextClassifier
.TYPE_UNKNOWN, invocationMethod, NO_SIGNATURE);
236
TextClassifier
.TYPE_UNKNOWN, INVOCATION_UNKNOWN, NO_SIGNATURE);
245
* @param classification the TextClassification object returned by the
TextClassifier
tha
[
all
...]
TextClassifier.java
17
package android.view.
textclassifier
;
54
public interface
TextClassifier
{
64
/** Specifies a
TextClassifier
that runs locally in the app's process. @hide */
66
/** Specifies a
TextClassifier
that runs in the system process and serves all apps. @hide */
69
/** The
TextClassifier
failed to run. */
149
* No-op
TextClassifier
.
150
* This may be used to turn off
TextClassifier
features.
152
TextClassifier
NO_OP = new
TextClassifier
() {};
160
* <p><strong>NOTE: </strong>If a
TextClassifier
has been destroyed, calls to this method shoul
[
all
...]
TextLinks.java
17
package android.view.
textclassifier
;
34
import android.view.
textclassifier
.
TextClassifier
.EntityType;
306
@Nullable private final
TextClassifier
.EntityConfig mEntityConfig;
313
TextClassifier
.EntityConfig entityConfig,
342
* @see Builder#setEntityConfig(
TextClassifier
.EntityConfig)
345
public
TextClassifier
.EntityConfig getEntityConfig() {
350
* Returns whether the
TextClassifier
can fallback to legacy links if smart linkify is
374
@Nullable private
TextClassifier
.EntityConfig mEntityConfig;
396
*
TextClassifier
will look for
[
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
...]
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
TextClassificationManagerTest.java
17
package android.view.
textclassifier
;
38
import android.service.
textclassifier
.TextClassifierService;
64
private
TextClassifier
mClassifier;
70
// Test with the local
textClassifier
only. (We only bundle "en" model by default).
72
mClassifier = mTcm.getTextClassifier(
TextClassifier
.LOCAL);
93
isTextSelection(smartStartIndex, smartEndIndex,
TextClassifier
.TYPE_EMAIL));
114
isTextSelection(smartStartIndex, smartEndIndex,
TextClassifier
.TYPE_URL));
149
assertThat(classification, isTextClassification(classifiedText,
TextClassifier
.TYPE_EMAIL));
166
assertThat(classification, isTextClassification(classifiedText,
TextClassifier
.TYPE_URL));
180
assertThat(classification, isTextClassification(text,
TextClassifier
.TYPE_ADDRESS))
[
all
...]
/frameworks/support/textclassifier/src/main/java/androidx/textclassifier/
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);
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/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
...]
/frameworks/base/services/core/java/com/android/server/textclassifier/
TextClassificationManagerService.java
17
package com.android.server.
textclassifier
;
31
import android.service.
textclassifier
.ITextClassificationCallback;
32
import android.service.
textclassifier
.ITextClassifierService;
33
import android.service.
textclassifier
.ITextLinksCallback;
34
import android.service.
textclassifier
.ITextSelectionCallback;
35
import android.service.
textclassifier
.TextClassifierService;
38
import android.view.
textclassifier
.SelectionEvent;
39
import android.view.
textclassifier
.TextClassification;
40
import android.view.
textclassifier
.TextClassificationContext;
41
import android.view.
textclassifier
.TextClassificationSessionId
[
all
...]
/prebuilts/sdk/26/
android.jar
/prebuilts/sdk/27/
android.jar
Completed in 426 milliseconds
1
2