Lines Matching refs:inStream

182     private static boolean decodeMessageId(BearerData bData, BitwiseInputStream inStream)  in decodeMessageId()  argument
186 int paramBits = inStream.read(8) * 8; in decodeMessageId()
190 inStream.skip(4); // skip messageType in decodeMessageId()
191 bData.messageId = inStream.read(8) << 8; in decodeMessageId()
192 bData.messageId |= inStream.read(8); in decodeMessageId()
193 bData.hasUserDataHeader = (inStream.read(1) == 1); in decodeMessageId()
194 inStream.skip(3); in decodeMessageId()
201 inStream.skip(paramBits); in decodeMessageId()
205 private static boolean decodeReserved(BitwiseInputStream inStream, int subparamId) in decodeReserved() argument
208 int subparamLen = inStream.read(8); // SUBPARAM_LEN in decodeReserved()
210 if (paramBits <= inStream.available()) { in decodeReserved()
212 inStream.skip(paramBits); in decodeReserved()
224 private static boolean decodeUserData(BearerData bData, BitwiseInputStream inStream) in decodeUserData() argument
226 int paramBits = inStream.read(8) * 8; in decodeUserData()
228 bData.userData.msgEncoding = inStream.read(5); in decodeUserData()
234 bData.userData.msgType = inStream.read(8); in decodeUserData()
237 bData.userData.numFields = inStream.read(8); in decodeUserData()
240 bData.userData.payload = inStream.readByteArray(dataBits); in decodeUserData()
286 BitwiseInputStream inStream = new BitwiseInputStream(data); in decode7bitAscii() local
288 if (inStream.available() < wantedBits) { in decode7bitAscii()
290 " bits, but only have " + inStream.available() + ")"); in decode7bitAscii()
292 inStream.skip(offsetSeptets * 7); in decode7bitAscii()
294 int charCode = inStream.read(7); in decode7bitAscii()
424 private static boolean decodeLanguageIndicator(BearerData bData, BitwiseInputStream inStream)
428 int paramBits = inStream.read(8) * 8;
432 bData.language = inStream.read(8);
439 inStream.skip(paramBits);
443 private static boolean decodePriorityIndicator(BearerData bData, BitwiseInputStream inStream) in decodePriorityIndicator() argument
447 int paramBits = inStream.read(8) * 8; in decodePriorityIndicator()
451 bData.priority = inStream.read(2); in decodePriorityIndicator()
452 inStream.skip(6); in decodePriorityIndicator()
459 inStream.skip(paramBits); in decodePriorityIndicator()
493 BitwiseInputStream inStream = new BitwiseInputStream(bData.userData.payload); in decodeCmasUserData() local
494 if (inStream.available() < 8) { in decodeCmasUserData()
497 int protocolVersion = inStream.read(8); in decodeCmasUserData()
509 while (inStream.available() >= 16) { in decodeCmasUserData()
510 int recordType = inStream.read(8); in decodeCmasUserData()
511 int recordLen = inStream.read(8); in decodeCmasUserData()
515 alertUserData.msgEncoding = inStream.read(5); in decodeCmasUserData()
541 alertUserData.payload = inStream.readByteArray(recordLen * 8 - 5); in decodeCmasUserData()
547 category = inStream.read(8); in decodeCmasUserData()
548 responseType = inStream.read(8); in decodeCmasUserData()
549 severity = inStream.read(4); in decodeCmasUserData()
550 urgency = inStream.read(4); in decodeCmasUserData()
551 certainty = inStream.read(4); in decodeCmasUserData()
552 inStream.skip(recordLen * 8 - 28); in decodeCmasUserData()
557 inStream.skip(recordLen * 8); in decodeCmasUserData()
581 BitwiseInputStream inStream = new BitwiseInputStream(smsData); in decode() local
584 while (inStream.available() > 0) { in decode()
585 int subparamId = inStream.read(8); in decode()
601 decodeSuccess = decodeMessageId(bData, inStream); in decode()
604 decodeSuccess = decodeUserData(bData, inStream); in decode()
607 decodeSuccess = decodeLanguageIndicator(bData, inStream); in decode()
610 decodeSuccess = decodePriorityIndicator(bData, inStream); in decode()
613 decodeSuccess = decodeReserved(inStream, subparamId); in decode()