Home
last modified time | relevance | path

Searched refs:ClassOfDevice (Results 1 – 25 of 41) sorted by relevance

12

/packages/modules/Bluetooth/system/gd/hci/
Dclass_of_device_unittest.cc24 using bluetooth::hci::ClassOfDevice;
30 ClassOfDevice cod(test_bytes); in TEST()
42 ClassOfDevice cod; in TEST()
43 ClassOfDevice::FromString(test_class, cod); in TEST()
55 ClassOfDevice cod; in TEST()
56 size_t expected_result = ClassOfDevice::kLength; in TEST()
69 ClassOfDevice cod1; in TEST()
70 ClassOfDevice cod2; in TEST()
71 ClassOfDevice::FromString(test_class, cod1); in TEST()
80 ASSERT_FALSE(ClassOfDevice::IsValid("")); in TEST()
[all …]
Dcontroller_interface_mock.h123 (ClassOfDevice class_of_device, ClassOfDevice class_of_device_mask));
127 (ClassOfDevice class_of_device, ClassOfDevice class_of_device_mask,
Dcontroller_mock.h123 (ClassOfDevice class_of_device, ClassOfDevice class_of_device_mask));
127 (ClassOfDevice class_of_device, ClassOfDevice class_of_device_mask,
Dhci_layer.h104 common::ContextualCallback<void(Address, ClassOfDevice)> on_connection_request,
123 common::ContextualCallback<void(Address, ClassOfDevice, ConnectionRequestLinkType)>
173 common::ContextualCallback<void(Address bd_addr, ClassOfDevice cod)> on_acl_connection_request_{};
174 common::ContextualCallback<void(Address bd_addr, ClassOfDevice cod,
Dcontroller_interface.h140 virtual void SetEventFilterInquiryResultClassOfDevice(ClassOfDevice class_of_device,
141 ClassOfDevice class_of_device_mask) = 0;
147 virtual void SetEventFilterConnectionSetupClassOfDevice(ClassOfDevice class_of_device,
148 ClassOfDevice class_of_device_mask,
Dcontroller.h146 ClassOfDevice class_of_device, ClassOfDevice class_of_device_mask) override;
152 virtual void SetEventFilterConnectionSetupClassOfDevice(ClassOfDevice class_of_device,
153 ClassOfDevice class_of_device_mask,
Dhci_layer_mock.h76 common::ContextualCallback<void(Address, ClassOfDevice)> on_connection_request,
107 (common::ContextualCallback<void(Address, ClassOfDevice, ConnectionRequestLinkType)>
Dhci_interface.h97 common::ContextualCallback<void(Address, ClassOfDevice)> on_connection_request,
116 common::ContextualCallback<void(Address, ClassOfDevice, ConnectionRequestLinkType)>
Dacl_manager_unittest.cc64 ClassOfDevice class_of_device;
118 MOCK_METHOD(void, OnConnectRequest, (Address, ClassOfDevice), (override));
464 ClassOfDevice class_of_device; in TEST_F()
600 test_hci_layer_->IncomingEvent(ConnectionRequestBuilder::Create(remote, ClassOfDevice({1, 2, 3}), in TEST_F()
615 test_hci_layer_->IncomingEvent(ConnectionRequestBuilder::Create(remote, ClassOfDevice({1, 2, 3}), in TEST_F()
Dhci_layer_unittest.cc285 hci_handler_->Bind([](Address /* bd_addr */, ClassOfDevice /* cod */) {}), in TEST_F() argument
299 hci_handler_->Bind([](Address /* bd_addr */, ClassOfDevice /* cod */) {}), in TEST_F() argument
312 hci_handler_->Bind([](Address /* bd_addr */, ClassOfDevice /* cod */) {}), in TEST_F() argument
/packages/modules/Bluetooth/system/pdl/hci/include/hci/
Dclass_of_device.h31 class ClassOfDevice final : public packet::CustomFieldFixedSizeInterface<ClassOfDevice>,
32 public storage::Serializable<ClassOfDevice> {
38 ClassOfDevice() = default;
39 ClassOfDevice(const uint8_t (&class_of_device)[kLength]);
47 static std::optional<ClassOfDevice> FromString(const std::string& str);
49 static std::optional<ClassOfDevice> FromLegacyConfigString(const std::string& str);
51 bool operator<(const ClassOfDevice& rhs) const { return cod < rhs.cod; }
52 bool operator==(const ClassOfDevice& rhs) const { return cod == rhs.cod; }
53 bool operator>(const ClassOfDevice& rhs) const { return rhs < *this; }
54 bool operator<=(const ClassOfDevice& rhs) const { return !(*this > rhs); }
[all …]
/packages/modules/Bluetooth/system/pdl/hci/
Dclass_of_device.cc33 ClassOfDevice::ClassOfDevice(const uint8_t (&class_of_device)[kLength]) { in ClassOfDevice() function in bluetooth::hci::ClassOfDevice
37 std::string ClassOfDevice::ToString() const { in ToString()
45 std::string ClassOfDevice::ToLegacyConfigString() const { return std::to_string(ToUint32Legacy()); } in ToLegacyConfigString()
47 std::optional<ClassOfDevice> ClassOfDevice::FromString(const std::string& str) { in FromString()
57 ClassOfDevice new_cod{}; in FromString()
90 bool ClassOfDevice::FromString(const std::string& from, ClassOfDevice& to) { in FromString()
100 std::optional<ClassOfDevice> ClassOfDevice::FromUint32Legacy(uint32_t cod_int) { in FromUint32Legacy()
104 ClassOfDevice result = {}; in FromUint32Legacy()
111 std::optional<ClassOfDevice> ClassOfDevice::FromLegacyConfigString(const std::string& str) { in FromLegacyConfigString()
120 uint32_t ClassOfDevice::ToUint32Legacy() const { return (cod[2]) | (cod[1] << 8) | (cod[0] << 16); } in ToUint32Legacy()
[all …]
/packages/modules/Bluetooth/tools/rootcanal/py/
Dbluetooth.py67 class ClassOfDevice: class
72 return (ClassOfDevice(int.from_bytes(span[:3], byteorder='little')), span[3:])
76 return ClassOfDevice(int.from_bytes(span, byteorder='little'))
/packages/modules/Bluetooth/system/blueberry/utils/
Dbluetooth.py47 class ClassOfDevice: class
62 return (ClassOfDevice(span[:3]), span[3:])
66 return ClassOfDevice(span)
/packages/modules/Bluetooth/system/stack/include/
Dsco_hci_link_interface.h36 void btm_sco_on_esco_connect_request(const RawAddress&, const bluetooth::hci::ClassOfDevice&);
37 void btm_sco_on_sco_connect_request(const RawAddress&, const bluetooth::hci::ClassOfDevice&);
Dacl_hci_link_interface.h32 void btm_connection_request(const RawAddress& bda, const bluetooth::hci::ClassOfDevice& cod);
/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_btm_sco.cc82 const bluetooth::hci::ClassOfDevice& /* cod */) { in btm_sco_on_esco_connect_request() argument
86 const bluetooth::hci::ClassOfDevice& /* cod */) { in btm_sco_on_sco_connect_request() argument
Dmock_stack_acl.h466 std::function<void(const RawAddress& bda, const bluetooth::hci::ClassOfDevice& cod)> body{
467 [](const RawAddress& /* bda */, const bluetooth::hci::ClassOfDevice& /* cod */) { ; }};
468 void operator()(const RawAddress& bda, const bluetooth::hci::ClassOfDevice& cod) { in operator()
/packages/modules/Bluetooth/system/gd/storage/
Ddevice.h198 GENERATE_PROPERTY_GETTER_SETTER_REMOVER(ClassOfDevice, hci::ClassOfDevice,
/packages/modules/Bluetooth/system/gd/hci/acl_manager/
Dconnection_callbacks.h36 virtual void OnConnectRequest(Address, ClassOfDevice) = 0;
Dconnection_callbacks_mock.h34 MOCK_METHOD(void, OnConnectRequest, (Address, ClassOfDevice), (override));
/packages/modules/Bluetooth/system/gd/rust/topshim/src/
Dbtif.rs152 ClassOfDevice, enumerator
596 ClassOfDevice(u32), enumerator
634 BluetoothProperty::ClassOfDevice(_) => BtPropertyType::ClassOfDevice, in get_type()
664 BluetoothProperty::ClassOfDevice(_) => mem::size_of::<u32>(), in get_len()
715 BluetoothProperty::ClassOfDevice(cod) => { in get_data_ptr()
824 BtPropertyType::ClassOfDevice => { in from()
825 BluetoothProperty::ClassOfDevice(u32_from_bytes(slice)) in from()
/packages/modules/Bluetooth/floss/pandora/floss/
Dfloss_enums.py180 ClassOfDevice = 0x4 variable in BtPropertyType
/packages/modules/Bluetooth/system/main/shim/
Dacl.h51 void OnConnectRequest(hci::Address, hci::ClassOfDevice) override;
/packages/modules/Bluetooth/system/gd/hci/fuzz/
Dhci_layer_fuzz_client.cc43 GetHandler()->Bind([](Address, ClassOfDevice) {}), in Start() argument

12