diff options
author | Nancy Chen <nancychen@google.com> | 2015-04-09 18:21:41 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2015-04-09 18:21:41 -0700 |
commit | a3117b3881b10467f332c5ab451b6ac477ecc6e0 (patch) | |
tree | 605193bdbcb0a49037f4a4fa5db2c06e88f2db3f /telephony/java/com | |
parent | b677e0a49643d265eb0fa5efc3666a1e9362477f (diff) | |
download | frameworks_base-a3117b3881b10467f332c5ab451b6ac477ecc6e0.zip frameworks_base-a3117b3881b10467f332c5ab451b6ac477ecc6e0.tar.gz frameworks_base-a3117b3881b10467f332c5ab451b6ac477ecc6e0.tar.bz2 |
Create interface for SmsManager text sending methods.
This is part of set of changes to make looser changes just internally to
send SMS from packages/services/Telephony.
Bug: 19236241
Change-Id: I207ab73b2f63f745a55cefd12c85a044f7bbf11d
Diffstat (limited to 'telephony/java/com')
-rw-r--r-- | telephony/java/com/android/internal/telephony/ISms.aidl | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/ISms.aidl b/telephony/java/com/android/internal/telephony/ISms.aidl index 70ac268..24bdb7a 100644 --- a/telephony/java/com/android/internal/telephony/ISms.aidl +++ b/telephony/java/com/android/internal/telephony/ISms.aidl @@ -157,6 +157,34 @@ interface ISms { in PendingIntent deliveryIntent); /** + * Send a data SMS. Only for use internally. + * + * @param smsc the SMSC to send the message through, or NULL for the + * default SMSC + * @param data the body of the message to send + * @param sentIntent if not NULL this <code>PendingIntent</code> is + * broadcast when the message is sucessfully sent, or failed. + * The result code will be <code>Activity.RESULT_OK<code> for success, + * or one of these errors:<br> + * <code>RESULT_ERROR_GENERIC_FAILURE</code><br> + * <code>RESULT_ERROR_RADIO_OFF</code><br> + * <code>RESULT_ERROR_NULL_PDU</code><br> + * For <code>RESULT_ERROR_GENERIC_FAILURE</code> the sentIntent may include + * the extra "errorCode" containing a radio technology specific value, + * generally only useful for troubleshooting.<br> + * The per-application based SMS control checks sentIntent. If sentIntent + * is NULL the caller will be checked against all unknown applicaitons, + * which cause smaller number of SMS to be sent in checking period. + * @param deliveryIntent if not NULL this <code>PendingIntent</code> is + * broadcast when the message is delivered to the recipient. The + * raw pdu of the status report is in the extended data ("pdu"). + * @param subId the subId id. + */ + void sendDataForSubscriberWithSelfPermissions(int subId, String callingPkg, in String destAddr, + in String scAddr, in int destPort, in byte[] data, in PendingIntent sentIntent, + in PendingIntent deliveryIntent); + + /** * Send an SMS. * * @param smsc the SMSC to send the message through, or NULL for the @@ -211,6 +239,34 @@ interface ISms { in PendingIntent deliveryIntent); /** + * Send an SMS. Internal use only. + * + * @param smsc the SMSC to send the message through, or NULL for the + * default SMSC + * @param text the body of the message to send + * @param sentIntent if not NULL this <code>PendingIntent</code> is + * broadcast when the message is sucessfully sent, or failed. + * The result code will be <code>Activity.RESULT_OK<code> for success, + * or one of these errors:<br> + * <code>RESULT_ERROR_GENERIC_FAILURE</code><br> + * <code>RESULT_ERROR_RADIO_OFF</code><br> + * <code>RESULT_ERROR_NULL_PDU</code><br> + * For <code>RESULT_ERROR_GENERIC_FAILURE</code> the sentIntent may include + * the extra "errorCode" containing a radio technology specific value, + * generally only useful for troubleshooting.<br> + * The per-application based SMS control checks sentIntent. If sentIntent + * is NULL the caller will be checked against all unknown applications, + * which cause smaller number of SMS to be sent in checking period. + * @param deliveryIntent if not NULL this <code>PendingIntent</code> is + * broadcast when the message is delivered to the recipient. The + * raw pdu of the status report is in the extended data ("pdu"). + * @param subId the subId on which the SMS has to be sent. + */ + void sendTextForSubscriberWithSelfPermissions(in int subId, String callingPkg, + in String destAddr, in String scAddr, in String text, in PendingIntent sentIntent, + in PendingIntent deliveryIntent); + + /** * Inject an SMS PDU into the android platform. * * @param pdu is the byte array of pdu to be injected into android application framework |