Lorenzo Colitti | 2edad7a | 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 | 32b3f2c | 2014-10-20 12:04:13 +0900 | [diff] [blame] | 20 | import android.net.IEthernetServiceListener; |
Patrick Rohr | cf01b8a | 2022-03-16 11:31:06 +0100 | [diff] [blame^] | 21 | import android.net.EthernetNetworkManagementException; |
James Mattis | 1ecadfa | 2022-01-28 13:42:38 -0800 | [diff] [blame] | 22 | import android.net.EthernetNetworkUpdateRequest; |
Patrick Rohr | cf01b8a | 2022-03-16 11:31:06 +0100 | [diff] [blame^] | 23 | import android.net.INetworkInterfaceOutcomeReceiver; |
Lorenzo Colitti | 19b8b88 | 2020-01-24 19:29:17 +0900 | [diff] [blame] | 24 | import android.net.ITetheredInterfaceCallback; |
Lorenzo Colitti | 2edad7a | 2014-05-21 16:23:43 -0700 | [diff] [blame] | 25 | |
| 26 | /** |
| 27 | * Interface that answers queries about, and allows changing |
| 28 | * ethernet configuration. |
| 29 | */ |
| 30 | /** {@hide} */ |
| 31 | interface IEthernetManager |
| 32 | { |
Pavel Maltsev | 50ec1f3 | 2017-10-31 15:34:16 -0700 | [diff] [blame] | 33 | String[] getAvailableInterfaces(); |
| 34 | IpConfiguration getConfiguration(String iface); |
| 35 | void setConfiguration(String iface, in IpConfiguration config); |
| 36 | boolean isAvailable(String iface); |
Jaewan Kim | 32b3f2c | 2014-10-20 12:04:13 +0900 | [diff] [blame] | 37 | void addListener(in IEthernetServiceListener listener); |
| 38 | void removeListener(in IEthernetServiceListener listener); |
Lorenzo Colitti | 013187d | 2020-03-17 00:16:13 +0900 | [diff] [blame] | 39 | void setIncludeTestInterfaces(boolean include); |
Lorenzo Colitti | 19b8b88 | 2020-01-24 19:29:17 +0900 | [diff] [blame] | 40 | void requestTetheredInterface(in ITetheredInterfaceCallback callback); |
| 41 | void releaseTetheredInterface(in ITetheredInterfaceCallback callback); |
James Mattis | 1ecadfa | 2022-01-28 13:42:38 -0800 | [diff] [blame] | 42 | void updateConfiguration(String iface, in EthernetNetworkUpdateRequest request, |
Patrick Rohr | cf01b8a | 2022-03-16 11:31:06 +0100 | [diff] [blame^] | 43 | in INetworkInterfaceOutcomeReceiver listener); |
| 44 | void connectNetwork(String iface, in INetworkInterfaceOutcomeReceiver listener); |
| 45 | void disconnectNetwork(String iface, in INetworkInterfaceOutcomeReceiver listener); |
Lorenzo Colitti | 2edad7a | 2014-05-21 16:23:43 -0700 | [diff] [blame] | 46 | } |