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