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 17package com.android.internal.telephony.euicc; 18 19import android.app.PendingIntent; 20import android.content.Intent; 21import android.os.Bundle; 22import android.telephony.euicc.DownloadableSubscription; 23import android.telephony.euicc.EuiccInfo; 24 25/** @hide */ 26interface IEuiccController { 27 oneway void continueOperation(in Intent resolutionIntent, in Bundle resolutionExtras); 28 oneway void getDownloadableSubscriptionMetadata(in DownloadableSubscription subscription, 29 String callingPackage, in PendingIntent callbackIntent); 30 oneway void getDefaultDownloadableSubscriptionList( 31 String callingPackage, in PendingIntent callbackIntent); 32 String getEid(); 33 oneway void downloadSubscription(in DownloadableSubscription subscription, 34 boolean switchAfterDownload, String callingPackage, in PendingIntent callbackIntent); 35 EuiccInfo getEuiccInfo(); 36 oneway void deleteSubscription(int subscriptionId, String callingPackage, 37 in PendingIntent callbackIntent); 38 oneway void switchToSubscription(int subscriptionId, String callingPackage, 39 in PendingIntent callbackIntent); 40 oneway void updateSubscriptionNickname(int subscriptionId, String nickname, 41 in PendingIntent callbackIntent); 42 oneway void eraseSubscriptions(in PendingIntent callbackIntent); 43 oneway void retainSubscriptionsForFactoryReset(in PendingIntent callbackIntent); 44}