Home
last modified time | relevance | path

Searched refs:STATE_TURN_OFF (Results 1 - 25 of 25) sorted by relevance

/foundation/communication/bluetooth/frameworks/c_api/src/
H A Doh_bluetooth.cpp35 int32_t btState = BTStateID::STATE_TURN_OFF; in OH_Bluetooth_GetBluetoothSwitchState()
49 case BTStateID::STATE_TURN_OFF: in OH_Bluetooth_GetBluetoothSwitchState()
58 if (enableBle && (btState == BTStateID::STATE_TURN_OFF)) { in OH_Bluetooth_GetBluetoothSwitchState()
60 } else if (!enableBle && (btState == BTStateID::STATE_TURN_OFF)) { in OH_Bluetooth_GetBluetoothSwitchState()
/foundation/communication/bluetooth/frameworks/cj/access/src/
H A Dbluetooth_access_impl.cpp44 int32_t state = BTStateID::STATE_TURN_OFF; in GetState()
60 case BTStateID::STATE_TURN_OFF: in GetState()
70 if (enableBle && (state == BTStateID::STATE_TURN_OFF)) { in GetState()
73 } else if (!enableBle && (state == BTStateID::STATE_TURN_OFF)) { in GetState()
H A Dbluetooth_access_callback.cpp89 case BTStateID::STATE_TURN_OFF: { in GetBrStateByStatus()
113 case BTStateID::STATE_TURN_OFF: in GetBleStateByStatus()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/common/
H A Dsys_state_machine.cpp41 if ((stateBREDR == BTStateID::STATE_TURN_OFF) && (stateBLE == BTStateID::STATE_TURN_OFF)) { in StoppingBaseProcess()
115 int stateBREDR = BTStateID::STATE_TURN_OFF; in Dispatch()
116 int stateBLE = BTStateID::STATE_TURN_OFF; in Dispatch()
146 int stateBREDR = BTStateID::STATE_TURN_OFF; in Dispatch()
147 int stateBLE = BTStateID::STATE_TURN_OFF; in Dispatch()
187 int stateBREDR = BTStateID::STATE_TURN_OFF; in Dispatch()
188 int stateBLE = BTStateID::STATE_TURN_OFF; in Dispatch()
H A Dadapter_manager.cpp57 BTStateID state = BTStateID::STATE_TURN_OFF;
369 if (GetState(transport) == BTStateID::STATE_TURN_OFF) { in Enable()
411 } else if (GetState(transport) == BTStateID::STATE_TURN_OFF) { in Disable()
498 BTStateID state = BTStateID::STATE_TURN_OFF; in GetState()
588 if (transport == ADAPTER_BREDR && (state == BTStateID::STATE_TURN_ON || state == BTStateID::STATE_TURN_OFF)) { in PublishBluetoothStateChangeEvent()
608 if ((transport == ADAPTER_BREDR) && (state == STATE_TURN_OFF)) { in OnAdapterStateChange()
624 int classicState = pimpl->classicAdapter_ ? pimpl->classicAdapter_->state : BTStateID::STATE_TURN_OFF; in OnAdapterStateChange()
625 int bleState = pimpl->bleAdapter_ ? pimpl->bleAdapter_->state : BTStateID::STATE_TURN_OFF; in OnAdapterStateChange()
H A Dadapter_state_machine.cpp50 AdapterManager::GetInstance()->OnAdapterStateChange(transport, BTStateID::STATE_TURN_OFF); in Entry()
H A Dprofile_service_manager.cpp87 TURN_OFF = BTStateID::STATE_TURN_OFF,
/foundation/communication/bluetooth/frameworks/js/napi/src/access/
H A Dnapi_bluetooth_access.cpp95 int32_t state = BTStateID::STATE_TURN_OFF; in GetState()
112 case BTStateID::STATE_TURN_OFF: in GetState()
122 if (enableBle && (state == BTStateID::STATE_TURN_OFF)) { in GetState()
125 } else if (!enableBle && (state == BTStateID::STATE_TURN_OFF)) { in GetState()
H A Dnapi_bluetooth_access_observer.cpp91 case BTStateID::STATE_TURN_OFF: { in GetBrStateByStatus()
115 case BTStateID::STATE_TURN_OFF: in GetBleStateByStatus()
/foundation/communication/bluetooth_service/test/moduletest/hosttest/
H A Dhost_srv_module_test.cpp62 AdapterManager::GetInstance()->OnAdapterStateChange(BTTransport::ADAPTER_BREDR, BTStateID::STATE_TURN_OFF); in HWTEST_F()
/foundation/multimedia/av_session/services/session/server/test/
H A Ddetect_bluetooth_host_observer_test.cpp93 int32_t status = OHOS::Bluetooth::BTStateID::STATE_TURN_OFF; in HWTEST_F()
/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_host.cpp205 if (status == BTStateID::STATE_TURN_OFF) { in isNeedInterceptSwitchStatus()
207 preBleState_ == BTStateID::STATE_TURN_OFF && !isBluetoothSeriviceOn) { in isNeedInterceptSwitchStatus()
211 preBrState_ == BTStateID::STATE_TURN_OFF && !isBluetoothSeriviceOn) { in isNeedInterceptSwitchStatus()
685 return BTStateID::STATE_TURN_OFF; in GetBtState()
688 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BTStateID::STATE_TURN_OFF, "proxy is nullptr"); in GetBtState()
690 int state = BTStateID::STATE_TURN_OFF; in GetBtState()
699 state = BTStateID::STATE_TURN_OFF; in GetBtState()
1237 pimpl->observerImp_->OnStateChanged(BTTransport::ADAPTER_BREDR, BTStateID::STATE_TURN_OFF); in OnRemoveBluetoothSystemAbility()
1238 pimpl->bleObserverImp_->OnStateChanged(BTTransport::ADAPTER_BLE, BTStateID::STATE_TURN_OFF); in OnRemoveBluetoothSystemAbility()
H A Dbluetooth_utils.cpp87 case BTStateID::STATE_TURN_OFF: in GetBtStateName()
88 return "STATE_TURN_OFF(3)"; in GetBtStateName()
H A Dbluetooth_profile_manager.cpp124 if (transport == ADAPTER_BLE && status == STATE_TURN_OFF) { in NotifyBluetoothStateChange()
/foundation/distributedhardware/device_manager/test/unittest/
H A DUTTest_dm_publish_common_event.cpp106 data.SetCode(static_cast<int32_t>(Bluetooth::BTStateID::STATE_TURN_OFF)); in HWTEST_F()
/foundation/distributedhardware/device_manager/services/service/src/publishcommonevent/
H A Ddm_publish_common_event.cpp215 eventState == static_cast<int32_t>(Bluetooth::BTStateID::STATE_TURN_OFF)) { in OnReceiveEvent()
216 bluetoothState_ = static_cast<int32_t>(Bluetooth::BTStateID::STATE_TURN_OFF); in OnReceiveEvent()
/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/observer/src/
H A Dhisysevent_observer.cpp314 } else if (root.at("STATE").get<std::int32_t>() == Bluetooth::BTStateID::STATE_TURN_OFF) { in ProcessBluetoothEvent()
316 Bluetooth::BTStateID::STATE_TURN_OFF, payload); in ProcessBluetoothEvent()
/foundation/communication/bluetooth_service/test/unittest/host/
H A Dhost_test.cpp65 case STATE_TURN_OFF: in OnStateChanged()
83 case STATE_TURN_OFF: in OnStateChanged()
/foundation/communication/bluetooth/frameworks/inner/c_adapter/
H A Dohos_bt_gap.cpp53 * BTStateID::STATE_TURN_OFF.
347 state == BTStateID::STATE_TURN_OFF) { in DisableBt()
/foundation/communication/bluetooth_service/test/unittest/ble/
H A Dble_test.cpp176 if (status == STATE_TURN_ON || status == STATE_TURN_OFF) { in OnStateChanged()
/foundation/communication/bluetooth_service/services/bluetooth/server/src/
H A Dbluetooth_host_server.cpp184 if (transport == BTTransport::ADAPTER_BLE && state == BTStateID::STATE_TURN_OFF) { in OnStateChangeV2()
209 if (state == BTStateID::STATE_TURN_ON || state == BTStateID::STATE_TURN_OFF) {
230 if (state == BTStateID::STATE_TURN_ON || state == BTStateID::STATE_TURN_OFF) {
1689 int32_t state = bluetooth::BTStateID::STATE_TURN_OFF; in IsBtEnabled()
/foundation/communication/bluetooth/interfaces/inner_api/include/
H A Dbluetooth_def.h76 STATE_TURN_OFF, enumerator
/foundation/distributedhardware/device_manager/services/service/src/
H A Ddevice_manager_service.cpp141 publishSubScriber->SetBluetoothState(static_cast<int32_t>(Bluetooth::BTStateID::STATE_TURN_OFF)); in QueryDependsSwitchState()
146 publishSubScriber->SetBluetoothState(static_cast<int32_t>(Bluetooth::BTStateID::STATE_TURN_OFF)); in QueryDependsSwitchState()
/foundation/communication/bluetooth/frameworks/inner/ipc/common/
H A Dbt_def.h83 STATE_TURN_OFF, enumerator
/foundation/multimedia/av_session/services/session/server/test/fuzztest/avsessionservice_fuzzer/
H A Davsessionservice_fuzzer.cpp807 status = OHOS::Bluetooth::BTStateID::STATE_TURN_OFF; in OnStateChangedTest()

Completed in 29 milliseconds