• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 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_FILEMGMT_BACKUP_RADAR_CONST_INNER_H
17 #define OHOS_FILEMGMT_BACKUP_RADAR_CONST_INNER_H
18 
19 #include <string>
20 
21 namespace OHOS::FileManagement::Backup {
22 
23 constexpr int32_t DEFAULT_STAGE = 1;
24 constexpr int32_t STAGE_RES_IDLE = 0;
25 constexpr int32_t STAGE_RES_SUCCESS = 1;
26 constexpr int32_t STAGE_RES_FAIL = 2;
27 constexpr int32_t STAGE_RES_CANCEL = 3;
28 
29 constexpr char DOMAIN[] = "APP_FILE_SVC";
30 const std::string DOMAIN_NAME = "APP_FILE_SVC";
31 const std::string BACKUP_RESTORE_APP_STATISTIC = "BACKUP_RESTORE_APP_STATISTIC";
32 const std::string BACKUP_RESTORE_STATISTIC = "BACKUP_RESTORE_STATISTIC";
33 
34 const std::string ORG_PKG = "ORG_PKG";
35 const std::string FUNC = "FUNC";
36 const std::string BIZ_SCENE = "BIZ_SCENE";
37 const std::string BIZ_STAGE = "BIZ_STAGE";
38 const std::string STAGE_RES = "STAGE_RES";
39 const std::string CONCURRENT_ID = "CONCURRENT_ID";
40 const std::string ERROR_CODE = "ERROR_CODE";
41 const std::string ERROR_MSG = "ERROR_MSG";
42 
43 const std::string HOST_PKG = "HOST_PKG";
44 const std::string APP_CALLER = "APP_CALLER";
45 const std::string MODE = "MODE";
46 const std::string FILE_SIZE_DIST = "FILE_SIZE_DIST";
47 const std::string FILE_TYPE_DIST = "FILE_TYPE_DIST";
48 const std::string SMALL_FILE_COUNT = "SMALL_FILE_COUNT";
49 const std::string SMALL_FILE_SIZE = "SMALL_FILE_SIZE";
50 const std::string BIG_FILE_COUNT = "BIG_FILE_COUNT";
51 const std::string BIG_FILE_SIZE = "BIG_FILE_SIZE";
52 const std::string TAR_FILE_COUNT = "TAR_FILE_COUNT";
53 const std::string TAR_FILE_SIZE = "TAR_FILE_SIZE";
54 const std::string TAR_BOUND_SIZE = "TAR_BOUND_SIZE";
55 const std::string DIR_DEPTH = "DIR_DEPTH";
56 const std::string MANAGE_JSON_SIZE = "MANAGE_JSON_SIZE";
57 const std::string EXTENSION_CONNECT_SPEND = "EXTENSION_CONNECT_SPEND";
58 const std::string GET_EXT_INFO_SPEND = "GET_EXT_INFO_SPEND";
59 
60 const std::string ON_BACKUP_SPEND = "ON_BACKUP_SPEND";
61 const std::string ON_BACKUPEX_SPEND = "ON_BACKUPEX_SPEND";
62 const std::string DO_BACKUP_SPEND = "DO_BACKUP_SPEND";
63 const std::string TAR_SPEND = "TAR_SPEND";
64 const std::string HASH_SPEND = "HASH_SPEND";
65 const std::string SCAN_FILE_SPEND = "SCAN_FILE_SPEND";
66 const std::string SEND_RATE_ZERO_SPAN = "SEND_RATE_ZERO_SPAN";
67 
68 const std::string ON_RESTORE_SPEND = "ON_RESTORE_SPEND";
69 const std::string ON_RESTOREEX_SPEND = "ON_RESTOREEX_SPEND";
70 const std::string DO_RESTORE_SPEND = "DO_RESTORE_SPEND";
71 const std::string UNTAR_SPEND = "UNTAR_SPEND";
72 const std::string BIG_FILE_SPEND = "BIG_FILE_SPEND";
73 
74 const std::string GET_BUNDLE_INFO_SPEND = "GET_BUNDLE_INFO_SPEND";
75 const std::string TOTAL_SPEND = "TOTAL_SPEND";
76 const std::string SUCC_BUNDLE_CNT = "SUCC_BUNDLE_CNT";
77 const std::string FAIL_BUNDLE_CNT = "FAIL_BUNDLE_CNT";
78 
79 } // namespace OHOS::FileManagement::Backup
80 #endif // OHOS_FILEMGMT_BACKUP_RADAR_CONST_INNER_H
81