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_ISUSED, 29 PROXY_RUNNINGLOCK, 30 PROXY_RUNNINGLOCKS, 31 RESET_RUNNINGLOCKS, 32 WAKEUP_DEVICE, 33 SUSPEND_DEVICE, 34 REFRESH_ACTIVITY, 35 OVERRIDE_DISPLAY_OFF_TIME, 36 RESTORE_DISPLAY_OFF_TIME, 37 GET_STATE, 38 IS_SCREEN_ON, 39 FORCE_DEVICE_SUSPEND, 40 REBOOT_DEVICE, 41 REBOOT_DEVICE_FOR_DEPRECATED, 42 SHUTDOWN_DEVICE, 43 REG_POWER_STATE_CALLBACK, 44 UNREG_POWER_STATE_CALLBACK, 45 REG_POWER_MODE_CALLBACK, 46 UNREG_POWER_MODE_CALLBACK, 47 SET_DISPLAY_SUSPEND, 48 SETMODE_DEVICE, 49 GETMODE_DEVICE, 50 SHELL_DUMP, 51 IS_STANDBY 52 }; 53 } // space PowerMgr 54 } // namespace OHOS 55 56 #endif // POWER_MGR_IPC_INTERFACE_DODE_H