• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.internal.telephony.uicc;
18 
19 public final class IsimServiceTable extends IccServiceTable {
20     private static final String TAG = "IsimServiceTable";
21     public enum IsimService {
22         PCSCF_ADDRESS,
23         GBA,                                // Generic Bootstrapping Architecture (GBA)
24         HTTP_DIGEST,
25         GBA_LOCALKEY_ESTABLISHMENT,         // GBA-based Local Key Establishment Mechanism
26         PCSCF_DISCOVERY_FOR_IMS,            // Support of P-CSCF discovery for IMS Local Break Out
27         SMS,
28         SMSR,                               // Short Message Status Reports
29         SM_OVERIP_AND_DATA_DL_VIA_SMS_PP,   // Support for SM-over-IP including data download via
30         // SMS-PP
31         COMMUNICATION_CONTROL_FOR_IMS_BY_ISIM,
32         UICC_ACCESS_TO_IMS
33     }
34 
IsimServiceTable(byte[] table)35     public IsimServiceTable(byte[] table) {
36         super(table);
37     }
38 
isAvailable(IsimService service)39     public boolean isAvailable(IsimService service) {
40         return super.isAvailable(service.ordinal());
41     }
42 
43     @Override
getTag()44     protected String getTag() {
45         return TAG;
46     }
47 
48     @Override
getValues()49     protected Object[] getValues() {
50         return IsimService.values();
51     }
52 
getISIMServiceTable()53     public byte[] getISIMServiceTable() {
54         return mServiceTable;
55     }
56 }
57