Home
last modified time | relevance | path

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

12

/system/bt/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 …]
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]);
51 static std::optional<ClassOfDevice> FromString(const std::string& str);
53 static std::optional<ClassOfDevice> FromLegacyConfigString(const std::string& str);
55 bool operator<(const ClassOfDevice& rhs) const {
58 bool operator==(const ClassOfDevice& rhs) const {
61 bool operator>(const ClassOfDevice& rhs) const {
64 bool operator<=(const ClassOfDevice& rhs) const {
[all …]
Dclass_of_device.cc37 ClassOfDevice::ClassOfDevice(const uint8_t (&class_of_device)[kLength]) { in ClassOfDevice() function in bluetooth::hci::ClassOfDevice
41 std::string ClassOfDevice::ToString() const { in ToString()
49 std::string ClassOfDevice::ToLegacyConfigString() const { in ToLegacyConfigString()
53 std::optional<ClassOfDevice> ClassOfDevice::FromString(const std::string& str) { in FromString()
63 ClassOfDevice new_cod{}; in FromString()
96 bool ClassOfDevice::FromString(const std::string& from, ClassOfDevice& to) { in FromString()
106 std::optional<ClassOfDevice> ClassOfDevice::FromUint32Legacy(uint32_t cod_int) { in FromUint32Legacy()
110 ClassOfDevice result = {}; in FromUint32Legacy()
117 std::optional<ClassOfDevice> ClassOfDevice::FromLegacyConfigString(const std::string& str) { in FromLegacyConfigString()
126 uint32_t ClassOfDevice::ToUint32Legacy() const { in ToUint32Legacy()
[all …]
Dclass_of_device_pybind11_type_caster.h34 struct type_caster<::bluetooth::hci::ClassOfDevice> {
37 PYBIND11_TYPE_CASTER(::bluetooth::hci::ClassOfDevice, _("ClassOfDevice"));
43 …bool conversion_successful = bluetooth::hci::ClassOfDevice::FromString(PyUnicode_AsUTF8(source), v…
50 static handle cast(bluetooth::hci::ClassOfDevice src, return_value_policy, handle) {
Dcontroller_mock.h98 (ClassOfDevice class_of_device, ClassOfDevice class_of_device_mask));
104 …(ClassOfDevice class_of_device, ClassOfDevice class_of_device_mask, AutoAcceptFlag auto_accept_fla…
Dcontroller.h111 virtual void SetEventFilterInquiryResultClassOfDevice(ClassOfDevice class_of_device,
112 ClassOfDevice class_of_device_mask);
118 virtual void SetEventFilterConnectionSetupClassOfDevice(ClassOfDevice class_of_device,
119 ClassOfDevice class_of_device_mask,
Dcontroller_test.cc347 ClassOfDevice class_of_device({0xab, 0xcd, 0xef}); in TEST_F()
348 ClassOfDevice class_of_device_mask({0x12, 0x34, 0x56}); in TEST_F()
Dcontroller.cc976 void Controller::SetEventFilterInquiryResultClassOfDevice(ClassOfDevice class_of_device, in SetEventFilterInquiryResultClassOfDevice()
977 ClassOfDevice class_of_device_mask) { in SetEventFilterInquiryResultClassOfDevice()
995 void Controller::SetEventFilterConnectionSetupClassOfDevice(ClassOfDevice class_of_device, in SetEventFilterConnectionSetupClassOfDevice()
996 ClassOfDevice class_of_device_mask, in SetEventFilterConnectionSetupClassOfDevice()
/system/bt/types/test/
Dclass_of_device_unittest.cc27 ClassOfDevice cod(test_bytes); in TEST()
39 ClassOfDevice cod; in TEST()
40 ClassOfDevice::FromString(test_class, cod); in TEST()
52 ClassOfDevice cod; in TEST()
53 size_t expected_result = ClassOfDevice::kLength; in TEST()
66 ClassOfDevice cod1; in TEST()
67 ClassOfDevice cod2; in TEST()
68 ClassOfDevice::FromString(test_class, cod1); in TEST()
77 EXPECT_FALSE(ClassOfDevice::IsValid("")); in TEST()
78 EXPECT_FALSE(ClassOfDevice::IsValid("000000")); in TEST()
[all …]
/system/bt/types/
Dclass_of_device.cc27 static_assert(sizeof(ClassOfDevice) == ClassOfDevice::kLength,
30 ClassOfDevice::ClassOfDevice(const uint8_t (&class_of_device)[kLength]) { in ClassOfDevice() function in ClassOfDevice
34 std::string ClassOfDevice::ToString() const { in ToString()
40 bool ClassOfDevice::FromString(const std::string& from, ClassOfDevice& to) { in FromString()
41 ClassOfDevice new_cod; in FromString()
70 size_t ClassOfDevice::FromOctets(const uint8_t* from) { in FromOctets()
75 bool ClassOfDevice::IsValid(const std::string& cod) { in IsValid()
76 ClassOfDevice tmp; in IsValid()
77 return ClassOfDevice::FromString(cod, tmp); in IsValid()
Dclass_of_device.h28 class ClassOfDevice final {
34 ClassOfDevice() = default;
35 ClassOfDevice(const uint8_t (&class_of_device)[kLength]);
37 bool operator==(const ClassOfDevice& rhs) const {
46 static bool FromString(const std::string& from, ClassOfDevice& to);
55 inline std::ostream& operator<<(std::ostream& os, const ClassOfDevice& c) {
63 using ::bluetooth::types::ClassOfDevice; // TODO, remove
/system/bt/gd/rust/hci/custom_types/
Dlib.rs68 pub struct ClassOfDevice { struct
73 impl fmt::Display for ClassOfDevice { argument
89 impl TryFrom<&[u8]> for ClassOfDevice { implementation
104 impl From<ClassOfDevice> for [u8; 3] {
105 fn from(cod: ClassOfDevice) -> [u8; 3] { in from()
/system/bt/gd/hci/acl_manager/
Dconnection_callbacks.h38 virtual void HACK_OnEscoConnectRequest(Address, ClassOfDevice) = 0;
39 virtual void HACK_OnScoConnectRequest(Address, ClassOfDevice) = 0;
/system/bt/stack/include/
Dsco_hci_link_interface.h42 const bluetooth::types::ClassOfDevice&);
44 const bluetooth::types::ClassOfDevice&);
/system/bt/gd/packet/
Dpython3_module.cc51 using ::bluetooth::hci::ClassOfDevice;
116 py::class_<ClassOfDevice>(hci_m, "ClassOfDevice") in PYBIND11_MODULE()
118 .def("__repr__", [](const ClassOfDevice& c) { return c.ToString(); }) in PYBIND11_MODULE()
119 .def("__str__", [](const ClassOfDevice& c) { return c.ToString(); }); in PYBIND11_MODULE()
/system/bt/test/mock/
Dmock_stack_btm_sco.cc116 const RawAddress& bda, const bluetooth::types::ClassOfDevice& cod) { in btm_sco_on_esco_connect_request()
120 const RawAddress& bda, const bluetooth::types::ClassOfDevice& cod) { in btm_sco_on_sco_connect_request()
/system/bt/main/shim/
Dacl.h52 void HACK_OnEscoConnectRequest(hci::Address, hci::ClassOfDevice) override;
53 void HACK_OnScoConnectRequest(hci::Address, hci::ClassOfDevice) override;
Dacl_legacy_interface.h54 const types::ClassOfDevice&);
56 const types::ClassOfDevice&);
Dacl.cc1268 hci::ClassOfDevice cod) { in HACK_OnEscoConnectRequest()
1270 types::ClassOfDevice legacy_cod; in HACK_OnEscoConnectRequest()
1271 types::ClassOfDevice::FromString(cod.ToLegacyConfigString(), legacy_cod); in HACK_OnEscoConnectRequest()
1281 hci::ClassOfDevice cod) { in HACK_OnScoConnectRequest()
1283 types::ClassOfDevice legacy_cod; in HACK_OnScoConnectRequest()
1284 types::ClassOfDevice::FromString(cod.ToLegacyConfigString(), legacy_cod); in HACK_OnScoConnectRequest()
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Ddevice_properties.h32 using ::bluetooth::hci::ClassOfDevice;
179 ClassOfDevice GetClassOfDevice() const { in GetClassOfDevice()
381 ClassOfDevice class_of_device_{{0, 0, 0}};
/system/bt/gd/l2cap/classic/internal/
Dlink_manager.h70 void HACK_OnEscoConnectRequest(hci::Address, hci::ClassOfDevice) override;
71 void HACK_OnScoConnectRequest(hci::Address, hci::ClassOfDevice) override;
Dlink_manager.cc317 void LinkManager::HACK_OnEscoConnectRequest(hci::Address device, hci::ClassOfDevice cod) { in HACK_OnEscoConnectRequest()
321 void LinkManager::HACK_OnScoConnectRequest(hci::Address device, hci::ClassOfDevice cod) { in HACK_OnScoConnectRequest()
/system/bt/vendor_libs/test_vendor_lib/packets/
Dlink_layer_packets.pdl4 custom_field ClassOfDevice : 24 "hci/"
96 class_of_device : ClassOfDevice,
176 class_of_device : ClassOfDevice,
/system/bt/gd/storage/
Ddevice.h181 GENERATE_PROPERTY_GETTER_SETTER_REMOVER(ClassOfDevice, hci::ClassOfDevice, "DevClass");
/system/bt/gd/rust/linux/stack/src/
Dbluetooth.rs106 ClassOfDevice, enumerator

12