• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 **
3 ** Copyright 2014, The Android Open Source Project
4 **
5 ** Licensed under the Apache License, Version 2.0 (the "License");
6 ** you may not use this file except in compliance with the License.
7 ** You may obtain a copy of the License at
8 **
9 **     http://www.apache.org/licenses/LICENSE-2.0
10 **
11 ** Unless required by applicable law or agreed to in writing, software
12 ** distributed under the License is distributed on an "AS IS" BASIS,
13 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ** See the License for the specific language governing permissions and
15 ** limitations under the License.
16 */
17 package com.android.internal.telephony;
18 
19 import android.net.Uri;
20 import android.provider.BaseColumns;
21 
22 /**
23  * @hide
24  */
25 public class HbpcdLookup {
26     public static final String AUTHORITY = "hbpcd_lookup";
27 
28     public static final Uri CONTENT_URI =
29         Uri.parse("content://" + AUTHORITY);
30 
31     public static final String PATH_MCC_IDD = "idd";
32     public static final String PATH_MCC_LOOKUP_TABLE = "lookup";
33     public static final String PATH_MCC_SID_CONFLICT = "conflict";
34     public static final String PATH_MCC_SID_RANGE = "range";
35     public static final String PATH_NANP_AREA_CODE = "nanp";
36     public static final String PATH_ARBITRARY_MCC_SID_MATCH = "arbitrary";
37     public static final String PATH_USERADD_COUNTRY = "useradd";
38 
39     public static final String ID = "_id";
40     public static final int IDINDEX = 0;
41 
42     /**
43      * @hide
44      */
45     public static class MccIdd implements BaseColumns {
46         public static final Uri CONTENT_URI =
47             Uri.parse("content://" + AUTHORITY + "/" + PATH_MCC_IDD);
48         public static final String DEFAULT_SORT_ORDER = "MCC ASC";
49 
50         public static final String MCC = "MCC";
51         public static final String IDD = "IDD";
52 
53     }
54 
55     /**
56      * @hide
57      */
58     public static class MccLookup implements BaseColumns {
59         public static final Uri CONTENT_URI =
60             Uri.parse("content://" + AUTHORITY + "/" + PATH_MCC_LOOKUP_TABLE);
61         public static final String DEFAULT_SORT_ORDER = "MCC ASC";
62 
63         public static final String MCC = "MCC";
64         public static final String COUNTRY_CODE = "Country_Code";
65         public static final String COUNTRY_NAME = "Country_Name";
66         public static final String NDD = "NDD";
67         public static final String NANPS = "NANPS";
68         public static final String GMT_OFFSET_LOW = "GMT_Offset_Low";
69         public static final String GMT_OFFSET_HIGH = "GMT_Offset_High";
70         public static final String GMT_DST_LOW = "GMT_DST_Low";
71         public static final String GMT_DST_HIGH = "GMT_DST_High";
72 
73     }
74 
75     /**
76      * @hide
77      */
78     public static class MccSidConflicts implements BaseColumns {
79         public static final Uri CONTENT_URI =
80             Uri.parse("content://" + AUTHORITY + "/" + PATH_MCC_SID_CONFLICT);
81         public static final String DEFAULT_SORT_ORDER = "MCC ASC";
82 
83         public static final String MCC = "MCC";
84         public static final String SID_CONFLICT = "SID_Conflict";
85 
86     }
87 
88     /**
89      * @hide
90      */
91     public static class MccSidRange implements BaseColumns {
92         public static final Uri CONTENT_URI =
93             Uri.parse("content://" + AUTHORITY + "/" + PATH_MCC_SID_RANGE);
94         public static final String DEFAULT_SORT_ORDER = "MCC ASC";
95 
96         public static final String MCC = "MCC";
97         public static final String RANGE_LOW = "SID_Range_Low";
98         public static final String RANGE_HIGH = "SID_Range_High";
99     }
100 
101     /**
102      * @hide
103      */
104     public static class ArbitraryMccSidMatch implements BaseColumns {
105         public static final Uri CONTENT_URI =
106             Uri.parse("content://" + AUTHORITY + "/" + PATH_ARBITRARY_MCC_SID_MATCH);
107         public static final String DEFAULT_SORT_ORDER = "MCC ASC";
108 
109         public static final String MCC = "MCC";
110         public static final String SID = "SID";
111 
112     }
113 
114     /**
115      * @hide
116      */
117     public static class NanpAreaCode implements BaseColumns {
118         public static final Uri CONTENT_URI =
119             Uri.parse("content://" + AUTHORITY + "/" + PATH_NANP_AREA_CODE);
120         public static final String DEFAULT_SORT_ORDER = "Area_Code ASC";
121 
122         public static final String AREA_CODE = "Area_Code";
123     }
124 }
125