| 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 android.service.euicc; |
| 18 |
|
| 19 |
import android.service.euicc.IDeleteSubscriptionCallback; |
| 20 |
import android.service.euicc.IDownloadSubscriptionCallback; |
| 21 |
import android.service.euicc.IEraseSubscriptionsCallback; |
| 22 |
import android.service.euicc.IGetDefaultDownloadableSubscriptionListCallback; |
| 23 |
import android.service.euicc.IGetDownloadableSubscriptionMetadataCallback; |
| 24 |
import android.service.euicc.IGetEidCallback; |
| 25 |
import android.service.euicc.IGetEuiccInfoCallback; |
| 26 |
import android.service.euicc.IGetEuiccProfileInfoListCallback; |
| 27 |
import android.service.euicc.IGetOtaStatusCallback; |
| 28 |
import android.service.euicc.IOtaStatusChangedCallback; |
| 29 |
import android.service.euicc.IRetainSubscriptionsForFactoryResetCallback; |
| 30 |
import android.service.euicc.ISwitchToSubscriptionCallback; |
| 31 |
import android.service.euicc.IUpdateSubscriptionNicknameCallback; |
| 32 |
import android.service.euicc.IEuiccServiceDumpResultCallback; |
| 33 |
import android.telephony.euicc.DownloadableSubscription; |
| 34 |
import android.os.Bundle; |
| 35 |
|
| 36 |
/** @hide */ |
| 37 |
oneway interface IEuiccService { |
| 38 |
void downloadSubscription(int slotId, int portIndex, in DownloadableSubscription subscription, |
| 39 |
boolean switchAfterDownload, boolean forceDeactivateSim, in Bundle resolvedBundle, |
| 40 |
in IDownloadSubscriptionCallback callback); |
| 41 |
void getDownloadableSubscriptionMetadata(int slotId, in DownloadableSubscription subscription, |
| 42 |
boolean forceDeactivateSim, in IGetDownloadableSubscriptionMetadataCallback callback); |
| 43 |
void getEid(int slotId, in IGetEidCallback callback); |
| 44 |
void getOtaStatus(int slotId, in IGetOtaStatusCallback callback); |
| 45 |
void startOtaIfNecessary(int slotId, in IOtaStatusChangedCallback statusChangedCallback); |
| 46 |
void getEuiccProfileInfoList(int slotId, in IGetEuiccProfileInfoListCallback callback); |
| 47 |
void getDefaultDownloadableSubscriptionList(int slotId, boolean forceDeactivateSim, |
| 48 |
in IGetDefaultDownloadableSubscriptionListCallback callback); |
| 49 |
void getEuiccInfo(int slotId, in IGetEuiccInfoCallback callback); |
| 50 |
void deleteSubscription(int slotId, String iccid, in IDeleteSubscriptionCallback callback); |
| 51 |
void switchToSubscription(int slotId, int portIndex, String iccid, boolean forceDeactivateSim, |
| 52 |
in ISwitchToSubscriptionCallback callback, boolean useLegacyApi); |
| 53 |
void updateSubscriptionNickname(int slotId, String iccid, String nickname, |
| 54 |
in IUpdateSubscriptionNicknameCallback callback); |
| 55 |
void eraseSubscriptions(int slotId, in IEraseSubscriptionsCallback callback); |
| 56 |
void eraseSubscriptionsWithOptions( |
| 57 |
int slotIndex, int options, in IEraseSubscriptionsCallback callback); |
| 58 |
void retainSubscriptionsForFactoryReset( |
| 59 |
int slotId, in IRetainSubscriptionsForFactoryResetCallback callback); |
| 60 |
void dump(in IEuiccServiceDumpResultCallback callback); |
| 61 |
} |