Home
last modified time | relevance | path

Searched refs:txtMap (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Wifi/framework/java/android/net/wifi/p2p/nsd/
DWifiP2pDnsSdServiceInfo.java95 String serviceType, Map<String, String> txtMap) { in newInstance() argument
102 if (txtMap != null) { in newInstance()
103 for (String key : txtMap.keySet()) { in newInstance()
104 txtRecord.set(key, txtMap.get(key)); in newInstance()
/packages/modules/Connectivity/thread/tests/utils/src/android/net/thread/utils/
DFullThreadDevice.java287 Map<String, byte[]> txtMap) in addSrpService() argument
301 txtMapToHexString(txtMap)); in addSrpService()
334 Map<String, byte[]> txtMap) in updateSrpService() argument
337 addSrpService(serviceName, serviceType, subtypes, port, txtMap); in updateSrpService()
600 private static String txtMapToHexString(Map<String, byte[]> txtMap) { in txtMapToHexString() argument
601 if (txtMap == null) { in txtMapToHexString()
605 for (Map.Entry<String, byte[]> entry : txtMap.entrySet()) { in txtMapToHexString()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/
DServiceDiscoveryTest.java471 Map<String, byte[]> txtMap = meshcopService.getAttributes(); in meshcopOverlay_vendorAndModelNameAreSetToSystemProperties() local
472 assertThat(txtMap.get("vn")).isEqualTo(expectedVendorName.getBytes(UTF_8)); in meshcopOverlay_vendorAndModelNameAreSetToSystemProperties()
473 assertThat(txtMap.get("mn")).isEqualTo(expectedModelName.getBytes(UTF_8)); in meshcopOverlay_vendorAndModelNameAreSetToSystemProperties()
616 Map<String, byte[]> txtMap = trelService.getAttributes(); in trelFeatureFlagEnabled_trelServicePublished() local
617 assertThat(HexDump.toHexString(txtMap.get("xa")).toLowerCase(Locale.ROOT)) in trelFeatureFlagEnabled_trelServicePublished()
619 assertThat(HexDump.toHexString(txtMap.get("xp")).toLowerCase(Locale.ROOT)) in trelFeatureFlagEnabled_trelServicePublished()
/packages/modules/Wifi/tests/hostsidetests/multidevices/com.google.snippet.wifi/direct/
DWifiP2pManagerSnippet.java582 @RpcOptional JSONObject txtMap, in wifiP2pAddBonjourLocalService() argument
587 if (txtMap != null) { in wifiP2pAddBonjourLocalService()
589 Iterator<String> keyIterator = txtMap.keys(); in wifiP2pAddBonjourLocalService()
592 map.put(key, txtMap.getString(key)); in wifiP2pAddBonjourLocalService()
1071 Bundle txtMap = new Bundle(); in onDnsSdTxtRecordAvailable() local
1073 txtMap.putString(key, txtRecordMap.get(key)); in onDnsSdTxtRecordAvailable()
1075 event.getData().putBundle(EVENT_KEY_TXT_RECORD_MAP, txtMap); in onDnsSdTxtRecordAvailable()
/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/
DThreadNetworkControllerTest.java1344 Map<String, byte[]> txtMap = serviceInfo.getAttributes();
1346 assertThat(txtMap.get("rv")).isNotNull();
1347 assertThat(txtMap.get("tv")).isNotNull();
1349 assertThat(txtMap.get("sb").length).isEqualTo(4);
1351 assertThat(txtMap.get("sb")[2] & 8).isEqualTo(8);
1373 Map<String, byte[]> txtMap = resolvedService.getAttributes();
1374 assertThat(txtMap.get("rv")).isNotNull();
1375 assertThat(txtMap.get("tv")).isNotNull();
1377 assertThat(txtMap.get("sb").length).isEqualTo(4);
1379 assertThat(txtMap.get("sb")[2] & 8).isEqualTo(8);
[all …]