Lines Matching refs:device

14 #include "device/bluetooth/bluetooth_adapter_factory.h"
15 #include "device/bluetooth/bluetooth_device.h"
25 using device::BluetoothAdapter;
26 using device::BluetoothAdapterFactory;
27 using device::BluetoothDevice;
43 // Identifier for the notification that a device has been paired with the
50 // back to the underlying device.
80 // Address of the device being paired.
108 // Cancel the pairing of the device, if the object still exists.
109 BluetoothDevice* device = adapter_->GetDevice(address_);
110 if (device)
111 device->CancelPairing();
123 // If the device object still exists, send the appropriate response either
125 BluetoothDevice* device = adapter_->GetDevice(address_);
126 if (device) {
129 device->ConfirmPairing();
132 device->RejectPairing();
176 BluetoothDevice* device) {
177 // Add the new device to the list of currently paired devices; it doesn't
179 if (device->IsPaired())
180 paired_devices_.insert(device->GetAddress());
184 BluetoothDevice* device) {
185 // If the device is already in the list of paired devices, then don't
187 if (paired_devices_.find(device->GetAddress()) != paired_devices_.end())
192 if (device->IsPaired()) {
193 paired_devices_.insert(device->GetAddress());
194 NotifyPairedDevice(device);
199 BluetoothDevice* device) {
200 paired_devices_.erase(device->GetAddress());
204 void BluetoothNotificationController::RequestPinCode(BluetoothDevice* device) {
208 device->CancelPairing();
211 void BluetoothNotificationController::RequestPasskey(BluetoothDevice* device) {
215 device->CancelPairing();
219 BluetoothDevice* device,
223 device->GetName(), base::UTF8ToUTF16(pincode));
225 NotifyPairing(device, message, false);
228 void BluetoothNotificationController::DisplayPasskey(BluetoothDevice* device,
232 device->GetName(), base::UTF8ToUTF16(
235 NotifyPairing(device, message, false);
238 void BluetoothNotificationController::KeysEntered(BluetoothDevice* device,
243 void BluetoothNotificationController::ConfirmPasskey(BluetoothDevice* device,
247 device->GetName(), base::UTF8ToUTF16(
250 NotifyPairing(device, message, true);
254 BluetoothDevice* device) {
257 device->GetName());
259 NotifyPairing(device, message, true);
280 const BluetoothDevice* device = *iter;
281 if (device->IsPaired())
282 paired_devices_.insert(device->GetAddress());
311 BluetoothDevice* device,
338 device->GetAddress())));
343 BluetoothDevice* device) {
345 // pairing request is queued at a time, this is guaranteed to be the device
359 IDS_ASH_STATUS_TRAY_BLUETOOTH_PAIRED, device->GetName()),