• 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 VIRTUAL_DEVICE_CONFIG_H
17 #define VIRTUAL_DEVICE_CONFIG_H
18 
19 #include <cstdint>
20 #include <functional>
21 #include <iostream>
22 #include <vector>
23 #include <map>
24 #include <unistd.h>
25 #include <cstring>
26 #include <sys/stat.h>
27 #include <dirent.h>
28 #include <csignal>
29 #include <fstream>
30 #include <memory>
31 #include <cinttypes>
32 #include <cerrno>
33 #include <fcntl.h>
34 #include <sstream>
35 #include "securec.h"
36 #include "linux/input.h"
37 #include "linux/uinput.h"
38 
39 #ifndef REL_WHEEL_HI_RES
40 #define REL_WHEEL_HI_RES    0x0b
41 #endif
42 
43 #ifndef REL_HWHEEL_HI_RES
44 #define REL_HWHEEL_HI_RES    0x0c
45 #endif
46 
47 namespace OHOS {
48 namespace MMI {
49 #define SYMBOL_FOLDER_PERMISSIONS 775
50 #define PARAMETERS_NUMBER 3
51 #define PARAMETERS_QUERY_NUMBER 2
52 
53 struct ResolutionInfo {
54     int16_t axisCode {};
55     int32_t absResolution {};
56 };
57 
58 struct AbsInfo {
59     int32_t code {};
60     int32_t minValue {};
61     int32_t maxValue {};
62     int32_t fuzz {};
63     int32_t flat {};
64 };
65 
66 const std::string g_folderPath = "/data/symbol/";
67 } // namespace MMI
68 } // namespace OHOS
69 #endif // VIRTUAL_DEVICE_CONFIG_H