Home
last modified time | relevance | path

Searched refs:DisableBluetoothPlugin (Results 1 - 4 of 4) sorted by relevance

/base/customization/enterprise_device_management/services/edm_plugin/src/
H A Ddisable_bluetooth_plugin.cpp29 const bool REGISTER_RESULT = PluginManager::GetInstance()->AddPlugin(DisableBluetoothPlugin::GetPlugin());
30 const std::string DisableBluetoothPlugin::PERSIST_BLUETOOTH_CONTROL = "persist.edm.prohibit_bluetooth";
32 void DisableBluetoothPlugin::InitPlugin(std::shared_ptr<IPluginTemplate<DisableBluetoothPlugin, bool>> ptr) in InitPlugin()
34 EDMLOGI("DisableBluetoothPlugin InitPlugin..."); in InitPlugin()
44 ptr->SetOnHandlePolicyListener(&DisableBluetoothPlugin::OnSetPolicy, FuncOperateType::SET); in InitPlugin()
47 ErrCode DisableBluetoothPlugin::OnSetPolicy(bool &disable) in OnSetPolicy()
53 EDMLOGW("DisableBluetoothPlugin failed when set system para: %{public}d", disable); in OnSetPolicy()
61 EDMLOGW("DisableBluetoothPlugin failed when disable bt: %{public}d, rollback: %{public}d", ret, setParaRet); in OnSetPolicy()
66 EDMLOGI("DisableBluetoothPlugin se in OnSetPolicy()
[all...]
/base/customization/enterprise_device_management/services/edm_plugin/include/
H A Ddisable_bluetooth_plugin.h23 class DisableBluetoothPlugin : public PluginSingleton<DisableBluetoothPlugin, bool> { class
27 void InitPlugin(std::shared_ptr<IPluginTemplate<DisableBluetoothPlugin, bool>> ptr) override;
/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/
H A Ddisable_bluetooth_plugin_test.cpp67 std::shared_ptr<IPlugin> plugin = DisableBluetoothPlugin::GetPlugin(); in HWTEST_F()
73 ASSERT_TRUE(OHOS::system::GetBoolParameter(DisableBluetoothPlugin::PERSIST_BLUETOOTH_CONTROL, false)); in HWTEST_F()
86 std::shared_ptr<IPlugin> plugin = DisableBluetoothPlugin::GetPlugin(); in HWTEST_F()
92 ASSERT_FALSE(OHOS::system::GetBoolParameter(DisableBluetoothPlugin::PERSIST_BLUETOOTH_CONTROL, true)); in HWTEST_F()
105 std::shared_ptr<IPlugin> plugin = DisableBluetoothPlugin::GetPlugin(); in HWTEST_F()
111 ASSERT_FALSE(OHOS::system::GetBoolParameter(DisableBluetoothPlugin::PERSIST_BLUETOOTH_CONTROL, true)); in HWTEST_F()
118 ASSERT_TRUE(OHOS::system::GetBoolParameter(DisableBluetoothPlugin::PERSIST_BLUETOOTH_CONTROL, false)); in HWTEST_F()
128 std::shared_ptr<IPlugin> plugin = DisableBluetoothPlugin::GetPlugin(); in HWTEST_F()
136 ASSERT_EQ(OHOS::system::GetBoolParameter(DisableBluetoothPlugin::PERSIST_BLUETOOTH_CONTROL, false), in HWTEST_F()
/base/customization/enterprise_device_management/test/fuzztest/common/src/
H A Dcommon_fuzzer.cpp100 PluginManager::GetInstance()->AddPlugin(DisableBluetoothPlugin::GetPlugin());

Completed in 3 milliseconds