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 #ifndef CONFIG_MULTIMODAL_H 16 #define CONFIG_MULTIMODAL_H 17 18 #define DEF_SEAT_ID "seat0" // Default libinput seat 19 20 #define DEF_MMI_EVENT_INJECTION "/system/bin/mmi-event-injection" 21 #define DEF_MMI_VIRTUAL_DEVICE_MANAGER "/system/bin/mmi-virtual-device-manager" 22 #define DEF_MMI_DATA_ROOT "/data/mmi/" 23 #define DEF_EXP_CONFIG "/system/etc/mmi_device_config.ini" 24 #define DEF_EXP_SOPATH "/system/lib/" 25 #define DEF_XKB_CONFIG "/system/etc/xkb" 26 #define DEF_SCREEN_MAX_WIDTH 480 27 #define DEF_SCREEN_MAX_HEIGHT 960 28 29 #define MAX_PACKET_BUF_SIZE (1024*8) // Maximum buffer size of network packets 30 #define MAX_STREAM_BUF_SIZE (MAX_PACKET_BUF_SIZE*2) // Maximum buffer size of socket stream 31 32 #define MAX_LIST_SIZE 100 // Instantaneous maximum listening buffer size of socket 33 #define MAX_SESSON_ALARM 300 // Client quantity warning value 34 #define MAX_EVENT_SIZE 100 // Epoll create maximum event size 35 #define DEFINE_EPOLL_TIMEOUT 1000 // Default epoll write timeout 36 #define CLIENT_RECONNECT_COOLING_TIME 800 // Client reconnection cooldown 37 #define SERVER_RESTART_COOLING_TIME 2000 // Server failure restart cooldown 38 #define MAX_THREAD_DEATH_TIME (6*1000) // Thread death threshold time 39 #define MMISEVER_WMS_DEVICE_ADDED 1 // notifyDeviceChange@Device added 40 #define MMISEVER_WMS_DEVICE_REMOVE 2 // notifyDeviceChange@Device removed 41 #define SEND_RETRY_LIMIT 32 42 #define SEND_RETRY_SLEEP_TIME 10000 43 #define ONCE_PROCESS_NETPACKET_LIMIT 100 44 #define MAX_RECV_LIMIT 32 45 46 #endif // CONFIG_MULTIMODAL_H