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