Home
last modified time | relevance | path

Searched refs:DeviceControlProxy (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/customization/enterprise_device_management/interfaces/inner_api/device_control/src/
H A Ddevice_control_proxy.cpp24 std::shared_ptr<DeviceControlProxy> DeviceControlProxy::instance_ = nullptr;
25 std::mutex DeviceControlProxy::mutexLock_;
28 DeviceControlProxy::DeviceControlProxy() {} in DeviceControlProxy() function in OHOS::EDM::DeviceControlProxy
30 DeviceControlProxy::~DeviceControlProxy() {} in ~DeviceControlProxy()
32 std::shared_ptr<DeviceControlProxy> DeviceControlProxy::GetDeviceControlProxy() in GetDeviceControlProxy()
37 std::shared_ptr<DeviceControlProxy> temp = std::make_shared<DeviceControlProxy>(); in GetDeviceControlProxy()
44 int32_t DeviceControlProxy::ResetFactory(AppExecFwk::ElementName &admin) in ResetFactory()
57 int32_t DeviceControlProxy::Shutdown(AppExecFwk::ElementName &admin) in Shutdown()
70 int32_t DeviceControlProxy::Reboot(AppExecFwk::ElementName &admin) in Reboot()
83 int32_t DeviceControlProxy::LockScreen(AppExecFwk::ElementName &admin, int32_t userId) in LockScreen()
[all …]
/ohos5.0/base/customization/enterprise_device_management/interfaces/inner_api/device_control/include/
H A Ddevice_control_proxy.h24 class DeviceControlProxy {
26 DeviceControlProxy();
27 ~DeviceControlProxy();
28 static std::shared_ptr<DeviceControlProxy> GetDeviceControlProxy();
36 static std::shared_ptr<DeviceControlProxy> instance_;
/ohos5.0/base/customization/enterprise_device_management/interfaces/kits/device_control/src/
H A Ddevice_control_addon.cpp98 int32_t result = DeviceControlProxy::GetDeviceControlProxy()->LockScreen(elementName, userId); in LockScreen()
123 int32_t result = DeviceControlProxy::GetDeviceControlProxy()->Shutdown(elementName); in Shutdown()
148 int32_t result = DeviceControlProxy::GetDeviceControlProxy()->Reboot(elementName); in Reboot()
163 if (DeviceControlProxy::GetDeviceControlProxy() == nullptr) { in NativeResetFactory()
168 DeviceControlProxy::GetDeviceControlProxy()->ResetFactory(asyncCallbackInfo->elementName); in NativeResetFactory()
204 int32_t ret = DeviceControlProxy::GetDeviceControlProxy()->OperateDevice(elementName, param); in OperateDevice()
/ohos5.0/base/customization/enterprise_device_management/test/unittest/interface/inner_api/proxy/
H A Ddevice_control_proxy_test.cpp41 std::shared_ptr<DeviceControlProxy> deviceControlProxy = nullptr;
48 deviceControlProxy = DeviceControlProxy::GetDeviceControlProxy(); in SetUp()