Jeff Davidson | 35cda39 | 2017-02-27 09:46:00 -0800 | [diff] [blame] | 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 | |
Jeff Davidson | 91c3d07 | 2017-04-12 12:17:11 -0700 | [diff] [blame] | 19 | import android.service.euicc.IDeleteSubscriptionCallback; |
Jeff Davidson | 35cda39 | 2017-02-27 09:46:00 -0800 | [diff] [blame] | 20 | import android.service.euicc.IDownloadSubscriptionCallback; |
Jeff Davidson | 91c3d07 | 2017-04-12 12:17:11 -0700 | [diff] [blame] | 21 | import android.service.euicc.IEraseSubscriptionsCallback; |
| 22 | import android.service.euicc.IGetDefaultDownloadableSubscriptionListCallback; |
Jeff Davidson | 35cda39 | 2017-02-27 09:46:00 -0800 | [diff] [blame] | 23 | import android.service.euicc.IGetDownloadableSubscriptionMetadataCallback; |
| 24 | import android.service.euicc.IGetEidCallback; |
Jeff Davidson | 91c3d07 | 2017-04-12 12:17:11 -0700 | [diff] [blame] | 25 | import android.service.euicc.IGetEuiccInfoCallback; |
Jeff Davidson | d02731f | 2017-04-09 14:31:09 -0700 | [diff] [blame] | 26 | import android.service.euicc.IGetEuiccProfileInfoListCallback; |
Qingxi Li | cc6ad8c | 2017-12-13 15:13:02 -0800 | [diff] [blame] | 27 | import android.service.euicc.IGetOtaStatusCallback; |
Qingxi Li | 8314fa7 | 2017-12-14 15:36:06 -0800 | [diff] [blame] | 28 | import android.service.euicc.IOtaStatusChangedCallback; |
Jeff Davidson | 7b69a86 | 2017-06-16 15:20:34 -0700 | [diff] [blame] | 29 | import android.service.euicc.IRetainSubscriptionsForFactoryResetCallback; |
Jeff Davidson | 91c3d07 | 2017-04-12 12:17:11 -0700 | [diff] [blame] | 30 | import android.service.euicc.ISwitchToSubscriptionCallback; |
| 31 | import android.service.euicc.IUpdateSubscriptionNicknameCallback; |
Jeff Davidson | 35cda39 | 2017-02-27 09:46:00 -0800 | [diff] [blame] | 32 | import android.telephony.euicc.DownloadableSubscription; |
Holly Jiuyu Sun | 132b49a | 2018-10-24 20:16:04 -0700 | [diff] [blame] | 33 | import android.os.Bundle; |
Jeff Davidson | 35cda39 | 2017-02-27 09:46:00 -0800 | [diff] [blame] | 34 | |
| 35 | /** @hide */ |
| 36 | oneway interface IEuiccService { |
| 37 | void downloadSubscription(int slotId, in DownloadableSubscription subscription, |
Holly Jiuyu Sun | 132b49a | 2018-10-24 20:16:04 -0700 | [diff] [blame] | 38 | boolean switchAfterDownload, boolean forceDeactivateSim, in Bundle resolvedBundle, |
Jeff Davidson | cfa70fa | 2017-04-06 16:02:36 -0700 | [diff] [blame] | 39 | in IDownloadSubscriptionCallback callback); |
Jeff Davidson | 35cda39 | 2017-02-27 09:46:00 -0800 | [diff] [blame] | 40 | void getDownloadableSubscriptionMetadata(int slotId, in DownloadableSubscription subscription, |
Jeff Davidson | cfa70fa | 2017-04-06 16:02:36 -0700 | [diff] [blame] | 41 | boolean forceDeactivateSim, in IGetDownloadableSubscriptionMetadataCallback callback); |
Jeff Davidson | 35cda39 | 2017-02-27 09:46:00 -0800 | [diff] [blame] | 42 | void getEid(int slotId, in IGetEidCallback callback); |
Qingxi Li | cc6ad8c | 2017-12-13 15:13:02 -0800 | [diff] [blame] | 43 | void getOtaStatus(int slotId, in IGetOtaStatusCallback callback); |
Qingxi Li | 8314fa7 | 2017-12-14 15:36:06 -0800 | [diff] [blame] | 44 | void startOtaIfNecessary(int slotId, in IOtaStatusChangedCallback statusChangedCallback); |
Jeff Davidson | d02731f | 2017-04-09 14:31:09 -0700 | [diff] [blame] | 45 | void getEuiccProfileInfoList(int slotId, in IGetEuiccProfileInfoListCallback callback); |
Jeff Davidson | 91c3d07 | 2017-04-12 12:17:11 -0700 | [diff] [blame] | 46 | void getDefaultDownloadableSubscriptionList(int slotId, boolean forceDeactivateSim, |
| 47 | in IGetDefaultDownloadableSubscriptionListCallback callback); |
| 48 | void getEuiccInfo(int slotId, in IGetEuiccInfoCallback callback); |
| 49 | void deleteSubscription(int slotId, String iccid, in IDeleteSubscriptionCallback callback); |
| 50 | void switchToSubscription(int slotId, String iccid, boolean forceDeactivateSim, |
| 51 | in ISwitchToSubscriptionCallback callback); |
| 52 | void updateSubscriptionNickname(int slotId, String iccid, String nickname, |
| 53 | in IUpdateSubscriptionNicknameCallback callback); |
| 54 | void eraseSubscriptions(int slotId, in IEraseSubscriptionsCallback callback); |
Peter Wang | 2ab852d | 2019-09-09 13:57:41 -0700 | [diff] [blame] | 55 | void eraseSubscriptionsWithOptions( |
| 56 | int slotIndex, int options, in IEraseSubscriptionsCallback callback); |
Jeff Davidson | 7b69a86 | 2017-06-16 15:20:34 -0700 | [diff] [blame] | 57 | void retainSubscriptionsForFactoryReset( |
| 58 | int slotId, in IRetainSubscriptionsForFactoryResetCallback callback); |
Jeff Davidson | 35cda39 | 2017-02-27 09:46:00 -0800 | [diff] [blame] | 59 | } |