blob: e058e5a70c71310ef75a313c85a4bd2a40638108 [file] [log] [blame]
Lorenzo Colitti4e5aa2c2014-05-21 16:23:43 -07001/*
2 * Copyright (C) 2014 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.net;
18
19import android.net.IpConfiguration;
Jaewan Kimd109a7c2014-10-20 12:04:13 +090020import android.net.IEthernetServiceListener;
Lorenzo Colitti30a8f7e2020-01-24 19:29:17 +090021import android.net.ITetheredInterfaceCallback;
Lorenzo Colitti4e5aa2c2014-05-21 16:23:43 -070022
23/**
24 * Interface that answers queries about, and allows changing
25 * ethernet configuration.
26 */
27/** {@hide} */
28interface IEthernetManager
29{
Pavel Maltsevc07a96d2017-10-31 15:34:16 -070030 String[] getAvailableInterfaces();
31 IpConfiguration getConfiguration(String iface);
32 void setConfiguration(String iface, in IpConfiguration config);
33 boolean isAvailable(String iface);
Jaewan Kimd109a7c2014-10-20 12:04:13 +090034 void addListener(in IEthernetServiceListener listener);
35 void removeListener(in IEthernetServiceListener listener);
Lorenzo Colitti6fba2a82020-03-19 11:46:55 +000036 void setIncludeTestInterfaces(boolean include);
Lorenzo Colitti30a8f7e2020-01-24 19:29:17 +090037 void requestTetheredInterface(in ITetheredInterfaceCallback callback);
38 void releaseTetheredInterface(in ITetheredInterfaceCallback callback);
Lorenzo Colitti4e5aa2c2014-05-21 16:23:43 -070039}