• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 };
40 
41 enum TokenType : int32_t {
42     TOKEN_INVALID = -1,
43     TOKEN_HAP = 0,
44     TOKEN_NATIVE,
45     TOKEN_SHELL,
46 };
47 
48 enum ANTTimeOutTime : int64_t {
49     INPUT_UI_TIMEOUT_TIME = 5 * 1000000
50 };
51 
52 enum ANREventType {
53     ANR_DISPATCH,
54     ANR_MONITOR,
55     ANR_EVENT_TYPE_NUM,
56 };
57 #endif // PROTO_H
58