am 140ae7bd: Telephony: SMS over IMS

* commit '140ae7bdadd13d3b849385636e1811438e62ed6a':
  Telephony: SMS over IMS
This commit is contained in:
Rika Brooks
2013-10-10 16:38:46 -07:00
committed by Android Git Automerger
3 changed files with 31 additions and 0 deletions

View File

@@ -215,4 +215,26 @@ interface ISms {
* Requires system permission.
*/
void setPremiumSmsPermission(String packageName, int permission);
/**
* SMS over IMS is supported if IMS is registered and SMS is supported
* on IMS.
*
* @return true if SMS over IMS is supported, false otherwise
*
* @see #getImsSmsFormat()
*/
boolean isImsSmsSupported();
/**
* Gets SMS format supported on IMS. SMS over IMS format is
* either 3GPP or 3GPP2.
*
* @return android.telephony.SmsMessage.FORMAT_3GPP,
* android.telephony.SmsMessage.FORMAT_3GPP2
* or android.telephony.SmsMessage.FORMAT_UNKNOWN
*
* @see #isImsSmsSupported()
*/
String getImsSmsFormat();
}

View File

@@ -263,6 +263,8 @@ cat include/telephony/ril.h | \
int RIL_REQUEST_GET_CELL_INFO_LIST = 109;
int RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE = 110;
int RIL_REQUEST_SET_INITIAL_ATTACH_APN = 111;
int RIL_REQUEST_IMS_REGISTRATION_STATE = 112;
int RIL_REQUEST_IMS_SEND_SMS = 113;
int RIL_UNSOL_RESPONSE_BASE = 1000;
int RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED = 1000;
int RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED = 1001;
@@ -301,4 +303,5 @@ cat include/telephony/ril.h | \
int RIL_UNSOL_RIL_CONNECTED = 1034;
int RIL_UNSOL_VOICE_RADIO_TECH_CHANGED = 1035;
int RIL_UNSOL_CELL_INFO_LIST = 1036;
int RIL_UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED = 1037;
}

View File

@@ -61,6 +61,12 @@ public class SmsConstants {
UNKNOWN, CLASS_0, CLASS_1, CLASS_2, CLASS_3;
}
/**
* Indicates unknown format SMS message.
* @hide pending API council approval
*/
public static final String FORMAT_UNKNOWN = "unknown";
/**
* Indicates a 3GPP format SMS message.
* @hide pending API council approval