• 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 OHOS_FORM_FWK_FORM_TASK_COMMON_H
17 #define OHOS_FORM_FWK_FORM_TASK_COMMON_H
18 
19 namespace OHOS {
20 namespace AppExecFwk {
21 enum class TaskType : int64_t {
22     RECYCLE_FORM = 0, // add form type base 0
23     RENDER_FORM,
24     DELETE_FORM_HOST_RECORD = 10000, // add form_host type base 10000
25     UPDATE_IS_REQUEST_PUBLISH_FORM_WITH_SNAPSHOT
26 };
27 namespace {
28 constexpr int32_t FORM_TASK_DELAY_TIME = 20; // ms
29 constexpr int32_t FORM_FRS_DIED_TASK_DELAY_TIME = 100; // ms
30 constexpr int32_t FORM_BUILD_DELAY_TIME = 2000; // ms
31 constexpr int32_t ENTERPRISE_APP_INSTALL_FAILED_DELAY_TIME = 5000; // ms
32 constexpr int32_t CLEAN_FORM_HOST_TASK_DELAY_TIME = 100; // ms
33 constexpr int32_t FORM_CON_NETWORK_DELAY_TIME = 500; // ms
34 constexpr int32_t PROVIDER_UPDATE_REFRESH_FORMS_TASK_DELAY_TIME = 500; // ms
35 constexpr int32_t IS_FORM_REQUEST_PUBLISH_FORM_TASK_DELAY_TIME = 2000; // ms
36 }
37 }  // namespace AppExecFwk
38 }  // namespace OHOS
39 #endif // OHOS_FORM_FWK_FORM_TASK_COMMON_H