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 WINDOW_AREA_INFO, 37 NOTIFY_BUNDLE_NAME, 38 WINDOW_INFO, 39 WINDOW_STATE_ERROR_CALLBACK, 40 WINDOW_STATE_ERROR_NOTIFY, 41 }; 42 43 enum TokenType : int32_t { 44 TOKEN_INVALID = -1, 45 TOKEN_HAP = 0, 46 TOKEN_NATIVE, 47 TOKEN_SHELL, 48 TOKEN_SYSTEM_HAP, 49 }; 50 51 enum ANTTimeOutTime : int64_t { 52 INPUT_UI_TIMEOUT_TIME = 5 * 1000000 53 }; 54 55 enum ANREventType { 56 ANR_DISPATCH, 57 ANR_MONITOR, 58 ANR_EVENT_TYPE_NUM, 59 }; 60 #endif // PROTO_H 61