Home
last modified time | relevance | path

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

1234

/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DSmsCbHeader.java134 public SmsCbHeader(byte[] pdu) throws IllegalArgumentException { in SmsCbHeader() argument
135 if (pdu == null || pdu.length < PDU_HEADER_LENGTH) { in SmsCbHeader()
139 if (pdu.length <= PDU_LENGTH_GSM) { in SmsCbHeader()
144 mGeographicalScope = (pdu[0] & 0xc0) >>> 6; in SmsCbHeader()
145 mSerialNumber = ((pdu[0] & 0xff) << 8) | (pdu[1] & 0xff); in SmsCbHeader()
146 mMessageIdentifier = ((pdu[2] & 0xff) << 8) | (pdu[3] & 0xff); in SmsCbHeader()
147 if (isEtwsMessage() && pdu.length <= PDU_LENGTH_ETWS) { in SmsCbHeader()
152 boolean emergencyUserAlert = (pdu[4] & 0x1) != 0; in SmsCbHeader()
153 boolean activatePopup = (pdu[5] & 0x80) != 0; in SmsCbHeader()
154 int warningType = (pdu[4] & 0xfe) >>> 1; in SmsCbHeader()
[all …]
/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()
45 pdu = "07914151551512F20409E1BADCBE5AF100006060605130308A04D4F29C0E"; in testAddressing()
46 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing()
52 String pdu = "0891683108200505F011000D91683196032930F000000006C8329BFD0E01"; in testRecipientAddress() local
53 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testRecipientAddress()
69 String pdu = "07914140279510F6440A8111110301003BF56080207130138A8C0B05040B8423F" in testUdh() local
75 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUdh()
[all …]
DImsSmsDispatcherTest.java75 byte[] pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu(null, in testSendSms()
77 mTrackerData.put("pdu", pdu); in testSendSms()
87 nullable(String.class), eq(false), eq(pdu)); in testSendSms()
138 byte[] pdu = byteCaptor.getValue(); in testErrorImsRetry()
140 assertNotNull(pdu); in testErrorImsRetry()
141 assertEquals(0x04, (pdu[0] & 0x04)); in testErrorImsRetry()
154 byte[] pdu = HexDump.hexStringToByteArray("0006000681214365919061800000639190618000006300"); in testReceiveGsmSmsStatusReport()
157 pdu[2] = (byte) messageRef; in testReceiveGsmSmsStatusReport()
160 when(mSmsDispatchersController.handleSmsStatusReport(eq(SmsMessage.FORMAT_3GPP), eq(pdu))) in testReceiveGsmSmsStatusReport()
166 .onSmsStatusReportReceived(statusReportToken, SmsMessage.FORMAT_3GPP, pdu); in testReceiveGsmSmsStatusReport()
DWapPushOverSmsTest.java77 byte[] pdu = new byte[]{ in testDispatchWapPdu()
87 mWapPushOverSmsUT.dispatchWapPdu(pdu, null, mInboundSmsHandler, "123456", 0); in testDispatchWapPdu()
110 assertEquals(pdu.length, data.length); in testDispatchWapPdu()
111 for (int i = 0; i < pdu.length; i++) { in testDispatchWapPdu()
112 assertEquals(pdu[i], data[i]); in testDispatchWapPdu()
131 byte pdu[] = {1, 6, 0, 97, 112, 112, 108, 105, 99, 97, 116, 105, 111, 110, 47, in testDispatchWapPduFromBlockedNumber_noIntentsDispatched()
142 mWapPushOverSmsUT.dispatchWapPdu(pdu, null, mInboundSmsHandler, null, 0)); in testDispatchWapPduFromBlockedNumber_noIntentsDispatched()
DSimSmsTest.java45 byte[] pdu = null; in testBasic()
50 pdu = data.getBytes(); in testBasic()
61 assertNotNull(pdu); in testBasic()
/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;
59 import com.google.android.mms.pdu.DeliveryInd;
60 import com.google.android.mms.pdu.GenericPdu;
61 import com.google.android.mms.pdu.NotificationInd;
62 import com.google.android.mms.pdu.PduHeaders;
63 import com.google.android.mms.pdu.PduParser;
64 import com.google.android.mms.pdu.PduPersister;
65 import com.google.android.mms.pdu.ReadOrigInd;
[all …]
DSmsDispatchersController.java389 public void injectSmsPdu(byte[] pdu, String format, SmsInjectionCallback callback) { in injectSmsPdu() argument
393 android.telephony.SmsMessage.createFromPdu(pdu, format); in injectSmsPdu()
488 SmsMessageBase.SubmitPduBase pdu = null; in sendRetrySms() local
495 pdu = com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu( in sendRetrySms()
498 pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu( in sendRetrySms()
507 pdu = com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu( in sendRetrySms()
511 pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu( in sendRetrySms()
518 map.put("smsc", pdu.encodedScAddress); in sendRetrySms()
519 map.put("pdu", pdu.encodedMessage); in sendRetrySms()
787 public boolean handleSmsStatusReport(String format, byte[] pdu) { in handleSmsStatusReport() argument
[all …]
DImsSmsDispatcher.java158 public void onSmsStatusReportReceived(int token, String format, byte[] pdu)
162 android.telephony.SmsMessage.createFromPdu(pdu, format);
168 boolean handled = mSmsDispatchersController.handleSmsStatusReport(format, pdu);
184 public void onSmsReceived(int token, String format, byte[] pdu) {
187 android.telephony.SmsMessage.createFromPdu(pdu, format);
365 byte[] pdu = (byte[]) map.get(MAP_KEY_PDU); in sendSms()
374 if (((0x01 & pdu[0]) == 0x01)) { in sendSms()
375 pdu[0] |= 0x04; // TP-RD in sendSms()
376 pdu[1] = (byte) tracker.mMessageRef; // TP-MR in sendSms()
389 pdu); in sendSms()
/frameworks/base/telephony/java/android/telephony/ims/stub/
DImsSmsImplBase.java164 byte[] pdu) { in sendSms() argument
222 public final void onSmsReceived(int token, @SmsMessage.Format String format, byte[] pdu) in onSmsReceived() argument
229 mListener.onSmsReceived(token, format, pdu); in onSmsReceived()
232 SmsMessage message = SmsMessage.createFromPdu(pdu, format); in onSmsReceived()
361 byte[] pdu) throws RuntimeException { in onSmsStatusReportReceived() argument
367 mListener.onSmsStatusReportReceived(token, format, pdu); in onSmsStatusReportReceived()
390 byte[] pdu) throws RuntimeException { in onSmsStatusReportReceived() argument
396 mListener.onSmsStatusReportReceived(token, format, pdu); in onSmsStatusReportReceived()
399 SmsMessage message = SmsMessage.createFromPdu(pdu, format); in onSmsStatusReportReceived()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmSMSDispatcher.java140 byte[] pdu = (byte[]) ar.result; in handleStatusReport()
141 mSmsDispatchersController.handleSmsStatusReport(SmsConstants.FORMAT_3GPP, pdu); in handleStatusReport()
171 byte pdu[] = (byte[]) map.get("pdu"); in sendSms()
177 if (((0x01 & pdu[0]) == 0x01)) { in sendSms()
178 pdu[0] |= 0x04; // TP-RD in sendSms()
179 pdu[1] = (byte) tracker.mMessageRef; // TP-MR in sendSms()
193 IccUtils.bytesToHexString(pdu), reply); in sendSms()
196 IccUtils.bytesToHexString(pdu), reply); in sendSms()
200 IccUtils.bytesToHexString(pdu), tracker.mImsRetry, in sendSms()
DUsimDataDownloadHandler.java120 byte[] pdu = smsMessage.getPdu(); // includes SC address in handleDataDownload()
122 int scAddressLength = pdu[0] & 0xff; in handleDataDownload()
124 int tpduLength = pdu.length - tpduIndex; in handleDataDownload()
152 System.arraycopy(pdu, 1, envelope, index, scAddressLength); in handleDataDownload()
162 System.arraycopy(pdu, tpduIndex, envelope, index, tpduLength); in handleDataDownload()
/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 = 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/android/internal/telephony/cdma/
DCdmaInboundSmsHandler.java340 private int processCdmaWapPdu(byte[] pdu, int referenceNumber, String address, String dispAddr, in processCdmaWapPdu() argument
344 int msgType = (0xFF & pdu[index++]); in processCdmaWapPdu()
349 int totalSegments = (0xFF & pdu[index++]); // >= 1 in processCdmaWapPdu()
350 int segment = (0xFF & pdu[index++]); // >= 0 in processCdmaWapPdu()
362 sourcePort = (0xFF & pdu[index++]) << 8; in processCdmaWapPdu()
363 sourcePort |= 0xFF & pdu[index++]; in processCdmaWapPdu()
364 destinationPort = (0xFF & pdu[index++]) << 8; in processCdmaWapPdu()
365 destinationPort |= 0xFF & pdu[index++]; in processCdmaWapPdu()
369 if (checkDuplicatePortOmadmWapPush(pdu, index)) { in processCdmaWapPdu()
381 byte[] userData = new byte[pdu.length - index]; in processCdmaWapPdu()
[all …]
DCdmaSMSDispatcher.java66 byte[] pdu = ((SmsMessage) o).getPdu(); in handleStatusReport()
67 mSmsDispatchersController.handleSmsStatusReport(SmsConstants.FORMAT_3GPP2, pdu); in handleStatusReport()
119 byte[] pdu = (byte[]) tracker.getData().get("pdu"); in sendSms()
140 mCi.sendCdmaSMSExpectMore(pdu, reply); in sendSms()
142 mCi.sendCdmaSms(pdu, reply); in sendSms()
145 mCi.sendImsCdmaSms(pdu, tracker.mImsRetry, tracker.mMessageRef, reply); in sendSms()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DSmsMessage.java134 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu() argument
138 msg.parsePdu(pdu); in createFromPdu()
182 byte[] pdu = new byte[size]; in createFromEfRecord()
183 System.arraycopy(data, 2, pdu, 0, size); in createFromEfRecord()
186 msg.parsePduFromEfRecord(pdu); in createFromEfRecord()
198 public static int getTPLayerLengthForPDU(String pdu) { in getTPLayerLengthForPDU() argument
458 private void parsePdu(byte[] pdu) { in parsePdu() argument
459 ByteArrayInputStream bais = new ByteArrayInputStream(pdu); in parsePdu()
483 if (length > pdu.length) { in parsePdu()
486 + " > pdu len " + pdu.length); in parsePdu()
[all …]
/frameworks/base/telephony/common/com/google/android/mms/util/
DPduCacheEntry.java22 import com.google.android.mms.pdu.GenericPdu;
30 public PduCacheEntry(GenericPdu pdu, int msgBox, long threadId) { in PduCacheEntry() argument
31 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/android/telephony/ims/aidl/
DIImsSmsListener.aidl25 void onSmsStatusReportReceived(int token, in String format, in byte[] pdu); in onSmsStatusReportReceived() argument
26 void onSmsReceived(int token, in String format, in byte[] pdu); in onSmsReceived() argument
/frameworks/base/telephony/java/android/telephony/
DSmsMessage.java200 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu() argument
208 return createFromPdu(pdu, format); in createFromPdu()
223 public static SmsMessage createFromPdu(byte[] pdu, String format) { in createFromPdu() argument
224 return createFromPdu(pdu, format, true); in createFromPdu()
227 private static SmsMessage createFromPdu(byte[] pdu, String format, in createFromPdu() argument
229 if (pdu == null) { in createFromPdu()
237 wrappedMessage = com.android.internal.telephony.cdma.SmsMessage.createFromPdu(pdu); in createFromPdu()
239 wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.createFromPdu(pdu); in createFromPdu()
249 return createFromPdu(pdu, otherFormat, false); in createFromPdu()
326 public static int getTPLayerLengthForPDU(String pdu) { in getTPLayerLengthForPDU() argument
[all …]
/frameworks/base/core/java/android/service/carrier/
DCarrierMessagingService.java126 public void onFilterSms(@NonNull MessagePdu pdu, @NonNull String format, int destPort, in onFilterSms() argument
154 public void onReceiveTextSms(@NonNull MessagePdu pdu, @NonNull String format, in onReceiveTextSms() argument
156 onFilterSms(pdu, format, destPort, subId, new ResultCallback<Boolean>() { in onReceiveTextSms()
465 public void filterSms(MessagePdu pdu, String format, int destPort, in filterSms() argument
467 onReceiveTextSms(pdu, format, destPort, subId, in filterSms()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCommandInterface.java238 public void sendSMS (String smscPDU, String pdu, Message result) { in sendSMS() argument
242 public void sendSMSExpectMore (String smscPDU, String pdu, Message result) { in sendSMSExpectMore() argument
246 public void sendCdmaSms(byte[] pdu, Message result) { in sendCdmaSms() argument
250 public void sendCdmaSMSExpectMore(byte[] pdu, Message result) { in sendCdmaSMSExpectMore() argument
254 public void sendImsGsmSms (String smscPDU, String pdu, in sendImsGsmSms() argument
259 public void sendImsCdmaSms(byte[] pdu, int retry, int messageRef, in sendImsCdmaSms() argument
276 public void writeSmsToSim(int status, String smsc, String pdu, Message response) { in writeSmsToSim() argument
280 public void writeSmsToRuim(int status, byte[] pdu, Message response) { in writeSmsToRuim() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipCommandInterface.java239 public void sendSMS (String smscPDU, String pdu, Message result) { in sendSMS() argument
243 public void sendSMSExpectMore (String smscPDU, String pdu, Message result) { in sendSMSExpectMore() argument
247 public void sendCdmaSms(byte[] pdu, Message result) { in sendCdmaSms() argument
251 public void sendCdmaSMSExpectMore(byte[] pdu, Message result) { in sendCdmaSMSExpectMore() argument
255 public void sendImsGsmSms (String smscPDU, String pdu, in sendImsGsmSms() argument
260 public void sendImsCdmaSms(byte[] pdu, int retry, int messageRef, in sendImsCdmaSms() argument
277 public void writeSmsToSim(int status, String smsc, String pdu, Message response) { in writeSmsToSim() argument
281 public void writeSmsToRuim(int status, byte[] pdu, Message response) { in writeSmsToRuim() argument

1234