Lorenzo Colitti | 4e5aa2c | 2014-05-21 16:23:43 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package android.net; |
| 18 | |
| 19 | import android.net.IpConfiguration; |
Jaewan Kim | d109a7c | 2014-10-20 12:04:13 +0900 | [diff] [blame] | 20 | import android.net.IEthernetServiceListener; |
Lorenzo Colitti | 30a8f7e | 2020-01-24 19:29:17 +0900 | [diff] [blame] | 21 | import android.net.ITetheredInterfaceCallback; |
Lorenzo Colitti | 4e5aa2c | 2014-05-21 16:23:43 -0700 | [diff] [blame] | 22 | |
| 23 | /** |
| 24 | * Interface that answers queries about, and allows changing |
| 25 | * ethernet configuration. |
| 26 | */ |
| 27 | /** {@hide} */ |
| 28 | interface IEthernetManager |
| 29 | { |
Pavel Maltsev | c07a96d | 2017-10-31 15:34:16 -0700 | [diff] [blame] | 30 | String[] getAvailableInterfaces(); |
| 31 | IpConfiguration getConfiguration(String iface); |
| 32 | void setConfiguration(String iface, in IpConfiguration config); |
| 33 | boolean isAvailable(String iface); |
Jaewan Kim | d109a7c | 2014-10-20 12:04:13 +0900 | [diff] [blame] | 34 | void addListener(in IEthernetServiceListener listener); |
| 35 | void removeListener(in IEthernetServiceListener listener); |
Lorenzo Colitti | 6fba2a8 | 2020-03-19 11:46:55 +0000 | [diff] [blame] | 36 | void setIncludeTestInterfaces(boolean include); |
Lorenzo Colitti | 30a8f7e | 2020-01-24 19:29:17 +0900 | [diff] [blame] | 37 | void requestTetheredInterface(in ITetheredInterfaceCallback callback); |
| 38 | void releaseTetheredInterface(in ITetheredInterfaceCallback callback); |
Lorenzo Colitti | 4e5aa2c | 2014-05-21 16:23:43 -0700 | [diff] [blame] | 39 | } |