CdmaLteUiccFileHandler.java revision c46a085eedef8c7c59df4b182d90d787f1ff0f04
1/*
2 * Copyright (C) 2011 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
17package com.android.internal.telephony.cdma;
18
19import android.util.Log;
20import com.android.internal.telephony.IccConstants;
21import com.android.internal.telephony.IccFileHandler;
22
23/**
24 * {@hide}
25 */
26public final class CdmaLteUiccFileHandler extends IccFileHandler {
27    static final String LOG_TAG = "CDMA";
28
29    CdmaLteUiccFileHandler(CDMALTEPhone phone) {
30        super(phone);
31    }
32
33    protected String getEFPath(int efid) {
34        switch(efid) {
35        case EF_CSIM_SPN:
36        case EF_CSIM_LI:
37            return MF_SIM + DF_CDMA;
38        case EF_AD:
39            return MF_SIM + DF_GSM;
40        }
41        return getCommonIccEFPath(efid);
42    }
43
44    protected void logd(String msg) {
45        Log.d(LOG_TAG, "[CdmaLteUiccFileHandler] " + msg);
46    }
47
48    protected void loge(String msg) {
49        Log.e(LOG_TAG, "[CdmaLteUiccFileHandler] " + msg);
50    }
51
52}
53