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.java134 int recordLen = txtRecordsRawBytes[pos] & 0xff; in setTxtRecords() local
138 if (recordLen == 0) { in setTxtRecords()
140 } else if (pos + recordLen > txtRecordsRawBytes.length) { in setTxtRecords()
141 Log.w(TAG, "Corrupt record length (pos = " + pos + "): " + recordLen); in setTxtRecords()
142 recordLen = txtRecordsRawBytes.length - pos; in setTxtRecords()
149 for (int i = pos; i < pos + recordLen; i++) { in setTxtRecords()
157 value = new byte[recordLen - key.length() - 1]; in setTxtRecords()
166 key = new String(txtRecordsRawBytes, pos, recordLen, StandardCharsets.US_ASCII); in setTxtRecords()
184 pos += recordLen; in setTxtRecords()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
DBearerData.java1972 int recordLen = inStream.read(8); in decodeCmasUserData() local
1984 numFields = recordLen - 1; // subtract 1 byte for encoding in decodeCmasUserData()
1990 numFields = ((recordLen * 8) - 5) / 7; // subtract 5 bits for encoding in decodeCmasUserData()
1994 numFields = (recordLen - 1) / 2; in decodeCmasUserData()
2002 alertUserData.payload = inStream.readByteArray(recordLen * 8 - 5); in decodeCmasUserData()
2013 inStream.skip(recordLen * 8 - 28); in decodeCmasUserData()
2018 inStream.skip(recordLen * 8); in decodeCmasUserData()