Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 52) sorted by relevance

123

/tools/test/connectivity/acts_tests/tests/google/net/
DDhcpServerTest.py234 def _assert_renews(self, request, addr, exp_time, resp_type=ACK): argument
239 asserts.assert_equal(addr, get_yiaddr(resp))
251 addr, siaddr, resp = self._request_address(self.hwaddr)
256 asserts.assert_false(addr == INET4_ANY, "Assigned address is empty")
262 addr, lease_time, resp_type=OFFER)
268 addr, siaddr, _ = self._request_address(self.hwaddr)
272 [('requested_addr', addr)]))
275 asserts.assert_false(get_yiaddr(resp) == addr,
282 addr = NETADDR_PREFIX + '200'
284 [('requested_addr', addr)]))
[all …]
/tools/netsim/rust/daemon/src/bluetooth/
Dbeacon.rs375 fn addr_to_str(addr: Address) -> String { in addr_to_str()
376 let bytes = u64::from(addr).to_le_bytes(); in addr_to_str()
379 .rfold(format!("{:02x}", bytes[5]), |addr, byte| addr + &format!(":{:02x}", byte)) in addr_to_str()
382 fn str_to_addr(addr: &str) -> Result<Address, String> { in str_to_addr()
383 if addr == String::default() { in str_to_addr()
386 if addr.len() != 17 { in str_to_addr()
389 let addr = addr.replace(':', ""); in str_to_addr() localVariable
390 u64::from_str_radix(&addr, 16) in str_to_addr()
530 let addr = str_to_addr("be:ac:12:34:00:0f"); in test_str_to_addr_succeeds() localVariable
531 assert_eq!(Address::try_from(0xbe_ac_12_34_00_0f).unwrap(), addr.unwrap()); in test_str_to_addr_succeeds()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/
Dwlan_deprecated_configuration_lib.py23 def __init__(self, addr: str) -> None:
24 super().__init__(addr, "wlan_deprecated")
26 def wlanSuggestAccessPointMacAddress(self, addr): argument
34 test_args = {'mac': addr}
Dbasemgr_lib.py26 def __init__(self, addr: str) -> None:
27 super().__init__(addr, "basemgr")
Dlogging_lib.py24 def __init__(self, addr: str) -> None:
25 super().__init__(addr, "logging")
Daudio_lib.py25 def __init__(self, addr: str) -> None:
26 super().__init__(addr, "audio")
Dwlan_ap_policy_lib.py22 def __init__(self, addr: str) -> None:
23 super().__init__(addr, "wlan_ap_policy")
Dhardware_power_statecontrol_lib.py27 def __init__(self, addr: str) -> None:
28 super().__init__(addr, "hardware_power_statecontrol")
Dbase_lib.py40 def __init__(self, addr: str, logger_tag: str) -> None:
41 self.address = addr
Dwlan_lib.py34 def __init__(self, addr: str) -> None:
35 super().__init__(addr, "wlan")
Dwlan_policy_lib.py39 def __init__(self, addr: str) -> None:
40 super().__init__(addr, "wlan_policy")
/tools/test/connectivity/acts_tests/tests/google/bt/car_bt/
DBtCarPairedConnectDisconnectTest.py84 addr = self.ph.droid.bluetoothGetLocalAddress()
88 if not bt_test_utils.is_a2dp_snk_device_connected(self.car, addr):
114 addr = self.ph.droid.bluetoothGetLocalAddress()
129 self.car, addr)
131 self.car, addr)):
148 self.car, addr)
150 self.car, addr)):
/tools/netsim/rust/daemon/src/wifi/
Dmedium.rs49 addr: MacAddress, field
56 fn new(client_id: u32, addr: MacAddress, hwsim_addr: MacAddress) -> Self { in new()
57 Self { client_id, addr, hwsim_addr } in new()
136 fn contains_station(&self, addr: &MacAddress) -> bool { in contains_station()
137 self.stations.read().unwrap().contains_key(addr) in contains_station()
140 fn get_station(&self, addr: &MacAddress) -> anyhow::Result<Arc<Station>> { in get_station()
141 self.stations.read().unwrap().get(addr).context("get station").cloned() in get_station()
374 if source.addr != destination.addr { in broadcast_from_sta_frame()
384 debug!("Frame deliver from {} to {}", source.addr, dest_addr); in queue_frame()
539 let addr: MacAddress = parse_mac_address("00:0b:85:71:20:00").unwrap(); in test_remove() localVariable
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DEmailTest.java226 for (String addr : to) { in _manual_testFuncSend()
227 msg.addTo(addr); in _manual_testFuncSend()
229 for (String addr : cc) { in _manual_testFuncSend()
230 msg.addCc(addr); in _manual_testFuncSend()
232 for (String addr : bcc) { in _manual_testFuncSend()
233 msg.addBcc(addr); in _manual_testFuncSend()
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/location/
Dregulatory_region_lib.py22 def __init__(self, addr: str) -> None:
23 super().__init__(addr, "location_regulatory_region")
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/bt/
Dgatts_lib.py22 def __init__(self, addr: str) -> None:
23 super().__init__(addr, "gatt_server")
Dsdp_lib.py22 def __init__(self, addr: str) -> None:
23 super().__init__(addr, "profile_server")
Drfcomm_lib.py22 def __init__(self, addr: str) -> None:
23 super().__init__(addr, "rfcomm")
Dble_lib.py24 def __init__(self, addr: str) -> None:
25 super().__init__(addr, "ble")
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/netstack/
Dnetstack_lib.py22 def __init__(self, addr: str) -> None:
23 super().__init__(addr, "netstack")
/tools/netsim/rust/frontend/src/
Dnetsim_test_client.rs16 Some(addr) => addr, in main()
/tools/tradefederation/core/util_apps/WifiUtil/src/com/android/tradefed/utils/wifi/
DWifiUtil.java225 final int addr = info.getIpAddress(); in onStart() local
228 final int a = (addr >> 0) & 0xff; in onStart()
229 final int b = (addr >> 8) & 0xff; in onStart()
230 final int c = (addr >> 16) & 0xff; in onStart()
231 final int d = (addr >> 24) & 0xff; in onStart()
DWifiConnector.java367 final int addr = info.getIpAddress(); in getWifiInfo() local
369 final int a = (addr >> 0) & 0xff; in getWifiInfo()
370 final int b = (addr >> 8) & 0xff; in getWifiInfo()
371 final int c = (addr >> 16) & 0xff; in getWifiInfo()
372 final int d = (addr >> 24) & 0xff; in getWifiInfo()
/tools/netsim/rust/daemon/src/grpc_server/
Dserver.rs29 let addr = format!("127.0.0.1:{}", port); in start() localVariable
38 let port = server.add_listening_port(addr.clone(), ServerCredentials::insecure()).unwrap(); in start()
/tools/netsim/rust/daemon/src/wifi/packets/
Dieee80211.rs64 fn from(MacAddress(addr): MacAddress) -> Self { in from()
65 let bytes = u64::to_le_bytes(addr); in from()
72 let addr = u64::to_le_bytes(self.0); in is_multicast() localVariable
73 (addr[0] & 0x1) == 1 in is_multicast()
77 let addr = u64::to_le_bytes(self.0); in is_broadcast() localVariable
78 addr[0] == 0xff in is_broadcast()

123