Home
last modified time | relevance | path

Searched refs:pdus (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapSmsPduTest.java110 ArrayList<SmsPdu> pdus = in getSubmitPdus_withTypeGSM_whenMsgCountIsMoreThanOne() local
114 assertThat(pdus.size()).isEqualTo(2); in getSubmitPdus_withTypeGSM_whenMsgCountIsMoreThanOne()
115 assertThat(pdus.get(0).getType()).isEqualTo(BluetoothMapSmsPdu.SMS_TYPE_GSM); in getSubmitPdus_withTypeGSM_whenMsgCountIsMoreThanOne()
121 messageSmsToEncode.setSmsBodyPdus(pdus); in getSubmitPdus_withTypeGSM_whenMsgCountIsMoreThanOne()
139 ArrayList<SmsPdu> pdus = BluetoothMapSmsPdu.getSubmitPdus(mTargetContext, TEST_TEXT, null); in getSubmitPdus_withTypeCDMA() local
141 assertThat(pdus.size()).isEqualTo(1); in getSubmitPdus_withTypeCDMA()
142 assertThat(pdus.get(0).getType()).isEqualTo(BluetoothMapSmsPdu.SMS_TYPE_CDMA); in getSubmitPdus_withTypeCDMA()
148 messageSmsToEncode.setSmsBodyPdus(pdus); in getSubmitPdus_withTypeCDMA()
164 ArrayList<SmsPdu> pdus = in getDeliverPdus_withTypeGSM() local
168 assertThat(pdus.size()).isEqualTo(1); in getDeliverPdus_withTypeGSM()
[all …]
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DSendTestMessages.java392 byte[][] pdus = new byte[1][]; in createFromPdu()
393 pdus[0] = pdu; in createFromPdu()
394 return createFromPdus(context, pdus, serialNumber, category); in createFromPdu()
397 private static SmsCbMessage createFromPdus(Context context, byte[][] pdus, int serialNumber, in createFromPdus() argument
400 for (byte[] pdu : pdus) { in createFromPdus()
423 return GsmSmsCbMessage.createSmsCbMessage(context, new SmsCbHeader(pdus[0]), in createFromPdus()
424 sEmptyLocation, pdus, 0 /* slotIndex */); in createFromPdus()
462 byte[][] pdus = new byte[2][]; in testSendMessage7bitMultipageGsm()
463 pdus[0] = gsm7BitTestMultipage1; in testSendMessage7bitMultipageGsm()
464 pdus[1] = gsm7BitTestMultipage2; in testSendMessage7bitMultipageGsm()
[all …]
DGsmSmsCbMessage.java95 SmsCbLocation location, byte[][] pdus, int slotIndex) in createSmsCbMessage() argument
126 byte[] pdu = pdus[0]; in createSmsCbMessage()
161 for (byte[] pdu : pdus) { in createSmsCbMessage()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DGsmCellBroadcastHandler.java664 byte[][] pdus; in handleGsmBroadcastSms()
671 pdus = mSmsCbPageMap.get(concatInfo); in handleGsmBroadcastSms()
673 if (pdus == null) { in handleGsmBroadcastSms()
676 pdus = new byte[pageCount][]; in handleGsmBroadcastSms()
678 mSmsCbPageMap.put(concatInfo, pdus); in handleGsmBroadcastSms()
681 if (VDBG) log("pdus size=" + pdus.length); in handleGsmBroadcastSms()
683 pdus[header.getPageIndex() - 1] = receivedPdu; in handleGsmBroadcastSms()
685 for (byte[] pdu : pdus) { in handleGsmBroadcastSms()
697 pdus = new byte[1][]; in handleGsmBroadcastSms()
698 pdus[0] = receivedPdu; in handleGsmBroadcastSms()
[all …]
DGsmSmsCbMessage.java98 SmsCbLocation location, byte[][] pdus, int slotIndex) in createSmsCbMessage() argument
119 byte[] pdu = pdus[0]; in createSmsCbMessage()
154 for (byte[] pdu : pdus) { in createSmsCbMessage()
/packages/apps/BasicSmsReceiver/src/com/android/basicsmsreceiver/
DSmsMessageReceiver.java40 Object[] pdus = (Object[]) extras.get("pdus"); in onReceive()
42 for (int i = 0; i < pdus.length; i++) { in onReceive()
43 SmsMessage message = SmsMessage.createFromPdu((byte[]) pdus[i]); in onReceive()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DGsmSmsCbMessageTest.java123 byte[][] pdus = new byte[1][]; in testCreateMessageFromBinary()
124 pdus[0] = pdu; in testCreateMessageFromBinary()
126 SmsCbMessage msg = GsmSmsCbMessage.createSmsCbMessage(mMockedContext, header, null, pdus, in testCreateMessageFromBinary()
186 byte[][] pdus = new byte[1][]; in createFromPdu()
187 pdus[0] = pdu; in createFromPdu()
189 TEST_LOCATION, pdus, /* slotIndex */ 0); in createFromPdu()
/packages/apps/BasicSmsReceiver/tests/src/com/android/basicsmsreceiver/
DDialogSmsDisplayTests.java122 Object[] pdus = (Object[]) extras.get("pdus"); in setUp()
124 for (int i = 0; i < pdus.length; i++) { in setUp()
125 SmsMessage message = SmsMessage.createFromPdu((byte[]) pdus[i]); in setUp()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapSmsPdu.java544 ArrayList<SmsPdu> pdus = new ArrayList<SmsPdu>(msgCount); in getSubmitPdus() local
563 pdus.add(newPdu); in getSubmitPdus()
580 pdus.add(newPdu); in getSubmitPdus()
584 return pdus; in getSubmitPdus()
/packages/modules/Bluetooth/system/btif/test/
Dbtif_core_test.cc687 std::vector<std::pair<uint8_t, std::string>> pdus = { in TEST_F() local
731 for (const auto& pdu : pdus) { in TEST_F()