Home
last modified time | relevance | path

Searched refs:device_address (Results 1 – 25 of 31) sorted by relevance

12

/system/bt/service/common/bluetooth/binder/
DIBluetoothGattServerCallback.cpp63 std::string device_address = data.readCString(); in onTransact() local
69 OnCharacteristicReadRequest(device_address, request_id, offset, is_long, in onTransact()
74 std::string device_address = data.readCString(); in onTransact() local
80 OnDescriptorReadRequest(device_address, request_id, offset, is_long, in onTransact()
85 std::string device_address = data.readCString(); in onTransact() local
98 OnCharacteristicWriteRequest(device_address, request_id, offset, is_prep, in onTransact()
103 std::string device_address = data.readCString(); in onTransact() local
116 OnDescriptorWriteRequest(device_address, request_id, offset, is_prep, in onTransact()
121 std::string device_address = data.readCString(); in onTransact() local
125 OnExecuteWriteRequest(device_address, request_id, is_exec); in onTransact()
[all …]
DIBluetoothGattServerCallback.h63 const std::string& device_address,
68 const std::string& device_address,
73 const std::string& device_address,
79 const std::string& device_address,
85 const std::string& device_address,
88 virtual void OnNotificationSent(const std::string& device_address,
126 const std::string& device_address,
130 const std::string& device_address,
134 const std::string& device_address,
139 const std::string& device_address,
[all …]
Dparcel_helpers.cpp147 parcel->writeCString(gatt_id.device_address().c_str()); in WriteGattIdentifierToParcel()
161 std::string device_address = parcel.readCString(); in CreateGattIdentifierFromParcel() local
174 device_address, is_primary, in CreateGattIdentifierFromParcel()
187 bool has_address = !filter.device_address().empty(); in WriteScanFilterToParcel()
190 parcel->writeCString(filter.device_address().c_str()); in WriteScanFilterToParcel()
209 std::string device_address; in CreateScanFilterFromParcel() local
211 device_address = parcel.readCString(); in CreateScanFilterFromParcel()
226 if (!filter->SetDeviceAddress(device_address)) in CreateScanFilterFromParcel()
278 if (util::IsAddressValid(scan_result.device_address())) { in WriteScanResultToParcel()
280 parcel->writeCString(scan_result.device_address().c_str()); in WriteScanResultToParcel()
[all …]
DIBluetoothGattServer.cpp128 std::string device_address = data.readCString(); in onTransact() local
138 server_if, device_address, request_id, status, offset, *value); in onTransact()
146 std::string device_address = data.readCString(); in onTransact() local
155 bool result = SendNotification(server_if, device_address, *char_id, confirm, in onTransact()
286 const std::string& device_address, in SendResponse() argument
294 data.writeCString(device_address.c_str()); in SendResponse()
308 const std::string& device_address, in SendNotification() argument
316 data.writeCString(device_address.c_str()); in SendNotification()
DIBluetoothGattServer.h81 const std::string& device_address,
88 const std::string& device_address,
142 const std::string& device_address,
148 const std::string& device_address,
/system/bt/service/example/heart_rate/
Dheart_rate_server.cpp340 const std::string& device_address, in OnCharacteristicReadRequest() argument
356 gatt_->SendResponse(server_if_, device_address, request_id, error, in OnCharacteristicReadRequest()
361 const std::string& device_address, in OnDescriptorReadRequest() argument
370 gatt_->SendResponse(server_if_, device_address, request_id, in OnDescriptorReadRequest()
377 const uint8_t value_bytes[] = { device_ccc_map_[device_address], 0x00 }; in OnDescriptorReadRequest()
386 gatt_->SendResponse(server_if_, device_address, request_id, error, in OnDescriptorReadRequest()
391 const std::string& device_address, in OnCharacteristicWriteRequest() argument
403 gatt_->SendResponse(server_if_, device_address, request_id, in OnCharacteristicWriteRequest()
415 gatt_->SendResponse(server_if_, device_address, request_id, in OnCharacteristicWriteRequest()
427 gatt_->SendResponse(server_if_, device_address, request_id, in OnCharacteristicWriteRequest()
[all …]
Dheart_rate_server.h60 const std::string& device_address,
64 const std::string& device_address,
68 const std::string& device_address,
73 const std::string& device_address,
78 const std::string& device_address,
80 void OnNotificationSent(const std::string& device_address,
/system/bt/service/common/bluetooth/
Dscan_result.cpp26 ScanResult::ScanResult(const std::string& device_address, in ScanResult() argument
29 : device_address_(device_address), in ScanResult()
32 CHECK(util::IsAddressValid(device_address)) << "Invalid BD_ADDR given: " in ScanResult()
33 << device_address; in ScanResult()
Dgatt_identifier.cpp31 const std::string& device_address, in CreateServiceId() argument
35 (!device_address.empty() && !util::IsAddressValid(device_address))) in CreateServiceId()
40 gatt_id->device_address_ = device_address; in CreateServiceId()
99 const std::string& device_address, in GattIdentifier() argument
107 : device_address_(device_address), in GattIdentifier()
Dscan_filter.cpp51 bool ScanFilter::SetDeviceAddress(const std::string& device_address) { in SetDeviceAddress() argument
52 if (!util::IsAddressValid(device_address)) in SetDeviceAddress()
55 device_address_ = device_address; in SetDeviceAddress()
Dscan_result.h30 ScanResult(const std::string& device_address,
37 const std::string& device_address() const { return device_address_; } in device_address() function
Dscan_filter.h42 const std::string& device_address() const { return device_address_; } in device_address() function
46 bool SetDeviceAddress(const std::string& device_address);
Dgatt_identifier.h38 const std::string& device_address,
52 const std::string& device_address,
84 const std::string& device_address() const { return device_address_; } in device_address() function
/system/bt/service/ipc/binder/
Dbluetooth_gatt_server_binder_server.cpp172 int server_id, const std::string& device_address, in SendResponse() argument
185 device_address, request_id, static_cast<bluetooth::GATTError>(status), in SendResponse()
191 const std::string& device_address, in SendNotification() argument
222 gatt_cb->OnNotificationSent(device_address, error); in SendNotification()
225 if (!gatt_server->SendNotification(device_address, characteristic_id, in SendNotification()
236 const std::string& device_address, in OnCharacteristicReadRequest() argument
249 device_address, request_id, offset, is_long, characteristic_id); in OnCharacteristicReadRequest()
254 const std::string& device_address, in OnDescriptorReadRequest() argument
267 device_address, request_id, offset, is_long, descriptor_id); in OnDescriptorReadRequest()
303 const std::string& device_address, in OnCharacteristicWriteRequest() argument
[all …]
Dbluetooth_gatt_server_binder_server.h57 bool SendResponse(int server_id, const std::string& device_address,
62 const std::string& device_address,
70 const std::string& device_address,
75 const std::string& device_address,
80 const std::string& device_address,
86 const std::string& device_address,
92 const std::string& device_address,
/system/bt/service/
Dgatt_server.cpp299 const std::string& device_address, int request_id, in SendResponse() argument
303 << " device_address: " << device_address in SendResponse()
310 if (!util::BdAddrFromString(device_address, &addr)) { in SendResponse()
311 LOG(ERROR) << "Invalid device address given: " << device_address; in SendResponse()
321 auto iter = conn_addr_map_.find(device_address); in SendResponse()
323 LOG(ERROR) << "No known connections for device address: " << device_address; in SendResponse()
338 << " not found for device with BD_ADDR: " << device_address; in SendResponse()
370 const std::string& device_address, in SendNotification() argument
376 << " device_address: " << device_address in SendNotification()
381 if (!util::BdAddrFromString(device_address, &addr)) { in SendNotification()
[all …]
Dadapter.cpp66 Adapter* adapter, const std::string& device_address, bool connected) { in OnDeviceConnectionStateChanged() argument
195 bool IsDeviceConnected(const std::string& device_address) override { in IsDeviceConnected() argument
197 return connected_devices_.find(device_address) != connected_devices_.end(); in IsDeviceConnected()
303 std::string device_address = BtAddrString(&remote_bdaddr); in AclStateChangedCallback() local
305 LOG(INFO) << "ACL state changed: " << device_address << " - connected: " in AclStateChangedCallback()
319 connected_devices_.insert(device_address); in AclStateChangedCallback()
321 connected_devices_.erase(device_address); in AclStateChangedCallback()
327 OnDeviceConnectionStateChanged(this, device_address, connected)); in AclStateChangedCallback()
Dgatt_server.h54 const std::string& device_address,
64 const std::string& device_address,
79 const std::string& device_address,
95 const std::string& device_address,
106 const std::string& device_address,
174 bool SendResponse(const std::string& device_address, int request_id,
189 bool SendNotification(const std::string& device_address,
Dadapter.h61 Adapter* adapter, const std::string& device_address, bool connected);
111 virtual bool IsDeviceConnected(const std::string& device_address) = 0;
/system/bt/service/doc/
DIBluetoothGattServerCallback.txt41 * address |device_address| for the characteristic with identifier
53 void onCharacteristicReadRequest(in String device_address, in int request_id,
59 * address |device_address| for the descriptor with identifier
71 void onDescriptorReadRequest(in String device_address, in int request_id,
77 * address |device_address| for the characteristic with identifier
90 void onCharacteristicWriteRequest(in String device_address, in int request_id,
97 * address |device_address| for the descriptor with identifier
110 void onDescriptorWriteRequest(in String device_address, in int request_id,
123 void onExecuteWriteRequest(in String device_address, in int request_id,
133 void onNotificationSent(in String device_address, in int status);
DIBluetoothGattClient.txt45 * database of remote device with address |device_address|. Returns false in
49 boolean refreshDevice(in int client_id, in String device_address);
53 * device with address |device_address| asynchronously via the corresponding
59 boolean discoverServices(in int client_id, in String device_address);
157 * |device_address|. Once a reliable write transaction has been initiated, all
167 boolean beginReliableWrite(in int client_id, in String device_address);
171 * with address |device_address|. If |execute| is true, then a request will be
178 boolean endReliableWrite(in int client_id, in String device_address,
DIBluetoothGattClientCallback.txt64 * address |device_address|. |status| will contain BLE_STATUS_SUCCESS (0) if
67 void onSearchComplete(in String device_address, in int status);
91 * |device_address| refers to the remote device that the endReliableWrite
95 void onExecuteWrite(in String device_address, in int status);
DIBluetoothGattServer.txt92 * |device_address| of the device that the request originated from.
98 boolean sendResponse(in int server_if, in String device_address,
111 boolean sendNotification(in int server_if, in String device_address,
/system/bt/service/test/
Dgatt_server_unittest.cpp61 std::string device_address; member
75 const std::string& device_address, in OnCharacteristicReadRequest() argument
79 char_read_req_.device_address = device_address; in OnCharacteristicReadRequest()
89 const std::string& device_address, in OnDescriptorReadRequest() argument
93 desc_read_req_.device_address = device_address; in OnDescriptorReadRequest()
103 const std::string& device_address, in OnCharacteristicWriteRequest() argument
108 char_write_req_.device_address = device_address; in OnCharacteristicWriteRequest()
120 const std::string& device_address, in OnDescriptorWriteRequest() argument
125 desc_write_req_.device_address = device_address; in OnDescriptorWriteRequest()
137 const std::string& device_address, in OnExecuteWriteRequest() argument
[all …]
Dadapter_unittest.cpp97 const std::string& device_address, in OnDeviceConnectionStateChanged() argument
100 last_connection_state_address_ = device_address; in OnDeviceConnectionStateChanged()

12