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 16 #ifndef CONCURRENT_TASK_SERVICES_CONCURRENTSEVICE_INCLUDE_CONCURRENT_TASK_TYPE_H 17 #define CONCURRENT_TASK_SERVICES_CONCURRENTSEVICE_INCLUDE_CONCURRENT_TASK_TYPE_H 18 namespace OHOS { 19 namespace ConcurrentTask { 20 constexpr int MAX_KEY_THREADS = 5; 21 22 enum MsgType { 23 MSG_FOREGROUND = 0, 24 MSG_BACKGROUND, 25 MSG_APP_START, 26 MSG_APP_KILLED, 27 MSG_FOCUS, 28 MSG_SYSTEM_MAX, 29 MSG_APP_START_TYPE = 100, 30 MSG_REG_RENDER = MSG_APP_START_TYPE, 31 MSG_REG_UI, 32 MSG_REG_KEY_THERAD, 33 MSG_TYPE_MAX 34 }; 35 36 enum PrioType { 37 PRIO_RT = 0, 38 RPIO_IN = 1, 39 PRIO_NORMAL = 2, 40 }; 41 42 enum QueryIntervalItem { 43 QUERY_UI = 0, 44 QUERY_RENDER = 1, 45 QUERY_RENDER_SERVICE = 2, 46 QUERY_COMPOSER = 3, 47 QURRY_TYPE_MAX 48 }; 49 50 struct IntervalReply { 51 int rtgId; 52 int paramA; 53 int paramB; 54 int paramC; 55 }; 56 } 57 } 58 #endif // CONCURRENT_TASK_SERVICES_CONCURRENTSEVICE_INCLUDE_CONCURRENT_TASK_TYPE_H