IWifiManager.aidl revision 5321aef4a22daef6ed01ed48d936cdd82f2e38b7
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.wifi;
18
19import android.net.wifi.WifiInfo;
20import android.net.wifi.WifiConfiguration;
21import android.net.wifi.ScanResult;
22import android.net.DhcpInfo;
23
24/**
25 * Interface that allows controlling and querying Wi-Fi connectivity.
26 *
27 * {@hide}
28 */
29interface IWifiManager
30{
31    List<WifiConfiguration> getConfiguredNetworks();
32
33    int addOrUpdateNetwork(in WifiConfiguration config);
34
35    boolean removeNetwork(int netId);
36
37    boolean enableNetwork(int netId, boolean disableOthers);
38
39    boolean disableNetwork(int netId);
40
41    boolean pingSupplicant();
42
43    boolean startScan(boolean forceActive);
44
45    List<ScanResult> getScanResults();
46
47    boolean disconnect();
48
49    boolean reconnect();
50
51    boolean reassociate();
52
53    WifiInfo getConnectionInfo();
54
55    boolean setWifiEnabled(boolean enable);
56
57    int getWifiEnabledState();
58
59    int getNumAllowedChannels();
60
61    boolean setNumAllowedChannels(int numChannels, boolean persist);
62
63    int[] getValidChannelCounts();
64
65    boolean saveConfiguration();
66
67    DhcpInfo getDhcpInfo();
68
69    boolean acquireWifiLock(IBinder lock, int lockType, String tag);
70
71    boolean releaseWifiLock(IBinder lock);
72
73    void initializeMulticastFiltering();
74
75    boolean isMulticastEnabled();
76
77    void acquireMulticastLock(IBinder binder, String tag);
78
79    void releaseMulticastLock();
80
81    boolean setWifiApEnabled(in WifiConfiguration wifiConfig, boolean enable);
82
83    int getWifiApEnabledState();
84}
85
86