Home
last modified time | relevance | path

Searched full:mac_address (Results 1 – 25 of 370) sorted by relevance

12345678910>>...15

/aosp_15_r20/external/rust/pica/src/bin/http-server/
Dmain.rs73 mac_address: MacAddress, field
84 mac_address: MacAddress,
90 mac_address: MacAddress,
94 mac_address: MacAddress,
133 mac_address, in handle_connection_events()
141 mac_address, in handle_connection_events()
148 mac_address, in handle_connection_events()
154 mac_address, in handle_connection_events()
162 mac_address, in handle_connection_events()
187 fn http_set_position(&self, mac_address: MacAddress, position: Position) -> Response<Body> { in http_set_position()
[all …]
/aosp_15_r20/packages/modules/Bluetooth/system/blueberry/utils/
Dandroid_bluetooth_decorator.py99 def _is_device_connected(self, mac_address): argument
101 return self._ad.sl4a.bluetoothIsDeviceConnected(mac_address)
103 def _is_profile_connected(self, mac_address, profile): argument
108 status = pri_ad.sl4a.bluetoothHfpClientGetConnectionStatus(mac_address)
110 status = pri_ad.sl4a.bluetoothA2dpSinkGetConnectionStatus(mac_address)
112 status = pri_ad.sl4a.bluetoothPbapClientGetConnectionStatus(mac_address)
115 return any(mac_address in device['address'] for device in connected_devices)
291 def wait_for_discovery_success(self, mac_address: str, timeout: float = 30) -> float:
295 mac_address: The Bluetooth mac address of the peripheral device.
306 event_name = f'Discovery{mac_address}'
[all …]
/aosp_15_r20/external/rust/pica/src/
Dlib.rs35 mod mac_address; module
36 pub use mac_address::MacAddress;
137 mac_address: MacAddress,
142 mac_address: MacAddress,
156 mac_address: MacAddress, field
160 mac_address: &MacAddress, in make_measurement()
164 if let MacAddress::Short(address) = mac_address { in make_measurement()
166 mac_address: u16::from_le_bytes(*address), in make_measurement()
218 fn get_category(&self, mac_address: &MacAddress) -> Option<Category> { in get_category()
219 if self.anchors.contains_key(mac_address) { in get_category()
[all …]
Dmac_address.rs41 pub fn new(mac_address: String) -> Result<Self, Error> { in new()
42 mac_address.try_into() in new()
47 fn from(mac_address: &MacAddress) -> Self { in from()
48 match mac_address { in from()
56 fn from(mac_address: MacAddress) -> Self { in from()
57 u64::from(&mac_address) in from()
62 fn from(mac_address: &MacAddress) -> Self { in from()
63 match mac_address { in from()
71 fn from(mac_address: MacAddress) -> Self { in from()
72 Vec::<u8>::from(&mac_address) in from()
[all …]
/aosp_15_r20/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
H A DShadowCompanionDeviceManagerTest.java33 private static final String MAC_ADDRESS = "AA:BB:CC:DD:FF:EE"; field in ShadowCompanionDeviceManagerTest
51 shadowCompanionDeviceManager.addAssociation(MAC_ADDRESS); in testAddAssociation()
52 assertThat(companionDeviceManager.getAssociations()).contains(MAC_ADDRESS); in testAddAssociation()
57 shadowCompanionDeviceManager.addAssociation(MAC_ADDRESS); in testDisassociate()
58 companionDeviceManager.disassociate(MAC_ADDRESS); in testDisassociate()
64 assertThrows(Exception.class, () -> companionDeviceManager.disassociate(MAC_ADDRESS)); in testDisassociate_throwsIfNotFound()
69 shadowCompanionDeviceManager.addAssociation(MAC_ADDRESS); in testHasNotificationAccess()
87 shadowCompanionDeviceManager.addAssociation(MAC_ADDRESS); in testRequestNotificationAccess()
121 shadowCompanionDeviceManager.addAssociation(MAC_ADDRESS); in testAddAssociation_byMacAddress()
122 assertThat(companionDeviceManager.getAssociations()).contains(MAC_ADDRESS); in testAddAssociation_byMacAddress()
[all …]
/aosp_15_r20/external/openthread/tests/scripts/thread-cert/
H A Dtest_common.py118 mac_address = common.MacAddress.from_eui64(eui64)
121 self.assertEqual(common.MacAddressType.LONG, mac_address.type)
122 self.assertEqual(eui64, mac_address.mac_address)
129 mac_address = common.MacAddress.from_rloc16(int(rloc16))
132 self.assertEqual(common.MacAddressType.SHORT, mac_address.type)
133 self.assertEqual(struct.pack(">H", rloc16), mac_address.mac_address)
140 mac_address = common.MacAddress.from_rloc16(rloc16)
143 self.assertEqual(common.MacAddressType.SHORT, mac_address.type)
144 self.assertEqual(rloc16, mac_address.mac_address)
150 mac_address = common.MacAddress.from_rloc16(rloc16)
[all …]
H A Dcommon.py120 def __init__(self, mac_address, _type, big_endian=True): argument
127 mac_address = mac_address[::-1]
129 self._mac_address = bytearray(mac_address[:length])
137 def mac_address(self): member in MacAddress
162 mac_address = struct.pack(">H", rloc16)
164 mac_address = rloc16[:2]
168 return cls(mac_address, MacAddressType.SHORT)
171 return (self.type == other.type) and (self.mac_address == other.mac_address)
174 …return "MacAddress(mac_address=b'{}', type={})".format(hexlify(self.mac_address), MacAddressType(s…
H A Dtest_network_layer.py138 mac_address = any_mac_extended_address()
140 mac_extended_address = network_layer.MacExtendedAddress(mac_address)
143 actual_mac_address = mac_extended_address.mac_address
146 self.assertEqual(mac_address, actual_mac_address)
150 mac_address = any_mac_extended_address()
152 mac_extended_address = network_layer.MacExtendedAddress(mac_address)
155 self.assertEqual(mac_extended_address, network_layer.MacExtendedAddress(mac_address))
162 mac_address = any_mac_extended_address()
167 mac_extended_address = factory.parse(io.BytesIO(mac_address), common.MessageInfo())
171 self.assertEqual(mac_address, mac_extended_address.mac_address)
H A Dnetwork_layer.py89 def __init__(self, mac_address): argument
90 self._mac_address = mac_address
93 def mac_address(self): member in MacExtendedAddress
98 return self.mac_address == other.mac_address
101 return "MacExtendedAddress(mac_address={})".format(hexlify(self.mac_address))
107 mac_address = bytearray(data.read(8))
109 return MacExtendedAddress(mac_address)
/aosp_15_r20/external/rust/pica/static/
Dindex.html84 mac_address,
90 const path = "/set-position/" + mac_address;
123 mac_address, x, y, z, yaw, pitch, roll,
128 mac_address,
143 mac_address,
145 if (info.device?.mac_address === mac_address) {
150 (device) => device.mac_address !== mac_address
155 (neighbor) => neighbor.mac_address !== mac_address
165 mac_address, x, y, z, yaw, pitch, roll,
169 (device) => device.mac_address === mac_address
[all …]
/aosp_15_r20/external/wmediumd/wmediumd_server/
H A Dwmediumd_server.cc69 bool IsValidMacAddr(const std::string& mac_address) { in IsValidMacAddr() argument
70 if (mac_address.size() != STR_MAC_ADDR_LEN) { in IsValidMacAddr()
74 if (mac_address[2] != ':' || mac_address[5] != ':' || mac_address[8] != ':' || in IsValidMacAddr()
75 mac_address[11] != ':' || mac_address[14] != ':') { in IsValidMacAddr()
81 char c = mac_address[i]; in IsValidMacAddr()
93 static std::array<uint8_t, 6> ParseMacAddress(const std::string& mac_address) { in ParseMacAddress() argument
94 auto split_mac = android::base::Split(mac_address, ":"); in ParseMacAddress()
104 std::string MacToString(const char* mac_address) { in MacToString() argument
106 sprintf(ret, MAC_FMT, MAC_ARGS(mac_address)); in MacToString()
182 if (!IsValidMacAddr(request->mac_address())) { in SetCivicloc()
[all …]
/aosp_15_r20/packages/modules/Bluetooth/system/common/
Dmetric_id_allocator.cc113 int MetricIdAllocator::AllocateId(const RawAddress& mac_address) { in AllocateId() argument
117 if (paired_device_cache_.Get(mac_address, &id)) { in AllocateId()
120 if (temporary_device_cache_.Get(mac_address, &id)) { in AllocateId()
134 auto evicted = temporary_device_cache_.Put(mac_address, id); in AllocateId()
146 bool MetricIdAllocator::SaveDevice(const RawAddress& mac_address) { in SaveDevice() argument
149 if (paired_device_cache_.Get(mac_address, &id)) { in SaveDevice()
152 if (!temporary_device_cache_.Get(mac_address, &id)) { in SaveDevice()
159 if (!temporary_device_cache_.Remove(mac_address)) { in SaveDevice()
163 auto evicted = paired_device_cache_.Put(mac_address, id); in SaveDevice()
167 if (!save_id_callback_(mac_address, id)) { in SaveDevice()
[all …]
Dmetric_id_allocator.h55 * @param paired_device_map map from mac_address to id already saved
84 * @param mac_address mac address of Bluetooth device
87 int AllocateId(const RawAddress& mac_address);
92 * @param mac_address mac address of Bluetooth device
95 bool SaveDevice(const RawAddress& mac_address);
100 * @param mac_address mac address of Bluetooth device
102 void ForgetDevice(const RawAddress& mac_address);
109 * @param mac_address mac address of Bluetooth device
131 void ForgetDevicePostprocess(const RawAddress& mac_address, const int id);
/aosp_15_r20/packages/modules/Bluetooth/system/blueberry/tests/connectivity/
Dbluetooth_connection_test.py30 self.mac_address = self.derived_bt_device.get_bluetooth_mac_address()
32 self.primary_device.pair_and_connect_bluetooth(self.mac_address)
48 self.primary_device.wait_for_a2dp_connection_state(self.mac_address,
50 self.primary_device.wait_for_hsp_connection_state(self.mac_address,
56 self.mac_address)
57 self.primary_device.disconnect_bluetooth(self.mac_address)
62 self.mac_address)
63 self.primary_device.connect_bluetooth(self.mac_address)
71 self.primary_device.wait_for_disconnection_success(self.mac_address)
76 self.primary_device.wait_for_connection_success(self.mac_address)
[all …]
/aosp_15_r20/packages/modules/Bluetooth/system/gd/common/
Dmetric_id_manager.cc117 int MetricIdManager::AllocateId(const Address& mac_address) { in AllocateId() argument
119 auto it = paired_device_cache_.find(mac_address); in AllocateId()
124 it = temporary_device_cache_.find(mac_address); in AllocateId()
139 auto evicted = temporary_device_cache_.insert_or_assign(mac_address, id); in AllocateId()
151 bool MetricIdManager::SaveDevice(const Address& mac_address) { in SaveDevice() argument
153 if (paired_device_cache_.contains(mac_address)) { in SaveDevice()
156 if (!temporary_device_cache_.contains(mac_address)) { in SaveDevice()
160 auto opt = temporary_device_cache_.extract(mac_address); in SaveDevice()
166 auto evicted = paired_device_cache_.insert_or_assign(mac_address, id); in SaveDevice()
170 if (!save_id_callback_(mac_address, id)) { in SaveDevice()
[all …]
Dmetric_id_manager.h54 * @param paired_device_map map from mac_address to id already saved
83 * @param mac_address mac address of Bluetooth device
86 int AllocateId(const hci::Address& mac_address);
91 * @param mac_address mac address of Bluetooth device
94 bool SaveDevice(const hci::Address& mac_address);
99 * @param mac_address mac address of Bluetooth device
101 void ForgetDevice(const hci::Address& mac_address);
108 * @param mac_address mac address of Bluetooth device
129 void ForgetDevicePostprocess(const hci::Address& mac_address, const int id);
/aosp_15_r20/external/rust/pica/py/pica/
Dconsole.py36 def encode_short_mac_address(mac_address: str) -> bytes:
37 return int(mac_address).to_bytes(2, byteorder="little")
40 def encode_mac_address(mac_address: str) -> bytes:
41 return int(mac_address).to_bytes(8, byteorder="little")
44 def parse_mac_address(mac_address: str) -> bytes:
45 bs = mac_address.split(":")
62 mac_address: str = "00:00",
73 f"{self.http_address}/init-uci-device/{mac_address}",
89 mac_address: str = "00:00",
100 f"{self.http_address}/create-anchor/{mac_address}",
[all …]
/aosp_15_r20/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiClientTest.java39 private static final MacAddress MAC_ADDRESS = MacAddress.fromString(MAC_ADDRESS_STRING); field in WifiClientTest
47 WifiClient writeWifiClient = new WifiClient(MAC_ADDRESS, INTERFACE_NAME, DISCONNECT_REASON); in testWifiClientParcelWriteRead()
57 WifiClient writeWifiClient = new WifiClient(MAC_ADDRESS, INTERFACE_NAME, DISCONNECT_REASON); in testWifiClientEquals()
58 WifiClient writeWifiClientEquals = new WifiClient(MAC_ADDRESS, INTERFACE_NAME, in testWifiClientEquals()
72 WifiClient writeWifiClient = new WifiClient(MAC_ADDRESS, INTERFACE_NAME); in testWifiClientEqualsFailsWhenMacAddressIsDifferent()
84 WifiClient writeWifiClient = new WifiClient(MAC_ADDRESS, INTERFACE_NAME); in testWifiClientEqualsFailsWhenInstanceIsDifferent()
85 WifiClient writeWifiClientNotEquals = new WifiClient(MAC_ADDRESS, INTERFACE_NAME_1); in testWifiClientEqualsFailsWhenInstanceIsDifferent()
96 WifiClient writeWifiClient = new WifiClient(MAC_ADDRESS, INTERFACE_NAME, DISCONNECT_REASON); in testWifiClientEqualsFailsWhenDisconnectReasonIsDifferent()
97 WifiClient writeWifiClientNotEquals = new WifiClient(MAC_ADDRESS, INTERFACE_NAME, in testWifiClientEqualsFailsWhenDisconnectReasonIsDifferent()
109 WifiClient wifiClient = new WifiClient(MAC_ADDRESS, INTERFACE_NAME); in testWifiClientGetDefaultDisconnectReason()
[all …]
/aosp_15_r20/packages/modules/Uwb/service/uci/jni/src/
Dnotification_manager_android.rs72 mac_address: MacAddress, field
89 mac_address: MacAddress, field
103 mac_address: MacAddress::Short(measurement.mac_address), in from()
124 mac_address: MacAddress::Extended(measurement.mac_address), in from()
145 mac_address: MacAddress::Short(measurement.mac_address), in from()
161 mac_address: MacAddress::Extended(measurement.mac_address), in from()
175 mac_address: MacAddress, field
201 mac_address: MacAddress::Extended(measurement.mac_address), in from()
229 mac_address: MacAddress::Short(measurement.mac_address), in from()
400 .map(|cs| (cs.mac_address, (cs.subsession_id as i64, i32::from(cs.status)))) in on_session_update_multicast_notification()
[all …]
/aosp_15_r20/hardware/interfaces/wifi/aidl/default/tests/
H A Dwifi_iface_util_unit_tests.cpp34 bool isValidUnicastLocallyAssignedMacAddress(const std::array<uint8_t, 6>& mac_address) { in isValidUnicastLocallyAssignedMacAddress() argument
35 uint8_t first_byte = mac_address[0]; in isValidUnicastLocallyAssignedMacAddress()
57 auto mac_address = iface_util_->getOrCreateRandomMacAddress(); in TEST_F() local
58 ASSERT_TRUE(isValidUnicastLocallyAssignedMacAddress(mac_address)); in TEST_F()
61 ASSERT_EQ(mac_address, iface_util_->getOrCreateRandomMacAddress()); in TEST_F()
62 ASSERT_EQ(mac_address, iface_util_->getOrCreateRandomMacAddress()); in TEST_F()
66 std::array<uint8_t, 6> mac_address = {}; in TEST_F() local
67 std::copy(std::begin(kMacAddress), std::end(kMacAddress), std::begin(mac_address)); in TEST_F()
80 ASSERT_TRUE(iface_util_->setMacAddress(kIfaceName, mac_address)); in TEST_F()
87 ASSERT_TRUE(iface_util_->setMacAddress(kIfaceName, mac_address)); in TEST_F()
/aosp_15_r20/external/autotest/server/site_tests/servo_LabstationVerification/
H A Dlabstation_to_dut_map.json9 "mac_address": "F4:F5:E8:50:DD:01", string
18 "mac_address": "08:9E:08:E4:A0:5C", string
27 "mac_address": "F4:F5:E8:50:E7:85", string
36 "mac_address": "08:9E:08:E4:A0:1C", string
45 "mac_address": "F4:F5:E8:50:DD:E7", string
56 "mac_address": "F4:F5:E8:50:D1:D5", string
65 "mac_address": "08:9E:08:E4:A0:59", string
74 "mac_address": "F4:F5:E8:50:E2:FF", string
83 "mac_address": "F4:F5:E8:50:E1:2A", string
/aosp_15_r20/packages/modules/Bluetooth/system/blueberry/controllers/
Dandroid_bt_target_device.py78 self.mac_address = self.sl4a.bluetoothGetLocalAddress()
147 self.mac_address = self.sl4a.bluetoothGetLocalAddress()
182 self.mac_address, self.sec_ad_mac_address)
214 mac_address = self.sl4a.bluetoothGetLocalAddress()
216 mac_address)
217 return mac_address
240 self.mac_address, self.sec_ad_mac_address)
333 self.mac_address, self.sec_ad_mac_address)
391 'audio connection %s after routing', self.mac_address,
410 self.mac_address, self.sec_ad_mac_address)
[all …]
/aosp_15_r20/tools/test/connectivity/acts_tests/tests/google/ble/beacon_tests/
DBeaconSwarmTest.py189 mac_address = event_info['data']['Result']['deviceInfo']['address']
190 if mac_address not in self.discovered_mac_address_list:
191 self.discovered_mac_address_list.append(mac_address)
233 mac_address = result['deviceInfo']['address']
234 if mac_address not in self.discovered_mac_address_list:
235 self.discovered_mac_address_list.append(mac_address)
333 mac_address = event_info['data']['Result']['deviceInfo'][
335 if mac_address not in self.discovered_mac_address_list:
336 self.discovered_mac_address_list.append(mac_address)
/aosp_15_r20/device/google/cuttlefish/host/commands/metrics/
Dutils.cc88 unsigned char mac_address[6] = {0}; in GetMacAddress() local
100 memcpy(mac_address, ifr.ifr_hwaddr.sa_data, 6); in GetMacAddress()
106 sprintf(mac, "%02x:%02x:%02x:%02x:%02x:%02x", mac_address[0], mac_address[1], in GetMacAddress()
107 mac_address[2], mac_address[3], mac_address[4], mac_address[5]); in GetMacAddress()
/aosp_15_r20/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsAudioDeviceTypeControllerTest.java53 private static final String MAC_ADDRESS = "04:52:C7:0B:D8:3C"; field in BluetoothDetailsAudioDeviceTypeControllerTest
79 when(mCachedDevice.getAddress()).thenReturn(MAC_ADDRESS); in setUp()
81 when(mBluetoothDevice.getAnonymizedAddress()).thenReturn(MAC_ADDRESS); in setUp()
102 when(mAudioManager.getBluetoothAudioDeviceCategory(MAC_ADDRESS)).thenReturn(deviceType); in createAudioDeviceTypePreference_btDeviceIsCategorized_checkSelection()
104 when(mAudioManager.getBluetoothAudioDeviceCategory_legacy(MAC_ADDRESS, /*isBle=*/ in createAudioDeviceTypePreference_btDeviceIsCategorized_checkSelection()
122 verify(mAudioManager).setBluetoothAudioDeviceCategory(eq(MAC_ADDRESS), in selectDeviceTypeSpeaker_invokeSetBluetoothAudioDeviceType()
125 verify(mAudioManager).setBluetoothAudioDeviceCategory_legacy(eq(MAC_ADDRESS), eq(true), in selectDeviceTypeSpeaker_invokeSetBluetoothAudioDeviceType()

12345678910>>...15