Lines Matching refs:device
75 for (auto device : devices) {
76 std::string macAddress = device.GetDeviceAddr();
77 std::string deviceName = device.GetDeviceName();
78 AddBtDevice(macAddress, device);
157 void BluetoothConnection::AddBtDevice(const std::string &address, Bluetooth::BluetoothRemoteDevice device)
162 TELEPHONY_LOGI("device is existenced");
164 mapConnectedBtDevices_.insert(std::pair<std::string, const Bluetooth::BluetoothRemoteDevice>(address, device));
176 TELEPHONY_LOGE("device is not existenced");
189 TELEPHONY_LOGE("device is not existenced");
193 void BluetoothConnection::OnConnectionStateChanged(const Bluetooth::BluetoothRemoteDevice &device,
197 std::string macAddress = device.GetDeviceAddr();
198 std::string deviceName = device.GetDeviceName();
203 AddBtDevice(macAddress, device);
204 /** try to connect sco while new bluetooth device connected
205 * if connect sco successfully , should switch current audio device to bluetooth sco