Lines Matching refs:pdu
132 public SmsCbHeader(byte[] pdu) throws IllegalArgumentException { in SmsCbHeader() argument
133 if (pdu == null || pdu.length < PDU_HEADER_LENGTH) { in SmsCbHeader()
141 if (pdu.length <= PDU_LENGTH_GSM) { in SmsCbHeader()
146 mGeographicalScope = (pdu[0] & 0xc0) >>> 6; in SmsCbHeader()
147 mSerialNumber = ((pdu[0] & 0xff) << 8) | (pdu[1] & 0xff); in SmsCbHeader()
148 mMessageIdentifier = ((pdu[2] & 0xff) << 8) | (pdu[3] & 0xff); in SmsCbHeader()
149 if (isEtwsMessage() && pdu.length <= PDU_LENGTH_ETWS) { in SmsCbHeader()
154 boolean emergencyUserAlert = (pdu[4] & 0x1) != 0; in SmsCbHeader()
155 boolean activatePopup = (pdu[5] & 0x80) != 0; in SmsCbHeader()
156 int warningType = (pdu[4] & 0xfe) >>> 1; in SmsCbHeader()
159 if (pdu.length > PDU_HEADER_LENGTH) { in SmsCbHeader()
160 warningSecurityInfo = Arrays.copyOfRange(pdu, 6, pdu.length); in SmsCbHeader()
171 mDataCodingScheme = pdu[4] & 0xff; in SmsCbHeader()
174 int pageIndex = (pdu[5] & 0xf0) >>> 4; in SmsCbHeader()
175 int nrOfPages = pdu[5] & 0x0f; in SmsCbHeader()
190 int messageType = pdu[0]; in SmsCbHeader()
201 mMessageIdentifier = ((pdu[1] & 0xff) << 8) | pdu[2] & 0xff; in SmsCbHeader()
202 mGeographicalScope = (pdu[3] & 0xc0) >>> 6; in SmsCbHeader()
203 mSerialNumber = ((pdu[3] & 0xff) << 8) | (pdu[4] & 0xff); in SmsCbHeader()
204 mDataCodingScheme = pdu[5] & 0xff; in SmsCbHeader()