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 IS_FOLD_SCREEN_ON, 41 IS_COLLABORATION_SCREEN_ON, 42 FORCE_DEVICE_SUSPEND, 43 REBOOT_DEVICE, 44 REBOOT_DEVICE_FOR_DEPRECATED, 45 SHUTDOWN_DEVICE, 46 REG_POWER_STATE_CALLBACK, 47 UNREG_POWER_STATE_CALLBACK, 48 REG_POWER_MODE_CALLBACK, 49 UNREG_POWER_MODE_CALLBACK, 50 SET_DISPLAY_SUSPEND, 51 SETMODE_DEVICE, 52 GETMODE_DEVICE, 53 SHELL_DUMP, 54 IS_STANDBY, 55 REG_SYNC_SLEEP_CALLBACK, 56 UNREG_SYNC_SLEEP_CALLBACK, 57 SET_FORCE_TIMING_OUT, 58 LOCK_SCREEN_AFTER_TIMING_OUT, 59 HIBERNATE, 60 REG_SCREEN_OFF_PRE_CALLBACK, 61 UNREG_SCREEN_OFF_PRE_CALLBACK, 62 REG_RUNNINGLOCK_CALLBACK, 63 UNREG_RUNNINGLOCK_CALLBACK, 64 SET_SUSPEND_TAG, 65 REG_SYNC_HIBERNATE_CALLBACK, 66 UNREG_SYNC_HIBERNATE_CALLBACK, 67 UPDATE_WORK_SOURCE 68 }; 69 } // space PowerMgr 70 } // namespace OHOS 71 72 #endif // POWER_MGR_IPC_INTERFACE_DODE_H 73