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

Commit dc8e7fc3 authored by Kiran Ramachandra's avatar Kiran Ramachandra
Browse files

Adds extra bundle key to TextClassifier to return package name

Bug: 433688731
Test: atest CtsTelephonyTestCases:SmsManagerTest#testOtpSmsBroadcastReceivedByRetrieverApp
Flag: EXEMPT (Bug fix)

Change-Id: I6df536cb369d86e232b2f04a6b928bd94373761a
parent c58ffb98
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -239,6 +239,16 @@ public interface TextClassifier {
    @FlaggedApi(Flags.FLAG_TEXT_CLASSIFIER_CHOICE_API_ENABLED)
    String EXTRA_TEXT_ORIGIN_PACKAGE = "android.view.textclassifier.extra.TEXT_ORIGIN_PACKAGE";

    /**
     * Extra specifying the package name of the app whose SMS retriever hash matches.
     *
     * This extra is included in the response when {@link #TYPE_SMS_RETRIEVER_OTP} is detected
     * in the request.
     *
     * @hide
     */
    String EXTRA_SMS_RETRIEVER_HASH_MATCHED_PACKAGE = "sms-retriever-hash-matched-package";

    /**
     * Returns suggested text selection start and end indices, recognized entity types, and their
     * associated confidence scores. The entity types are ordered from highest to lowest scoring.