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