Home
last modified time | relevance | path

Searched refs:SmsCbMessage (Results 1 – 9 of 9) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmSmsCbTest.java22 import android.telephony.SmsCbMessage;
38 private static SmsCbMessage createFromPdu(byte[] pdu) { in createFromPdu()
51 SmsCbMessage msg = createFromPdu(pdu); in doTestGeographicalScopeValue()
58 SmsCbMessage msg = createFromPdu(null); in testCreateNullPdu()
64 SmsCbMessage msg = createFromPdu(pdu); in testCreateTooShortPdu()
87 SmsCbMessage.GEOGRAPHICAL_SCOPE_CELL_WIDE_IMMEDIATE); in testGetGeographicalScope()
88 doTestGeographicalScopeValue(pdu, (byte)0x40, SmsCbMessage.GEOGRAPHICAL_SCOPE_PLMN_WIDE); in testGetGeographicalScope()
89 doTestGeographicalScopeValue(pdu, (byte)0x80, SmsCbMessage.GEOGRAPHICAL_SCOPE_LA_WIDE); in testGetGeographicalScope()
90 doTestGeographicalScopeValue(pdu, (byte)0xC0, SmsCbMessage.GEOGRAPHICAL_SCOPE_CELL_WIDE); in testGetGeographicalScope()
117 SmsCbMessage msg = createFromPdu(pdu); in testGetGeographicalScopeUmts()
[all …]
/frameworks/opt/telephony/src/java/android/telephony/
DSmsCbMessage.java64 public class SmsCbMessage implements Parcelable { class
144 public SmsCbMessage(int messageFormat, int geographicalScope, int serialNumber, in SmsCbMessage() method in SmsCbMessage
160 public SmsCbMessage(Parcel in) { in SmsCbMessage() method in SmsCbMessage
219 public static final Parcelable.Creator<SmsCbMessage> CREATOR
220 = new Parcelable.Creator<SmsCbMessage>() {
222 public SmsCbMessage createFromParcel(Parcel in) {
223 return new SmsCbMessage(in);
227 public SmsCbMessage[] newArray(int size) {
228 return new SmsCbMessage[size];
DCellBroadcastMessage.java47 private final SmsCbMessage mSmsCbMessage;
77 public CellBroadcastMessage(SmsCbMessage message) { in CellBroadcastMessage()
83 private CellBroadcastMessage(SmsCbMessage message, long deliveryTime, boolean isRead) { in CellBroadcastMessage()
90 mSmsCbMessage = new SmsCbMessage(in); in CellBroadcastMessage()
236 SmsCbMessage msg = new SmsCbMessage(format, geoScope, serialNum, location, category, in createFromCursor()
253 SmsCbMessage msg = mSmsCbMessage; in getContentValues()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmSmsCbMessage.java20 import android.telephony.SmsCbMessage;
62 static SmsCbMessage createSmsCbMessage(SmsCbHeader header, SmsCbLocation location, in createSmsCbMessage()
65 return new SmsCbMessage(SmsCbMessage.MESSAGE_FORMAT_3GPP, in createSmsCbMessage()
68 null, "ETWS", SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY, in createSmsCbMessage()
78 int priority = header.isEmergencyMessage() ? SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY in createSmsCbMessage()
79 : SmsCbMessage.MESSAGE_PRIORITY_NORMAL; in createSmsCbMessage()
81 return new SmsCbMessage(SmsCbMessage.MESSAGE_FORMAT_3GPP, in createSmsCbMessage()
95 public static SmsCbMessage createSmsCbMessage(SmsCbLocation location, byte[][] pdus) in createSmsCbMessage()
DGsmCellBroadcastHandler.java25 import android.telephony.SmsCbMessage;
78 SmsCbMessage cbMessage = handleGsmBroadcastSms((AsyncResult) message.obj); in handleSmsMessage()
91 private SmsCbMessage handleGsmBroadcastSms(AsyncResult ar) { in handleGsmBroadcastSms()
127 case SmsCbMessage.GEOGRAPHICAL_SCOPE_LA_WIDE: in handleGsmBroadcastSms()
131 case SmsCbMessage.GEOGRAPHICAL_SCOPE_CELL_WIDE: in handleGsmBroadcastSms()
132 case SmsCbMessage.GEOGRAPHICAL_SCOPE_CELL_WIDE_IMMEDIATE: in handleGsmBroadcastSms()
136 case SmsCbMessage.GEOGRAPHICAL_SCOPE_PLMN_WIDE: in handleGsmBroadcastSms()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCellBroadcastHandler.java28 import android.telephony.SmsCbMessage;
64 if (message.obj instanceof SmsCbMessage) { in handleSmsMessage()
65 handleBroadcastSms((SmsCbMessage) message.obj); in handleSmsMessage()
77 protected void handleBroadcastSms(SmsCbMessage message) { in handleBroadcastSms()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaSmsCbTest.java21 import android.telephony.SmsCbMessage;
346 private static void verifyCbValues(SmsCbMessage cbMessage) { in verifyCbValues()
347 assertEquals(SmsCbMessage.MESSAGE_FORMAT_3GPP2, cbMessage.getMessageFormat()); in verifyCbValues()
348 assertEquals(SmsCbMessage.GEOGRAPHICAL_SCOPE_PLMN_WIDE, cbMessage.getGeographicalScope()); in verifyCbValues()
356 SmsCbMessage cbMessage = msg.parseBroadcastSms(); in doTestNonEmergencyBroadcast()
360 assertEquals(SmsCbMessage.MESSAGE_PRIORITY_NORMAL, cbMessage.getMessagePriority()); in doTestNonEmergencyBroadcast()
384 SmsCbMessage cbMessage = msg.parseBroadcastSms(); in testNonEmergencyBroadcastIs91Extended()
388 assertEquals(SmsCbMessage.MESSAGE_PRIORITY_NORMAL, cbMessage.getMessagePriority()); in testNonEmergencyBroadcastIs91Extended()
401 SmsCbMessage cbMessage = msg.parseBroadcastSms(); in doTestCmasBroadcast()
405 assertEquals(SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY, cbMessage.getMessagePriority()); in doTestCmasBroadcast()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaInboundSmsHandler.java25 import android.telephony.SmsCbMessage;
126 SmsCbMessage cbMessage = sms.parseBroadcastSms(); in dispatchMessageRadioSpecific()
DSmsMessage.java23 import android.telephony.SmsCbMessage;
793 SmsCbMessage parseBroadcastSms() { in parseBroadcastSms()
807 return new SmsCbMessage(SmsCbMessage.MESSAGE_FORMAT_3GPP2, in parseBroadcastSms()
808 SmsCbMessage.GEOGRAPHICAL_SCOPE_PLMN_WIDE, bData.messageId, location, in parseBroadcastSms()