• 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 NET_STATS_CONSTANTS_H
17 #define NET_STATS_CONSTANTS_H
18 
19 #include "net_manager_constants.h"
20 
21 namespace OHOS {
22 namespace NetManagerStandard {
23 constexpr int16_t LIMIT_STATS_CALLBACK_NUM = 200;
24 enum NetStatsResultCode {
25     STATS_DUMP_MESSAGE_FAIL = 2103002,
26     STATS_REMOVE_FILE_FAIL,
27     STATS_ERR_INVALID_TIME_PERIOD,
28     STATS_ERR_READ_BPF_FAIL,
29     STATS_ERR_INVALID_KEY,
30     STATS_ERR_INVALID_IFACE_STATS_MAP,
31     STATS_ERR_INVALID_STATS_VALUE,
32     STATS_ERR_INVALID_STATS_TYPE,
33     STATS_ERR_INVALID_UID_STATS_MAP,
34     STATS_ERR_INVALID_IFACE_NAME_MAP,
35     STATS_ERR_GET_IFACE_NAME_FAILED,
36     STATS_ERR_CLEAR_STATS_DATA_FAIL,
37     STATS_ERR_CREATE_TABLE_FAIL,
38     STATS_ERR_DATABASE_RECV_NO_DATA,
39     STATS_ERR_WRITE_DATA_FAIL,
40     STATS_ERR_READ_DATA_FAIL,
41 };
42 } // namespace NetManagerStandard
43 } // namespace OHOS
44 #endif // NET_STATS_CONSTANTS_H
45