/system/bt/service/common/android/bluetooth/ |
D | IBluetoothGattServerCallback.aidl | 26 void OnCharacteristicReadRequest(String device_address, in OnCharacteristicReadRequest() argument 29 void OnDescriptorReadRequest(String device_address, in OnDescriptorReadRequest() argument 32 void OnCharacteristicWriteRequest(String device_address, in OnCharacteristicWriteRequest() argument 36 void OnDescriptorWriteRequest(String device_address, in OnDescriptorWriteRequest() argument 40 void OnExecuteWriteRequest(String device_address, in OnExecuteWriteRequest() argument 43 void OnNotificationSent(String device_address, in OnNotificationSent() argument 46 void OnConnectionStateChanged(String device_address, boolean connected); in OnConnectionStateChanged() argument
|
D | IBluetoothAvrcpControlCallback.aidl | 26 String device_address); in OnConnectionState() argument 28 void OnTrackChanged(String device_address, in BluetoothAvrcpMediaAttr track_info); in OnTrackChanged() argument 29 void OnSetAbsVolumeRequest(String device_address, int abs_vol, int label); in OnSetAbsVolumeRequest() argument 30 void OnRegisterForAbsVolumeCallbackRequest(String device_address, int label); in OnRegisterForAbsVolumeCallbackRequest() argument
|
D | IBluetoothCallback.aidl | 25 String device_address, in OnDeviceConnectionStateChanged() argument 28 String device_address, in OnSspRequest() argument 34 void OnBondStateChanged(int status, String device_address, int state); in OnBondStateChanged() argument 37 String device_address, in OnGetRemoteDeviceProperties() argument
|
D | IBluetoothA2dpSinkCallback.aidl | 21 void OnConnectionState(String device_address, int state); in OnConnectionState() argument 22 void OnAudioState(String device_address, int state); in OnAudioState() argument 23 void OnAudioConfig(String device_address, int sample_rate, int channel_count); in OnAudioConfig() argument
|
/system/bt/service/ipc/binder/ |
D | bluetooth_gatt_server_binder_server.cc | 111 int server_id, const String16& device_address, int request_id, int status, in SendResponse() argument 124 std::string(String8(device_address).string()), request_id, in SendResponse() 131 int server_id, const String16& device_address, int handle, bool confirm, in SendNotification() argument 161 gatt_cb->OnNotificationSent(device_address, error); in SendNotification() 165 std::string(String8(device_address).string()), handle, confirm, value, in SendNotification() 177 bluetooth::GattServer* gatt_server, const std::string& device_address, in OnCharacteristicReadRequest() argument 189 String16(device_address.c_str(), device_address.length()), request_id, in OnCharacteristicReadRequest() 194 bluetooth::GattServer* gatt_server, const std::string& device_address, in OnDescriptorReadRequest() argument 206 String16(device_address.c_str(), device_address.length()), request_id, in OnDescriptorReadRequest() 240 bluetooth::GattServer* gatt_server, const std::string& device_address, in OnCharacteristicWriteRequest() argument [all …]
|
D | bluetooth_avrcp_control_binder_server.cc | 102 int32_t id, const String16& device_address, int32_t key_code, in SendPassThroughCommand() argument 112 if (!avrcp_control->SendPassThroughCommand(String8(device_address).string(), in SendPassThroughCommand() 124 int32_t id, const android::String16& device_address, int32_t abs_vol, in SetAbsVolumeResponse() argument 134 if (!avrcp_control->SetAbsVolumeResponse(String8(device_address).string(), in SetAbsVolumeResponse() 146 int32_t id, const android::String16& device_address, int32_t response_type, in RegisterForAbsVolumeCallbackResponse() argument 157 String8(device_address).string(), response_type, abs_vol, label)) { in RegisterForAbsVolumeCallbackResponse() 168 bool rc_connect, bool bt_connect, const std::string& device_address) { in OnConnectionState() argument 169 auto func = [rc_connect, bt_connect, &device_address](IInterface* cb) { in OnConnectionState() 172 String16(device_address.c_str())); in OnConnectionState() 179 const std::string& device_address, const bluetooth::AvrcpMediaAttr& attr) { in OnTrackChanged() argument [all …]
|
D | bluetooth_a2dp_source_binder_server.cc | 140 Status BluetoothA2dpSourceBinderServer::Connect(const String16& device_address, in Connect() argument 144 TRY_RET_FUNC(a2dp_source->Connect(String8(device_address).string())); in Connect() 148 const String16& device_address, bool* _aidl_return) { in Disconnect() argument 151 TRY_RET_FUNC(a2dp_source->Disconnect(String8(device_address).string())); in Disconnect() 155 const android::String16& device_address, in ConfigCodec() argument 163 TRY_RET_FUNC(a2dp_source->ConfigCodec(String8(device_address).string(), in ConfigCodec() 168 const std::string& device_address, int state) { in OnConnectionState() argument 171 cb->OnConnectionState(String16(device_address.c_str()), state); in OnConnectionState() 175 const std::string& device_address, int state) { in OnAudioState() argument 178 cb->OnAudioState(String16(device_address.c_str()), state); in OnAudioState() [all …]
|
D | bluetooth_avrcp_control_binder_server.h | 55 int32_t id, const android::String16& device_address, int32_t key_code, 58 int32_t id, const android::String16& device_address, int32_t abs_vol, 61 int32_t id, const android::String16& device_address, 68 const std::string& device_address) override; 69 void OnTrackChanged(const std::string& device_address, 71 void OnSetAbsVolumeRequest(const std::string& device_address, int32_t abs_vol, 73 void OnRegisterForAbsVolumeCallbackRequest(const std::string& device_address,
|
D | bluetooth_binder_server.cc | 128 const ::android::String16& device_address, int32_t variant, bool accept, in SspReply() 131 *_aidl_return = adapter_->SspReply(String8(device_address).string(), variant, in SspReply() 137 const ::android::String16& device_address, int32_t transport, in CreateBond() 141 adapter_->CreateBond(String8(device_address).string(), transport); in CreateBond() 152 const ::android::String16& device_address, bool* _aidl_return) { in RemoveBond() 154 *_aidl_return = adapter_->RemoveBond(String8(device_address).string()); in RemoveBond() 159 const ::android::String16& device_address, bool* _aidl_return) { in GetRemoteDeviceProperties() 162 adapter_->GetRemoteDeviceProperties(String8(device_address).string()); in GetRemoteDeviceProperties() 397 bluetooth::Adapter* adapter, const std::string& device_address, in OnDeviceConnectionStateChanged() argument 400 auto addr_s16 = String16(device_address.c_str(), device_address.size()); in OnDeviceConnectionStateChanged() [all …]
|
D | bluetooth_a2dp_source_binder_server.h | 59 android::binder::Status Connect(const android::String16& device_address, 61 android::binder::Status Disconnect(const android::String16& device_address, 64 const android::String16& device_address, 71 void OnConnectionState(const std::string& device_address, int state) override; 72 void OnAudioState(const std::string& device_address, int state) override; 74 const std::string& device_address,
|
D | bluetooth_gatt_server_binder_server.h | 58 const ::android::String16& device_address, 63 const ::android::String16& device_address, int handle, 69 const std::string& device_address, 73 const std::string& device_address, 77 const std::string& device_address, 83 const std::string& device_address, 89 const std::string& device_address, int request_id,
|
/system/bt/service/ |
D | avrcp_control.cc | 62 bool AvrcpControl::SendPassThroughCommand(const std::string& device_address, in SendPassThroughCommand() argument 65 if (!RawAddress::FromString(device_address, addr)) { in SendPassThroughCommand() 66 LOG(ERROR) << "Invalid device address given: " << device_address; in SendPassThroughCommand() 86 bool AvrcpControl::SetAbsVolumeResponse(const std::string& device_address, in SetAbsVolumeResponse() argument 89 if (!RawAddress::FromString(device_address, addr)) { in SetAbsVolumeResponse() 90 LOG(ERROR) << "Invalid device address given: " << device_address; in SetAbsVolumeResponse() 110 const std::string& device_address, int32_t response_type, int32_t abs_vol, in RegisterForAbsVolumeCallbackResponse() argument 113 if (!RawAddress::FromString(device_address, addr)) { in RegisterForAbsVolumeCallbackResponse() 114 LOG(ERROR) << "Invalid device address given: " << device_address; in RegisterForAbsVolumeCallbackResponse() 138 std::string device_address = BtAddrString(&bd_addr); in ConnectionStateCallback() local [all …]
|
D | gatt_server.cc | 107 bool GattServer::SendResponse(const std::string& device_address, int request_id, in SendResponse() argument 111 << " device_address: " << device_address in SendResponse() 117 if (!RawAddress::FromString(device_address, addr)) { in SendResponse() 118 LOG(ERROR) << "Invalid device address given: " << device_address; in SendResponse() 134 auto iter = conn_addr_map_.find(device_address); in SendResponse() 136 LOG(ERROR) << "No known connections for device address: " << device_address; in SendResponse() 151 << " not found for device with BD_ADDR: " << device_address; in SendResponse() 183 bool GattServer::SendNotification(const std::string& device_address, in SendNotification() argument 188 << " device_address: " << device_address << " confirm: " << confirm; in SendNotification() 192 if (!RawAddress::FromString(device_address, addr)) { in SendNotification() [all …]
|
D | a2dp_sink.cc | 58 bool A2dpSink::Connect(const std::string& device_address) { in Connect() argument 61 if (!RawAddress::FromString(device_address, addr)) { in Connect() 62 LOG(ERROR) << "Invalid device address given: " << device_address; in Connect() 77 bool A2dpSink::Disconnect(const std::string& device_address) { in Disconnect() argument 80 if (!RawAddress::FromString(device_address, addr)) { in Disconnect() 81 LOG(ERROR) << "Invalid device address given: " << device_address; in Disconnect() 113 std::string device_address = BtAddrString(&bd_addr); in ConnectionStateCallback() local 117 delegate_->OnConnectionState(device_address, static_cast<int>(state)); in ConnectionStateCallback() 123 std::string device_address = BtAddrString(&bd_addr); in AudioStateCallback() local 127 delegate_->OnAudioState(device_address, static_cast<int>(state)); in AudioStateCallback() [all …]
|
D | adapter.h | 70 Adapter* adapter, const std::string& device_address, bool connected); 77 const std::string& device_address, 83 const std::string& device_address, 93 const std::string& device_address, 145 virtual bool SspReply(const std::string& device_address, int variant, 149 virtual bool CreateBond(const std::string& device_address, int transport) = 0; 158 virtual bool IsDeviceConnected(const std::string& device_address) = 0; 174 virtual bool RemoveBond(const std::string& device_address) = 0; 178 virtual bool GetRemoteDeviceProperties(const std::string& device_address) = 0;
|
D | avrcp_control.h | 38 const std::string& device_address) = 0; 40 virtual void OnTrackChanged(const std::string& device_address, 43 virtual void OnSetAbsVolumeRequest(const std::string& device_address, 47 const std::string& device_address, int32_t label) = 0; 70 bool SendPassThroughCommand(const std::string& device_address, 74 bool SetAbsVolumeResponse(const std::string& device_address, int32_t abs_vol, 78 bool RegisterForAbsVolumeCallbackResponse(const std::string& device_address,
|
D | adapter.cc | 155 Adapter* adapter, const std::string& device_address, bool connected) { in OnDeviceConnectionStateChanged() argument 165 const std::string& device_address, in OnSspRequest() argument 172 const std::string& device_address, in OnBondStateChanged() argument 184 Adapter* adapter, int status, const std::string& device_address, in OnGetRemoteDeviceProperties() argument 352 bool SspReply(const std::string& device_address, int variant, bool accept, in SspReply() argument 355 if (!RawAddress::FromString(device_address, addr)) { in SspReply() 356 LOG(ERROR) << "Invalid device address given: " << device_address; in SspReply() 371 bool CreateBond(const std::string& device_address, int transport) override { in CreateBond() argument 373 if (!RawAddress::FromString(device_address, addr)) { in CreateBond() 374 LOG(ERROR) << "Invalid device address given: " << device_address; in CreateBond() [all …]
|
D | a2dp_source.cc | 136 bool A2dpSource::Connect(const std::string& device_address) { in Connect() argument 137 RawAddress addr = PARSE_ADDR(device_address); in Connect() 144 bool A2dpSource::Disconnect(const std::string& device_address) { in Disconnect() argument 145 RawAddress addr = PARSE_ADDR(device_address); in Disconnect() 153 const std::string& device_address, in ConfigCodec() argument 155 RawAddress addr = PARSE_ADDR(device_address); in ConfigCodec() 167 auto device_address = BtAddrString(&bd_addr); in ConnectionStateCallback() local 170 delegate_->OnConnectionState(device_address, static_cast<int>(state)); in ConnectionStateCallback() 176 auto device_address = BtAddrString(&bd_addr); in AudioStateCallback() local 179 delegate_->OnAudioState(device_address, static_cast<int>(state)); in AudioStateCallback() [all …]
|
D | a2dp_source.h | 40 virtual void OnConnectionState(const std::string& device_address, 42 virtual void OnAudioState(const std::string& device_address, int state) = 0; 44 const std::string& device_address, A2dpCodecConfig codec_config, 62 bool Connect(const std::string& device_address); 63 bool Disconnect(const std::string& device_address); 64 bool ConfigCodec(const std::string& device_address,
|
/system/bt/service/example/heart_rate/ |
D | heart_rate_server.cc | 314 const String16& device_address, int request_id, int offset, in OnCharacteristicReadRequest() argument 330 gatt_->SendResponse(server_if_, device_address, request_id, error, offset, in OnCharacteristicReadRequest() 335 Status HeartRateServer::OnDescriptorReadRequest(const String16& device_address, in OnDescriptorReadRequest() argument 346 gatt_->SendResponse(server_if_, device_address, request_id, in OnDescriptorReadRequest() 354 device_ccc_map_[std::string(String8(device_address).string())], 0x00}; in OnDescriptorReadRequest() 364 gatt_->SendResponse(server_if_, device_address, request_id, error, offset, in OnDescriptorReadRequest() 370 const String16& device_address, int request_id, int offset, in OnCharacteristicWriteRequest() argument 382 gatt_->SendResponse(server_if_, device_address, request_id, in OnCharacteristicWriteRequest() 395 gatt_->SendResponse(server_if_, device_address, request_id, in OnCharacteristicWriteRequest() 407 gatt_->SendResponse(server_if_, device_address, request_id, in OnCharacteristicWriteRequest() [all …]
|
D | heart_rate_server.h | 62 Status OnCharacteristicReadRequest(const String16& device_address, 65 Status OnDescriptorReadRequest(const String16& device_address, int request_id, 67 Status OnCharacteristicWriteRequest(const String16& device_address, 72 Status OnDescriptorWriteRequest(const String16& device_address, 77 Status OnExecuteWriteRequest(const String16& device_address, int request_id, 79 Status OnNotificationSent(const String16& device_address, 81 Status OnConnectionStateChanged(const String16& device_address,
|
/system/bt/service/common/bluetooth/ |
D | scan_result.cc | 24 ScanResult::ScanResult(const std::string& device_address, in ScanResult() argument 26 : device_address_(device_address), scan_record_(scan_record), rssi_(rssi) { in ScanResult() 27 CHECK(RawAddress::IsValidAddress(device_address)) << "Invalid BD_ADDR given: " in ScanResult() 28 << device_address; in ScanResult()
|
/system/bt/service/test/ |
D | a2dp_source_unittest.cc | 48 std::string device_address; member 54 void OnConnectionState(const std::string& device_address, in OnConnectionState() argument 57 connection_state_.device_address = device_address; in OnConnectionState() 60 void OnAudioState(const std::string& device_address, int state) override { in OnAudioState() argument 62 audio_state_.device_address = device_address; in OnAudioState() 66 const std::string& device_address, A2dpCodecConfig codec_config, in OnAudioConfig() argument 71 audio_config_.device_address = device_address; in OnAudioConfig() 220 EXPECT_EQ(kTestAddr, delegate.connection_state().device_address); in TEST_F() 229 EXPECT_EQ(kTestAddr, delegate.audio_state().device_address); in TEST_F() 241 EXPECT_EQ(kTestAddr, delegate.audio_config().device_address); in TEST_F()
|
D | a2dp_sink_unittest.cc | 50 std::string device_address; member 58 void OnConnectionState(const std::string& device_address, in OnConnectionState() argument 61 connection_state_.device_address = device_address; in OnConnectionState() 64 void OnAudioState(const std::string& device_address, int state) override { in OnAudioState() argument 66 audio_state_.device_address = device_address; in OnAudioState() 69 void OnAudioConfig(const std::string& device_address, uint32_t sample_rate, in OnAudioConfig() argument 72 audio_config_.device_address = device_address; in OnAudioConfig() 245 EXPECT_EQ(kTestAddr, delegate.connection_state().device_address); in TEST_F() 254 EXPECT_EQ(kTestAddr, delegate.audio_state().device_address); in TEST_F() 263 EXPECT_EQ(kTestAddr, delegate.audio_config().device_address); in TEST_F()
|
/system/core/adb/client/ |
D | usb_libusb.cpp | 91 usb_handle(const std::string& device_address, const std::string& serial, in usb_handle() 94 : device_address(device_address), in usb_handle() 133 std::string device_address; member 193 std::string device_address = get_device_address(device); in process_device() local 200 LOG(WARNING) << "failed to get device descriptor for device at " << device_address << ": " in process_device() 208 LOG(VERBOSE) << "skipping device with incorrect class at " << device_address; in process_device() 215 LOG(WARNING) << "failed to get active config descriptor for device at " << device_address in process_device() 233 LOG(VERBOSE) << "skipping interface with incorrect num_altsetting at " << device_address in process_device() 241 LOG(VERBOSE) << "skipping non-adb interface at " << device_address << " (interface " in process_device() 246 LOG(VERBOSE) << "found potential adb interface at " << device_address << " (interface " in process_device() [all …]
|