IConnectivityManager.aidl revision d192dad69e9e5a820c5c11d8cd34460c9cc2ed11
1/** 2 * Copyright (c) 2008, 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.LinkProperties; 20import android.net.NetworkInfo; 21import android.os.IBinder; 22 23/** 24 * Interface that answers queries about, and allows changing, the 25 * state of network connectivity. 26 */ 27/** {@hide} */ 28interface IConnectivityManager 29{ 30 void setNetworkPreference(int pref); 31 32 int getNetworkPreference(); 33 34 NetworkInfo getActiveNetworkInfo(); 35 36 NetworkInfo getNetworkInfo(int networkType); 37 38 NetworkInfo[] getAllNetworkInfo(); 39 40 LinkProperties getActiveLinkProperties(); 41 42 LinkProperties getLinkProperties(int networkType); 43 44 boolean setRadios(boolean onOff); 45 46 boolean setRadio(int networkType, boolean turnOn); 47 48 int startUsingNetworkFeature(int networkType, in String feature, 49 in IBinder binder); 50 51 int stopUsingNetworkFeature(int networkType, in String feature); 52 53 boolean requestRouteToHost(int networkType, int hostAddress); 54 55 boolean requestRouteToHostAddress(int networkType, in byte[] hostAddress); 56 57 boolean getBackgroundDataSetting(); 58 59 void setBackgroundDataSetting(boolean allowBackgroundData); 60 61 boolean getMobileDataEnabled(); 62 63 void setMobileDataEnabled(boolean enabled); 64 65 int tether(String iface); 66 67 int untether(String iface); 68 69 int getLastTetherError(String iface); 70 71 boolean isTetheringSupported(); 72 73 String[] getTetherableIfaces(); 74 75 String[] getTetheredIfaces(); 76 77 String[] getTetheringErroredIfaces(); 78 79 String[] getTetherableUsbRegexs(); 80 81 String[] getTetherableWifiRegexs(); 82 83 String[] getTetherableBluetoothRegexs(); 84 85 void requestNetworkTransitionWakelock(in String forWhom); 86 87 void reportInetCondition(int networkType, int percentage); 88} 89