Searched refs:PERSIST_BLUETOOTH_CONTROL (Results 1 - 5 of 5) sorted by relevance
/base/customization/enterprise_device_management/services/edm_plugin/src/ |
H A D | disable_bluetooth_plugin.cpp | 30 const std::string DisableBluetoothPlugin::PERSIST_BLUETOOTH_CONTROL = "persist.edm.prohibit_bluetooth"; member in OHOS::EDM::DisableBluetoothPlugin 49 std::string originalPara = system::GetParameter(PERSIST_BLUETOOTH_CONTROL, "false"); in OnSetPolicy() 51 bool setParaRet = system::SetParameter(PERSIST_BLUETOOTH_CONTROL, newPara); in OnSetPolicy() 60 setParaRet = system::SetParameter(PERSIST_BLUETOOTH_CONTROL, originalPara); in OnSetPolicy() 73 bool paraValue = system::GetBoolParameter(PERSIST_BLUETOOTH_CONTROL, false); in OnGetPolicy()
|
H A D | allowed_bluetooth_devices_plugin.cpp | 28 const char *const PERSIST_BLUETOOTH_CONTROL = "persist.edm.prohibit_bluetooth"; member 49 bool isDisabled = system::GetBoolParameter(PERSIST_BLUETOOTH_CONTROL, false); in OnSetPolicy()
|
/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/ |
H A D | disable_bluetooth_plugin_test.cpp | 73 ASSERT_TRUE(OHOS::system::GetBoolParameter(DisableBluetoothPlugin::PERSIST_BLUETOOTH_CONTROL, false)); in HWTEST_F() 92 ASSERT_FALSE(OHOS::system::GetBoolParameter(DisableBluetoothPlugin::PERSIST_BLUETOOTH_CONTROL, true)); 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() 136 ASSERT_EQ(OHOS::system::GetBoolParameter(DisableBluetoothPlugin::PERSIST_BLUETOOTH_CONTROL, false), in HWTEST_F()
|
/base/customization/enterprise_device_management/services/edm_plugin/include/ |
H A D | disable_bluetooth_plugin.h | 25 static const std::string PERSIST_BLUETOOTH_CONTROL; member in OHOS::EDM::DisableBluetoothPlugin
|
/base/customization/enterprise_device_management/test/unittest/utils/src/ |
H A D | utils.cpp | 52 const std::string PERSIST_BLUETOOTH_CONTROL = "persist.edm.prohibit_bluetooth"; member 169 system::SetParameter(PERSIST_BLUETOOTH_CONTROL, "false"); in SetBluetoothEnable() 174 system::SetParameter(PERSIST_BLUETOOTH_CONTROL, "true"); in SetBluetoothDisable()
|
Completed in 3 milliseconds