Home
last modified time | relevance | path

Searched refs:TextLanguage (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextLanguageTest.java46 final TextLanguage reference = new TextLanguage.Builder() in testParcel()
56 final TextLanguage result = TextLanguage.CREATOR.createFromParcel(parcel); in testParcel()
75 final TextLanguage.Request reference = new TextLanguage.Request.Builder(text) in testRequestParcel()
83 final TextLanguage.Request result = TextLanguage.Request.CREATOR.createFromParcel(parcel); in testRequestParcel()
DTextClassifierTest.java401 TextLanguage.Request request = new TextLanguage.Request.Builder(text).build(); in testDetectLanguage()
402 TextLanguage textLanguage = mClassifier.detectLanguage(request); in testDetectLanguage()
410 TextLanguage.Request request = new TextLanguage.Request.Builder(text).build(); in testDetectLanguage_japanese()
411 TextLanguage textLanguage = mClassifier.detectLanguage(request); in testDetectLanguage_japanese()
649 private static Matcher<TextLanguage> isTextLanguage(final String languageTag) {
650 return new BaseMatcher<TextLanguage>() {
653 if (o instanceof TextLanguage) {
654 TextLanguage result = (TextLanguage) o;
/frameworks/base/core/java/android/view/textclassifier/
DTextLanguage.java46 public final class TextLanguage implements Parcelable { class
48 …ic static final @android.annotation.NonNull Creator<TextLanguage> CREATOR = new Creator<TextLangua…
50 public TextLanguage createFromParcel(Parcel in) {
55 public TextLanguage[] newArray(int size) {
56 return new TextLanguage[size];
60 static final TextLanguage EMPTY = new Builder().build();
66 private TextLanguage( in TextLanguage() method in TextLanguage
145 private static TextLanguage readFromParcel(Parcel in) { in readFromParcel()
146 return new TextLanguage( in readFromParcel()
202 public TextLanguage build() { in build()
[all …]
DTextLanguage.aidl19 parcelable TextLanguage;
20 parcelable TextLanguage.Request;
DSystemTextClassifier.java180 public TextLanguage detectLanguage(TextLanguage.Request request) { in detectLanguage()
187 final BlockingCallback<TextLanguage> callback = in detectLanguage()
190 final TextLanguage textLanguage = callback.get(); in detectLanguage()
DTextClassifierImpl.java401 public TextLanguage detectLanguage(@NonNull TextLanguage.Request request) { in detectLanguage()
405 final TextLanguage.Builder builder = new TextLanguage.Builder(); in detectLanguage()
519 TextLanguage.Request request = new TextLanguage.Request.Builder(text).build(); in detectLanguageTagsFromText()
520 TextLanguage textLanguage = detectLanguage(request); in detectLanguageTagsFromText()
DTextClassifier.java348 default TextLanguage detectLanguage(@NonNull TextLanguage.Request request) { in detectLanguage()
351 return TextLanguage.EMPTY; in detectLanguage()
/frameworks/base/apct-tests/perftests/textclassifier/src/android/view/textclassifier/
DTextClassifierPerfTest.java80 TextLanguage.Request request = createTextLanguageRequest(text); in testDetectLanguage()
97 private static TextLanguage.Request createTextLanguageRequest(CharSequence text) { in createTextLanguageRequest()
98 return new TextLanguage.Request.Builder(text).build(); in createTextLanguageRequest()
/frameworks/base/core/java/android/service/textclassifier/
DITextClassifierService.aidl27 import android.view.textclassifier.TextLanguage;
70 in TextLanguage.Request request, in onDetectLanguage()
DTextClassifierService.java48 import android.view.textclassifier.TextLanguage;
164 TextLanguage.Request request,
268 @NonNull TextLanguage.Request request, in onDetectLanguage()
270 @NonNull Callback<TextLanguage> callback) { in onDetectLanguage()
/frameworks/base/services/core/java/com/android/server/textclassifier/
DTextClassificationManagerService.java43 import android.view.textclassifier.TextLanguage;
251 TextLanguage.Request request, in onDetectLanguage()
/frameworks/base/non-updatable-api/
Dcurrent.txt54961 …c default android.view.textclassifier.TextLanguage detectLanguage(@NonNull android.view.textclassi…
55113 public final class TextLanguage implements android.os.Parcelable {
55121 …ublic static final android.os.Parcelable.Creator<android.view.textclassifier.TextLanguage> CREATOR;
55124 public static final class TextLanguage.Builder {
55125 ctor public TextLanguage.Builder();
55126 method @NonNull public android.view.textclassifier.TextLanguage build();
55127 …method @NonNull public android.view.textclassifier.TextLanguage.Builder putLocale(@NonNull android…
55128 …method @NonNull public android.view.textclassifier.TextLanguage.Builder setExtras(@NonNull android…
55129 method @NonNull public android.view.textclassifier.TextLanguage.Builder setId(@Nullable String);
55132 public static final class TextLanguage.Request implements android.os.Parcelable {
[all …]
Dsystem-current.txt7484TextLanguage.Request, @NonNull android.os.CancellationSignal, @NonNull android.service.textclassif…
/frameworks/base/api/
Dcurrent.txt55105 …c default android.view.textclassifier.TextLanguage detectLanguage(@NonNull android.view.textclassi…
55257 public final class TextLanguage implements android.os.Parcelable {
55265 …ublic static final android.os.Parcelable.Creator<android.view.textclassifier.TextLanguage> CREATOR;
55268 public static final class TextLanguage.Builder {
55269 ctor public TextLanguage.Builder();
55270 method @NonNull public android.view.textclassifier.TextLanguage build();
55271 …method @NonNull public android.view.textclassifier.TextLanguage.Builder putLocale(@NonNull android…
55272 …method @NonNull public android.view.textclassifier.TextLanguage.Builder setExtras(@NonNull android…
55273 method @NonNull public android.view.textclassifier.TextLanguage.Builder setId(@Nullable String);
55276 public static final class TextLanguage.Request implements android.os.Parcelable {
[all …]
Dsystem-current.txt7586TextLanguage.Request, @NonNull android.os.CancellationSignal, @NonNull android.service.textclassif…
/frameworks/base/config/
Dboot-image-profile.txt18328 …>detectLanguage(Landroid/view/textclassifier/TextLanguage$Request;)Landroid/view/textclassifier/Te…
18338 HSPLandroid/view/textclassifier/TextLanguage$1;-><init>()V
18339 HSPLandroid/view/textclassifier/TextLanguage$Builder;-><init>()V
18340 HSPLandroid/view/textclassifier/TextLanguage$Builder;->build()Landroid/view/textclassifier/TextLang…
18341 …roid/view/textclassifier/TextLanguage$Builder;->putLocale(Landroid/icu/util/ULocale;F)Landroid/vie…
18342 HSPLandroid/view/textclassifier/TextLanguage$Request$1;-><init>()V