Home
last modified time | relevance | path

Searched refs:pdu (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmSmsCbTest.java38 private static SmsCbMessage createFromPdu(byte[] pdu) { in createFromPdu() argument
40 SmsCbHeader header = new SmsCbHeader(pdu); in createFromPdu()
42 pdus[0] = pdu; in createFromPdu()
49 private static void doTestGeographicalScopeValue(byte[] pdu, byte b, int expectedGs) { in doTestGeographicalScopeValue() argument
50 pdu[0] = b; in doTestGeographicalScopeValue()
51 SmsCbMessage msg = createFromPdu(pdu); in doTestGeographicalScopeValue()
63 byte[] pdu = new byte[4]; in testCreateTooShortPdu()
64 SmsCbMessage msg = createFromPdu(pdu); in testCreateTooShortPdu()
70 byte[] pdu = { in testGetGeographicalScope()
86 doTestGeographicalScopeValue(pdu, (byte)0x00, in testGetGeographicalScope()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DSmsCbHeader.java93 public SmsCbHeader(byte[] pdu) throws IllegalArgumentException { in SmsCbHeader() argument
94 if (pdu == null || pdu.length < PDU_HEADER_LENGTH) { in SmsCbHeader()
98 if (pdu.length <= PDU_LENGTH_GSM) { in SmsCbHeader()
103 mGeographicalScope = (pdu[0] & 0xc0) >>> 6; in SmsCbHeader()
104 mSerialNumber = ((pdu[0] & 0xff) << 8) | (pdu[1] & 0xff); in SmsCbHeader()
105 mMessageIdentifier = ((pdu[2] & 0xff) << 8) | (pdu[3] & 0xff); in SmsCbHeader()
106 if (isEtwsMessage() && pdu.length <= PDU_LENGTH_ETWS) { in SmsCbHeader()
111 boolean emergencyUserAlert = (pdu[4] & 0x1) != 0; in SmsCbHeader()
112 boolean activatePopup = (pdu[5] & 0x80) != 0; in SmsCbHeader()
113 int warningType = (pdu[4] & 0xfe) >>> 1; in SmsCbHeader()
[all …]
DGsmSmsCbMessage.java73 for (byte[] pdu : pdus) { in createSmsCbMessage()
74 Pair<String, String> p = parseBody(header, pdu); in createSmsCbMessage()
110 private static Pair<String, String> parseBody(SmsCbHeader header, byte[] pdu) { in parseBody() argument
186 int nrPages = pdu[SmsCbHeader.PDU_HEADER_LENGTH]; in parseBody()
188 if (pdu.length < SmsCbHeader.PDU_HEADER_LENGTH + 1 + (PDU_BODY_PAGE_LENGTH + 1) in parseBody()
190 throw new IllegalArgumentException("Pdu length " + pdu.length + " does not match " in parseBody()
200 int length = pdu[offset + PDU_BODY_PAGE_LENGTH]; in parseBody()
207 Pair<String, String> p = unpackBody(pdu, encoding, offset, length, in parseBody()
216 int length = pdu.length - offset; in parseBody()
218 return unpackBody(pdu, encoding, offset, length, hasLanguageIndicator, language); in parseBody()
[all …]
DGsmSMSDispatcher.java154 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( in sendData() local
156 if (pdu != null) { in sendData()
157 HashMap map = getSmsTrackerMap(destAddr, scAddr, destPort, data, pdu); in sendData()
180 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( in sendText() local
182 if (pdu != null) { in sendText()
183 HashMap map = getSmsTrackerMap(destAddr, scAddr, text, pdu); in sendText()
203 protected void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { in injectSmsPdu() argument
221 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu(scAddress, destinationAddress, in getNewSubmitPduTracker() local
224 if (pdu != null) { in getNewSubmitPduTracker()
226 message, pdu); in getNewSubmitPduTracker()
[all …]
DUsimDataDownloadHandler.java116 byte[] pdu = smsMessage.getPdu(); // includes SC address in handleDataDownload()
118 int scAddressLength = pdu[0] & 0xff; in handleDataDownload()
120 int tpduLength = pdu.length - tpduIndex; in handleDataDownload()
148 System.arraycopy(pdu, 1, envelope, index, scAddressLength); in handleDataDownload()
158 System.arraycopy(pdu, tpduIndex, envelope, index, tpduLength); in handleDataDownload()
DSmsMessage.java98 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu() argument
101 msg.parsePdu(pdu); in createFromPdu()
183 byte[] pdu = new byte[size]; in createFromEfRecord()
184 System.arraycopy(data, 1, pdu, 0, size); in createFromEfRecord()
185 msg.parsePdu(pdu); in createFromEfRecord()
197 public static int getTPLayerLengthForPDU(String pdu) { in getTPLayerLengthForPDU() argument
198 int len = pdu.length() / 2; in getTPLayerLengthForPDU()
199 int smscLen = Integer.parseInt(pdu.substring(0, 2), 16); in getTPLayerLengthForPDU()
505 PduParser(byte[] pdu) { in PduParser() argument
506 mPdu = pdu; in PduParser()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DWapPushOverSms.java19 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;
48 import com.google.android.mms.pdu.DeliveryInd;
49 import com.google.android.mms.pdu.GenericPdu;
50 import com.google.android.mms.pdu.NotificationInd;
51 import com.google.android.mms.pdu.PduHeaders;
52 import com.google.android.mms.pdu.PduParser;
53 import com.google.android.mms.pdu.PduPersister;
54 import com.google.android.mms.pdu.ReadOrigInd;
[all …]
DUiccSmsController.java53 updateMessageOnIccEf(String callingPackage, int index, int status, byte[] pdu) in updateMessageOnIccEf() argument
56 index, status, pdu); in updateMessageOnIccEf()
61 byte[] pdu) throws android.os.RemoteException { in updateMessageOnIccEfForSubscriber() argument
64 return iccSmsIntMgr.updateMessageOnIccEf(callingPackage, index, status, pdu); in updateMessageOnIccEfForSubscriber()
72 public boolean copyMessageToIccEf(String callingPackage, int status, byte[] pdu, byte[] smsc) in copyMessageToIccEf() argument
75 pdu, smsc); in copyMessageToIccEf()
79 byte[] pdu, byte[] smsc) throws android.os.RemoteException { in copyMessageToIccEfForSubscriber() argument
82 return iccSmsIntMgr.copyMessageToIccEf(callingPackage, status, pdu, smsc); in copyMessageToIccEfForSubscriber()
319 public void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { in injectSmsPdu() argument
320 injectSmsPdu(SubscriptionManager.getDefaultSmsSubId(), pdu, format, receivedIntent); in injectSmsPdu() local
[all …]
DImsSMSDispatcher.java212 protected void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { in injectSmsPdu() argument
218 android.telephony.SmsMessage.createFromPdu(pdu, format); in injectSmsPdu()
292 SmsMessageBase.SubmitPduBase pdu = null; in sendRetrySms() local
300 pdu = com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu( in sendRetrySms()
304 pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu( in sendRetrySms()
314 pdu = com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu( in sendRetrySms()
319 pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu( in sendRetrySms()
326 map.put("smsc", pdu.encodedScAddress); in sendRetrySms()
327 map.put("pdu", pdu.encodedMessage); in sendRetrySms()
DIccSmsInterfaceManager.java195 updateMessageOnIccEf(String callingPackage, int index, int status, byte[] pdu) { in updateMessageOnIccEf() argument
198 "("+ Arrays.toString(pdu) + ")"); in updateMessageOnIccEf()
225 byte[] record = makeSmsRecordData(status, pdu); in updateMessageOnIccEf()
248 public boolean copyMessageToIccEf(String callingPackage, int status, byte[] pdu, byte[] smsc) { in copyMessageToIccEf() argument
251 "pdu=("+ Arrays.toString(pdu) + in copyMessageToIccEf()
265 IccUtils.bytesToHexString(pdu), response); in copyMessageToIccEf()
267 mPhone.mCi.writeSmsToRuim(status, IccUtils.bytesToHexString(pdu), in copyMessageToIccEf()
417 public void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { in injectSmsPdu() argument
420 log("pdu: " + pdu + in injectSmsPdu()
424 mDispatcher.injectSmsPdu(pdu, format, receivedIntent); in injectSmsPdu()
[all …]
DInboundSmsTracker.java74 InboundSmsTracker(byte[] pdu, long timestamp, int destPort, boolean is3gpp2, in InboundSmsTracker() argument
76 mPdu = pdu; in InboundSmsTracker()
105 public InboundSmsTracker(byte[] pdu, long timestamp, int destPort, boolean is3gpp2, in InboundSmsTracker() argument
108 mPdu = pdu; in InboundSmsTracker()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmSmsTest.java32 String pdu = "07914151551512f2040B916105551511f100006060605130308A04D4F29C0E"; in testAddressing() local
33 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing()
38 pdu = "07914151551512f2040B916105551511f100036060924180008A0DA" in testAddressing()
40 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing()
48 String pdu = "07914140279510F6440A8111110301003BF56080207130138A8C0B05040B8423F" in testUdh() local
54 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUdh()
67 pdu = "07914140279510F6440A8111110301003BF56080207130238A3B0B05040B8423F" in testUdh()
70 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUdh()
86 String pdu = "07912160130300F4040B914151245584F600087010807121352B1021220" in testUcs2() local
88 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUcs2()
[all …]
DSimSmsTest.java43 byte[] pdu = null; in testBasic()
48 pdu = data.getBytes(); in testBasic()
59 assertNotNull(pdu); in testBasic()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaInboundSmsHandler.java277 private int processCdmaWapPdu(byte[] pdu, int referenceNumber, String address, in processCdmaWapPdu() argument
281 int msgType = (0xFF & pdu[index++]); in processCdmaWapPdu()
286 int totalSegments = (0xFF & pdu[index++]); // >= 1 in processCdmaWapPdu()
287 int segment = (0xFF & pdu[index++]); // >= 0 in processCdmaWapPdu()
299 sourcePort = (0xFF & pdu[index++]) << 8; in processCdmaWapPdu()
300 sourcePort |= 0xFF & pdu[index++]; in processCdmaWapPdu()
301 destinationPort = (0xFF & pdu[index++]) << 8; in processCdmaWapPdu()
302 destinationPort |= 0xFF & pdu[index++]; in processCdmaWapPdu()
306 if (checkDuplicatePortOmadmWapPush(pdu, index)) { in processCdmaWapPdu()
318 byte[] userData = new byte[pdu.length - index]; in processCdmaWapPdu()
[all …]
DCdmaSMSDispatcher.java110 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( in sendData() local
112 HashMap map = getSmsTrackerMap(destAddr, scAddr, destPort, data, pdu); in sendData()
132 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( in sendText() local
134 if (pdu != null) { in sendText()
135 HashMap map = getSmsTrackerMap(destAddr, scAddr, text, pdu); in sendText()
155 protected void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { in injectSmsPdu() argument
215 byte[] pdu = (byte[]) map.get("pdu"); in sendSms()
238 byte[] pdu = (byte[]) tracker.mData.get("pdu"); in sendSmsByPstn()
253 mCi.sendCdmaSms(pdu, reply); in sendSmsByPstn()
255 mCi.sendImsCdmaSms(pdu, tracker.mImsRetry, tracker.mMessageRef, reply); in sendSmsByPstn()
DSmsMessage.java111 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu() argument
115 msg.parsePdu(pdu); in createFromPdu()
260 byte[] pdu = new byte[size]; in createFromEfRecord()
261 System.arraycopy(data, 2, pdu, 0, size); in createFromEfRecord()
264 msg.parsePduFromEfRecord(pdu); in createFromEfRecord()
276 public static int getTPLayerLengthForPDU(String pdu) { in getTPLayerLengthForPDU() argument
513 private void parsePdu(byte[] pdu) { in parsePdu() argument
514 ByteArrayInputStream bais = new ByteArrayInputStream(pdu); in parsePdu()
535 if (length > pdu.length) { in parsePdu()
538 + " > pdu len " + pdu.length); in parsePdu()
[all …]
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DDataVerify.java68 public synchronized boolean verifyData(byte[] pdu) { in verifyData() argument
83 boolean ret = arrayCompare(pdu, mLastReceivedPdu); in verifyData()
107 public static void SetLastReceivedPdu(byte[] pdu) { in SetLastReceivedPdu() argument
108 mLastReceivedPdu = pdu; in SetLastReceivedPdu()
DWapPushTest.java1519 byte[] pdu = createPDU(1); in testProcessMsg1()
1520 int headerLen = pdu.length - in testProcessMsg1()
1560 byte[] pdu = createPDU(1); in testProcessMsg2()
1561 int headerLen = pdu.length - (mGsmHeader.length + in testProcessMsg2()
1602 byte[] pdu = createPDU(1); in testProcessMsg3()
1603 int headerLen = pdu.length - in testProcessMsg3()
1672 byte[] pdu = createPDU(1); in testProcessMsg4()
1673 int headerLen = pdu.length - in testProcessMsg4()
1732 pdu = createPDU(1); in testProcessMsg4()
1761 byte[] pdu = createPDU(2); in testProcessMsg5()
[all …]
DClientTest.java118 EditText pdu = (EditText) findViewById(R.id.pdu); in onCreate()
129 HexDump.hexStringToByteArray(pdu.getText().toString())); in onCreate()
131 HexDump.hexStringToByteArray(pdu.getText().toString())); in onCreate()
/frameworks/opt/telephony/src/java/com/google/android/mms/util/
DPduCacheEntry.java20 import com.google.android.mms.pdu.GenericPdu;
27 public PduCacheEntry(GenericPdu pdu, int msgBox, long threadId) { in PduCacheEntry() argument
28 mPdu = pdu; in PduCacheEntry()
/frameworks/opt/telephony/src/java/android/telephony/gsm/
DSmsManager.java180 public final boolean copyMessageToSim(byte[] smsc, byte[] pdu, int status) { in copyMessageToSim() argument
181 return mSmsMgrProxy.copyMessageToIcc(smsc, pdu, status); in copyMessageToSim()
210 public final boolean updateMessageOnSim(int messageIndex, int newStatus, byte[] pdu) { in updateMessageOnSim() argument
211 return mSmsMgrProxy.updateMessageOnIcc(messageIndex, newStatus, pdu); in updateMessageOnSim()
DSmsMessage.java151 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu() argument
156 wrappedMessage = com.android.internal.telephony.cdma.SmsMessage.createFromPdu(pdu); in createFromPdu()
158 wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.createFromPdu(pdu); in createFromPdu()
170 public static int getTPLayerLengthForPDU(String pdu) { in getTPLayerLengthForPDU() argument
174 return com.android.internal.telephony.cdma.SmsMessage.getTPLayerLengthForPDU(pdu); in getTPLayerLengthForPDU()
176 return com.android.internal.telephony.gsm.SmsMessage.getTPLayerLengthForPDU(pdu); in getTPLayerLengthForPDU()
/frameworks/base/telephony/java/com/android/internal/telephony/
DISms.aidl64 in byte[] pdu); in updateMessageOnIccEf() argument
79 int messageIndex, int newStatus, in byte[] pdu); in updateMessageOnIccEfForSubscriber() argument
90 boolean copyMessageToIccEf(String callingPkg, int status, in byte[] pdu, in byte[] smsc); in copyMessageToIccEf() argument
103 in byte[] pdu, in byte[] smsc); in copyMessageToIccEfForSubscriber() argument
224 void injectSmsPdu(in byte[] pdu, String format, in PendingIntent receivedIntent); in injectSmsPdu() argument
/frameworks/opt/telephony/src/java/android/telephony/
DSmsMessage.java163 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu() argument
171 message = createFromPdu(pdu, format); in createFromPdu()
177 message = createFromPdu(pdu, format); in createFromPdu()
192 public static SmsMessage createFromPdu(byte[] pdu, String format) { in createFromPdu() argument
196 wrappedMessage = com.android.internal.telephony.cdma.SmsMessage.createFromPdu(pdu); in createFromPdu()
198 wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.createFromPdu(pdu); in createFromPdu()
264 public static int getTPLayerLengthForPDU(String pdu) { in getTPLayerLengthForPDU() argument
266 return com.android.internal.telephony.cdma.SmsMessage.getTPLayerLengthForPDU(pdu); in getTPLayerLengthForPDU()
268 return com.android.internal.telephony.gsm.SmsMessage.getTPLayerLengthForPDU(pdu); in getTPLayerLengthForPDU()
DSmsManager.java295 public void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { in injectSmsPdu() argument
304 iccISms.injectSmsPdu(pdu, format, receivedIntent); in injectSmsPdu()
566 public boolean copyMessageToIcc(byte[] smsc, byte[] pdu,int status) { in copyMessageToIcc() argument
569 if (null == pdu) { in copyMessageToIcc()
577 status, pdu, smsc); in copyMessageToIcc()
599 byte[] pdu = new byte[IccConstants.SMS_RECORD_LENGTH-1]; in deleteMessageFromIcc()
600 Arrays.fill(pdu, (byte)0xff); in deleteMessageFromIcc()
607 messageIndex, STATUS_ON_ICC_FREE, pdu); in deleteMessageFromIcc()
630 public boolean updateMessageOnIcc(int messageIndex, int newStatus, byte[] pdu) { in updateMessageOnIcc() argument
638 messageIndex, newStatus, pdu); in updateMessageOnIcc()

123