blob: bfe502fbeb11ab3075b9cdf04c03ba63eb5f6e84 [file] [log] [blame]
markchien017fef22019-08-27 10:19:38 +08001/**
2 * Copyright (c) 2019, 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 perNmissions and
14 * limitations under the License.
15 */
16package android.net;
17
markchien0df2ebc42019-09-30 14:40:57 +080018import android.net.ITetherInternalCallback;
19import android.os.ResultReceiver;
20
markchien017fef22019-08-27 10:19:38 +080021/** @hide */
22oneway interface ITetheringConnector {
markchien0df2ebc42019-09-30 14:40:57 +080023 void tether(String iface);
24
25 void untether(String iface);
26
27 void setUsbTethering(boolean enable);
28
29 void startTethering(int type, in ResultReceiver receiver, boolean showProvisioningUi);
30
31 void stopTethering(int type);
32
33 void requestLatestTetheringEntitlementResult(int type, in ResultReceiver receiver,
34 boolean showEntitlementUi);
35
36 void registerTetherInternalCallback(ITetherInternalCallback callback);
markchien017fef22019-08-27 10:19:38 +080037}