Home | History | Annotate | Download | only in uicc
      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         case EF_IST:
     41         case EF_PCSCF:
     42             return MF_SIM + DF_ADF;
     43         }
     44         String path = getCommonIccEFPath(efid);
     45         return path;
     46     }
     47 
     48     @Override
     49     protected void logd(String msg) {
     50         Rlog.d(LOG_TAG, msg);
     51     }
     52 
     53     @Override
     54     protected void loge(String msg) {
     55         Rlog.e(LOG_TAG, msg);
     56     }
     57 }
     58