• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021-2024 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 OHOS_FORM_FWK_FORM_CONSTANTS_H
17 #define OHOS_FORM_FWK_FORM_CONSTANTS_H
18 
19 #include <map>
20 #include <string>
21 
22 namespace OHOS {
23 namespace AppExecFwk {
24 namespace FormConstants {
25     constexpr int32_t FOUNDATION_UID = 5523;
26 }
27 namespace Constants {
28     constexpr const char* PERMISSION_INTERACT_ACROSS_LOCAL_ACCOUNTS = "ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS";
29     constexpr const char* PERMISSION_REQUIRE_FORM = "ohos.permission.REQUIRE_FORM";
30     constexpr const char* PERMISSION_AGENT_REQUIRE_FORM = "ohos.permission.AGENT_REQUIRE_FORM";
31     constexpr const char* PERMISSION_KEEP_BACKGROUND_RUNNING = "ohos.permission.KEEP_BACKGROUND_RUNNING";
32     constexpr const char* PERMISSION_OBSERVE_FORM_RUNNING = "ohos.permission.OBSERVE_FORM_RUNNING";
33     constexpr const char* PERMISSION_START_ABILITIES_FROM_BACKGROUND =
34         "ohos.permission.START_ABILITIES_FROM_BACKGROUND";
35     constexpr const char* PERMISSION_PUBLISH_FORM_CROSS_BUNDLE = "ohos.permission.PUBLISH_FORM_CROSS_BUNDLE";
36     constexpr const char* PARAM_FORM_IDENTITY_KEY = "ohos.extra.param.key.form_identity";
37     constexpr const char* PARAM_FORM_CALLING_IDENTITY_KEY = "ohos.extra.param.key.form_calling_identity";
38     constexpr const char* PARAM_MODULE_NAME_KEY = "ohos.extra.param.key.module_name";
39     constexpr const char* PARAM_BUNDLE_NAME_KEY = "ohos.extra.param.key.bundle_name";
40     constexpr const char* PARAM_ABILITY_NAME_KEY = "ohos.extra.param.key.ability_name";
41     constexpr const char* PARAM_FORM_NAME_KEY = "ohos.extra.param.key.form_name";
42     constexpr const char* PARAM_FORM_DIMENSION_KEY = "ohos.extra.param.key.form_dimension";
43     constexpr const char* PARAM_FORM_RENDERINGMODE_KEY = "ohos.extra.param.key.form_rendering_mode";
44     constexpr const char* PARAM_FORM_OBSCURED_KEY = "ohos.extra.param.key.form_obscured_mode";
45     constexpr const char* PARAM_MESSAGE_KEY = "ohos.extra.param.key.message";
46     constexpr const char* PARAM_FORM_TEMPORARY_KEY = "ohos.extra.param.key.form_temporary";
47     constexpr const char* PARAM_CALLER_BUNDLE_NAME_KEY = "ohos.extra.param.key.caller_bundle_name";
48     constexpr const char* PARAM_FORM_TRANSPARENCY_KEY = "ohos.extra.param.key.form_background_transparency";
49     constexpr const char* PARAM_FORM_WIDTH_KEY = "ohos.extra.param.key.form_width";
50     constexpr const char* PARAM_FORM_HEIGHT_KEY = "ohos.extra.param.key.form_height";
51     constexpr int32_t ONE_HOST_MAX_FORM_SIZE = 256;
52     constexpr const char* RECREATE_FORM_KEY = "ohos.extra.param.key.recreate";
53     constexpr const char* PARAM_FORM_CUSTOMIZE_KEY = "ohos.extra.param.key.form_customize";
54     constexpr const char* PARAM_FORM_ORIENTATION_KEY = "ohos.extra.param.key.form_orientation";
55     constexpr int32_t ORIENTATION_PORTRAIT = 1;
56     constexpr int32_t ORIENTATION_LANDSCAPE = 2;
57     constexpr const char* PARAM_FORM_ABILITY_NAME_KEY = "abilityName";
58     constexpr const char* PARAM_FORM_USER_ID = "ohos.extra.param.key.form_user_id";
59     constexpr const char* KEY_IS_TIMER = "isCountTimerRefresh";
60     constexpr const char* KEY_TIMER_REFRESH = "isTimerRefresh";
61     constexpr const char* KEY_CONNECT_REFRESH = "isConnectRefresh";
62     constexpr const char* PARAM_FORM_REFRESH_TYPE = "ohos.extra.param.key.refresh_type";
63     constexpr const char* SYSTEM_PARAM_FORM_UPDATE_TIME = "persist.sys.fms.form.update.time";
64     constexpr const char* SYSTEM_PARAM_FORM_REFRESH_MIN_TIME = "persist.sys.fms.form.refresh.min.time";
65     constexpr const char* ACTION_UPDATEATTIMER = "form_update_at_timer";
66     constexpr const char* KEY_WAKEUP_TIME = "wakeUpTime";
67     constexpr const char* KEY_WAKEUP_TIME_LEFT = "wakeUpTimeLeft";
68     constexpr const char* KEY_WAKEUP_TIME_RIGHT = "wakeUpTimeRight";
69     constexpr const char* KEY_ACTION_TYPE = "form_update_action_type";
70     constexpr const char* ABS_CODE_PATH = "/data/app/el1/bundle/public";
71     constexpr const char* LOCAL_CODE_PATH = "/data/storage/el1/bundle";
72     constexpr const char* LOCAL_BUNDLES = "/data/bundles";
73     constexpr const char* FORM_PUBLISH_ACTION = "action.form.publish";
74     constexpr const char* FORM_PAGE_ACTION = "action.form.page";
75     constexpr const char* OPEN_FORM_MANAGE_VIEW  = "openFormManageView";
76     constexpr int32_t PAGE_ROUTER_SERVICE_CODE_FORM_MANAGE = 1;
77     constexpr int32_t PAGE_ROUTER_SERVICE_CODE_CONTROL_CENTER = 2;
78     constexpr int32_t PAGE_ROUTER_SERVICE_CODE_FORM_EDIT = 3;
79     constexpr int32_t PAGE_ROUTER_SERVICE_CODE_LIVE_FORM = 4;
80     constexpr const char* PARMA_REQUEST_METHOD = "requestMethod";
81     constexpr const char* PARAM_OPEN_FORM_EDIT_VIEW = "openFormEditView";
82     constexpr const char* PARAM_OPEN_FORM_EDIT_SEC_PAGE_VIEW = "openFormEditSecPageView";
83     constexpr const char* PARAM_PAGE_ROUTER_SERVICE_CODE = "pageRouterServiceCode";
84     constexpr const char* PARAM_SEC_PAGE_ABILITY_NAME = "secPageAbilityName";
85     constexpr const char* PARAM_DEVICE_ID_KEY = "ohos.extra.param.key.device_id";
86     constexpr const char* PARAM_FORM_HOST_TOKEN = "ohos.extra.param.form.host.token";
87     constexpr const char* PARAM_PUBLISH_FORM_HOST_BUNDLE_KEY = "ohos.extra.param.key.form_host_bundle_name";
88     constexpr const char* PARAM_PUBLISH_FORM_HOST_MODULE_KEY = "ohos.extra.param.key.form_host_module_name";
89     constexpr const char* PARAM_PUBLISH_FORM_HOST_ABILITY_KEY = "ohos.extra.param.key.form_host_ability_name";
90     constexpr const char* FRS_BUNDLE_NAME = "com.ohos.formrenderservice";
91     constexpr const char* FRS_APP_INDEX = "ohos.extra.param.key.frs_index";
92     constexpr const char* PARAM_FORM_ID = "formID";
93     constexpr const char* IS_FORM_AGENT = "isFormAgent";
94     constexpr const char* PARAM_FORM_BORDER_WIDTH_KEY = "ohos.extra.param.key.form_border_width";
95     constexpr const char* FORM_LOCATION_KEY = "ohos.extra.param.key.form_location";
96     constexpr const char* FORM_WIDTH_VP_KEY = "ohos.extra.param.key.form_width_vp";
97     constexpr const char* FORM_HEIGHT_VP_KEY = "ohos.extra.param.key.form_height_vp";
98     constexpr const char* FORM_DISABLE_GESTURE_KEY = "ohos.extra.param.key.form_disable_gesture";
99     constexpr const char* FORM_DISABLE_BLUR_BACKGROUND = "ohos.extra.param.key.form_disable_blur_background";
100     constexpr int32_t TYPE_RESET_LIMIT = 1;
101     constexpr int32_t TYPE_STATIC_UPDATE = 2;
102     constexpr int32_t TYPE_DYNAMIC_UPDATE = 3;
103     const long ABS_REFRESH_MS = 2500;
104     constexpr const char* PARAM_HOST_BG_INVERSE_COLOR_KEY = "ohos.extra.param.key.host_bg_inverse_color";
105     constexpr const char* PARAM_FONT_FOLLOW_SYSTEM_KEY = "ohos.inner.key.font_follow_system";
106     constexpr const char* PARAM_FORM_ENABLE_BLUR_BACKGROUND_KEY = "ohos.inner.key.enable_blur_background";
107     constexpr const char* PARAM_THEME_KEY  = "ohos.extra.param.key.form_is_theme";
108     constexpr const char* PARAM_THEME_THEME_FORM_ID  = "themeFormId";
109     constexpr const char* PARAM_THEME_THEME_ID  = "themeId";
110     constexpr const char* PARAM_PUBLISH_FORM_HOST_SNAPSHOT_KEY = "ohos.extra.param.key.add_form_to_host_snapshot";
111     constexpr const char* PARAM_PUBLISH_FORM_HOST_WIDTH_KEY = "ohos.extra.param.key.add_form_to_host_width";
112     constexpr const char* PARAM_PUBLISH_FORM_HOST_HEIGHT_KEY = "ohos.extra.param.key.add_form_to_host_height";
113     constexpr const char* PARAM_PUBLISH_FORM_HOST_SCREENX_KEY = "ohos.extra.param.key.add_form_to_host_screenx";
114     constexpr const char* PARAM_PUBLISH_FORM_HOST_SCREENY_KEY = "ohos.extra.param.key.add_form_to_host_screeny";
115     constexpr const char* CPU_SCENE_ID_CONFIG_UPDATE  = "1";
116     constexpr const char* PARAM_DYNAMIC_NAME_KEY = "isDynamic";
117     constexpr const char* RECYCLE_FORMS_USER_ID = "ohos.extra.param.key.recycle_forms_user_id";
118     constexpr const char* PARAM_APP_CLONE_INDEX_KEY = "ohos.extra.param.key.appCloneIndex";
119     constexpr const char* PARAM_GAME_CARD_SUPPORT_KEY = "persist.sceneboard.desktop.game_card";
120     constexpr const char* PARAM_LIVE_FORM_SUPPORT_KEY = "persist.sys.fms.support.liveForm";
121     constexpr const char* PARAM_GAME_CARD_KEY = "gameType";
122     constexpr const char* PARAM_GAME_CARD_TYPE = "quick";
123     // live form support type
124     constexpr const char* LIVE_FORM_NONE = "0";
125     constexpr const char* FUN_INTERACTION = "1";
126     constexpr const char* SCENE_ANIMATION = "2";
127     constexpr const char* LIVE_FORM_BOTH = "3";
128 
129     constexpr int32_t UNKNOWN = 0;
130     // The form events type which means that the form becomes visible.
131     constexpr int32_t FORM_VISIBLE = 1;
132     // The form events type which means that the form becomes invisible.
133     constexpr int32_t FORM_INVISIBLE = 2;
134 
135     // The default user id
136     constexpr int32_t DEFAULT_USER_ID = 0;
137 
138     constexpr int32_t DEFAULT_SANDBOX_FRS_APP_INDEX = 1001;
139 
140     // The invalid user id
141     constexpr int32_t INVALID_USER_ID = -1;
142 
143     // The default provider user id
144     constexpr int32_t DEFAULT_PROVIDER_USER_ID = -1;
145 
146     // The max uid of system app.
147     constexpr int32_t MAX_SYSTEM_APP_UID = 10000;
148 
149     constexpr int32_t CALLING_UID_TRANSFORM_DIVISOR = 200000;
150 
151     constexpr int32_t MIN_TIME_SPEED = 1;
152     constexpr int32_t MAX_TIME_SPEED = 1000;
153     constexpr int32_t MAX_HOUR = 23;
154     constexpr int32_t MAX_MINUTE = 59;
155     constexpr int32_t MAX_SECOND = 60;
156     constexpr int32_t MIN_TIME = 0;
157     constexpr int32_t HOUR_PER_DAY = 24;
158     constexpr int32_t MIN_PER_HOUR = 60;
159     constexpr int32_t SEC_PER_MIN = 60;
160     constexpr int32_t MS_PER_DAY = 24 * 60 * 60 * 1000;
161     const long TIME_1000 = 1000;
162     const long TIME_1000000 = 1000000;
163     const long TIME_CONVERSION = 30 * 60 * TIME_1000;
164     constexpr int32_t MIN_CONFIG_DURATION = 1; // 1 means 30 min
165     constexpr int32_t MAX_CONFIG_DURATION = 2 * 24 * 7; // one week
166     const long MIN_PERIOD = MIN_CONFIG_DURATION * TIME_CONVERSION; // 30 min in ms unit
167     const long MAX_PERIOD = MAX_CONFIG_DURATION * TIME_CONVERSION; // 1 week in ms unit
168     const long ABS_TIME = 30 * TIME_1000; // 30s abs time
169     constexpr const char* TIME_DELIMETER = ":";
170     constexpr const char* TIMES_DELIMETER = ",";
171     constexpr int32_t UPDATE_AT_CONFIG_COUNT = 2;
172     constexpr int32_t UPDATE_AT_CONFIG_MAX_COUNT = 24;
173 
174     constexpr int32_t LIMIT_COUNT = 50;
175     constexpr int32_t MIN_NEXT_TIME = 300; // seconds
176 
177     // The max retry times of reconnection.
178     constexpr int32_t MAX_RETRY_TIME = 30;
179     // The time interval between reconnections(milliseconds).
180     constexpr int32_t SLEEP_TIME = 1000;
181 
182     constexpr int64_t MS_PER_SECOND = 1000;
183 
184     // form host bundlename
185     constexpr const char* PARAM_FORM_HOST_BUNDLENAME_KEY = "form_host_bundlename";
186 
187     // form manager service bundlename
188     constexpr const char* PARAM_FORM_MANAGER_SERVICE_BUNDLENAME_KEY = "form_manager_service_bundlename";
189 
190     // PROVIDER_FLAG false:ProviderFormInfo is null;true: ProviderFormInfo not null
191     constexpr const char* PROVIDER_FLAG = "provider_flag";
192     constexpr const char* FORM_CONNECT_ID = "form_connect_id";
193     constexpr const char* FORM_SUPPLY_INFO = "form_supply_info";
194     constexpr const char* FORM_SHARE_REQUEST_CODE = "form_share_request_code";
195     constexpr const char* FORM_ACQUIRE_DATA_REQUEST_CODE = "form_acquire_data_request_code";
196     // the delimiter between bundleName and abilityName
197     constexpr const char* NAME_DELIMITER = "::";
198 
199     constexpr const char* PARAM_FORM_ADD_COUNT = "form.add.count";
200 
201     constexpr const char* FORM_SUPPLY_UID = "form_supply_uid";
202     constexpr const char* FORM_RENDER_COMP_ID = "form_render_comp_id";
203     constexpr const char* FORM_DELAY_TIME_OF_RECYCLE = "form_delay_time_of_recycle";
204     constexpr const char* FORM_STATUS_DATA = "form_status_data";
205     constexpr const char* FORM_IS_DYNAMIC = "form_is_dynamic";
206     constexpr const char* FORM_IS_RECOVER_FORM = "form_is_recover_form";
207     constexpr const char* FORM_IS_RECOVER_FORM_TO_HANDLE_CLICK_EVENT = "form_is_recover_form_to_handle_click_event";
208     constexpr const char* FORM_STATUS_EVENT = "form_status_event";
209     constexpr const char* FORM_STATUS_EVENT_ID = "form_status_event_id";
210 
211     const size_t MAX_LAYOUT = 8;
212     constexpr int32_t MAX_FORMS = 512;
213     constexpr int32_t MAX_RECORD_PER_APP = 256;
214     constexpr int32_t MAX_TEMP_FORMS = 256;
215     constexpr int32_t MAX_FORM_DATA_SIZE = 1024;
216     constexpr int32_t DEFAULT_VISIBLE_NOTIFY_DELAY = 1000;
217 
218     constexpr char MAX_NORMAL_FORM_SIZE [] = "maxNormalFormSize";
219     constexpr char MAX_TEMP_FORM_SIZE [] = "maxTempFormSize";
220     constexpr char HOST_MAX_FORM_SIZE [] = "hostMaxFormSize";
221     constexpr char VISIBLE_NOTIFY_DELAY [] = "visibleNotifyDelayTime";
222 
223     constexpr int32_t NOT_IN_RECOVERY = 0;
224     constexpr int32_t RECOVER_FAIL = 1;
225     constexpr int32_t IN_RECOVERING = 2;
226 
227     constexpr int32_t FLAG_HAS_OBJECT = 1;
228     constexpr int32_t FLAG_NO_OBJECT = 0;
229 
230     constexpr int32_t DEATH_RECIPIENT_FLAG = 0;
231     constexpr int32_t MAX_VISIBLE_NOTIFY_LIST = 32;
232 
233     constexpr const char* ACQUIRE_TYPE = "form_acquire_form";
234     constexpr int32_t ACQUIRE_TYPE_CREATE_FORM = 1;
235     constexpr int32_t ACQUIRE_TYPE_RECREATE_FORM = 2;
236 
237     constexpr int32_t DELETE_FORM = 3;
238     constexpr int32_t RELEASE_FORM = 8;
239     constexpr int32_t RELEASE_CACHED_FORM = 9;
240 
241     constexpr int64_t INVALID_UDID_HASH = 0L;
242 
243     constexpr int32_t REFRESH_ALL_FORM = 0;
244     constexpr int32_t REFRESH_APP_FORM = 1;
245     constexpr int32_t REFRESH_ATOMIC_FORM = 2;
246     constexpr int32_t REFRESH_SYSTEMAPP_FORM = 3;
247 
248     enum class Dimension : int8_t {
249         DIMENSION_MIN = 1,
250         DIMENSION_1_2 = DIMENSION_MIN,
251         DIMENSION_2_2,
252         DIMENSION_2_4,
253         DIMENSION_4_4,
254         DIMENSION_2_1,
255         DIMENSION_1_1,
256         DIMENSION_6_4,
257         DIMENSION_2_3,
258         DIMENSION_3_3,
259         DIMENSION_MAX = DIMENSION_3_3
260     };
261 
262     enum class Shape : int8_t {
263         RECT = 1,
264         CIRCLE
265     };
266 
267     const std::map<Dimension, std::string> DIMENSION_MAP = {
268         {Dimension::DIMENSION_1_2, "1*2"},
269         {Dimension::DIMENSION_2_2, "2*2"},
270         {Dimension::DIMENSION_2_4, "2*4"},
271         {Dimension::DIMENSION_4_4, "4*4"},
272         {Dimension::DIMENSION_2_1, "2*1"},
273         {Dimension::DIMENSION_1_1, "1*1"},
274         {Dimension::DIMENSION_6_4, "6*4"},
275         {Dimension::DIMENSION_2_3, "2*3"},
276         {Dimension::DIMENSION_3_3, "3*3"}
277     };
278 
279     struct StatusInfo {
280         std::string activeState;
281         bool isVisible;
282     };
283 
284     const std::map<std::string, StatusInfo> LIVE_FORM_STATUS_MAP = {
285         {"00", {"INACTIVE", false}},
286         {"01", {"INACTIVE", true}},
287         {"10", {"PAUSE", false}},
288         {"11", {"PAUSE", true}},
289         {"20", {"ACTIVE", false}},
290         {"21", {"ACTIVE", true}},
291     };
292 
293     enum class RenderingMode : int8_t {
294         FULL_COLOR = 0,
295         SINGLE_COLOR
296     };
297 
298     enum class FormLocation : int8_t {
299         OTHER = -1,
300         DESKTOP = 0,
301         FORM_CENTER = 1,
302         FORM_MANAGER = 2,
303         NEGATIVE_SCREEN = 3,
304         FORM_CENTER_NEGATIVE_SCREEN = 4,
305         FORM_MANAGER_NEGATIVE_SCREEN = 5,
306         SCREEN_LOCK = 6,
307         AI_SUGGESTION = 7,
308     };
309 
310     enum class PublishFormErrorCode : int8_t {
311         SUCCESS,
312         NO_SPACE,
313         PARAM_ERROR,
314         INTERNAL_ERROR,
315     };
316 
317     struct PublishFormResult {
318         PublishFormErrorCode code;
319         std::string message;
320     };
321     // refresh type
322     constexpr int32_t REFRESHTYPE_DEFAULT = -1;
323     constexpr int32_t REFRESHTYPE_HOST = 0;
324     constexpr int32_t REFRESHTYPE_INTERVAL = 1;
325     constexpr int32_t REFRESHTYPE_UPDATETIMES = 2;
326     constexpr int32_t REFRESHTYPE_UPDATENEXTTIME = 3;
327     constexpr int32_t REFRESHTYPE_NETWORKCHANGED = 4;
328     constexpr int32_t REFRESHTYPE_VISIABLE = 99;
329     constexpr int32_t FULL_UPDATE = 0;
330     constexpr int32_t ADD_UPDATE = 1;
331 
332     // rdb
333     const std::string FORM_MANAGER_SERVICE_PATH = "/data/service/el1/public/database/form_storage";
334     const std::string FORM_RDB_NAME = "/formdb.db";
335     constexpr const char* FORM_RDB_TABLE_NAME = "form_table";
336     constexpr const char* FORM_JOURNAL_MODE = "WAL";
337     constexpr const char* FORM_SYNC_MODE = "FULL";
338     constexpr int32_t FORM_RDB_VERSION = 1;
339     constexpr const char* FORM_RDB_FILE_TYPE = "";
340     constexpr const char* FORM_RENDER_TYPE_KEY = "form_render_type";
341     constexpr int32_t RENDER_FORM = 0; // default value
342     constexpr int32_t UPDATE_RENDERING_FORM = 1;
343     constexpr const char* FORM_UPDATE_TYPE_KEY = "form_update_type";
344     constexpr int32_t ADD_FORM_UPDATE_FORM = 0; // default value
345     constexpr int32_t ADAPTER_UPDATE_FORM = 1;
346     constexpr const char* FORM_COMPILE_MODE_KEY = "form_compile_mode";
347     constexpr const char* FORM_COMPATIBLE_VERSION_KEY = "form_compatible_version";
348     constexpr const char* FORM_TARGET_VERSION_KEY = "form_target_version";
349 
350     //ArkTs card
351     constexpr const char* FORM_COMP_ID = "ohos.extra.param.key.form_comp_id";
352     constexpr const char* FORM_DENSITY = "ohos.extra.param.key.form_density";
353     constexpr const char* FORM_PROCESS_ON_ADD_SURFACE = "ohos.extra.param.key.process_on_add_surface";
354     constexpr const char* FORM_ALLOW_UPDATE = "allowUpdate";
355 
356     // The state of whether the ArkTs card can be rendered
357     constexpr const char FORM_RENDER_STATE[] = "ohos.extra.param.key.form_render_state";
358     // The state of whether the ArkTs card can be rendered without being unlocked
359     constexpr const char FORM_RENDER_WITHOUT_UNLOCK_STATE[] = "ohos.extra.param.key.form_render_without_unlock_state";
360 
361     //CallEvent
362     constexpr const char* FORM_CALL_EVENT_PARAMS = "params";
363     constexpr const char* PARAM_FORM_CALL_EVENT_METHOD_KEY = "method";
364     constexpr int32_t EVENT_CALL_NOTIFY = 1;
365     //arquireFormData
366     constexpr const char* LAUNCH_REASON_KEY = "ohos.extra.param.key.form_launch_reason";
367     // The form launch reason which means that the form is default.
368     constexpr int32_t FORM_DEFAULT = 1;
369     // The form launch reason which means that the form is share.
370     constexpr int32_t FORM_SHARE = 2;
371     // Specify the form Id
372     constexpr const char* PARAM_FORM_MIGRATE_FORM_KEY = "ohos.extra.param.key.migrate_form";
373     // For click message event
374     constexpr const char* KEY_DIRECT_CALL_INAPP = "directCallInApp";
375     // Is the user granted
376     constexpr const char* FORM_PERMISSION_GRANTED_KEY = "ohos.extra.param.key.permission_granted";
377     // User permission name
378     constexpr const char* FORM_PERMISSION_NAME_KEY = "ohos.extra.param.key.permission_name";
379 
380     constexpr const char* MODULE_PKG_NAME_KEY = "pkg_name";
381     constexpr const char* MODULE_HAP_PATH_KEY = "hap_path";
382     // Form enable skeleton key
383     constexpr const char* FORM_ENABLE_SKELETON_KEY = "ohos.extra.param.key.enable_skeleton";
384     // Allow form update and refresh
385     constexpr const char* FORM_ENABLE_UPDATE_REFRESH_KEY = "enableFormUpdateRefresh";
386     // Is form contains multiple app
387     const std::string IS_MULTI_APP_FORM = "isMultiAppForm";
388     // form contains multi app is true
389     const std::string IS_MULTI_APP_FORM_TRUE = "true";
390     // Form data update type
391     constexpr const char* FORM_DATA_UPDATE_TYPE = "formDataUpdateType";
392     // Form info max num
393     constexpr const int32_t FORM_INFO_MAX_NUM = 16;
394     // Form version code
395     constexpr const int32_t FORM_VERSION_CODE = 100001;
396     // Form domain id
397     constexpr uint64_t FORM_DOMAIN_ID = 0xD001301;
398 
399     const std::string FORM_MGR_CONFIG_DIR = "/data/service/el1/public/update/param_service/install/system/etc/FormMgrConfig/";
400 
401     const std::string VERSION_FILE_NAME = "version.txt";
402 
403     constexpr const char* FMC_DEFAULT_VERSION = "10.10.25.100";
404     constexpr const char* FORM_IS_VISIBLE = "ohos.extra.param.key.form_is_visible";
405 }  // namespace Constants
406 }  // namespace AppExecFwk
407 }  // namespace OHOS
408 #endif  // OHOS_FORM_FWK_FORM_CONSTANTS_H
409