Lines Matching defs:state
127 void OnBluetoothStateChanged(int32_t state) override
131 if (state == bluetooth::BluetoothSwitchState::STATE_ON) {
134 if (state == bluetooth::BluetoothSwitchState::STATE_OFF) {
137 if (state == bluetooth::BluetoothSwitchState::STATE_HALF) {
234 void OnAclStateChanged(const BluetoothRawAddress &device, int32_t state, uint32_t reason) override
236 HILOGD("enter, device: %{public}s, state: %{public}d, reason: %{public}u",
237 GET_ENCRYPT_RAW_ADDR(device), state, reason);
240 [remoteDevice, state, reason](std::shared_ptr<BluetoothRemoteDeviceObserver> observer) {
241 observer->OnAclStateChanged(remoteDevice, state, reason);
342 void OnAclStateChanged(const BluetoothRawAddress &device, int state, unsigned int reason) override
344 HILOGD("enter, device: %{public}s, state: %{public}d, reason: %{public}u",
345 GET_ENCRYPT_RAW_ADDR(device), state, reason);
348 [remoteDevice, state, reason](std::shared_ptr<BluetoothRemoteDeviceObserver> observer) {
349 observer->OnAclStateChanged(remoteDevice, state, reason);
663 int BluetoothHost::SatelliteControl(int type, int state)
665 HILOGI("type: %{public}d, state: %{public}d", type, state);
677 return proxy->SatelliteControl(type, state);
690 int state = BTStateID::STATE_TURN_OFF;
691 proxy->GetBtState(state);
692 HILOGD("state: %{public}d", state);
693 return state;
696 int BluetoothHost::GetBtState(int &state) const
699 state = BTStateID::STATE_TURN_OFF;
705 int ret = proxy->GetBtState(state);
706 HILOGI("state: %{public}d", state);
854 int state = static_cast<int>(BTConnectState::DISCONNECTED);
855 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), state, "bluetooth is off.");
858 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, state, "proxy is nullptr");
860 proxy->GetBtConnectionState(state);
861 HILOGI("state: %{public}d", state);
862 return state;
865 int BluetoothHost::GetBtConnectionState(int &state) const
868 state = static_cast<int>(BTConnectState::DISCONNECTED);
874 int ret = proxy->GetBtConnectionState(state);
875 HILOGI("state: %{public}d", state);
879 int BluetoothHost::GetBtProfileConnState(uint32_t profileId, int &state) const
882 state = static_cast<int>(BTConnectState::DISCONNECTED);
888 return proxy->GetBtProfileConnState(profileId, state);
1236 HILOGD("bluetooth_servi died and send state off to app");