• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef POWER_MGR_IPC_INTERFACE_DODE_H
17 #define POWER_MGR_IPC_INTERFACE_DODE_H
18 
19 /* SAID: 3301 */
20 namespace OHOS {
21 namespace PowerMgr {
22 enum class PowerMgrInterfaceCode {
23     CREATE_RUNNINGLOCK = 0,
24     RELEASE_RUNNINGLOCK,
25     IS_RUNNINGLOCK_TYPE_SUPPORTED,
26     RUNNINGLOCK_LOCK,
27     RUNNINGLOCK_UNLOCK,
28     RUNNINGLOCK_QUERY,
29     RUNNINGLOCK_ISUSED,
30     PROXY_RUNNINGLOCK,
31     PROXY_RUNNINGLOCKS,
32     RESET_RUNNINGLOCKS,
33     WAKEUP_DEVICE,
34     SUSPEND_DEVICE,
35     REFRESH_ACTIVITY,
36     OVERRIDE_DISPLAY_OFF_TIME,
37     RESTORE_DISPLAY_OFF_TIME,
38     GET_STATE,
39     IS_SCREEN_ON,
40     FORCE_DEVICE_SUSPEND,
41     REBOOT_DEVICE,
42     REBOOT_DEVICE_FOR_DEPRECATED,
43     SHUTDOWN_DEVICE,
44     REG_POWER_STATE_CALLBACK,
45     UNREG_POWER_STATE_CALLBACK,
46     REG_POWER_MODE_CALLBACK,
47     UNREG_POWER_MODE_CALLBACK,
48     SET_DISPLAY_SUSPEND,
49     SETMODE_DEVICE,
50     GETMODE_DEVICE,
51     SHELL_DUMP,
52     IS_STANDBY,
53     REG_SYNC_SLEEP_CALLBACK,
54     UNREG_SYNC_SLEEP_CALLBACK,
55 };
56 } // space PowerMgr
57 } // namespace OHOS
58 
59 #endif // POWER_MGR_IPC_INTERFACE_DODE_H