Searched refs:AdvertisingData (Results 1 – 15 of 15) sorted by relevance
/external/python/bumble/tests/ |
D | core_test.py | 18 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/ |
D | core.py | 626 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 …]
|
D | device.py | 129 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)
|
D | hci.py | 28 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/ |
D | host.py | 28 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/ |
D | battery_server.py | 25 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)),
|
D | run_asha_sink.py | 24 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,
|
D | heart_rate_server.py | 27 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)),
|
D | device_information_server.py | 24 from bumble.core import AdvertisingData 53 AdvertisingData( 56 AdvertisingData.COMPLETE_LOCAL_NAME, 59 (AdvertisingData.APPEARANCE, struct.pack('<H', 0x0340)),
|
D | keyboard.py | 27 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/ |
D | peripheral.h | 90 AdvertisingData data; 98 std::optional<AdvertisingData> scan_response;
|
D | advertising_data.h | 37 struct AdvertisingData { struct
|
/external/python/bumble/bumble/profiles/ |
D | asha_service.py | 22 from ..core import AdvertisingData 172 AdvertisingData( 175 AdvertisingData.SERVICE_DATA_16_BIT_UUID,
|
/external/python/bumble/apps/ |
D | gg_bridge.py | 26 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,
|
D | console.py | 57 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)
|