1 /* 2 * Copyright (c) 2022 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 #ifndef FOUNDATION_RESOURCESCHEDULE_DEVICE_USAGE_STATISTICS_BUNDLE_STATE_CONDITION_H 16 #define FOUNDATION_RESOURCESCHEDULE_DEVICE_USAGE_STATISTICS_BUNDLE_STATE_CONDITION_H 17 18 namespace OHOS { 19 namespace DeviceUsageStats { 20 class BundleStateCondition { 21 public: 22 virtual ~BundleStateCondition() = default; 23 24 enum IntervalType { 25 BY_OPTIMIZED = 0, 26 BY_DAILY, 27 BY_WEEKLY, 28 BY_MONTHLY, 29 BY_ANNUALLY, 30 }; 31 32 enum GroupType { 33 ALIVE_GROUP = 10, 34 DAILY_GROUP = 20, 35 FIXED_GROUP = 30, 36 RARE_GROUP = 40, 37 LIMITED_GROUP = 50, 38 NEVER_GROUP = 60, 39 }; 40 }; 41 } // namespace DeviceUsageStats 42 } // namespace OHOS 43 #endif // FOUNDATION_RESOURCESCHEDULE_DEVICE_USAGE_STATISTICS_BUNDLE_STATE_CONDITION_H 44 45