1 /* 2 * Copyright (c) 2021-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 PROTO_H 17 #define PROTO_H 18 19 #include <sys/types.h> 20 21 enum class MmiMessageId : int32_t { 22 INVALID, 23 ADD_INPUT_DEVICE_LISTENER, 24 DISPLAY_INFO, 25 NOTICE_ANR, 26 MARK_PROCESS, 27 ON_SUBSCRIBE_KEY, 28 ON_SUBSCRIBE_SWITCH, 29 ON_KEY_EVENT, 30 ON_POINTER_EVENT, 31 REPORT_KEY_EVENT, 32 REPORT_POINTER_EVENT, 33 ON_DEVICE_ADDED, 34 ON_DEVICE_REMOVED, 35 SCINFO_CONFIG, 36 }; 37 38 enum TokenType : int32_t { 39 TOKEN_INVALID = -1, 40 TOKEN_HAP = 0, 41 TOKEN_NATIVE, 42 TOKEN_SHELL, 43 }; 44 45 enum ANTTimeOutTime : int64_t { 46 INPUT_UI_TIMEOUT_TIME = 5 * 1000000 47 }; 48 49 enum ANREventType { 50 ANR_DISPATCH, 51 ANR_MONITOR, 52 ANR_EVENT_TYPE_NUM, 53 }; 54 #endif // PROTO_H 55