/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_buscenter/src/ |
H A D | lnn_bt_network_impl.c | 164 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 D | bleInterface.ets | 31 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 D | gattClientInterface.ets | 51 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 D | gattClientManagerInterface.ets | 34 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 D | bleManagerInterface.ets | 32 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 D | gattServerInterface.ets | 42 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 D | gattServerManagerInterface.ets | 25 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 D | buscenterevent_fuzz.cpp | 117 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 D | lnn_bt_monitor.c | 45 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 D | lnn_heartbeat_ctrl.c | 59 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 D | lnn_bt_network_impl_test.cpp | 127 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 D | bluetooth_host_dumper.cpp | 63 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 D | bus_center_event.c | 540 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 D | bluetooth_mock.cpp | 89 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 D | bluetooth_mock.h | 75 explicit BluetoothMock(BtState btState = BT_STATE_OFF);
|
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/pages/subBenchmarkTest/ |
H A D | gattClientVelocityBenchmarkTest.ets | 299 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 D | gattClientVelocityBenchmarkTestManager.ets | 298 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 D | lnn_network_info.c | 394 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 D | lnn_net_builder.c | 913 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 D | ble_mock.cpp | 410 return btState ? BLE_ENABLE : BLE_DISABLE; in ActionOfGetBtState() 492 btState = true; in TurnOnBt() 500 btState = false; in TurnOffBt()
|
H A D | ble_mock.h | 146 static inline bool btState {};
|