Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97858b29 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Added type for SMS Retriever OTPs" into main

parents a7416534 016ba8c3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -59041,6 +59041,7 @@ package android.view.textclassifier {
    field public static final String TYPE_OTHER = "other";
    field @FlaggedApi("android.permission.flags.text_classifier_choice_api_enabled") public static final String TYPE_OTP = "otp";
    field public static final String TYPE_PHONE = "phone";
    field @FlaggedApi("com.android.internal.telephony.flags.redact_otp_sms_api") public static final String TYPE_SMS_RETRIEVER_OTP = "sms_retriever_otp";
    field public static final String TYPE_UNKNOWN = "";
    field public static final String TYPE_URL = "url";
    field public static final String WIDGET_TYPE_CLIPBOARD = "clipboard";
+5 −1
Original line number Diff line number Diff line
@@ -135,6 +135,9 @@ public interface TextClassifier {
    /** Onetime password. */
    @FlaggedApi(Flags.FLAG_TEXT_CLASSIFIER_CHOICE_API_ENABLED)
    String TYPE_OTP = "otp";
    /** SMS retriever OTP.  */
    @FlaggedApi(com.android.internal.telephony.flags.Flags.FLAG_REDACT_OTP_SMS_API)
    String TYPE_SMS_RETRIEVER_OTP = "sms_retriever_otp";
    /**
     * Word that users may be interested to look up for meaning.
     * @hide
@@ -154,7 +157,8 @@ public interface TextClassifier {
            TYPE_DATE_TIME,
            TYPE_FLIGHT_NUMBER,
            TYPE_DICTIONARY,
            TYPE_OTP
            TYPE_OTP,
            TYPE_SMS_RETRIEVER_OTP
    })
    @interface EntityType {}