Home
last modified time | relevance | path

Searched refs:BluetoothState (Results 1 - 8 of 8) sorted by relevance

/foundation/communication/bluetooth/frameworks/js/napi/src/access/
H A Dnapi_bluetooth_access_observer.cpp33 BluetoothState state = BluetoothState::STATE_OFF; in OnStateChanged()
64 bool NapiBluetoothAccessObserver::DealStateChange(const int transport, const int status, BluetoothState &state) in DealStateChange()
76 void NapiBluetoothAccessObserver::GetBrStateByStatus(const int status, BluetoothState &state, bool &isCallback) in GetBrStateByStatus()
81 state = BluetoothState::STATE_TURNING_ON; in GetBrStateByStatus()
85 state = BluetoothState::STATE_ON; in GetBrStateByStatus()
89 state = BluetoothState::STATE_TURNING_OFF; in GetBrStateByStatus()
100 void NapiBluetoothAccessObserver::GetBleStateByStatus(const int status, BluetoothState &state) in GetBleStateByStatus()
105 state = BluetoothState::STATE_BLE_TURNING_ON; in GetBleStateByStatus()
109 state = BluetoothState in GetBleStateByStatus()
[all...]
H A Dnapi_bluetooth_access.cpp98 int32_t status = static_cast<int32_t>(BluetoothState::STATE_OFF); in GetState()
102 status = static_cast<int32_t>(BluetoothState::STATE_TURNING_ON); in GetState()
106 status = static_cast<int32_t>(BluetoothState::STATE_ON); in GetState()
110 status = static_cast<int32_t>(BluetoothState::STATE_TURNING_OFF); in GetState()
114 status = static_cast<int32_t>(BluetoothState::STATE_OFF); in GetState()
124 status = static_cast<int32_t>(BluetoothState::STATE_BLE_ON); in GetState()
126 status = static_cast<int32_t>(BluetoothState::STATE_OFF); in GetState()
139 DECLARE_NAPI_PROPERTY("BluetoothState", stateObj), in AccessPropertyValueInit()
151 SetNamedPropertyByInteger(env, state, static_cast<int>(BluetoothState::STATE_OFF), "STATE_OFF"); in StateChangeInit()
152 SetNamedPropertyByInteger(env, state, static_cast<int>(BluetoothState in StateChangeInit()
[all...]
H A Dnapi_bluetooth_access_observer.h41 bool DealStateChange(const int transport, const int status, BluetoothState &state);
44 void GetBrStateByStatus(const int status, BluetoothState &state, bool &isCallback);
45 void GetBleStateByStatus(const int status, BluetoothState &state);
/foundation/communication/bluetooth/frameworks/cj/access/src/
H A Dbluetooth_access_callback.cpp28 using Bluetooth::BluetoothState;
48 BluetoothState state = BluetoothState::STATE_OFF; in OnStateChanged()
62 bool CjBluetoothAccessObserver::DealStateChange(const int transport, const int status, BluetoothState &state) in DealStateChange()
74 void CjBluetoothAccessObserver::GetBrStateByStatus(const int status, BluetoothState &state, bool &isCallback) in GetBrStateByStatus()
79 state = BluetoothState::STATE_TURNING_ON; in GetBrStateByStatus()
83 state = BluetoothState::STATE_ON; in GetBrStateByStatus()
87 state = BluetoothState::STATE_TURNING_OFF; in GetBrStateByStatus()
98 void CjBluetoothAccessObserver::GetBleStateByStatus(const int status, BluetoothState &state) in GetBleStateByStatus()
103 state = BluetoothState in GetBleStateByStatus()
[all...]
H A Dbluetooth_access_impl.cpp25 using Bluetooth::BluetoothState;
46 int32_t status = static_cast<int32_t>(BluetoothState::STATE_OFF); in GetState()
50 status = static_cast<int32_t>(BluetoothState::STATE_TURNING_ON); in GetState()
54 status = static_cast<int32_t>(BluetoothState::STATE_ON); in GetState()
58 status = static_cast<int32_t>(BluetoothState::STATE_TURNING_OFF); in GetState()
62 status = static_cast<int32_t>(BluetoothState::STATE_OFF); in GetState()
72 status = static_cast<int32_t>(BluetoothState::STATE_BLE_ON); in GetState()
74 status = static_cast<int32_t>(BluetoothState::STATE_OFF); in GetState()
/foundation/communication/bluetooth/frameworks/cj/access/include/
H A Dbluetooth_access_impl.h28 using Bluetooth::BluetoothState;
59 bool DealStateChange(const int transport, const int status, BluetoothState &state);
60 void GetBrStateByStatus(const int status, BluetoothState &state, bool &isCallback);
61 void GetBleStateByStatus(const int status, BluetoothState &state);
/foundation/communication/bluetooth/frameworks/js/napi/include/
H A Dnapi_bluetooth_host_observer.h39 bool DealStateChange(const int transport, const int status, BluetoothState &state);
H A Dnapi_bluetooth_utils.h262 enum class BluetoothState { class in OHOS::Bluetooth::ScanDuty::PhyType::AdvertisingState

Completed in 3 milliseconds