Lines Matching defs:pdu
85 byte[] pdu = new byte[88];
86 pdu[0] = (byte) ((serialNumber >> 8) & 0xff);
87 pdu[1] = (byte) (serialNumber & 0xff);
88 pdu[2] = (byte) ((messageId >> 8) & 0xff);
89 pdu[3] = (byte) (messageId & 0xff);
90 pdu[4] = (byte) (dcs & 0xff);
91 pdu[5] = 0x11; // single page message
96 System.arraycopy(encodedString, 0, pdu, 6, encodedString.length);
100 System.arraycopy(encodedString, 1, pdu, 6, encodedString.length-1);
102 return pdu;
114 private static SmsCbMessage createFromPdu(byte[] pdu) {
117 pdus[0] = pdu;
126 byte[] pdu = encodeCellBroadcast(0, 0, DCS_7BIT_ENGLISH, "Hello in GSM 7 bit");
127 intent.putExtra("message", createFromPdu(pdu));
133 byte[] pdu = encodeCellBroadcast(0, 0, DCS_16BIT_UCS2, "Hello in UCS2");
134 intent.putExtra("message", createFromPdu(pdu));