1c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito/* 2c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito * Copyright (C) 2015 The Android Open Source Project 3c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito * 4c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito * Licensed under the Apache License, Version 2.0 (the "License"); 5c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito * you may not use this file except in compliance with the License. 6c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito * You may obtain a copy of the License at 7c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito * 8c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito * http://www.apache.org/licenses/LICENSE-2.0 9c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito * 10c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito * Unless required by applicable law or agreed to in writing, software 11c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito * distributed under the License is distributed on an "AS IS" BASIS, 12c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito * See the License for the specific language governing permissions and 14c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito * limitations under the License. 15c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito */ 16c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito 17c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Itopackage android.nfc; 18c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito 19c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Itoimport android.content.ComponentName; 20c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Itoimport android.nfc.cardemulation.NfcFServiceInfo; 21c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito 22c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito/** 23c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito * @hide 24c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito */ 25c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Itointerface INfcFCardEmulation 26c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito{ 27c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito String getSystemCodeForService(int userHandle, in ComponentName service); 28c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito boolean registerSystemCodeForService(int userHandle, in ComponentName service, String systemCode); 29c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito boolean removeSystemCodeForService(int userHandle, in ComponentName service); 30c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito String getNfcid2ForService(int userHandle, in ComponentName service); 31c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito boolean setNfcid2ForService(int userHandle, in ComponentName service, String nfcid2); 32c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito boolean enableNfcFForegroundService(in ComponentName service); 33c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito boolean disableNfcFForegroundService(); 34c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito List<NfcFServiceInfo> getNfcFServices(int userHandle); 35c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito int getMaxNumOfRegisterableSystemCodes(); 36c52adfe12469a1d1bcd5b7119b83363e094a7b84Yoshinobu Ito} 37