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