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

Commit 75e0b16c authored by Chaitanya Saggurthi's avatar Chaitanya Saggurthi Committed by Steve Kondik
Browse files

Message priority support for 3gpp2

Add support for message priority in 3gpp2
Add new interface API's sendTextMsgWithOptions and
sendMultipartTextMsgWithOptions

Change-Id: I1bf5752eaf8b1acf19fe330d7f409214ee97d3cf
parent 50d72e37
Loading
Loading
Loading
Loading
+29 −3
Original line number Diff line number Diff line
@@ -122,9 +122,8 @@ interface ISms {
            in PendingIntent sentIntent, in PendingIntent deliveryIntent);

    /**
     * Send an SMS with priority.
     * Send an SMS with options.
     *
     * @param destAddr the address to send the message to
     * @param smsc the SMSC to send the message through, or NULL for the
     *  default SMSC
     * @param text the body of the message to send
@@ -146,7 +145,7 @@ interface ISms {
     *  raw pdu of the status report is in the extended data ("pdu").
     * @param priority Priority level of the message
     */
    void sendTextWithPriority(String callingPkg, in String destAddr, in String scAddr,
    void sendTextWithOptions(String callingPkg, in String destAddr, in String scAddr,
            in String text, in PendingIntent sentIntent, in PendingIntent deliveryIntent,
            in int priority);

@@ -176,6 +175,33 @@ interface ISms {
            in List<String> parts, in List<PendingIntent> sentIntents,
            in List<PendingIntent> deliveryIntents);

    /**
     * Send a multi-part text based SMS.
     *
     * @param destinationAddress the address to send the message to
     * @param scAddress is the service center address or null to use
     *   the current default SMSC
     * @param parts an <code>ArrayList</code> of strings that, in order,
     *   comprise the original message
     * @param sentIntents if not null, an <code>ArrayList</code> of
     *   <code>PendingIntent</code>s (one for each message part) that is
     *   broadcast when the corresponding message part has been sent.
     *   The result code will be <code>Activity.RESULT_OK<code> for success,
     *   or one of these errors:
     *   <code>RESULT_ERROR_GENERIC_FAILURE</code>
     *   <code>RESULT_ERROR_RADIO_OFF</code>
     *   <code>RESULT_ERROR_NULL_PDU</code>.
     * @param deliveryIntents if not null, an <code>ArrayList</code> of
     *   <code>PendingIntent</code>s (one for each message part) that is
     *   broadcast when the corresponding message part has been delivered
     *   to the recipient.  The raw pdu of the status report is in the
     *   extended data ("pdu").
     * @param priority Priority level of the message
     */
    void sendMultipartTextWithOptions(String callingPkg, in String destinationAddress,
            in String scAddress, in List<String> parts, in List<PendingIntent> sentIntents,
            in List<PendingIntent> deliveryIntents, in int priority);

    /**
     * Enable reception of cell broadcast (SMS-CB) messages with the given
     * message identifier. Note that if two different clients enable the same