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