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

Commit 7fcd6520 authored by Ji Yang's avatar Ji Yang Committed by Android Git Automerger
Browse files

am 2864e9d4: am 8c895f94: am f520f022: am 499f084d: Merge "Add API to let...

am 2864e9d4: am 8c895f94: am f520f022: am 499f084d: Merge "Add API to let carrier app send SMS without auto perisisting." into mnc-dev

* commit '2864e9d4':
  Add API to let carrier app send SMS without auto perisisting.
parents ea5a8cc4 2864e9d4
Loading
Loading
Loading
Loading
+10 −2
Original line number Original line Diff line number Diff line
@@ -149,10 +149,14 @@ interface ISms {
     *  broadcast when the message is delivered to the recipient.  The
     *  broadcast when the message is delivered to the recipient.  The
     *  raw pdu of the status report is in the extended data ("pdu").
     *  raw pdu of the status report is in the extended data ("pdu").
     * @param subId the subId on which the SMS has to be sent.
     * @param subId the subId on which the SMS has to be sent.
     * @param persistMessageForNonDefaultSmsApp whether the sent message should
     *   be automatically persisted in the SMS db. It only affects messages sent
     *   by a non-default SMS app. Currently only the carrier app can set this
     *   parameter to false to skip auto message persistence.
     */
     */
    void sendTextForSubscriber(in int subId, String callingPkg, in String destAddr,
    void sendTextForSubscriber(in int subId, String callingPkg, in String destAddr,
            in String scAddr, in String text, in PendingIntent sentIntent,
            in String scAddr, in String text, in PendingIntent sentIntent,
            in PendingIntent deliveryIntent);
            in PendingIntent deliveryIntent, in boolean persistMessageForNonDefaultSmsApp);


    /**
    /**
     * Send an SMS. Internal use only.
     * Send an SMS. Internal use only.
@@ -219,11 +223,15 @@ interface ISms {
     *   to the recipient.  The raw pdu of the status report is in the
     *   to the recipient.  The raw pdu of the status report is in the
     *   extended data ("pdu").
     *   extended data ("pdu").
     * @param subId the subId on which the SMS has to be sent.
     * @param subId the subId on which the SMS has to be sent.
     * @param persistMessageForNonDefaultSmsApp whether the sent message should
     *   be automatically persisted in the SMS db. It only affects messages sent
     *   by a non-default SMS app. Currently only the carrier app can set this
     *   parameter to false to skip auto message persistence.
     */
     */
    void sendMultipartTextForSubscriber(in int subId, String callingPkg,
    void sendMultipartTextForSubscriber(in int subId, String callingPkg,
            in String destinationAddress, in String scAddress,
            in String destinationAddress, in String scAddress,
            in List<String> parts, in List<PendingIntent> sentIntents,
            in List<String> parts, in List<PendingIntent> sentIntents,
            in List<PendingIntent> deliveryIntents);
            in List<PendingIntent> deliveryIntents, in boolean persistMessageForNonDefaultSmsApp);


    /**
    /**
     * Enable reception of cell broadcast (SMS-CB) messages with the given
     * Enable reception of cell broadcast (SMS-CB) messages with the given