• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023 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/**
17 * @file: mobileData constants
18 */
19
20const ON_SIM_STATE_UPDATE_PULL = '1';
21const ON_SIM_STATE_UPDATE_INSERT = '4';
22
23const networkStateObj = {
24  NETWORK_FIVE: 0,
25  NETWORK_FOUR: 4,
26  NETWORK_THREE: 6,
27  NETWORK_TWO: 1
28};
29
30const simStateObj = {
31  SIM_STATE_UNKNOWN: 0,
32  SIM_STATE_NOT_PRESENT: 1,
33  SIM_STATE_LOCKED: 2,
34  SIM_STATE_NOT_READY: 3,
35  SIM_STATE_READY: 4,
36  SIM_STATE_LOADED: 5
37};
38const MOBILE_DATA_STATUS = {
39  DATA_STATE_UNKNOWN: -1,
40  DATA_STATE_DISCONNECTED: 0,
41  DATA_STATE_CONNECTING: 1,
42  DATA_STATE_CONNECTED: 2,
43  DATA_STATE_SUSPENDED: 3
44}
45
46export {
47  networkStateObj,
48  simStateObj,
49  ON_SIM_STATE_UPDATE_PULL,
50  ON_SIM_STATE_UPDATE_INSERT,
51  MOBILE_DATA_STATUS
52};