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 25 /** @hide */ 26 interface IEuiccController { continueOperation(in Intent resolutionIntent, in Bundle resolutionExtras)27 oneway void continueOperation(in Intent resolutionIntent, in Bundle resolutionExtras); getDownloadableSubscriptionMetadata(in DownloadableSubscription subscription, String callingPackage, in PendingIntent callbackIntent)28 oneway void getDownloadableSubscriptionMetadata(in DownloadableSubscription subscription, 29 String callingPackage, in PendingIntent callbackIntent); getDefaultDownloadableSubscriptionList( String callingPackage, in PendingIntent callbackIntent)30 oneway void getDefaultDownloadableSubscriptionList( 31 String callingPackage, in PendingIntent callbackIntent); getEid()32 String getEid(); getOtaStatus()33 int getOtaStatus(); downloadSubscription(in DownloadableSubscription subscription, boolean switchAfterDownload, String callingPackage, in PendingIntent callbackIntent)34 oneway void downloadSubscription(in DownloadableSubscription subscription, 35 boolean switchAfterDownload, String callingPackage, in PendingIntent callbackIntent); getEuiccInfo()36 EuiccInfo getEuiccInfo(); deleteSubscription(int subscriptionId, String callingPackage, in PendingIntent callbackIntent)37 oneway void deleteSubscription(int subscriptionId, String callingPackage, 38 in PendingIntent callbackIntent); switchToSubscription(int subscriptionId, String callingPackage, in PendingIntent callbackIntent)39 oneway void switchToSubscription(int subscriptionId, String callingPackage, 40 in PendingIntent callbackIntent); updateSubscriptionNickname(int subscriptionId, String nickname, in PendingIntent callbackIntent)41 oneway void updateSubscriptionNickname(int subscriptionId, String nickname, 42 in PendingIntent callbackIntent); eraseSubscriptions(in PendingIntent callbackIntent)43 oneway void eraseSubscriptions(in PendingIntent callbackIntent); retainSubscriptionsForFactoryReset(in PendingIntent callbackIntent)44 oneway void retainSubscriptionsForFactoryReset(in PendingIntent callbackIntent); 45 }