/cts/tests/tests/telephony/src/android/telephony/gsm/cts/ |
SmsMessage_SubmitPduTest.java | 19 import android.telephony.gsm.SmsMessage; 26 SmsMessage.SubmitPdu sp = new SmsMessage.SubmitPdu();
|
SmsMessage_MessageClassTest.java | 20 import android.telephony.gsm.SmsMessage;
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
SmsMessage_MessageClassTest.java | 20 import android.telephony.SmsMessage;
|
SmsMessage_SubmitPduTest.java | 19 import android.telephony.SmsMessage; 24 // SmsMessage.SubmitPdu constructor is not public, so no need to test its methods
|
SmsMessageTest.java | 22 import android.telephony.SmsMessage; 83 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); 87 assertEquals(TPLAYER_LENGTH_FOR_PDU, SmsMessage.getTPLayerLengthForPDU(pdu)); 88 int[] result = SmsMessage.calculateLength(sms.getMessageBody(), true); 92 assertEquals(SmsMessage.ENCODING_7BIT, result[3]); 102 assertEquals(SmsMessage.MessageClass.UNKNOWN, sms.getMessageClass()); 109 sms = SmsMessage.createFromPdu(null); 115 sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); 120 result = SmsMessage.calculateLength(msgBody, false) [all...] |
SmsManagerTest.java | 29 import android.telephony.SmsMessage; 364 SmsMessage[] message = new SmsMessage[obj.length]; 366 message[i] = SmsMessage.createFromPdu((byte[]) obj[i]); 369 for (SmsMessage currentMessage : message) {
|
/frameworks/opt/telephony/src/java/android/telephony/ |
SmsMessage.java | 38 public class SmsMessage { 39 private static final String LOG_TAG = "SmsMessage"; 92 /** Contains actual SmsMessage. Only public for debugging and for framework layer. 121 private SmsMessage(SmsMessageBase smb) { 126 * Create an SmsMessage from a raw PDU. 136 public static SmsMessage createFromPdu(byte[] pdu) { 144 * Create an SmsMessage from a raw PDU with the specified message format. The 153 public static SmsMessage createFromPdu(byte[] pdu, String format) { 157 wrappedMessage = com.android.internal.telephony.cdma.SmsMessage.createFromPdu(pdu); 159 wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.createFromPdu(pdu) [all...] |
SmsManager.java | 110 return SmsMessage.fragmentText(text); 340 * @return <code>ArrayList</code> of <code>SmsMessage</code> objects 344 public static ArrayList<SmsMessage> getAllMessagesFromIcc() { 496 * Create a list of <code>SmsMessage</code>s from a list of RawSmsData 501 * @return <code>ArrayList</code> of <code>SmsMessage</code> objects. 503 private static ArrayList<SmsMessage> createMessageListFromRawRecords(List<SmsRawData> records) { 504 ArrayList<SmsMessage> messages = new ArrayList<SmsMessage>(); 511 SmsMessage sms = SmsMessage.createFromEfRecord(i+1, data.getBytes()) [all...] |
/frameworks/opt/telephony/src/java/android/telephony/gsm/ |
SmsMessage.java | 33 * @deprecated Replaced by android.telephony.SmsMessage that supports both GSM and CDMA. 36 public class SmsMessage { 40 * @deprecated Use android.telephony.SmsMessage. 48 * @deprecated Use android.telephony.SmsMessage. 53 * @deprecated Use android.telephony.SmsMessage. 58 * @deprecated Use android.telephony.SmsMessage. 63 * @deprecated Use android.telephony.SmsMessage. 68 * @deprecated Use android.telephony.SmsMessage. 77 * @deprecated Use android.telephony.SmsMessage. 83 * @deprecated Use android.telephony.SmsMessage [all...] |
SmsManager.java | 216 * @return <code>ArrayList</code> of <code>SmsMessage</code> objects 221 public final ArrayList<android.telephony.SmsMessage> getAllMessagesFromSim() {
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
SMSDispatcherTest.java | 21 import com.android.internal.telephony.gsm.SmsMessage; 37 SmsMessage sms; 50 sms = SmsMessage.newFromCMT(lines); 67 SmsMessage sms; 77 sms = SmsMessage.newFromCMT(lines); 94 SmsMessage sms; 104 sms = SmsMessage.createFromEfRecord(1, data);
|
GsmSmsTest.java | 23 import com.android.internal.telephony.gsm.SmsMessage; 33 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); 40 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); 54 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); 70 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); 88 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); 103 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)) [all...] |
SmsMessageBodyTest.java | 19 import android.telephony.SmsMessage; 555 int[] values = android.telephony.gsm.SmsMessage.calculateLength(msgBody, use7bitOnly); 563 values = android.telephony.SmsMessage.calculateLength(msgBody, use7bitOnly); 571 com.android.internal.telephony.gsm.SmsMessage.calculateLength(msgBody, use7bitOnly); 585 int[] values = android.telephony.SmsMessage.calculateLength(msgBody, use7bitOnly); 593 com.android.internal.telephony.cdma.SmsMessage.calculateLength(msgBody, use7bitOnly);
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
MessageStatusService.java | 29 import android.telephony.SmsMessage; 59 SmsMessage message = updateMessageStatus(this, messageUri, pdu, format); 68 private SmsMessage updateMessageStatus(Context context, Uri messageUri, byte[] pdu, 70 SmsMessage message = SmsMessage.createFromPdu(pdu, format);
|
SmsReceiverService.java | 49 import android.telephony.SmsMessage; 369 SmsMessage[] msgs = Intents.getMessagesFromIntent(intent); 374 SmsMessage sms = msgs[0]; 463 private Uri insertMessage(Context context, SmsMessage[] msgs, int error, String format) { 465 SmsMessage sms = msgs[0]; 467 if (sms.getMessageClass() == SmsMessage.MessageClass.CLASS_0) { 486 private Uri replaceMessage(Context context, SmsMessage[] msgs, int error) { 487 SmsMessage sms = msgs[0]; 545 private Uri storeMessage(Context context, SmsMessage[] msgs, int error) { 546 SmsMessage sms = msgs[0] [all...] |
/packages/apps/Mms/tests/SmsAutoReply/src/com/android/smsautoreply/ |
AutoReplyActivity.java | 28 import android.telephony.SmsMessage; 66 SmsMessage message = SmsMessage.createFromPdu((byte[]) pdus[i]); 75 private void logMessage(SmsMessage msg) { 94 private void replyMessage(Context context, SmsMessage msg) {
|
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
SmsMessageReceiver.java | 26 import android.telephony.SmsMessage; 41 SmsMessage message = SmsMessage.createFromPdu((byte[]) pdus[i]);
|
/packages/apps/BasicSmsReceiver/src/com/android/basicsmsreceiver/ |
SmsMessageReceiver.java | 26 import android.telephony.SmsMessage; 43 SmsMessage message = SmsMessage.createFromPdu((byte[]) pdus[i]);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
UsimDataDownloadTest.java | 111 SmsMessage message = SmsMessage.createFromPdu(SMS_PP_MESSAGE_3_1_1); 131 SmsMessage message = SmsMessage.createFromPdu(SMS_PP_MESSAGE_3_1_5);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
GsmSMSDispatcher.java | 131 SmsMessage sms = SmsMessage.newFromCDS(pduString); 169 SmsMessage sms = (SmsMessage) smsb; 242 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( 256 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( 270 return SmsMessage.calculateLength(messageBody, use7bitOnly); 278 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu(scAddress, destinationAddress [all...] |
SmsMessage.java | 48 public class SmsMessage extends SmsMessageBase { 49 static final String LOG_TAG = "SmsMessage"; 91 * Create an SmsMessage from a raw PDU. 93 public static SmsMessage createFromPdu(byte[] pdu) { 95 SmsMessage msg = new SmsMessage(); 121 public static SmsMessage newFromCMT(String[] lines) { 123 SmsMessage msg = new SmsMessage(); 133 public static SmsMessage newFromCDS(String line) [all...] |
UsimDataDownloadHandler.java | 63 * @param smsMessage the message to process 66 public int startDataDownload(SmsMessage smsMessage) { 67 if (sendMessage(obtainMessage(EVENT_START_DATA_DOWNLOAD, smsMessage))) { 75 private void handleDataDownload(SmsMessage smsMessage) { 76 int dcs = smsMessage.getDataCodingScheme(); 77 int pid = smsMessage.getProtocolIdentifier(); 78 byte[] pdu = smsMessage.getPdu(); // includes SC address 246 handleDataDownload((SmsMessage) msg.obj) [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
ClassZeroActivity.java | 36 import android.telephony.SmsMessage; 63 private SmsMessage mMessage = null; 109 mMessage = SmsMessage.createFromPdu(pdu, format); 184 private ContentValues extractContentValues(SmsMessage sms) { 205 private Uri replaceMessage(SmsMessage sms) { 236 private Uri storeMessage(SmsMessage sms) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
CdmaSMSDispatcher.java | 87 return android.telephony.SmsMessage.FORMAT_3GPP2; 90 private void handleCdmaStatusReport(SmsMessage sms) { 99 fillIn.putExtra("format", android.telephony.SmsMessage.FORMAT_3GPP2); 114 private void handleServiceCategoryProgramData(SmsMessage sms) { 149 SmsMessage sms = (SmsMessage) smsb; 290 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( 299 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/ |
CdmaSmsCbTest.java | 52 * bearer data and then convert it to an SmsMessage. 111 * Write the bearer data array to the parcel, then return a new SmsMessage from the parcel. 114 * @return the new SmsMessage created from the parcel 116 private static SmsMessage createMessageFromParcel(Parcel p, byte[] bearerData) { 122 SmsMessage message = SmsMessage.newFromParcel(p); 128 * Create a parcel for an incoming CMAS broadcast, then return a new SmsMessage created 140 * @return the newly created SmsMessage object 142 private static SmsMessage createCmasSmsMessage(int serviceCategory, int messageId, int priority, 180 * Create a parcel for an incoming CDMA cell broadcast, then return a new SmsMessage create [all...] |