Lines Matching refs:pdu
122 byte[] pdu = pdus[0]; in createSmsCbMessage()
123 Pair<String, String> cbData = parseUmtsBody(header, pdu); in createSmsCbMessage()
128 int nrPages = pdu[SmsCbHeader.PDU_HEADER_LENGTH]; in createSmsCbMessage()
136 if (pdu.length > wacDataOffset) { in createSmsCbMessage()
138 Pair<Integer, List<Geometry>> wac = parseWarningAreaCoordinates(pdu, in createSmsCbMessage()
157 for (byte[] pdu : pdus) { in createSmsCbMessage()
158 Pair<String, String> p = parseGsmBody(header, pdu); in createSmsCbMessage()
189 public static GeoFencingTriggerMessage createGeoFencingTriggerMessage(byte[] pdu) { in createGeoFencingTriggerMessage() argument
195 BitStreamReader bitReader = new BitStreamReader(pdu, whamOffset); in createGeoFencingTriggerMessage()
231 byte[] pdu, int wacOffset) { in parseWarningAreaCoordinates() argument
233 int wacDataLength = ((pdu[wacOffset + 1] & 0xff) << 8) | (pdu[wacOffset] & 0xff); in parseWarningAreaCoordinates()
236 if (offset + wacDataLength > pdu.length) { in parseWarningAreaCoordinates()
239 + (offset + wacDataLength) + ", actual is " + pdu.length); in parseWarningAreaCoordinates()
246 BitStreamReader bitReader = new BitStreamReader(pdu, offset); in parseWarningAreaCoordinates()
320 byte[] pdu) { in parseUmtsBody() argument
322 int nrPages = pdu[SmsCbHeader.PDU_HEADER_LENGTH]; in parseUmtsBody()
325 if (pdu.length < SmsCbHeader.PDU_HEADER_LENGTH + 1 + (PDU_BODY_PAGE_LENGTH + 1) in parseUmtsBody()
327 throw new IllegalArgumentException("Pdu length " + pdu.length + " does not match " in parseUmtsBody()
337 int length = pdu[offset + PDU_BODY_PAGE_LENGTH]; in parseUmtsBody()
344 Pair<String, String> p = unpackBody(pdu, offset, length, in parseUmtsBody()
360 byte[] pdu) { in parseGsmBody() argument
363 int length = pdu.length - offset; in parseGsmBody()
364 return unpackBody(pdu, offset, length, header.getDataCodingSchemeStructedData()); in parseGsmBody()
376 private static Pair<String, String> unpackBody(byte[] pdu, int offset, in unpackBody() argument
383 body = GsmAlphabet.gsm7BitPackedToString(pdu, offset, length * 8 / 7); in unpackBody()
396 body = GsmAlphabet.gsm8BitUnpackedToString(pdu, offset, length); in unpackBody()
400 if (dcs.hasLanguageIndicator && pdu.length >= offset + 2) { in unpackBody()
403 language = GsmAlphabet.gsm7BitPackedToString(pdu, offset, 2); in unpackBody()
409 body = new String(pdu, offset, (length & 0xfffe), "utf-16"); in unpackBody()