blob: 2acc47aae919440af35fdbd9ed2f1ec44c879d7e [file] [log] [blame]
Jeff Davidson35cda392017-02-27 09:46:00 -08001/*
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 android.service.euicc;
18
Jeff Davidson91c3d072017-04-12 12:17:11 -070019import android.service.euicc.IDeleteSubscriptionCallback;
Jeff Davidson35cda392017-02-27 09:46:00 -080020import android.service.euicc.IDownloadSubscriptionCallback;
Jeff Davidson91c3d072017-04-12 12:17:11 -070021import android.service.euicc.IEraseSubscriptionsCallback;
22import android.service.euicc.IGetDefaultDownloadableSubscriptionListCallback;
Jeff Davidson35cda392017-02-27 09:46:00 -080023import android.service.euicc.IGetDownloadableSubscriptionMetadataCallback;
24import android.service.euicc.IGetEidCallback;
Jeff Davidson91c3d072017-04-12 12:17:11 -070025import android.service.euicc.IGetEuiccInfoCallback;
Jeff Davidsond02731f2017-04-09 14:31:09 -070026import android.service.euicc.IGetEuiccProfileInfoListCallback;
Qingxi Licc6ad8c2017-12-13 15:13:02 -080027import android.service.euicc.IGetOtaStatusCallback;
Qingxi Li8314fa72017-12-14 15:36:06 -080028import android.service.euicc.IOtaStatusChangedCallback;
Jeff Davidson7b69a862017-06-16 15:20:34 -070029import android.service.euicc.IRetainSubscriptionsForFactoryResetCallback;
Jeff Davidson91c3d072017-04-12 12:17:11 -070030import android.service.euicc.ISwitchToSubscriptionCallback;
31import android.service.euicc.IUpdateSubscriptionNicknameCallback;
Jeff Davidson35cda392017-02-27 09:46:00 -080032import android.telephony.euicc.DownloadableSubscription;
Holly Jiuyu Sun132b49a2018-10-24 20:16:04 -070033import android.os.Bundle;
Jeff Davidson35cda392017-02-27 09:46:00 -080034
35/** @hide */
36oneway interface IEuiccService {
37 void downloadSubscription(int slotId, in DownloadableSubscription subscription,
Holly Jiuyu Sun132b49a2018-10-24 20:16:04 -070038 boolean switchAfterDownload, boolean forceDeactivateSim, in Bundle resolvedBundle,
Jeff Davidsoncfa70fa2017-04-06 16:02:36 -070039 in IDownloadSubscriptionCallback callback);
Jeff Davidson35cda392017-02-27 09:46:00 -080040 void getDownloadableSubscriptionMetadata(int slotId, in DownloadableSubscription subscription,
Jeff Davidsoncfa70fa2017-04-06 16:02:36 -070041 boolean forceDeactivateSim, in IGetDownloadableSubscriptionMetadataCallback callback);
Jeff Davidson35cda392017-02-27 09:46:00 -080042 void getEid(int slotId, in IGetEidCallback callback);
Qingxi Licc6ad8c2017-12-13 15:13:02 -080043 void getOtaStatus(int slotId, in IGetOtaStatusCallback callback);
Qingxi Li8314fa72017-12-14 15:36:06 -080044 void startOtaIfNecessary(int slotId, in IOtaStatusChangedCallback statusChangedCallback);
Jeff Davidsond02731f2017-04-09 14:31:09 -070045 void getEuiccProfileInfoList(int slotId, in IGetEuiccProfileInfoListCallback callback);
Jeff Davidson91c3d072017-04-12 12:17:11 -070046 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 Wang2ab852d2019-09-09 13:57:41 -070055 void eraseSubscriptionsWithOptions(
56 int slotIndex, int options, in IEraseSubscriptionsCallback callback);
Jeff Davidson7b69a862017-06-16 15:20:34 -070057 void retainSubscriptionsForFactoryReset(
58 int slotId, in IRetainSubscriptionsForFactoryResetCallback callback);
Jeff Davidson35cda392017-02-27 09:46:00 -080059}