Home
last modified time | relevance | path

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

123

/system/bt/service/common/android/bluetooth/
DIBluetoothGattServerCallback.aidl26 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
DIBluetoothAvrcpControlCallback.aidl26 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
DIBluetoothCallback.aidl25 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
DIBluetoothA2dpSinkCallback.aidl21 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/
Dbluetooth_gatt_server_binder_server.cc111 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 …]
Dbluetooth_avrcp_control_binder_server.cc102 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 …]
Dbluetooth_a2dp_source_binder_server.cc140 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 …]
Dbluetooth_avrcp_control_binder_server.h55 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,
Dbluetooth_a2dp_source_binder_server.h59 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,
Dbluetooth_binder_server.cc128 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 …]
Dbluetooth_gatt_server_binder_server.h58 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,
Dbluetooth_a2dp_sink_binder_server.cc83 Status BluetoothA2dpSinkBinderServer::Connect(const String16& device_address, in Connect() argument
93 if (!a2dp_sink->Connect(String8(device_address).string())) { in Connect()
103 Status BluetoothA2dpSinkBinderServer::Disconnect(const String16& device_address, in Disconnect() argument
113 if (!a2dp_sink->Disconnect(String8(device_address).string())) { in Disconnect()
154 const std::string& device_address, int state) { in OnConnectionState() argument
162 cb->OnConnectionState(String16(device_address.c_str()), state); in OnConnectionState()
166 const std::string& device_address, int state) { in OnAudioState() argument
174 cb->OnAudioState(String16(device_address.c_str()), state); in OnAudioState()
178 const std::string& device_address, uint32_t sample_rate, in OnAudioConfig() argument
187 cb->OnAudioConfig(String16(device_address.c_str()), sample_rate, in OnAudioConfig()
/system/bt/service/
Davrcp_control.cc62 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 …]
Dgatt_server.cc106 bool GattServer::SendResponse(const std::string& device_address, int request_id, in SendResponse() argument
110 << " device_address: " << device_address in SendResponse()
116 if (!RawAddress::FromString(device_address, addr)) { in SendResponse()
117 LOG(ERROR) << "Invalid device address given: " << device_address; in SendResponse()
132 auto iter = conn_addr_map_.find(device_address); in SendResponse()
134 LOG(ERROR) << "No known connections for device address: " << device_address; in SendResponse()
149 << " not found for device with BD_ADDR: " << device_address; in SendResponse()
181 bool GattServer::SendNotification(const std::string& device_address, in SendNotification() argument
186 << " device_address: " << device_address << " confirm: " << confirm; in SendNotification()
190 if (!RawAddress::FromString(device_address, addr)) { in SendNotification()
[all …]
Da2dp_sink.cc58 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 …]
Dadapter.h70 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;
Davrcp_control.h38 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,
Dadapter.cc156 Adapter* adapter, const std::string& device_address, bool connected) { in OnDeviceConnectionStateChanged() argument
166 const std::string& device_address, in OnSspRequest() argument
173 const std::string& device_address, in OnBondStateChanged() argument
185 Adapter* adapter, int status, const std::string& device_address, in OnGetRemoteDeviceProperties() argument
353 bool SspReply(const std::string& device_address, int variant, bool accept, in SspReply() argument
356 if (!RawAddress::FromString(device_address, addr)) { in SspReply()
357 LOG(ERROR) << "Invalid device address given: " << device_address; in SspReply()
372 bool CreateBond(const std::string& device_address, int transport) override { in CreateBond() argument
374 if (!RawAddress::FromString(device_address, addr)) { in CreateBond()
375 LOG(ERROR) << "Invalid device address given: " << device_address; in CreateBond()
[all …]
Da2dp_source.cc136 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 …]
Da2dp_source.h40 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/common/bluetooth/
Dscan_result.cc24 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/example/heart_rate/
Dheart_rate_server.cc314 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 …]
Dheart_rate_server.h62 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/test/
Da2dp_source_unittest.cc48 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()
Da2dp_sink_unittest.cc50 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()

123