Searched refs:recordLen (Results 1 – 2 of 2) sorted by relevance
291 int recordLen = txtRecordsRawBytes[pos] & 0xff; in setTxtRecords() local295 if (recordLen == 0) { in setTxtRecords()297 } else if (pos + recordLen > txtRecordsRawBytes.length) { in setTxtRecords()298 Log.w(TAG, "Corrupt record length (pos = " + pos + "): " + recordLen); in setTxtRecords()299 recordLen = txtRecordsRawBytes.length - pos; in setTxtRecords()306 for (int i = pos; i < pos + recordLen; i++) { in setTxtRecords()314 value = new byte[recordLen - key.length() - 1]; in setTxtRecords()323 key = new String(txtRecordsRawBytes, pos, recordLen, StandardCharsets.US_ASCII); in setTxtRecords()341 pos += recordLen; in setTxtRecords()
511 int recordLen = inStream.read(8); in decodeCmasUserData() local523 numFields = recordLen - 1; // subtract 1 byte for encoding in decodeCmasUserData()529 numFields = ((recordLen * 8) - 5) / 7; // subtract 5 bits for encoding in decodeCmasUserData()533 numFields = (recordLen - 1) / 2; in decodeCmasUserData()541 alertUserData.payload = inStream.readByteArray(recordLen * 8 - 5); in decodeCmasUserData()552 inStream.skip(recordLen * 8 - 28); in decodeCmasUserData()557 inStream.skip(recordLen * 8); in decodeCmasUserData()