1 /* 2 * Copyright (C) 2006, 2012 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 import com.android.internal.telephony.CommandsInterface; 20 import com.android.telephony.Rlog; 21 22 /** 23 * {@hide} 24 * This class should be used to access files in ISIM ADF 25 */ 26 public final class IsimFileHandler extends IccFileHandler implements IccConstants { 27 static final String LOG_TAG = "IsimFH"; 28 IsimFileHandler(UiccCardApplication app, String aid, CommandsInterface ci)29 public IsimFileHandler(UiccCardApplication app, String aid, CommandsInterface ci) { 30 super(app, aid, ci); 31 } 32 33 @Override getEFPath(int efid)34 protected String getEFPath(int efid) { 35 switch(efid) { 36 case EF_IMPI: 37 case EF_IMPU: 38 case EF_DOMAIN: 39 case EF_IST: 40 case EF_PCSCF: 41 return MF_SIM + DF_ADF; 42 } 43 String path = getCommonIccEFPath(efid); 44 return path; 45 } 46 47 @Override logd(String msg)48 protected void logd(String msg) { 49 Rlog.d(LOG_TAG, msg); 50 } 51 52 @Override loge(String msg)53 protected void loge(String msg) { 54 Rlog.e(LOG_TAG, msg); 55 } 56 } 57