1 /*
2  * Copyright 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.telephony.data;
18 
19 import android.net.LinkProperties;
20 import android.telephony.data.DataProfile;
21 import android.telephony.data.IDataServiceCallback;
22 import android.telephony.data.NetworkSliceInfo;
23 import android.telephony.data.TrafficDescriptor;
24 
25 import com.android.internal.telephony.IIntegerConsumer;
26 
27 /**
28  * {@hide}
29  */
30 oneway interface IDataService
31 {
createDataServiceProvider(int slotId)32     void createDataServiceProvider(int slotId);
removeDataServiceProvider(int slotId)33     void removeDataServiceProvider(int slotId);
setupDataCall(int slotId, int accessNetwork, in DataProfile dataProfile, boolean isRoaming, boolean allowRoaming, int reason, in LinkProperties linkProperties, int pduSessionId, in NetworkSliceInfo sliceInfo, in TrafficDescriptor trafficDescriptor, boolean matchAllRuleAllowed, IDataServiceCallback callback)34     void setupDataCall(int slotId, int accessNetwork, in DataProfile dataProfile, boolean isRoaming,
35                        boolean allowRoaming, int reason, in LinkProperties linkProperties,
36                        int pduSessionId, in NetworkSliceInfo sliceInfo,
37                        in TrafficDescriptor trafficDescriptor, boolean matchAllRuleAllowed,
38                        IDataServiceCallback callback);
deactivateDataCall(int slotId, int cid, int reason, IDataServiceCallback callback)39     void deactivateDataCall(int slotId, int cid, int reason, IDataServiceCallback callback);
setInitialAttachApn(int slotId, in DataProfile dataProfile, boolean isRoaming, IDataServiceCallback callback)40     void setInitialAttachApn(int slotId, in DataProfile dataProfile, boolean isRoaming,
41                              IDataServiceCallback callback);
setDataProfile(int slotId, in List<DataProfile> dps, boolean isRoaming, IDataServiceCallback callback)42     void setDataProfile(int slotId, in List<DataProfile> dps, boolean isRoaming,
43                         IDataServiceCallback callback);
requestDataCallList(int slotId, IDataServiceCallback callback)44     void requestDataCallList(int slotId, IDataServiceCallback callback);
registerForDataCallListChanged(int slotId, IDataServiceCallback callback)45     void registerForDataCallListChanged(int slotId, IDataServiceCallback callback);
unregisterForDataCallListChanged(int slotId, IDataServiceCallback callback)46     void unregisterForDataCallListChanged(int slotId, IDataServiceCallback callback);
startHandover(int slotId, int cid, IDataServiceCallback callback)47     void startHandover(int slotId, int cid, IDataServiceCallback callback);
cancelHandover(int slotId, int cid, IDataServiceCallback callback)48     void cancelHandover(int slotId, int cid, IDataServiceCallback callback);
registerForUnthrottleApn(int slotIndex, IDataServiceCallback callback)49     void registerForUnthrottleApn(int slotIndex, IDataServiceCallback callback);
unregisterForUnthrottleApn(int slotIndex, IDataServiceCallback callback)50     void unregisterForUnthrottleApn(int slotIndex, IDataServiceCallback callback);
requestNetworkValidation(int slotId, int cid, IIntegerConsumer callback)51     void requestNetworkValidation(int slotId, int cid, IIntegerConsumer callback);
52 }
53