Home
last modified time | relevance | path

Searched refs:recordLen (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/net/nsd/
DNsdServiceInfo.java133 int recordLen = txtRecordsRawBytes[pos] & 0xff; in setTxtRecords() local
137 if (recordLen == 0) { in setTxtRecords()
139 } else if (pos + recordLen > txtRecordsRawBytes.length) { in setTxtRecords()
140 Log.w(TAG, "Corrupt record length (pos = " + pos + "): " + recordLen); in setTxtRecords()
141 recordLen = txtRecordsRawBytes.length - pos; in setTxtRecords()
148 for (int i = pos; i < pos + recordLen; i++) { in setTxtRecords()
156 value = new byte[recordLen - key.length() - 1]; in setTxtRecords()
165 key = new String(txtRecordsRawBytes, pos, recordLen, StandardCharsets.US_ASCII); in setTxtRecords()
183 pos += recordLen; in setTxtRecords()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DBearerData.java1831 int recordLen = inStream.read(8); in decodeCmasUserData() local
1843 numFields = recordLen - 1; // subtract 1 byte for encoding in decodeCmasUserData()
1849 numFields = ((recordLen * 8) - 5) / 7; // subtract 5 bits for encoding in decodeCmasUserData()
1853 numFields = (recordLen - 1) / 2; in decodeCmasUserData()
1861 alertUserData.payload = inStream.readByteArray(recordLen * 8 - 5); in decodeCmasUserData()
1872 inStream.skip(recordLen * 8 - 28); in decodeCmasUserData()
1877 inStream.skip(recordLen * 8); in decodeCmasUserData()