Home
last modified time | relevance | path

Searched refs:txtRecord (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/net/nsd/
DNsdServiceInfo.java282 byte[] txtRecord = new byte[txtRecordSize]; in getTxtRecord()
289 txtRecord[ptr++] = (byte) (key.length() + (value == null ? 0 : value.length) + 1); in getTxtRecord()
294 System.arraycopy(key.getBytes(StandardCharsets.US_ASCII), 0, txtRecord, ptr, in getTxtRecord() local
299 txtRecord[ptr++] = (byte)'='; in getTxtRecord()
303 System.arraycopy(value, 0, txtRecord, ptr, value.length); in getTxtRecord()
307 return txtRecord; in getTxtRecord()
318 byte[] txtRecord = getTxtRecord(); in toString()
319 if (txtRecord != null) { in toString()
320 sb.append(", txtRecord: ").append(new String(txtRecord, StandardCharsets.UTF_8)); in toString()
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
DWifiP2pDnsSdServiceInfo.java100 DnsSdTxtRecord txtRecord = new DnsSdTxtRecord(); in newInstance() local
103 txtRecord.set(key, txtMap.get(key)); in newInstance()
109 queries.add(createTxtServiceQuery(instanceName, serviceType, txtRecord)); in newInstance()
152 DnsSdTxtRecord txtRecord) { in createTxtServiceQuery() argument
161 byte[] rawData = txtRecord.getRawData(); in createTxtServiceQuery()
/frameworks/base/tests/net/java/android/net/nsd/
DNsdServiceInfoTest.java182 byte[] txtRecord = shouldBeEmpty.getTxtRecord(); in assertEmptyServiceInfo()
183 if (txtRecord == null || txtRecord.length == 0) { in assertEmptyServiceInfo()
186 fail("NsdServiceInfo.getTxtRecord did not return null but " + Arrays.toString(txtRecord)); in assertEmptyServiceInfo()