Home
last modified time | relevance | path

Searched refs:BluetoothSwitchEvent (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_switch_module.cpp64 case BluetoothSwitchEvent::BLUETOOTH_ON: in ProcessBluetoothSwitchEvent()
66 case BluetoothSwitchEvent::BLUETOOTH_OFF: in ProcessBluetoothSwitchEvent()
68 case BluetoothSwitchEvent::BLUETOOTH_HALF: in ProcessBluetoothSwitchEvent()
122 BluetoothSwitchEvent::ENABLE_BLUETOOTH); in ProcessEnableBluetoothEvent()
129 BluetoothSwitchEvent::DISABLE_BLUETOOTH); in ProcessDisableBluetoothEvent()
142 BluetoothSwitchEvent::ENABLE_BLUETOOTH, in ProcessBluetoothOnEvent()
149 BluetoothSwitchEvent::DISABLE_BLUETOOTH, in ProcessBluetoothOffEvent()
150 …{BluetoothSwitchEvent::ENABLE_BLUETOOTH, BluetoothSwitchEvent::ENABLE_BLUETOOTH_TO_RESTRICE_MODE}); in ProcessBluetoothOffEvent()
157 {BluetoothSwitchEvent::ENABLE_BLUETOOTH, BluetoothSwitchEvent::DISABLE_BLUETOOTH}); in ProcessBluetoothHalfEvent()
161 BluetoothSwitchEvent curSwitchActionEvent, std::vector<BluetoothSwitchEvent> expectedEventVec) in ProcessBluetoothSwitchActionEnd()
[all …]
H A Dbluetooth_switch_module.h38 enum class BluetoothSwitchEvent : int { enum
54 int ProcessBluetoothSwitchEvent(BluetoothSwitchEvent event);
63 …int ProcessBluetoothSwitchAction(std::function<int(void)> action, BluetoothSwitchEvent cachedEvent…
64 int ProcessBluetoothSwitchCachedEvent(BluetoothSwitchEvent event);
66BluetoothSwitchEvent curSwitchActionEvent, std::vector<BluetoothSwitchEvent> expectedEventVec);
67 void DeduplicateCacheEvent(BluetoothSwitchEvent curEvent);
68 void LogCacheEventIgnored(std::vector<BluetoothSwitchEvent> eventVec);
69 void LogBluetoothSwitchEvent(BluetoothSwitchEvent event);
79 std::vector<BluetoothSwitchEvent> cachedEventVec_ {};
H A Dbluetooth_host.cpp136 host_.switchModule_->ProcessBluetoothSwitchEvent(BluetoothSwitchEvent::BLUETOOTH_ON); in OnBluetoothStateChanged()
139 host_.switchModule_->ProcessBluetoothSwitchEvent(BluetoothSwitchEvent::BLUETOOTH_OFF); in OnBluetoothStateChanged()
142 host_.switchModule_->ProcessBluetoothSwitchEvent(BluetoothSwitchEvent::BLUETOOTH_HALF); in OnBluetoothStateChanged()
637 … return pimpl->switchModule_->ProcessBluetoothSwitchEvent(BluetoothSwitchEvent::DISABLE_BLUETOOTH); in DisableBt()
663 …int ret = pimpl->switchModule_->ProcessBluetoothSwitchEvent(BluetoothSwitchEvent::DISABLE_BLUETOO… in RestrictBluetooth()
667 …ret = pimpl->switchModule_->ProcessBluetoothSwitchEvent(BluetoothSwitchEvent::ENABLE_BLUETOOTH_TO_… in RestrictBluetooth()
788 … return pimpl->switchModule_->ProcessBluetoothSwitchEvent(BluetoothSwitchEvent::ENABLE_BLUETOOTH); in EnableBle()
805 …return pimpl->switchModule_->ProcessBluetoothSwitchEvent(BluetoothSwitchEvent::ENABLE_BLUETOOTH_TO… in EnableBluetoothToRestrictMode()
1246 pimpl->switchModule_->ProcessBluetoothSwitchEvent(BluetoothSwitchEvent::BLUETOOTH_OFF); in OnRemoveBluetoothSystemAbility()