1c29fa5a6Sopenharmony_ci/* 2c29fa5a6Sopenharmony_ci * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 3c29fa5a6Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4c29fa5a6Sopenharmony_ci * you may not use this file except in compliance with the License. 5c29fa5a6Sopenharmony_ci * You may obtain a copy of the License at 6c29fa5a6Sopenharmony_ci * 7c29fa5a6Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8c29fa5a6Sopenharmony_ci * 9c29fa5a6Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10c29fa5a6Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11c29fa5a6Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12c29fa5a6Sopenharmony_ci * See the License for the specific language governing permissions and 13c29fa5a6Sopenharmony_ci * limitations under the License. 14c29fa5a6Sopenharmony_ci */ 15c29fa5a6Sopenharmony_ci 16c29fa5a6Sopenharmony_ci#ifndef CONFIG_MULTIMODAL_H 17c29fa5a6Sopenharmony_ci#define CONFIG_MULTIMODAL_H 18c29fa5a6Sopenharmony_ci 19c29fa5a6Sopenharmony_cinamespace OHOS { 20c29fa5a6Sopenharmony_cinamespace MMI { 21c29fa5a6Sopenharmony_ci#define DEF_MMI_EVENT_INJECTION "/system/bin/mmi-event-injection" 22c29fa5a6Sopenharmony_ci#define DEF_MMI_VIRTUAL_DEVICE_MANAGER "/system/bin/mmi-virtual-device-manager" 23c29fa5a6Sopenharmony_ci#define DEF_MMI_DATA_ROOT "/data/mmi/" 24c29fa5a6Sopenharmony_ci#define DEF_EXP_CONFIG "/system/etc/mmi_device_config.ini" 25c29fa5a6Sopenharmony_ci#ifdef __aarch64__ 26c29fa5a6Sopenharmony_ci #define DEF_EXP_SOPATH "/system/lib64/" 27c29fa5a6Sopenharmony_ci#else 28c29fa5a6Sopenharmony_ci #define DEF_EXP_SOPATH "/system/lib/" 29c29fa5a6Sopenharmony_ci#endif 30c29fa5a6Sopenharmony_ci#define DEF_SCREEN_MAX_WIDTH 480 31c29fa5a6Sopenharmony_ci#define DEF_SCREEN_MAX_HEIGHT 960 32c29fa5a6Sopenharmony_ci 33c29fa5a6Sopenharmony_ci// Maximum buffer size of network packets 34c29fa5a6Sopenharmony_ci#define MAX_PACKET_BUF_SIZE (1024*8) 35c29fa5a6Sopenharmony_ci// Maximum buffer size of socket stream 36c29fa5a6Sopenharmony_ci#define MAX_STREAM_BUF_SIZE (MAX_PACKET_BUF_SIZE*2) 37c29fa5a6Sopenharmony_ci#define MAX_VECTOR_SIZE 1000 38c29fa5a6Sopenharmony_ci#define MAX_INPUT_DEVICE 64 39c29fa5a6Sopenharmony_ci#define MAX_SUPPORT_KEY 5 40c29fa5a6Sopenharmony_ci#define MAX_KEY_SIZE 395 41c29fa5a6Sopenharmony_ci 42c29fa5a6Sopenharmony_ci// Instantaneous maximum listening buffer size of socket 43c29fa5a6Sopenharmony_ci#define MAX_LIST_SIZE 100 44c29fa5a6Sopenharmony_ci// Client quantity warning value 45c29fa5a6Sopenharmony_ci#define MAX_SESSON_ALARM 300 46c29fa5a6Sopenharmony_ci// Epoll create maximum event size 47c29fa5a6Sopenharmony_ci#define MAX_EVENT_SIZE 100 48c29fa5a6Sopenharmony_ci// Default epoll write timeout 49c29fa5a6Sopenharmony_ci#define DEFINE_EPOLL_TIMEOUT 1000 50c29fa5a6Sopenharmony_ci// Client reconnection cooldown 51c29fa5a6Sopenharmony_ci#define CLIENT_RECONNECT_COOLING_TIME 800 52c29fa5a6Sopenharmony_ci// Server failure restart cooldown 53c29fa5a6Sopenharmony_ci#define SERVER_RESTART_COOLING_TIME 2000 54c29fa5a6Sopenharmony_ci// Thread death threshold time 55c29fa5a6Sopenharmony_ci#define MAX_THREAD_DEATH_TIME (6*1000) 56c29fa5a6Sopenharmony_ci// notifyDeviceChange@Device added 57c29fa5a6Sopenharmony_ci#define MMISEVER_WMS_DEVICE_ADDED 1 58c29fa5a6Sopenharmony_ci// notifyDeviceChange@Device removed 59c29fa5a6Sopenharmony_ci#define MMISEVER_WMS_DEVICE_REMOVE 2 60c29fa5a6Sopenharmony_ci#define SEND_RETRY_LIMIT 50 61c29fa5a6Sopenharmony_ci#define SEND_RETRY_SLEEP_TIME 500 62c29fa5a6Sopenharmony_ci#define ONCE_PROCESS_NETPACKET_LIMIT 100 63c29fa5a6Sopenharmony_ci#define MAX_RECV_LIMIT 32 64c29fa5a6Sopenharmony_ci#define INPUT_POINTER_DEVICES "input.pointer.device" 65c29fa5a6Sopenharmony_ci#define SUPER_PRIVACY_SWITCH "persist.input.switch" 66c29fa5a6Sopenharmony_ci#define MMI_DINPUT_PKG_NAME "ohos.multimodalinput.dinput" 67c29fa5a6Sopenharmony_ci} // namespace MMI 68c29fa5a6Sopenharmony_ci} // namespace OHOS 69c29fa5a6Sopenharmony_ci#endif // CONFIG_MULTIMODAL_H 70