Lines Matching refs:device
42 ErrCode OnConnectionStateChanged(const BluetoothRawAddress &device, int32_t state, int32_t cause) override
44 HILOGI("enter, device: %{public}s, state: %{public}d, cause: %{public}d",
45 GET_ENCRYPT_RAW_ADDR(device), state, cause);
46 BluetoothRemoteDevice remoteDevice(device.GetAddress(), 1);
88 int32_t GetDeviceState(const BluetoothRemoteDevice &device, int32_t &state)
90 HILOGI("enter, device: %{public}s", GET_ENCRYPT_ADDR(device));
92 if (proxy == nullptr || !device.IsValidBluetoothRemoteDevice()) {
97 return proxy->GetDeviceState(BluetoothRawAddress(device.GetDeviceAddr()), state);
100 int32_t Disconnect(const BluetoothRemoteDevice &device)
102 HILOGI("device: %{public}s", GET_ENCRYPT_ADDR(device));
104 if (proxy == nullptr || !device.IsValidBluetoothRemoteDevice()) {
109 return proxy->Disconnect(BluetoothRawAddress(device.GetDeviceAddr()));
204 int32_t Pan::GetDeviceState(const BluetoothRemoteDevice &device, int32_t &state)
213 return pimpl->GetDeviceState(device, state);
216 int32_t Pan::Disconnect(const BluetoothRemoteDevice &device)
226 return pimpl->Disconnect(device);