Home
last modified time | relevance | path

Searched refs:AdvertisingData (Results 1 – 15 of 15) sorted by relevance

/external/python/bumble/tests/
Dcore_test.py18 from bumble.core import AdvertisingData, get_dict_key_by_value
22 data = bytes([2, AdvertisingData.TX_POWER_LEVEL, 123])
23 ad = AdvertisingData.from_bytes(data)
26 assert ad.get(AdvertisingData.COMPLETE_LOCAL_NAME, raw=True) is None
27 assert ad.get(AdvertisingData.TX_POWER_LEVEL, raw=True) == bytes([123])
28 assert ad.get_all(AdvertisingData.COMPLETE_LOCAL_NAME, raw=True) == []
29 assert ad.get_all(AdvertisingData.TX_POWER_LEVEL, raw=True) == [bytes([123])]
31 data2 = bytes([2, AdvertisingData.TX_POWER_LEVEL, 234])
35 assert ad.get(AdvertisingData.COMPLETE_LOCAL_NAME, raw=True) is None
36 assert ad.get(AdvertisingData.TX_POWER_LEVEL, raw=True) == bytes([123])
[all …]
/external/python/bumble/bumble/
Dcore.py626 class AdvertisingData: class
753 instance = AdvertisingData()
786 for uuid in AdvertisingData.uuid_list_to_objects(ad_data, uuid_size)
792 if ad_type == AdvertisingData.FLAGS:
794 ad_data_str = AdvertisingData.flags_to_string(ad_data[0], short=True)
795 elif ad_type == AdvertisingData.COMPLETE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS:
797 ad_data_str = AdvertisingData.uuid_list_to_string(ad_data, 2)
798 elif ad_type == AdvertisingData.INCOMPLETE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS:
800 ad_data_str = AdvertisingData.uuid_list_to_string(ad_data, 2)
801 elif ad_type == AdvertisingData.COMPLETE_LIST_OF_32_BIT_SERVICE_CLASS_UUIDS:
[all …]
Ddevice.py129 AdvertisingData,
253 self.data = AdvertisingData.from_bytes(data)
331 result.data = AdvertisingData.from_bytes(self.last_data + report.data)
761 AdvertisingData(
762 [(AdvertisingData.COMPLETE_LOCAL_NAME, bytes(self.name, 'utf-8'))]
1533 AdvertisingData.from_bytes(data),
1557 AdvertisingData(
1560 AdvertisingData.COMPLETE_LOCAL_NAME,
2118 local_name = ad_data.get(AdvertisingData.COMPLETE_LOCAL_NAME, raw=True)
2120 local_name = ad_data.get(AdvertisingData.SHORTENED_LOCAL_NAME, raw=True)
Dhci.py28 AdvertisingData,
4308 'data': lambda x: str(AdvertisingData.from_bytes(x)),
4538 'data': lambda x: str(AdvertisingData.from_bytes(x)),
/external/pandora/avatar/avatar/bumble_server/
Dhost.py28 AdvertisingData,
426 …inquiry_queue: asyncio.Queue[Optional[Tuple[Address, int, AdvertisingData, int]]] = asyncio.Queue()
472 def unpack_data_types(self, dt: DataTypes) -> AdvertisingData:
494 AdvertisingData.INCOMPLETE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS,
501 AdvertisingData.COMPLETE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS,
508 AdvertisingData.INCOMPLETE_LIST_OF_32_BIT_SERVICE_CLASS_UUIDS,
515 AdvertisingData.COMPLETE_LIST_OF_32_BIT_SERVICE_CLASS_UUIDS,
522 AdvertisingData.INCOMPLETE_LIST_OF_128_BIT_SERVICE_CLASS_UUIDS,
529 AdvertisingData.COMPLETE_LIST_OF_128_BIT_SERVICE_CLASS_UUIDS,
534 … ad_structures.append((AdvertisingData.SHORTENED_LOCAL_NAME, bytes(self.device.name[:8], 'utf-8')))
[all …]
/external/python/bumble/examples/
Dbattery_server.py25 from bumble.core import AdvertisingData
47 AdvertisingData(
50 AdvertisingData.COMPLETE_LOCAL_NAME,
54 AdvertisingData.INCOMPLETE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS,
57 (AdvertisingData.APPEARANCE, struct.pack('<H', 0x0340)),
Drun_asha_sink.py24 from bumble.core import AdvertisingData
167 AdvertisingData(
169 (AdvertisingData.COMPLETE_LOCAL_NAME, bytes(device.name, 'utf-8')),
170 (AdvertisingData.FLAGS, bytes([0x06])),
172 AdvertisingData.INCOMPLETE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS,
176 AdvertisingData.SERVICE_DATA_16_BIT_UUID,
Dheart_rate_server.py27 from bumble.core import AdvertisingData
86 AdvertisingData(
89 AdvertisingData.COMPLETE_LOCAL_NAME,
93 AdvertisingData.INCOMPLETE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS,
96 (AdvertisingData.APPEARANCE, struct.pack('<H', 0x0340)),
Ddevice_information_server.py24 from bumble.core import AdvertisingData
53 AdvertisingData(
56 AdvertisingData.COMPLETE_LOCAL_NAME,
59 (AdvertisingData.APPEARANCE, struct.pack('<H', 0x0340)),
Dkeyboard.py27 from bumble.core import AdvertisingData
340 AdvertisingData(
343 AdvertisingData.COMPLETE_LOCAL_NAME,
347 AdvertisingData.INCOMPLETE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS,
350 (AdvertisingData.APPEARANCE, struct.pack('<H', 0x03C1)),
351 (AdvertisingData.FLAGS, bytes([0x05])),
/external/pigweed/pw_bluetooth/public/pw_bluetooth/low_energy/
Dperipheral.h90 AdvertisingData data;
98 std::optional<AdvertisingData> scan_response;
Dadvertising_data.h37 struct AdvertisingData { struct
/external/python/bumble/bumble/profiles/
Dasha_service.py22 from ..core import AdvertisingData
172 AdvertisingData(
175 AdvertisingData.SERVICE_DATA_16_BIT_UUID,
/external/python/bumble/apps/
Dgg_bridge.py26 from bumble.core import AdvertisingData
249 AdvertisingData(
251 (AdvertisingData.COMPLETE_LOCAL_NAME, bytes('Bumble GG', 'utf-8')),
253 AdvertisingData.INCOMPLETE_LIST_OF_128_BIT_SERVICE_CLASS_UUIDS,
Dconsole.py57 from bumble.core import UUID, AdvertisingData, BT_LE_TRANSPORT
966 name = self.ad_data.get(AdvertisingData.COMPLETE_LOCAL_NAME, raw=True)
968 name = self.ad_data.get(AdvertisingData.SHORTENED_LOCAL_NAME, raw=True)