Home
last modified time | relevance | path

Searched refs:bt_property_t (Results 1 – 25 of 52) sorted by relevance

123

/packages/modules/Bluetooth/system/btcore/include/
Dproperty.h31 bt_property_t* property_copy_array(const bt_property_t* properties,
36 bt_property_t* property_copy(bt_property_t* dest, const bt_property_t* src);
40 bool property_equals(const bt_property_t* p1, const bt_property_t* p2);
46 bt_property_t* property_new_addr(const RawAddress* addr);
47 bt_property_t* property_new_device_class(const bt_device_class_t* dc);
48 bt_property_t* property_new_device_type(bt_device_type_t device_type);
49 bt_property_t* property_new_discoverable_timeout(const uint32_t timeout);
50 bt_property_t* property_new_name(const char* name);
51 bt_property_t* property_new_rssi(const int8_t rssi);
52 bt_property_t* property_new_scan_mode(bt_scan_mode_t scan_mode);
[all …]
/packages/modules/Bluetooth/system/btcore/src/
Dproperty.cc33 static bt_property_t* property_new_(void* val, size_t len,
36 bt_property_t* property_copy_array(const bt_property_t* properties, in property_copy_array()
39 bt_property_t* clone = in property_copy_array()
40 static_cast<bt_property_t*>(osi_calloc(sizeof(bt_property_t) * count)); in property_copy_array()
42 memcpy(&clone[0], &properties[0], sizeof(bt_property_t) * count); in property_copy_array()
51 bt_property_t* property_copy(bt_property_t* dest, const bt_property_t* src) { in property_copy()
54 return (bt_property_t*)memcpy(dest, src, sizeof(bt_property_t)); in property_copy()
57 bool property_equals(const bt_property_t* p1, const bt_property_t* p2) { in property_equals()
73 const bt_property_t *shorter = p1, *longer = p2; in property_equals()
85 bt_property_t* property_new_addr(const RawAddress* addr) { in property_new_addr()
[all …]
/packages/modules/Bluetooth/system/test/headless/
Dproperty.cc33 std::map<::bt_property_type_t, std::function<headless::bt_property_t*(
37 [](const uint8_t* data, const size_t len) -> headless::bt_property_t* { in __anon4b405c0e0202()
41 [](const uint8_t* data, const size_t len) -> headless::bt_property_t* { in __anon4b405c0e0302()
45 [](const uint8_t* data, const size_t len) -> headless::bt_property_t* { in __anon4b405c0e0402()
49 [](const uint8_t* data, const size_t len) -> headless::bt_property_t* { in __anon4b405c0e0502()
53 [](const uint8_t* data, const size_t len) -> headless::bt_property_t* { in __anon4b405c0e0602()
57 [](const uint8_t* data, const size_t len) -> headless::bt_property_t* { in __anon4b405c0e0702()
62 [](const uint8_t* data, const size_t len) -> headless::bt_property_t* { in __anon4b405c0e0802()
67 [](const uint8_t* data, const size_t len) -> headless::bt_property_t* { in __anon4b405c0e0902()
72 [](const uint8_t* data, const size_t len) -> headless::bt_property_t* { in __anon4b405c0e0a02()
[all …]
Dproperty.h66 struct bt_property_t { struct
75 for (size_t i = 0; i < sizeof(bt_property_t); i++, p++) { in ToRaw() argument
82 bt_property_t(const uint8_t* data, const size_t len) { in bt_property_t() argument
87 virtual ~bt_property_t() = default;
96 struct void_t : public bt_property_t { argument
98 : bt_property_t(data, len) { in void_t()
109 struct uuid_t : public bt_property_t {
111 uuid_t(const uint8_t* data, const size_t len) : bt_property_t(data, len) {} in uuid_t()
132 struct name_t : public bt_property_t {
133 name_t(const uint8_t* data, const size_t len) : bt_property_t(data, len) { in name_t()
[all …]
Dinterface.h97 std::deque<bluetooth::test::headless::bt_property_t*> properties() const { in properties()
105 ::bt_property_t* properties) in callback_params_with_properties_t()
118 std::deque<bluetooth::test::headless::bt_property_t*> property_queue_;
177 ::bt_property_t* properties) in adapter_properties_params_t()
198 ::bt_property_t* properties) in remote_device_properties_params_t()
219 device_found_params_t(int num_properties, ::bt_property_t* properties) in device_found_params_t()
Dbt_property.h11 void process_property(const RawAddress& bd_addr, const bt_property_t* prop);
12 void process_property2(const bt_property_t* prop);
/packages/modules/Bluetooth/system/btcore/test/
Dproperty_test.cc33 bt_property_t* property = property_new_addr(&addr0); in TEST_F()
52 bt_property_t* property = property_new_device_class(&dc0); in TEST_F()
69 bt_property_t* property = property_new_device_type(dt0); in TEST_F()
83 bt_property_t* property = property_new_discoverable_timeout(timeout0); in TEST_F()
97 bt_property_t* property = property_new_name(name0); in TEST_F()
111 bt_property_t* property = property_new_rssi(rssi0); in TEST_F()
125 bt_property_t* property = property_new_scan_mode(mode0); in TEST_F()
142 bt_property_t* property = property_new_uuids(&uuid0, 1); in TEST_F()
168 bt_property_t* property0 = in TEST_F()
171 bt_property_t property1; in TEST_F()
[all …]
/packages/modules/Bluetooth/system/test/mock/
Dmock_btif_storage.h170 uint32_t num_properties, bt_property_t* properties)>
173 bt_property_t* /* properties */) { return return_value; }};
175 uint32_t num_properties, bt_property_t* properties) { in operator()
187 bt_property_t* property)>
189 bt_property_t* /* property */) { return return_value; }};
191 bt_property_t* property) { in operator()
202 std::function<bt_status_t(bt_property_t* property)> body{
203 [](bt_property_t* /* property */) { return return_value; }};
204 bt_status_t operator()(bt_property_t* property) { return body(property); }; in operator()
289 bt_property_t* property)>
[all …]
Dmock_btif_core.cc36 bt_property_t* property_deep_copy(const bt_property_t* /* prop */) { in property_deep_copy() argument
63 bt_property_t* /* p_props */) { in btif_adapter_properties_evt() argument
95 bt_property_t* /* p_props */) { in btif_remote_properties_evt() argument
98 void btif_set_adapter_property(bt_property_t* /* property */) { in btif_set_adapter_property() argument
102 bt_property_t* /* property */) { in btif_set_remote_device_property() argument
Dmock_btif_storage.cc171 bt_property_t* properties) { in btif_storage_add_remote_device()
177 int size, bt_property_t* property) { in btif_storage_get_adapter_prop()
182 bt_status_t btif_storage_get_adapter_property(bt_property_t* property) { in btif_storage_get_adapter_property()
215 const RawAddress* remote_bd_addr, bt_property_t* property) { in btif_storage_get_remote_device_property()
222 int size, bt_property_t* property) { in btif_storage_get_remote_prop()
276 bt_status_t btif_storage_set_adapter_property(bt_property_t* property) { in btif_storage_set_adapter_property()
300 const RawAddress* remote_bd_addr, bt_property_t* property) { in btif_storage_set_remote_device_property()
Dmock_bluetooth_interface.cc27 bt_property_t* /* properties */) {} in invoke_adapter_properties_cb() argument
31 bt_property_t* /* properties */) {} in invoke_remote_device_properties_cb() argument
33 bt_property_t* /* properties */) {} in invoke_device_found_cb() argument
Dmock_btif_bluetooth.h141 std::function<int(RawAddress* remote_addr, const bt_property_t* property)>
143 const bt_property_t* /* property */) { return 0; }};
144 int operator()(RawAddress* remote_addr, const bt_property_t* property) { in operator()
/packages/modules/Bluetooth/system/gd/discovery/device/
Dbt_property_unittest.cc282 void verify_property(const bt_property_type_t& type, const bt_property_t& property) { in verify_property()
528 bt_property_t prop = { in TEST_F()
537 bt_property_t prop = { in TEST_F()
546 bt_property_t prop = { in TEST_F()
558 bt_property_t prop = { in TEST_F()
567 bt_property_t prop = { in TEST_F()
577 bt_property_t prop = { in TEST_F()
589 bt_property_t prop = { in TEST_F()
598 bt_property_t prop = { in TEST_F()
610 bt_property_t prop = { in TEST_F()
[all …]
Dbt_property.h27 std::string bt_property_text(const bt_property_t& property);
61 void Export(bt_property_t* bt_properties, size_t size);
65 const std::vector<bt_property_t>& Properties() const;
67 bt_property_t* Ptr() const { in Ptr()
68 return const_cast<bt_property_t*>(&properties_[0]); in Ptr()
76 std::vector<bt_property_t> properties_;
/packages/modules/Bluetooth/system/test/suite/adapter/
Dbluetooth_test.h96 bt_property_t* GetProperty(bt_property_type_t type);
99 bt_property_t* GetRemoteDeviceProperty(const RawAddress* addr,
123 bt_property_t* properties);
129 bt_property_t* properties);
147 bt_property_t* last_changed_properties_;
150 bt_property_t* remote_device_last_changed_properties_;
Dbluetooth_test.cc50 bt_property_t* new_properties) { in AdapterPropertiesCallback()
62 bt_property_t* properties) { in RemoteDevicePropertiesCallback()
126 bt_property_t* BluetoothTest::GetProperty(bt_property_type_t type) { in GetProperty()
135 bt_property_t* BluetoothTest::GetRemoteDeviceProperty(const RawAddress* addr, in GetRemoteDeviceProperty()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_core.cc202 bt_property_t prop; in btif_enable_bluetooth_evt()
310 bt_property_t properties[NUM_ADAPTER_PROPERTIES]; in btif_in_get_adapter_properties()
370 bt_property_t remote_properties[8]; in btif_in_get_remote_device_properties()
416 static void btif_core_storage_adapter_write(bt_property_t* prop) { in btif_core_storage_adapter_write()
425 bt_property_t* p_props) { in btif_adapter_properties_evt()
430 uint32_t num_props, bt_property_t* p_props) { in btif_remote_properties_evt()
462 bt_property_t prop; in btif_get_adapter_property()
573 bt_property_t* property_deep_copy(const bt_property_t* prop) { in property_deep_copy()
574 bt_property_t* copy = in property_deep_copy()
575 (bt_property_t*)osi_calloc(sizeof(bt_property_t) + prop->len); in property_deep_copy()
[all …]
Dbtif_storage.cc123 static bool prop2cfg(const RawAddress* remote_bd_addr, bt_property_t* prop) { in prop2cfg()
228 static bool cfg2prop(const RawAddress* remote_bd_addr, bt_property_t* prop) { in cfg2prop()
577 int size, bt_property_t* property) { in btif_storage_get_adapter_prop()
597 bt_status_t btif_storage_get_adapter_property(bt_property_t* property) { in btif_storage_get_adapter_property()
710 bt_status_t btif_storage_set_adapter_property(bt_property_t* property) { in btif_storage_set_adapter_property()
717 int size, bt_property_t* property) { in btif_storage_get_remote_prop()
738 const RawAddress* remote_bd_addr, bt_property_t* property) { in btif_storage_get_remote_device_property()
754 const RawAddress* remote_bd_addr, bt_property_t* property) { in btif_storage_set_remote_device_property()
773 bt_property_t* properties) { in btif_storage_add_remote_device()
789 bt_property_t addr_prop; in btif_storage_add_remote_device()
[all …]
Dbluetooth.cc533 static int set_adapter_property(const bt_property_t* property) { in set_adapter_property()
547 [](bt_property_t* property) { in set_adapter_property()
573 const bt_property_t* property) { in set_remote_device_property()
578 [](RawAddress remote_addr, bt_property_t* property) { in set_remote_device_property()
1229 bt_property_t* property_deep_copy_array(int num_properties, in property_deep_copy_array()
1230 bt_property_t* properties) { in property_deep_copy_array()
1231 bt_property_t* copy = nullptr; in property_deep_copy_array()
1241 copy = (bt_property_t*)osi_calloc((sizeof(bt_property_t) * num_properties) + in property_deep_copy_array()
1270 bt_property_t* properties) { in invoke_adapter_properties_cb()
1272 [](bt_status_t status, int num_properties, bt_property_t* properties) { in invoke_adapter_properties_cb()
[all …]
Dbtif_dm.cc487 bt_property_t prop_name; in get_cached_remote_name()
507 bt_property_t prop_name; in get_cod()
553 bt_property_t prop_name; in check_sdp_bl()
658 bt_property_t property; in btif_update_remote_version_property()
690 std::vector<bt_property_t> properties; in btif_update_remote_properties()
697 properties.push_back(bt_property_t{ in btif_update_remote_properties()
718 bt_property_t{BT_PROPERTY_CLASS_OF_DEVICE, sizeof(cod), &cod}); in btif_update_remote_properties()
725 bt_property_t prop_name; in btif_update_remote_properties()
737 bt_property_t{BT_PROPERTY_TYPE_OF_DEVICE, sizeof(dev_type), &dev_type}); in btif_update_remote_properties()
1269 bt_property_t prop; in btif_dm_auth_cmpl_evt()
[all …]
/packages/modules/Bluetooth/system/btif/include/
Dbtif_api.h143 bt_property_t* property_deep_copy(const bt_property_t* prop);
162 void btif_set_adapter_property(bt_property_t* property);
193 bt_property_t* property);
334 bt_status_t btif_dm_get_adapter_property(bt_property_t* prop);
Dbtif_common.h130 bt_property_t* p_props);
132 uint32_t num_props, bt_property_t* p_props);
144 bt_property_t* properties);
147 bt_property_t* properties);
148 void invoke_device_found_cb(int num_properties, bt_property_t* properties);
Dbtif_storage.h88 bt_status_t btif_storage_get_adapter_property(bt_property_t* property);
101 bt_status_t btif_storage_set_adapter_property(bt_property_t* property);
117 const RawAddress* remote_bd_addr, bt_property_t* property);
131 const RawAddress* remote_bd_addr, bt_property_t* property);
147 bt_property_t* properties);
Dmock_core_callbacks.h35 bt_property_t* /* properties */) {},
38 int /* num_properties */, bt_property_t* /* properties */) {},
40 bt_property_t* /* properties */) {},
/packages/modules/Bluetooth/system/btcore/fuzzer/
Dbtcore_property_fuzzer.cpp41 bt_property_t* property = property_new_addr(&btAddress); in process()
92 bt_property_t* propertySrc = property_new_uuids(uuids, std::size(uuids)); in process()
93 bt_property_t propertyDest; in process()

123