• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2020 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 package android.net;
17 
18 import android.net.IIntResultListener;
19 import android.net.ITetheringEventCallback;
20 import android.net.TetheringRequestParcel;
21 import android.os.ResultReceiver;
22 
23 /** @hide */
24 oneway interface ITetheringConnector {
tether(String iface, String callerPkg, String callingAttributionTag, IIntResultListener receiver)25     void tether(String iface, String callerPkg, String callingAttributionTag,
26             IIntResultListener receiver);
27 
untether(String iface, String callerPkg, String callingAttributionTag, IIntResultListener receiver)28     void untether(String iface, String callerPkg, String callingAttributionTag,
29             IIntResultListener receiver);
30 
setUsbTethering(boolean enable, String callerPkg, String callingAttributionTag, IIntResultListener receiver)31     void setUsbTethering(boolean enable, String callerPkg,
32             String callingAttributionTag, IIntResultListener receiver);
33 
startTethering(in TetheringRequestParcel request, String callerPkg, String callingAttributionTag, IIntResultListener receiver)34     void startTethering(in TetheringRequestParcel request, String callerPkg,
35             String callingAttributionTag, IIntResultListener receiver);
36 
stopTethering(int type, String callerPkg, String callingAttributionTag, IIntResultListener receiver)37     void stopTethering(int type, String callerPkg, String callingAttributionTag,
38             IIntResultListener receiver);
39 
requestLatestTetheringEntitlementResult(int type, in ResultReceiver receiver, boolean showEntitlementUi, String callerPkg, String callingAttributionTag)40     void requestLatestTetheringEntitlementResult(int type, in ResultReceiver receiver,
41             boolean showEntitlementUi, String callerPkg, String callingAttributionTag);
42 
registerTetheringEventCallback(ITetheringEventCallback callback, String callerPkg)43     void registerTetheringEventCallback(ITetheringEventCallback callback, String callerPkg);
44 
unregisterTetheringEventCallback(ITetheringEventCallback callback, String callerPkg)45     void unregisterTetheringEventCallback(ITetheringEventCallback callback, String callerPkg);
46 
isTetheringSupported(String callerPkg, String callingAttributionTag, IIntResultListener receiver)47     void isTetheringSupported(String callerPkg, String callingAttributionTag,
48             IIntResultListener receiver);
49 
stopAllTethering(String callerPkg, String callingAttributionTag, IIntResultListener receiver)50     void stopAllTethering(String callerPkg, String callingAttributionTag,
51             IIntResultListener receiver);
52 }
53