/foundation/communication/bluetooth/frameworks/c_api/src/ |
H A D | oh_bluetooth.cpp | 35 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 D | bluetooth_access_impl.cpp | 44 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 D | bluetooth_access_callback.cpp | 89 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 D | sys_state_machine.cpp | 41 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 D | adapter_manager.cpp | 57 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 D | adapter_state_machine.cpp | 50 AdapterManager::GetInstance()->OnAdapterStateChange(transport, BTStateID::STATE_TURN_OFF); in Entry()
|
H A D | profile_service_manager.cpp | 87 TURN_OFF = BTStateID::STATE_TURN_OFF,
|
/foundation/communication/bluetooth/frameworks/js/napi/src/access/ |
H A D | napi_bluetooth_access.cpp | 95 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 D | napi_bluetooth_access_observer.cpp | 91 case BTStateID::STATE_TURN_OFF: { in GetBrStateByStatus() 115 case BTStateID::STATE_TURN_OFF: in GetBleStateByStatus()
|
/foundation/communication/bluetooth_service/test/moduletest/hosttest/ |
H A D | host_srv_module_test.cpp | 62 AdapterManager::GetInstance()->OnAdapterStateChange(BTTransport::ADAPTER_BREDR, BTStateID::STATE_TURN_OFF); in HWTEST_F()
|
/foundation/multimedia/av_session/services/session/server/test/ |
H A D | detect_bluetooth_host_observer_test.cpp | 93 int32_t status = OHOS::Bluetooth::BTStateID::STATE_TURN_OFF; in HWTEST_F()
|
/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_host.cpp | 205 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 D | bluetooth_utils.cpp | 87 case BTStateID::STATE_TURN_OFF:
in GetBtStateName() 88 return "STATE_TURN_OFF(3)";
in GetBtStateName()
|
H A D | bluetooth_profile_manager.cpp | 124 if (transport == ADAPTER_BLE && status == STATE_TURN_OFF) { in NotifyBluetoothStateChange()
|
/foundation/distributedhardware/device_manager/test/unittest/ |
H A D | UTTest_dm_publish_common_event.cpp | 106 data.SetCode(static_cast<int32_t>(Bluetooth::BTStateID::STATE_TURN_OFF)); in HWTEST_F()
|
/foundation/distributedhardware/device_manager/services/service/src/publishcommonevent/ |
H A D | dm_publish_common_event.cpp | 215 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 D | hisysevent_observer.cpp | 314 } 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 D | host_test.cpp | 65 case STATE_TURN_OFF: in OnStateChanged() 83 case STATE_TURN_OFF: in OnStateChanged()
|
/foundation/communication/bluetooth/frameworks/inner/c_adapter/ |
H A D | ohos_bt_gap.cpp | 53 * BTStateID::STATE_TURN_OFF. 347 state == BTStateID::STATE_TURN_OFF) { in DisableBt()
|
/foundation/communication/bluetooth_service/test/unittest/ble/ |
H A D | ble_test.cpp | 176 if (status == STATE_TURN_ON || status == STATE_TURN_OFF) { in OnStateChanged()
|
/foundation/communication/bluetooth_service/services/bluetooth/server/src/ |
H A D | bluetooth_host_server.cpp | 184 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 D | bluetooth_def.h | 76 STATE_TURN_OFF, enumerator
|
/foundation/distributedhardware/device_manager/services/service/src/ |
H A D | device_manager_service.cpp | 141 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 D | bt_def.h | 83 STATE_TURN_OFF, enumerator
|
/foundation/multimedia/av_session/services/session/server/test/fuzztest/avsessionservice_fuzzer/ |
H A D | avsessionservice_fuzzer.cpp | 807 status = OHOS::Bluetooth::BTStateID::STATE_TURN_OFF; in OnStateChangedTest()
|