Lines Matching defs:transport
115 void OnStateChanged(int32_t transport, int32_t status) override
120 CHECK_AND_RETURN_LOG(!isNeedInterceptSwitchStatus(transport, status), "No Need transform same status");
121 BluetoothProfileManager::GetInstance().NotifyBluetoothStateChange(transport, status);
122 host_.observers_.ForEach([transport, status](std::shared_ptr<BluetoothHostObserver> observer) {
123 observer->OnStateChanged(transport, status);
159 void OnPairRequested(const int32_t transport, const BluetoothRawAddress &device) override
161 HILOGI("enter, transport: %{public}d, device: %{public}s",
162 transport, GET_ENCRYPT_RAW_ADDR(device));
163 BluetoothRemoteDevice remoteDevice(device.GetAddress(), transport);
169 void OnPairConfirmed(const int32_t transport, const BluetoothRawAddress &device, int reqType, int number) override
171 HILOGI("enter, transport: %{public}d, device: %{public}s, reqType: %{public}d, number: %{public}d",
172 transport, GET_ENCRYPT_RAW_ADDR(device), reqType, number);
173 BluetoothRemoteDevice remoteDevice(device.GetAddress(), transport);
202 bool isNeedInterceptSwitchStatus(int32_t transport, int32_t status)
206 if (transport == BTTransport::ADAPTER_BLE &&
210 if (transport == BTTransport::ADAPTER_BREDR &&
215 if (transport == BTTransport::ADAPTER_BREDR) {
245 void OnPairStatusChanged(const int32_t transport, const BluetoothRawAddress &device,
248 HILOGD("enter, transport: %{public}d, device: %{public}s, status: %{public}d, cause: %{public}d",
249 transport, GET_ENCRYPT_RAW_ADDR(device), status, cause);
250 BluetoothRemoteDevice remoteDevice(device.GetAddress(), transport);
353 void OnPairStatusChanged(const int32_t transport, const BluetoothRawAddress &device, int status, int cause) override
355 HILOGI("enter, transport: %{public}d, device: %{public}s, status: %{public}d, cause: %{public}d",
356 transport, GET_ENCRYPT_RAW_ADDR(device), status, cause);
357 BluetoothRemoteDevice remoteDevice(device.GetAddress(), transport);
770 BluetoothRemoteDevice BluetoothHost::GetRemoteDevice(const std::string &addr, int transport) const
772 BluetoothRemoteDevice remoteDevice(addr, transport);
989 int BluetoothHost::GetBondableMode(int transport) const
991 HILOGI("transport: %{public}d", transport);
995 return proxy->GetBondableMode(transport);
998 bool BluetoothHost::SetBondableMode(int transport, int mode)
1000 HILOGD("transport: %{public}d, mode: %{public}d", transport, mode);
1004 return proxy->SetBondableMode(transport, mode);
1029 int32_t BluetoothHost::IsBtDiscovering(bool &isDiscovering, int transport) const
1031 HILOGI("transport: %{public}d", transport);
1037 return proxy->IsBtDiscovering(isDiscovering, transport);
1051 int32_t BluetoothHost::GetPairedDevices(int transport, std::vector<BluetoothRemoteDevice> &pairedDevices) const
1053 HILOGI("transport: %{public}d", transport);
1063 BluetoothRemoteDevice device((*it).GetAddress(), transport);