Home
last modified time | relevance | path

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

/system/bt/btcore/include/
Dproperty.h30 bt_property_t* property_copy_array(const bt_property_t* properties,
35 bt_property_t* property_copy(bt_property_t* dest, const bt_property_t* src);
39 bool property_equals(const bt_property_t* p1, const bt_property_t* p2);
45 bt_property_t* property_new_addr(const RawAddress* addr);
46 bt_property_t* property_new_device_class(const bt_device_class_t* dc);
47 bt_property_t* property_new_device_type(bt_device_type_t device_type);
48 bt_property_t* property_new_discovery_timeout(const uint32_t timeout);
49 bt_property_t* property_new_name(const char* name);
50 bt_property_t* property_new_rssi(const int8_t rssi);
51 bt_property_t* property_new_scan_mode(bt_scan_mode_t scan_mode);
[all …]
/system/bt/btcore/src/
Dproperty.cc28 static bt_property_t* property_new_(void* val, size_t len,
31 bt_property_t* property_copy_array(const bt_property_t* properties, in property_copy_array()
34 bt_property_t* clone = in property_copy_array()
35 static_cast<bt_property_t*>(osi_calloc(sizeof(bt_property_t) * count)); in property_copy_array()
37 memcpy(&clone[0], &properties[0], sizeof(bt_property_t) * count); in property_copy_array()
46 bt_property_t* property_copy(bt_property_t* dest, const bt_property_t* src) { in property_copy()
49 return (bt_property_t*)memcpy(dest, src, sizeof(bt_property_t)); in property_copy()
52 bool property_equals(const bt_property_t* p1, const bt_property_t* p2) { in property_equals()
68 const bt_property_t *shorter = p1, *longer = p2; in property_equals()
80 bt_property_t* property_new_addr(const RawAddress* addr) { in property_new_addr()
[all …]
/system/bt/btcore/test/
Dproperty_test.cc31 bt_property_t* property = property_new_addr(&addr0); in TEST_F()
50 bt_property_t* property = property_new_device_class(&dc0); in TEST_F()
67 bt_property_t* property = property_new_device_type(dt0); in TEST_F()
81 bt_property_t* property = property_new_discovery_timeout(timeout0); in TEST_F()
95 bt_property_t* property = property_new_name(name0); in TEST_F()
109 bt_property_t* property = property_new_rssi(rssi0); in TEST_F()
123 bt_property_t* property = property_new_scan_mode(mode0); in TEST_F()
140 bt_property_t* property = property_new_uuids(&uuid0, 1); in TEST_F()
166 bt_property_t* property0 = in TEST_F()
169 bt_property_t property1; in TEST_F()
[all …]
/system/bt/test/suite/adapter/
Dbluetooth_test.h54 bt_property_t* GetProperty(bt_property_type_t type);
57 bt_property_t* GetRemoteDeviceProperty(const RawAddress* addr,
81 bt_property_t* properties) override;
87 bt_property_t* properties) override;
108 bt_property_t* last_changed_properties_;
111 bt_property_t* remote_device_last_changed_properties_;
Dbluetooth_test.cc88 bt_property_t* BluetoothTest::GetProperty(bt_property_type_t type) { in GetProperty()
97 bt_property_t* BluetoothTest::GetRemoteDeviceProperty(const RawAddress* addr, in GetRemoteDeviceProperty()
127 bt_property_t* new_properties) { in AdapterPropertiesCallback()
139 bt_property_t* properties) { in RemoteDevicePropertiesCallback()
Dadapter_unittest.cc63 bt_property_t* new_name = property_new_name("BluetoothTestName1"); in TEST_F()
79 bt_property_t* name_property = GetProperty(BT_PROPERTY_BDNAME); in TEST_F()
99 bt_property_t* old_name_property = property_new_name(old_name.c_str()); in TEST_F()
/system/bt/btif/include/
Dbtif_storage.h55 bt_status_t btif_storage_get_adapter_property(bt_property_t* property);
68 bt_status_t btif_storage_set_adapter_property(bt_property_t* property);
84 const RawAddress* remote_bd_addr, bt_property_t* property);
98 const RawAddress* remote_bd_addr, bt_property_t* property);
140 bt_property_t* properties);
Dbtif_api.h151 bt_status_t btif_set_adapter_property(const bt_property_t* property);
188 const bt_property_t* property);
334 bt_status_t btif_dm_get_adapter_property(bt_property_t* prop);
Dbtif_common.h209 bt_property_t* p_props);
211 uint32_t num_props, bt_property_t* p_props);
/system/bt/tools/bdtool/
Dadapter.c26 static bt_property_t* properties = NULL;
31 static void parse_properties(int num_properties, bt_property_t* property);
40 bt_property_t* adapter_get_property(bt_property_type_t type) { in adapter_get_property()
68 bt_property_t* new_properties) { in adapter_properties()
111 void device_found(int num_properties, bt_property_t* property) { in device_found()
141 int num_properties, bt_property_t* properties) { in remote_device_properties()
190 static void parse_properties(int num_properties, bt_property_t* property) { in parse_properties()
Dbdtool.c65 bt_property_t* adapter_get_property(bt_property_type_t type);
118 bt_property_t* property = in main()
167 bt_property_t* property = adapter_get_property(BT_PROPERTY_BDNAME); in main()
179 bt_property_t* property = property_new_name(bd_name); in main()
205 bt_property_t* property = in main()
/system/bt/service/hal/
Dfake_bluetooth_interface.cc36 int FakeHALSetAdapterProperty(const bt_property_t* /* property */) { in FakeHALSetAdapterProperty() argument
99 int num_properties, bt_property_t* properties) { in NotifyAdapterPropertiesChanged()
113 bt_property_t property; in NotifyAdapterNamePropertyChanged()
123 bt_property_t property; in NotifyAdapterAddressPropertyChanged()
133 bt_property_t property; in NotifyAdapterLocalLeFeaturesPropertyChanged()
Dbluetooth_interface.h55 bt_property_t* properties);
59 bt_property_t* properties);
61 bt_property_t* properties);
Dbluetooth_interface.cc78 bt_property_t* properties) { in AdapterPropertiesCallback()
90 bt_property_t* properties) { in RemoteDevicePropertiesCallback()
101 void DeviceFoundCallback(int num_properties, bt_property_t* properties) { in DeviceFoundCallback()
309 bt_property_t* /* properties */) { in AdapterPropertiesCallback() argument
315 int /* num_properties */, bt_property_t* /* properties */) { in RemoteDevicePropertiesCallback() argument
320 int /* num_properties */, bt_property_t* /* properties */) { in DeviceFoundCallback() argument
Dfake_bluetooth_interface.h52 bt_property_t* properties);
/system/bt/include/hardware/
Dbluetooth.h273 } bt_property_t; typedef
326 bt_property_t* properties);
335 bt_property_t* properties);
341 bt_property_t* properties);
496 int (*set_adapter_property)(const bt_property_t* property);
507 const bt_property_t* property);
/system/bt/btif/src/
Dbtif_core.cc102 bt_property_t prop;
363 bt_property_t prop; in btif_enable_bluetooth_evt()
551 bt_property_t properties[NUM_ADAPTER_PROPERTIES]; in btif_in_get_adapter_properties()
626 bt_property_t remote_properties[8]; in btif_in_get_remote_device_properties()
690 bt_property_t* p_prop = &(p_req->write_req.prop); in execute_storage_request()
701 bt_property_t prop; in execute_storage_request()
757 bt_property_t prop; in execute_storage_remote_request()
787 bt_property_t* p_props) { in btif_adapter_properties_evt()
791 uint32_t num_props, bt_property_t* p_props) { in btif_remote_properties_evt()
887 bt_status_t btif_set_adapter_property(const bt_property_t* property) { in btif_set_adapter_property()
[all …]
Dbtif_storage.cc187 static int prop2cfg(const RawAddress* remote_bd_addr, bt_property_t* prop) { in prop2cfg()
286 static int cfg2prop(const RawAddress* remote_bd_addr, bt_property_t* prop) { in cfg2prop()
576 bt_property_t property; in btif_storage_get_io_cap_property()
632 bt_status_t btif_storage_get_adapter_property(bt_property_t* property) { in btif_storage_get_adapter_property()
732 bt_status_t btif_storage_set_adapter_property(bt_property_t* property) { in btif_storage_set_adapter_property()
750 const RawAddress* remote_bd_addr, bt_property_t* property) { in btif_storage_get_remote_device_property()
766 const RawAddress* remote_bd_addr, bt_property_t* property) { in btif_storage_set_remote_device_property()
785 bt_property_t* properties) { in btif_storage_add_remote_device()
796 bt_property_t addr_prop; in btif_storage_add_remote_device()
797 memcpy(&addr_prop, &properties[i], sizeof(bt_property_t)); in btif_storage_add_remote_device()
[all …]
Dbtif_dm.cc392 bt_property_t prop_name; in check_cached_remote_name()
412 bt_property_t prop_name; in get_cod()
436 bt_property_t prop_name; in check_hid_le()
466 bt_property_t prop_name; in check_sdp_bl()
529 bt_property_t property; in btif_update_remote_version_property()
560 bt_property_t properties[3]; in btif_update_remote_properties()
604 bt_property_t prop_name; in btif_update_remote_properties()
1110 bt_property_t prop; in btif_dm_auth_cmpl_evt()
1235 bt_property_t properties[1]; in btif_dm_search_devices_evt()
1281 bt_property_t properties[5]; in btif_dm_search_devices_evt()
[all …]
Dbluetooth.cc188 static int set_adapter_property(const bt_property_t* property) { in set_adapter_property()
211 const bt_property_t* property) { in set_remote_device_property()
Dbtif_ble_scanner.cc113 bt_property_t properties; in bta_scan_results_cb_impl()
Dbtif_hh.cc973 bt_property_t prop_name; in btif_hh_upstreams_evt()
/system/bt/test/suite/rfcomm/
Drfcomm_test.cc42 bt_property_t* bonded_devices_prop = in SetUp()
52 bt_property_t* uuid_prop = in SetUp()
/system/bt/service/
Dadapter.cc48 bt_property_t* properties) { in ParseRemoteDeviceProps()
57 bt_property_t* property = properties + i; in ParseRemoteDeviceProps()
524 bt_property_t* properties) override { in AdapterPropertiesCallback()
531 bt_property_t* property = properties + i; in AdapterPropertiesCallback()
543 bt_property_t* property = properties + i; in AdapterPropertiesCallback()
608 bt_property_t* properties) override { in RemoteDevicePropertiesCallback()
632 bt_property_t* properties) override { in DeviceFoundCallback()
718 bt_property_t property; in SetAdapterProperty()