• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2017 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.euicc;
18 
19 import android.app.PendingIntent;
20 import android.content.Intent;
21 import android.os.Bundle;
22 import android.telephony.euicc.DownloadableSubscription;
23 import android.telephony.euicc.EuiccInfo;
24 import java.util.List;
25 
26 /** @hide */
27 interface IEuiccController {
continueOperation(int cardId, in Intent resolutionIntent, in Bundle resolutionExtras)28     oneway void continueOperation(int cardId, in Intent resolutionIntent,
29             in Bundle resolutionExtras);
getDownloadableSubscriptionMetadata(int cardId, in DownloadableSubscription subscription, String callingPackage, in PendingIntent callbackIntent)30     oneway void getDownloadableSubscriptionMetadata(int cardId,
31             in DownloadableSubscription subscription,
32         String callingPackage, in PendingIntent callbackIntent);
getDefaultDownloadableSubscriptionList(int cardId, String callingPackage, in PendingIntent callbackIntent)33     oneway void getDefaultDownloadableSubscriptionList(int cardId,
34         String callingPackage, in PendingIntent callbackIntent);
getEid(int cardId, String callingPackage)35     String getEid(int cardId, String callingPackage);
getOtaStatus(int cardId)36     int getOtaStatus(int cardId);
downloadSubscription(int cardId, in DownloadableSubscription subscription, boolean switchAfterDownload, String callingPackage, in Bundle resolvedBundle, in PendingIntent callbackIntent)37     oneway void downloadSubscription(int cardId, in DownloadableSubscription subscription,
38         boolean switchAfterDownload, String callingPackage, in Bundle resolvedBundle,
39         in PendingIntent callbackIntent);
getEuiccInfo(int cardId)40     EuiccInfo getEuiccInfo(int cardId);
deleteSubscription(int cardId, int subscriptionId, String callingPackage, in PendingIntent callbackIntent)41     oneway void deleteSubscription(int cardId, int subscriptionId, String callingPackage,
42         in PendingIntent callbackIntent);
switchToSubscription(int cardId, int subscriptionId, String callingPackage, in PendingIntent callbackIntent)43     oneway void switchToSubscription(int cardId, int subscriptionId, String callingPackage,
44         in PendingIntent callbackIntent);
updateSubscriptionNickname(int cardId, int subscriptionId, String nickname, String callingPackage, in PendingIntent callbackIntent)45     oneway void updateSubscriptionNickname(int cardId, int subscriptionId, String nickname,
46         String callingPackage, in PendingIntent callbackIntent);
eraseSubscriptions(int cardId, in PendingIntent callbackIntent)47     oneway void eraseSubscriptions(int cardId, in PendingIntent callbackIntent);
eraseSubscriptionsWithOptions( int cardId, int options, in PendingIntent callbackIntent)48     oneway void eraseSubscriptionsWithOptions(
49         int cardId, int options, in PendingIntent callbackIntent);
retainSubscriptionsForFactoryReset(int cardId, in PendingIntent callbackIntent)50     oneway void retainSubscriptionsForFactoryReset(int cardId, in PendingIntent callbackIntent);
setSupportedCountries(boolean isSupported, in List<String> countriesList)51     void setSupportedCountries(boolean isSupported, in List<String> countriesList);
getSupportedCountries(boolean isSupported)52     List<String> getSupportedCountries(boolean isSupported);
isSupportedCountry(String countryIso)53     boolean isSupportedCountry(String countryIso);
54 }
55