199552fe9Sopenharmony_ci/* 299552fe9Sopenharmony_ci * Copyright (c) 2023-2024 Huawei Device Co., Ltd. 399552fe9Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 499552fe9Sopenharmony_ci * you may not use this file except in compliance with the License. 599552fe9Sopenharmony_ci * You may obtain a copy of the License at 699552fe9Sopenharmony_ci * 799552fe9Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 899552fe9Sopenharmony_ci * 999552fe9Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1099552fe9Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1199552fe9Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1299552fe9Sopenharmony_ci * See the License for the specific language governing permissions and 1399552fe9Sopenharmony_ci * limitations under the License. 1499552fe9Sopenharmony_ci */ 1599552fe9Sopenharmony_ci 1699552fe9Sopenharmony_ci#ifndef FOUNDATION_RESOURCESCHEDULE_STANDBY_SERVICE_UTILS_COMMON_CONSTANT_H 1799552fe9Sopenharmony_ci#define FOUNDATION_RESOURCESCHEDULE_STANDBY_SERVICE_UTILS_COMMON_CONSTANT_H 1899552fe9Sopenharmony_ci 1999552fe9Sopenharmony_ci#include <string> 2099552fe9Sopenharmony_ci#include <vector> 2199552fe9Sopenharmony_ci#include <map> 2299552fe9Sopenharmony_ci 2399552fe9Sopenharmony_cinamespace OHOS { 2499552fe9Sopenharmony_cinamespace DevStandbyMgr { 2599552fe9Sopenharmony_ciextern const std::string TRANSIT_NEXT_STATE_TIMED_TASK; 2699552fe9Sopenharmony_ciextern const std::string TRANSIT_NEXT_STATE_CONDITION_TASK; 2799552fe9Sopenharmony_ciextern const std::string TRANSIT_NEXT_PHASE_INSTANT_TASK; 2899552fe9Sopenharmony_ciextern const std::string REPEATED_MOTION_DETECTION_TASK; 2999552fe9Sopenharmony_ci 3099552fe9Sopenharmony_ciextern const std::string DEFAULT_PLUGIN_NAME; 3199552fe9Sopenharmony_ci 3299552fe9Sopenharmony_ciextern const std::string DETECT_MOTION_CONFIG; 3399552fe9Sopenharmony_ciextern const int32_t REPEATED_MOTION_DETECTION_INTERVAL; 3499552fe9Sopenharmony_ciextern const std::string DARK_TIMEOUT; 3599552fe9Sopenharmony_ciextern const std::string NAP_TIMEOUT; 3699552fe9Sopenharmony_ciextern const std::string NAP_MAINT_DURATION; 3799552fe9Sopenharmony_ci 3899552fe9Sopenharmony_ciextern const std::string SLEEP_MAINT_DURATOIN; 3999552fe9Sopenharmony_ciextern const std::string NAP_MAINTENANCE_TIMEOUT; 4099552fe9Sopenharmony_ciextern const std::string SLEEP_MAINT_TIMEOUT; 4199552fe9Sopenharmony_ciextern const std::vector<std::string> STATE_NAME_LIST; 4299552fe9Sopenharmony_ci 4399552fe9Sopenharmony_ciextern const std::string MOTION_THREADSHOLD; 4499552fe9Sopenharmony_ci 4599552fe9Sopenharmony_ciextern const std::string MOTION_DECTION_TASK; 4699552fe9Sopenharmony_ciextern const int32_t MOTION_DETECTION_TIMEOUT; 4799552fe9Sopenharmony_ciextern const int32_t REST_TIMEOUT; 4899552fe9Sopenharmony_ciextern const int32_t TOTAL_TIMEOUT; 4999552fe9Sopenharmony_ciextern const int32_t PERIODLY_TASK_DECTION_TIMEOUT; 5099552fe9Sopenharmony_ciextern const int32_t PERIODLY_TASK_REST_TIMEOUT; 5199552fe9Sopenharmony_ciextern const int32_t PERIODLY_TASK_TOTAL_TIMEOUT; 5299552fe9Sopenharmony_ciextern const int64_t SENSOR_SAMPLING_RATE; 5399552fe9Sopenharmony_ciextern const int64_t SENSOR_REPORTING_RATE; 5499552fe9Sopenharmony_ciextern const int64_t HALF_HOUR; 5599552fe9Sopenharmony_ci 5699552fe9Sopenharmony_ciextern const std::string NAP_SWITCH; 5799552fe9Sopenharmony_ciextern const std::string SLEEP_SWITCH; 5899552fe9Sopenharmony_ciextern const std::string S3_SWITCH; 5999552fe9Sopenharmony_ciextern const std::string DEVICE_STANGDY_MODE; 6099552fe9Sopenharmony_ci 6199552fe9Sopenharmony_ciextern const std::string PREVIOUS_STATE; 6299552fe9Sopenharmony_ciextern const std::string CURRENT_STATE; 6399552fe9Sopenharmony_ciextern const std::string PREVIOUS_PHASE; 6499552fe9Sopenharmony_ciextern const std::string CURRENT_PHASE; 6599552fe9Sopenharmony_ciextern const std::string SENSOR_DETECTION; 6699552fe9Sopenharmony_ciextern const std::string RES_CTRL_CONDITION; 6799552fe9Sopenharmony_ciextern const std::string SCR_OFF_HALF_HOUR_STATUS; 6899552fe9Sopenharmony_ciextern const std::string NET_IDLE_POLICY_STATUS; 6999552fe9Sopenharmony_ciextern const std::string BG_TASK_TYPE; 7099552fe9Sopenharmony_ciextern const std::string BG_TASK_STATUS; 7199552fe9Sopenharmony_ciextern const std::string BG_TASK_UID; 7299552fe9Sopenharmony_ciextern const std::string BG_TASK_PID; 7399552fe9Sopenharmony_ciextern const std::string BG_TASK_BUNDLE_NAME; 7499552fe9Sopenharmony_ciextern const std::string BG_TASK_RESOURCE_STATUS; 7599552fe9Sopenharmony_ciextern const std::string SA_STATUS; 7699552fe9Sopenharmony_ciextern const std::string SA_ID; 7799552fe9Sopenharmony_ciextern const std::string MESSAGE_TYPE; 7899552fe9Sopenharmony_ciextern const std::string MESSAGE_ENABLE; 7999552fe9Sopenharmony_ciextern const std::string MESSAGE_INTERVAL; 8099552fe9Sopenharmony_ci 8199552fe9Sopenharmony_ciextern const std::string CONTINUOUS_TASK; 8299552fe9Sopenharmony_ciextern const std::string TRANSIENT_TASK; 8399552fe9Sopenharmony_ciextern const std::string WORK_SCHEDULER; 8499552fe9Sopenharmony_ci 8599552fe9Sopenharmony_ciextern const std::string LID_CLOSE; 8699552fe9Sopenharmony_ciextern const std::string LID_OPEN; 8799552fe9Sopenharmony_ci 8899552fe9Sopenharmony_ciextern const uint32_t NO_DUMP_PARAM_NUMS; 8999552fe9Sopenharmony_ciextern const uint32_t DUMP_DETAILED_INFO_MAX_NUMS; 9099552fe9Sopenharmony_ciextern const uint32_t DUMP_SLEEP_SWITCH_PARAM_NUMS; 9199552fe9Sopenharmony_ciextern const uint32_t DUMP_SLEEP_ENTER_STATE_NUMS; 9299552fe9Sopenharmony_ciextern const uint32_t DUMP_SLEEP_ALLOW_LIST_NUMS; 9399552fe9Sopenharmony_ciextern const uint32_t DUMP_SLEEP_APPLY_ALLOW_LIST_NUMS; 9499552fe9Sopenharmony_ciextern const uint32_t DUMP_SWITCH_PARAM_NUMS; 9599552fe9Sopenharmony_ciextern const uint32_t DUMP_STATE_TIMEOUT_PARAM_NUMS; 9699552fe9Sopenharmony_ci 9799552fe9Sopenharmony_ciextern const std::string DUMP_ON; 9899552fe9Sopenharmony_ciextern const std::string DUMP_OFF; 9999552fe9Sopenharmony_ciextern const std::string DUMP_SLEEP_MODE; 10099552fe9Sopenharmony_ciextern const std::string DUMP_DAYTIME_SLEEP_MODE; 10199552fe9Sopenharmony_ciextern const std::string DUMP_NIGHTTIME_SLEEP_MODE; 10299552fe9Sopenharmony_ciextern const std::string DUMP_DEBUG_SWITCH; 10399552fe9Sopenharmony_ciextern const std::string DUMP_RESET_STATE; 10499552fe9Sopenharmony_ciextern const std::string DUMP_DETAIL_CONFIG; 10599552fe9Sopenharmony_ciextern const std::string DUMP_STRATGY_DETAIL; 10699552fe9Sopenharmony_ciextern const std::string DUMP_POWEROFF_STRATEGY; 10799552fe9Sopenharmony_ciextern const std::string DUMP_POWERSAVE_FIREWALL; 10899552fe9Sopenharmony_ci 10999552fe9Sopenharmony_ciextern const std::string DUMP_DETAIL_INFO; 11099552fe9Sopenharmony_ciextern const std::string DUMP_ENTER_STATE; 11199552fe9Sopenharmony_ciextern const std::string DUMP_APPLY_ALLOW_RECORD; 11299552fe9Sopenharmony_ciextern const std::string DUMP_SIMULATE_SENSOR; 11399552fe9Sopenharmony_ciextern const std::string DUMP_SUBSCRIBER_OBSERVER; 11499552fe9Sopenharmony_ciextern const std::string DUMP_TURN_ON_OFF_SWITCH; 11599552fe9Sopenharmony_ciextern const std::string DUMP_CHANGE_STATE_TIMEOUT; 11699552fe9Sopenharmony_ciextern const std::string DUMP_PUSH_STRATEGY_CHANGE; 11799552fe9Sopenharmony_ciextern const int32_t DUMP_FIRST_PARAM; 11899552fe9Sopenharmony_ciextern const int32_t DUMP_SECOND_PARAM; 11999552fe9Sopenharmony_ciextern const int32_t DUMP_THIRD_PARAM; 12099552fe9Sopenharmony_ciextern const int32_t DUMP_FOURTH_PARAM; 12199552fe9Sopenharmony_ciextern const int32_t DUMP_FIFTH_PARAM; 12299552fe9Sopenharmony_ciextern const int32_t DUMP_SIXTH_PARAM; 12399552fe9Sopenharmony_ciextern const int32_t DUMP_SEVENTH_PARAM; 12499552fe9Sopenharmony_ci 12599552fe9Sopenharmony_ciextern const int32_t NIGHT_ENTRANCE_HOUR; 12699552fe9Sopenharmony_ciextern const int32_t NIGHT_ENTRANCE_MIN; 12799552fe9Sopenharmony_ciextern const int32_t DAY_ENTRANCE_HOUR; 12899552fe9Sopenharmony_ciextern const int32_t DAY_ENTRANCE_MIN; 12999552fe9Sopenharmony_ciextern const std::string AIRPLANE_MODE_PARAMETER; 13099552fe9Sopenharmony_ci} // namespace DevStandbyMgr 13199552fe9Sopenharmony_ci} // namespace OHOS 13299552fe9Sopenharmony_ci 13399552fe9Sopenharmony_ci#endif // FOUNDATION_RESOURCESCHEDULE_STANDBY_SERVICE_UTILS_COMMON_CONSTANT_H