Lines Matching defs:pdu

19 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_DELIVERY_IND;
20 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_NOTIFICATION_IND;
21 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_READ_ORIG_IND;
51 import com.google.android.mms.pdu.DeliveryInd;
52 import com.google.android.mms.pdu.GenericPdu;
53 import com.google.android.mms.pdu.NotificationInd;
54 import com.google.android.mms.pdu.PduHeaders;
55 import com.google.android.mms.pdu.PduParser;
56 import com.google.android.mms.pdu.PduPersister;
57 import com.google.android.mms.pdu.ReadOrigInd;
116 * @param pdu The WAP PDU, made up of one or more SMS PDUs
121 public int dispatchWapPdu(byte[] pdu, BroadcastReceiver receiver, InboundSmsHandler handler) {
123 if (DBG) Rlog.d(TAG, "Rx: " + IccUtils.bytesToHexString(pdu));
127 int transactionId = pdu[index++] & 0xFF;
128 int pduType = pdu[index++] & 0xFF;
138 transactionId = pdu[index++] & 0xff;
139 pduType = pdu[index++] & 0xff;
156 WspTypeDecoder pduDecoder = new WspTypeDecoder(pdu);
195 System.arraycopy(pdu, headerStartIndex, header, 0, header.length);
200 intentData = pdu;
203 intentData = new byte[pdu.length - dataIndex];
204 System.arraycopy(pdu, dataIndex, intentData, 0, intentData.length);
332 final GenericPdu pdu =
334 if (pdu == null) {
338 final int type = pdu.getMessageType();
343 final long threadId = getDeliveryOrReadReportThreadId(mContext, pdu);
351 pdu,
375 final NotificationInd nInd = (NotificationInd) pdu;
395 pdu,
423 private static long getDeliveryOrReadReportThreadId(Context context, GenericPdu pdu) {
425 if (pdu instanceof DeliveryInd) {
426 messageId = new String(((DeliveryInd) pdu).getMessageId());
427 } else if (pdu instanceof ReadOrigInd) {
428 messageId = new String(((ReadOrigInd) pdu).getMessageId());
431 + pdu.getClass().getCanonicalName());