Home
last modified time | relevance | path

Searched refs:btState (Results 1 – 21 of 21) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_buscenter/src/
H A Dlnn_bt_network_impl.c164 static BtSubnetManagerEvent GetBtStatusChangedEvent(SoftBusBtState btState) in GetBtStatusChangedEvent() argument
166 if (btState == SOFTBUS_BR_TURN_ON || btState == SOFTBUS_BLE_TURN_ON) { in GetBtStatusChangedEvent()
169 if (btState == SOFTBUS_BR_TURN_OFF || btState == SOFTBUS_BLE_TURN_OFF) { in GetBtStatusChangedEvent()
186 SoftBusBtState btState = (SoftBusBtState)(*(uint8_t *)status); in OnBtNetifStatusChanged() local
187 event = GetBtStatusChangedEvent(btState); in OnBtNetifStatusChanged()
245 SoftBusBtState btState = (SoftBusBtState)(*(uint8_t *)data); in NotifyBtStatusChanged() local
247 (btState == SOFTBUS_BR_TURN_ON || btState == SOFTBUS_BR_TURN_OFF)) { in NotifyBtStatusChanged()
251 (btState == SOFTBUS_BLE_TURN_ON || btState == SOFTBUS_BLE_TURN_OFF)) { in NotifyBtStatusChanged()
257 static void BtNetworkInfoUpdate(SoftBusBtState btState) in BtNetworkInfoUpdate() argument
259 if (btState == SOFTBUS_BLE_TURN_ON) { in BtNetworkInfoUpdate()
[all …]
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/MainAbility/model/
H A DbleInterface.ets31 let btState = bluetooth.getState();
32 …if ( btState == bluetooth.BluetoothState.STATE_ON || btState == bluetooth.BluetoothState.STATE_BLE…
40 } else if ( btState == bluetooth.BluetoothState.STATE_OFF ) {
60 let btState = bluetooth.getState();
62 …if ( btState == bluetooth.BluetoothState.STATE_ON || btState == bluetooth.BluetoothState.STATE_BLE…
70 } else if ( btState == bluetooth.BluetoothState.STATE_OFF ) {
103 let btState = bluetooth.getState();
105 if ( btState == bluetooth.BluetoothState.STATE_OFF ) {
H A DgattClientInterface.ets51 let btState = bluetooth.getState();
52 …if ( btState === bluetooth.BluetoothState.STATE_ON || btState === bluetooth.BluetoothState.STATE_B…
109 let btState = bluetooth.getState();
110 …if ( btState === bluetooth.BluetoothState.STATE_ON || btState === bluetooth.BluetoothState.STATE_B…
142 let btState = bluetooth.getState();
143 …if ( btState == bluetooth.BluetoothState.STATE_ON || btState == bluetooth.BluetoothState.STATE_BLE…
232 let btState = bluetooth.getState();
233 …if ( btState == bluetooth.BluetoothState.STATE_ON || btState == bluetooth.BluetoothState.STATE_BLE…
262 let btState = bluetooth.getState();
263 …if ( btState == bluetooth.BluetoothState.STATE_ON || btState == bluetooth.BluetoothState.STATE_BLE…
[all …]
H A DgattClientManagerInterface.ets34 let btState = bluetoothManager.getState();
92 let btState = bluetoothManager.getState();
125 let btState = bluetoothManager.getState();
215 let btState = bluetoothManager.getState();
242 let btState = bluetoothManager.getState();
293 let btState = bluetoothManager.getState();
333 let btState = bluetoothManager.getState();
398 let btState = bluetoothManager.getState();
459 let btState = bluetoothManager.getState();
516 let btState = bluetoothManager.getState();
[all …]
H A DbleManagerInterface.ets32 let btState = bluetoothManager.getState();
33 if ( btState == bluetoothManager.BluetoothState.STATE_ON ) {
41 } else if ( btState == bluetoothManager.BluetoothState.STATE_OFF ) {
59 let btState = bluetoothManager.getState();
61 if ( btState == bluetoothManager.BluetoothState.STATE_ON ) {
69 } else if ( btState == bluetoothManager.BluetoothState.STATE_OFF ) {
103 let btState = bluetoothManager.getState();
105 if ( btState == bluetoothManager.BluetoothState.STATE_OFF ) {
H A DgattServerInterface.ets42 let btState = bluetooth.getState();
44 …if ( btState === bluetooth.BluetoothState.STATE_ON || btState === bluetooth.BluetoothState.STATE_B…
56 } else if ( btState === bluetooth.BluetoothState.STATE_OFF ) {
136 let btState = bluetooth.getState();
137 …if ( btState == bluetooth.BluetoothState.STATE_ON || btState == bluetooth.BluetoothState.STATE_BLE…
203 let btState = bluetooth.getState();
204 …if ( btState === bluetooth.BluetoothState.STATE_ON || btState === bluetooth.BluetoothState.STATE_B…
330 let btState = bluetooth.getState();
331 …if ( btState == bluetooth.BluetoothState.STATE_ON || btState == bluetooth.BluetoothState.STATE_BLE…
357 let btState = bluetooth.getState();
[all …]
H A DgattServerManagerInterface.ets25 let btState = bluetoothManager.getState();
27 if ( btState === bluetoothManager.BluetoothState.STATE_ON ) {
39 } else if ( btState === bluetoothManager.BluetoothState.STATE_OFF ) {
118 let btState = bluetoothManager.getState();
119 if ( btState == bluetoothManager.BluetoothState.STATE_ON ) {
177 let btState = bluetoothManager.getState();
178 if ( btState === bluetoothManager.BluetoothState.STATE_ON ) {
303 let btState = bluetoothManager.getState();
304 if ( btState == bluetoothManager.BluetoothState.STATE_ON ) {
330 let btState = bluetoothManager.getState();
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/service/fuzztest/buscenterevent_fuzzer/
H A Dbuscenterevent_fuzz.cpp117 char *btState = (char *)SoftBusCalloc(sizeof(SoftBusBtState)); in LnnNotifyStateChangeEventFuzzTest() local
118 if (btState == nullptr) { in LnnNotifyStateChangeEventFuzzTest()
122 if (memcpy_s(btState, sizeof(SoftBusBtState), outData, size) != EOK) { in LnnNotifyStateChangeEventFuzzTest()
123 SoftBusFree(btState); in LnnNotifyStateChangeEventFuzzTest()
127 LnnNotifyBtStateChangeEvent(btState); in LnnNotifyStateChangeEventFuzzTest()
/ohos5.0/foundation/communication/dsoftbus/adapter/common/bus_center/network/
H A Dlnn_bt_monitor.c45 SoftBusBtStackState btState = (SoftBusBtStackState)state; in LnnOnBtStateChanged() local
52 switch (btState) { in LnnOnBtStateChanged()
70 LNN_LOGD(LNN_STATE, "bt state changed but no need notify, btState=%{public}d", btState); in LnnOnBtStateChanged()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/
H A Dlnn_heartbeat_ctrl.c59 SoftBusBtState btState; member
79 g_hbConditionState.btState = SOFTBUS_BT_UNKNOWN; in InitHbConditionState()
111 (g_hbConditionState.btState != SOFTBUS_BT_UNKNOWN)); in IsHeartbeatEnable()
142 g_hbConditionState.btState = SOFTBUS_BLE_TURN_ON; in HbRefreshConditionState()
366 static void HbHandleBleStateChange(SoftBusBtState btState) in HbHandleBleStateChange() argument
385 if (btState == SOFTBUS_BR_TURN_ON) { in HbHandleBleStateChange()
397 SoftBusBtState btState = (SoftBusBtState)event->status; in HbBtStateChangeEventHandler() local
398 g_hbConditionState.btState = btState; in HbBtStateChangeEventHandler()
399 switch (btState) { in HbBtStateChangeEventHandler()
402 HbHandleBleStateChange(btState); in HbBtStateChangeEventHandler()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_buscenter/
H A Dlnn_bt_network_impl_test.cpp127 SoftBusBtState btState = SOFTBUS_BR_TURN_ON; variable
128 void *data = (void *)(&btState);
130 btState = SOFTBUS_BLE_TURN_ON;
131 data = (void *)(&btState);
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/server/src/
H A Dbluetooth_host_dumper.cpp63 std::string btState = hostServer->IsBrEnabled() ? "enabled\n" : "disabled\n"; in BtCommStateDump() local
64 result.append("Bt enable state: ").append(btState); in BtCommStateDump()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/service/src/
H A Dbus_center_event.c540 SoftBusBtState *btState = (SoftBusBtState *)state; in LnnNotifyBtStateChangeEvent() local
541 if (*btState < SOFTBUS_BLE_TURN_ON || *btState >= SOFTBUS_BT_UNKNOWN) { in LnnNotifyBtStateChangeEvent()
542 LNN_LOGE(LNN_EVENT, "bad btState=%{public}d", *btState); in LnnNotifyBtStateChangeEvent()
543 SoftBusFree(btState); in LnnNotifyBtStateChangeEvent()
546 …ateChangedEvent event = {.basic.event = LNN_EVENT_BT_STATE_CHANGED, .status = (uint8_t)(*btState)}; in LnnNotifyBtStateChangeEvent()
548 SoftBusFree(btState); in LnnNotifyBtStateChangeEvent()
/ohos5.0/foundation/communication/dsoftbus/tests/core/discovery/ble/bluetooth_mock/
H A Dbluetooth_mock.cpp89 BluetoothMock::BluetoothMock(BluetoothMock::BtState btState) in BluetoothMock() argument
92 BluetoothMock::currentBtState_ = btState; in BluetoothMock()
93 BluetoothMock::isBleEnabled_ = (btState != BluetoothMock::BtState::BT_STATE_OFF); in BluetoothMock()
94 BluetoothMock::isBrEnabled_ = (btState == BluetoothMock::BtState::BT_STATE_ON); in BluetoothMock()
H A Dbluetooth_mock.h75 explicit BluetoothMock(BtState btState = BT_STATE_OFF);
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/pages/subBenchmarkTest/
H A DgattClientVelocityBenchmarkTest.ets299 let btState = bluetooth.getState();
300 if ( btState === bluetooth.BluetoothState.STATE_OFF ) {
345 let btState = bluetooth.getState();
346 if ( btState === bluetooth.BluetoothState.STATE_OFF ) {
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/pages/subBenchmarkTestManager/
H A DgattClientVelocityBenchmarkTestManager.ets298 let btState = bluetoothManager.getState();
299 if ( btState === bluetoothManager.BluetoothState.STATE_OFF ) {
344 let btState = bluetoothManager.getState();
345 if ( btState === bluetoothManager.BluetoothState.STATE_OFF ) {
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_network_info.c394 SoftBusBtState btState = (SoftBusBtState)event->status; in BtStateChangeEventHandler() local
396 LNN_LOGI(LNN_BUILDER, "bt state change btState=%{public}d", btState); in BtStateChangeEventHandler()
397 switch (btState) { in BtStateChangeEventHandler()
H A Dlnn_net_builder.c913 int btState = SoftBusGetBtState(); in UpdateLocalNetCapability() local
914 if (btState == BLE_ENABLE) { in UpdateLocalNetCapability()
917 } else if (btState == BLE_DISABLE) { in UpdateLocalNetCapability()
/ohos5.0/foundation/communication/dsoftbus/tests/core/discovery/ble/softbus_ble_mock/
H A Dble_mock.cpp410 return btState ? BLE_ENABLE : BLE_DISABLE; in ActionOfGetBtState()
492 btState = true; in TurnOnBt()
500 btState = false; in TurnOffBt()
H A Dble_mock.h146 static inline bool btState {};