/system/bt/gd/hci/ |
D | class_of_device_unittest.cc | 24 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 …]
|
D | class_of_device.h | 31 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 …]
|
D | class_of_device.cc | 37 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 …]
|
D | class_of_device_pybind11_type_caster.h | 34 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) {
|
D | controller_mock.h | 98 (ClassOfDevice class_of_device, ClassOfDevice class_of_device_mask)); 104 …(ClassOfDevice class_of_device, ClassOfDevice class_of_device_mask, AutoAcceptFlag auto_accept_fla…
|
D | controller.h | 111 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,
|
D | controller_test.cc | 347 ClassOfDevice class_of_device({0xab, 0xcd, 0xef}); in TEST_F() 348 ClassOfDevice class_of_device_mask({0x12, 0x34, 0x56}); in TEST_F()
|
D | controller.cc | 976 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/ |
D | class_of_device_unittest.cc | 27 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/ |
D | class_of_device.cc | 27 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()
|
D | class_of_device.h | 28 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/ |
D | lib.rs | 68 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/ |
D | connection_callbacks.h | 38 virtual void HACK_OnEscoConnectRequest(Address, ClassOfDevice) = 0; 39 virtual void HACK_OnScoConnectRequest(Address, ClassOfDevice) = 0;
|
/system/bt/stack/include/ |
D | sco_hci_link_interface.h | 42 const bluetooth::types::ClassOfDevice&); 44 const bluetooth::types::ClassOfDevice&);
|
/system/bt/gd/packet/ |
D | python3_module.cc | 51 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/ |
D | mock_stack_btm_sco.cc | 116 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/ |
D | acl.h | 52 void HACK_OnEscoConnectRequest(hci::Address, hci::ClassOfDevice) override; 53 void HACK_OnScoConnectRequest(hci::Address, hci::ClassOfDevice) override;
|
D | acl_legacy_interface.h | 54 const types::ClassOfDevice&); 56 const types::ClassOfDevice&);
|
D | acl.cc | 1268 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/ |
D | device_properties.h | 32 using ::bluetooth::hci::ClassOfDevice; 179 ClassOfDevice GetClassOfDevice() const { in GetClassOfDevice() 381 ClassOfDevice class_of_device_{{0, 0, 0}};
|
/system/bt/gd/l2cap/classic/internal/ |
D | link_manager.h | 70 void HACK_OnEscoConnectRequest(hci::Address, hci::ClassOfDevice) override; 71 void HACK_OnScoConnectRequest(hci::Address, hci::ClassOfDevice) override;
|
D | link_manager.cc | 317 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/ |
D | link_layer_packets.pdl | 4 custom_field ClassOfDevice : 24 "hci/" 96 class_of_device : ClassOfDevice, 176 class_of_device : ClassOfDevice,
|
/system/bt/gd/storage/ |
D | device.h | 181 GENERATE_PROPERTY_GETTER_SETTER_REMOVER(ClassOfDevice, hci::ClassOfDevice, "DevClass");
|
/system/bt/gd/rust/linux/stack/src/ |
D | bluetooth.rs | 106 ClassOfDevice, enumerator
|