/frameworks/base/core/java/com/google/android/mms/pdu/ |
PduContentTypes.java | 18 package com.google.android.mms.pdu;
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
SmsCbHeader.java | 28 * GSM pdu format, as defined in 3gpp TS 23.041, section 9.4.1 33 * UMTS pdu format, as defined in 3gpp TS 23.041, section 9.4.2 38 * GSM pdu format, as defined in 3gpp TS 23.041, section 9.4.1.3 79 public SmsCbHeader(byte[] pdu) throws IllegalArgumentException { 80 if (pdu == null || pdu.length < PDU_HEADER_LENGTH) { 81 throw new IllegalArgumentException("Illegal PDU"); 84 if (pdu.length <= PDU_LENGTH_ETWS) { 89 messageIdentifier = ((pdu[2] & 0xff) << 8) | (pdu[3] & 0xff) [all...] |
SmsMessage.java | 98 * Create an SmsMessage from a raw PDU. 100 public static SmsMessage createFromPdu(byte[] pdu) { 103 msg.parsePdu(pdu); 106 Log.e(LOG_TAG, "SMS PDU parsing failed: ", ex); 121 * +CMT unsolicited response (PDU mode, of course) 122 * +CMT: [<alpha>],<length><CR><LF><pdu> 134 Log.e(LOG_TAG, "SMS PDU parsing failed: ", ex); 146 Log.e(LOG_TAG, "CDS SMS PDU parsing failed: ", ex); 182 byte[] pdu = new byte[size]; 183 System.arraycopy(data, 1, pdu, 0, size) 496 byte pdu[]; field in class:SmsMessage.PduParser [all...] |
/external/bluetooth/bluez/attrib/ |
att.c | 46 return "Attribute PDU was invalid"; 113 uint8_t *pdu, int len) 115 const uint16_t min_len = sizeof(pdu[0]) + sizeof(start) + sizeof(end); 131 pdu[0] = ATT_OP_READ_BY_GROUP_REQ; 132 att_put_u16(start, &pdu[1]); 133 att_put_u16(end, &pdu[3]); 135 att_put_uuid(*uuid, &pdu[5]); 140 uint16_t dec_read_by_grp_req(const uint8_t *pdu, int len, uint16_t *start, 143 const uint16_t min_len = sizeof(pdu[0]) + sizeof(*start) + sizeof(*end); 145 if (pdu == NULL [all...] |
att.h | 77 /* Error codes for Error response PDU */ 254 uint8_t *pdu, int len); 255 uint16_t dec_read_by_grp_req(const uint8_t *pdu, int len, uint16_t *start, 257 uint16_t enc_read_by_grp_resp(struct att_data_list *list, uint8_t *pdu, int len); 259 const uint8_t *value, int vlen, uint8_t *pdu, int len); 260 uint16_t dec_find_by_type_req(const uint8_t *pdu, int len, uint16_t *start, 262 uint16_t enc_find_by_type_resp(GSList *ranges, uint8_t *pdu, int len); 263 GSList *dec_find_by_type_resp(const uint8_t *pdu, int len); 264 struct att_data_list *dec_read_by_grp_resp(const uint8_t *pdu, int len); 266 uint8_t *pdu, int len) [all...] |
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
IDataVerify.aidl | 26 boolean verifyData(in byte[] pdu);
|
DataVerify.java | 66 * Compare pdu and received pdu 68 public synchronized boolean verifyData(byte[] pdu) { 82 Log.v(LOG_TAG, "verify pdu"); 83 boolean ret = arrayCompare(pdu, mLastReceivedPdu); 107 public static void SetLastReceivedPdu(byte[] pdu) { 108 mLastReceivedPdu = pdu;
|
/frameworks/base/core/java/com/google/android/mms/util/ |
PduCacheEntry.java | 20 import com.google.android.mms.pdu.GenericPdu; 27 public PduCacheEntry(GenericPdu pdu, int msgBox, long threadId) { 28 mPdu = pdu;
|
/external/qemu/telephony/ |
sms.h | 73 extern int smspdu_to_hex( SmsPDU pdu, char* hex, int hexsize ); 75 /* free a given SMS PDU */ 76 extern void smspdu_free( SmsPDU pdu ); 85 extern SmsPduType smspdu_get_type( SmsPDU pdu ); 87 /* retrieve the sender address of a SMS-DELIVER pdu, returns -1 otherwise */ 88 extern int smspdu_get_sender_address( SmsPDU pdu, SmsAddress address ); 90 /* retrieve the service center timestamp of a SMS-DELIVER pdu, return -1 otherwise */ 91 extern int smspdu_get_sc_timestamp( SmsPDU pdu, SmsTimeStamp timestamp ); 93 /* retrieve the receiver address of a SMS-SUBMIT pdu, return -1 otherwise */ 94 extern int smspdu_get_receiver_address( SmsPDU pdu, SmsAddress address ) [all...] |
remote_call.h | 48 extern int remote_call_sms( const char* number, int from_port, SmsPDU pdu );
|
/frameworks/base/telephony/java/android/telephony/ |
SmsCbMessage.java | 56 * Create an instance of this class from a received PDU 58 * @param pdu PDU bytes 59 * @return An instance of this class, or null if invalid pdu 61 public static SmsCbMessage createFromPdu(byte[] pdu) { 63 return new SmsCbMessage(pdu); 65 Log.w(LOG_TAG, "Failed parsing SMS-CB pdu", e); 104 private SmsCbMessage(byte[] pdu) throws IllegalArgumentException { 105 mHeader = new SmsCbHeader(pdu); 109 if (pdu.length >= SmsCbHeader.PDU_LENGTH_ETWS) [all...] |
/packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/ |
DialogSmsDisplayTests.java | 82 byte[] pdu = new byte[88]; 83 pdu[0] = (byte) ((serialNumber >> 8) & 0xff); 84 pdu[1] = (byte) (serialNumber & 0xff); 85 pdu[2] = (byte) ((messageId >> 8) & 0xff); 86 pdu[3] = (byte) (messageId & 0xff); 87 pdu[4] = (byte) (dcs & 0xff); 88 pdu[5] = 0x11; // single page message 93 System.arraycopy(encodedString, 0, pdu, 6, encodedString.length); 97 System.arraycopy(encodedString, 1, pdu, 6, encodedString.length-1); 99 return pdu; [all...] |
/packages/apps/Mms/src/com/android/mms/transaction/ |
PushReceiver.java | 21 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_DELIVERY_IND; 22 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_NOTIFICATION_IND; 23 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_READ_ORIG_IND; 28 import com.google.android.mms.pdu.DeliveryInd; 29 import com.google.android.mms.pdu.GenericPdu; 30 import com.google.android.mms.pdu.NotificationInd; 31 import com.google.android.mms.pdu.PduHeaders; 32 import com.google.android.mms.pdu.PduParser; 33 import com.google.android.mms.pdu.PduPersister; 34 import com.google.android.mms.pdu.ReadOrigInd 73 GenericPdu pdu = parser.parse(); local [all...] |
NotificationTransaction.java | 23 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_RETRIEVE_CONF; 24 import static com.google.android.mms.pdu.PduHeaders.STATUS_DEFERRED; 25 import static com.google.android.mms.pdu.PduHeaders.STATUS_RETRIEVED; 26 import static com.google.android.mms.pdu.PduHeaders.STATUS_UNRECOGNIZED; 33 import com.google.android.mms.pdu.GenericPdu; 34 import com.google.android.mms.pdu.NotificationInd; 35 import com.google.android.mms.pdu.NotifyRespInd; 36 import com.google.android.mms.pdu.PduComposer; 37 import com.google.android.mms.pdu.PduHeaders; 38 import com.google.android.mms.pdu.PduParser 166 GenericPdu pdu = new PduParser(retrieveConfData).parse(); local [all...] |
MmsMessageSender.java | 24 import com.google.android.mms.pdu.EncodedStringValue; 25 import com.google.android.mms.pdu.GenericPdu; 26 import com.google.android.mms.pdu.PduHeaders; 27 import com.google.android.mms.pdu.PduPersister; 28 import com.google.android.mms.pdu.ReadRecInd; 29 import com.google.android.mms.pdu.SendReq; 67 GenericPdu pdu = p.load(mMessageUri); local 69 if (pdu.getMessageType() != PduHeaders.MESSAGE_TYPE_SEND_REQ) { 70 throw new MmsException("Invalid message: " + pdu.getMessageType()); 73 SendReq sendReq = (SendReq) pdu; [all...] |
Transaction.java | 113 * A common method to send a PDU to MMSC. 115 * @param pdu A byte array which contains the data of the PDU. 120 * @throws MmsException if pdu is null. 122 protected byte[] sendPdu(byte[] pdu) throws IOException, MmsException { 123 return sendPdu(SendingProgressTokenManager.NO_TOKEN, pdu, 128 * A common method to send a PDU to MMSC. 130 * @param pdu A byte array which contains the data of the PDU. 136 * @throws MmsException if pdu is null [all...] |
ReadRecTransaction.java | 21 import com.google.android.mms.pdu.PduComposer; 22 import com.google.android.mms.pdu.PduPersister; 23 import com.google.android.mms.pdu.ReadRecInd; 24 import com.google.android.mms.pdu.EncodedStringValue;
|
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
SimSmsTest.java | 42 byte[] pdu = null; 47 pdu = data.getBytes(); 58 assertNotNull(pdu);
|
GsmSmsTest.java | 32 String pdu = "07914151551512f2040B916105551511f100006060605130308A04D4F29C0E"; local 33 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); 38 pdu = "07914151551512f2040B916105551511f100036060924180008A0DA" 40 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); 48 String pdu = "07914140279510F6440A8111110301003BF56080207130138A8C0B05040B8423F" local 54 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); 67 pdu = "07914140279510F6440A8111110301003BF56080207130238A3B0B05040B8423F" 70 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); 86 String pdu = "07912160130300F4040B914151245584F600087010807121352B1021220" local 88 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); 97 String pdu = "07916163838408F6440B816105224431F700007060217175830AA0050003" local 120 String pdu = "07912160130310F20404D0110041006060627171118A0120"; local 153 String pdu = "07912180958750F84401800500C87020026195702B06040102000200"; local 170 String pdu = "07914151551512f204038105f300007011103164638a28e6f71b50c687db" + local 201 String pdu = "07914151551512f2040B916105551511f100006080615131728A44D4F29C0E2" + local [all...] |
/cts/tests/tests/telephony/src/android/telephony/cts/ |
SmsMessageTest.java | 182 String pdu = "07916164260220F0040B914151245584F600006060605130308A04D4F29C0E"; local 183 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); 187 assertEquals(TPLAYER_LENGTH_FOR_PDU, SmsMessage.getTPLayerLengthForPDU(pdu)); 193 assertEquals(pdu, toHexString(sms.getPdu())); 208 // Test create from null Pdu 212 //Test create from long Pdu 213 pdu = "07912160130310F2040B915121927786F300036060924180008A0DA" 215 sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); 227 pdu = "07912160130300F4040B914151245584" 229 sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); 278 String pdu = "07912160130310F20404D0110041006060627171118A0120"; local 326 String pdu = "07914140279510F6440A8111110301003BF56080207130138A8C0B05040B8423F" local 432 String pdu = "07914151551512f204038105f300007011103164638a28e6f71b50c687db" + local [all...] |
/external/blktrace/btt/ |
mmap.c | 51 void **pdu) 73 *pdu = malloc(tp->pdu_len); 74 memcpy(*pdu, t+1, tp->pdu_len); 76 *pdu = NULL; 130 int next_trace(struct blk_io_trace *t, void **pdu) 141 this_len = convert_to_cpu(next_t, t, pdu);
|
/frameworks/base/telephony/java/android/telephony/gsm/ |
SmsManager.java | 25 * Manages SMS operations such as sending data, text, and pdu SMS messages. 70 * raw pdu of the status report is in the extended data ("pdu"). 121 * to the recipient. The raw pdu of the status report is in the 122 * extended data ("pdu"). 155 * raw pdu of the status report is in the extended data ("pdu"). 169 * Copy a raw SMS PDU to the SIM. 172 * @param pdu the raw PDU to stor [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
IccSmsInterfaceManagerProxy.java | 40 updateMessageOnIccEf(int index, int status, byte[] pdu) throws android.os.RemoteException { 41 return mIccSmsInterfaceManager.updateMessageOnIccEf(index, status, pdu); 44 public boolean copyMessageToIccEf(int status, byte[] pdu, 46 return mIccSmsInterfaceManager.copyMessageToIccEf(status, pdu, smsc);
|
/packages/apps/Mms/src/com/android/mms/util/ |
AddressUtils.java | 20 import com.google.android.mms.pdu.EncodedStringValue; 21 import com.google.android.mms.pdu.PduHeaders; 22 import com.google.android.mms.pdu.PduPersister;
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
CdmaSMSDispatcher.java | 90 fillIn.putExtra("pdu", sms.getPdu()); 189 * Processes inbound messages that are in the WAP-WDP PDU format. See 190 * wap-259-wdp-20010614-a section 6.5 for details on the WAP-WDP PDU format. 193 * @param pdu The WAP-WDP PDU segment 198 protected int processCdmaWapPdu(byte[] pdu, int referenceNumber, String address) { 201 int msgType = (0xFF & pdu[index++]); 206 int totalSegments = (0xFF & pdu[index++]); // >= 1 207 int segment = (0xFF & pdu[index++]); // >= 0 219 sourcePort = (0xFF & pdu[index++]) << 8 249 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( local 258 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( local [all...] |