IWifiManager.aidl revision e4c56c9655bf936454e2f3ee434aacb403876c7d
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.WpsConfiguration;
22import android.net.wifi.WpsResult;
23import android.net.wifi.ScanResult;
24import android.net.DhcpInfo;
25
26import android.os.WorkSource;
27
28/**
29 * Interface that allows controlling and querying Wi-Fi connectivity.
30 *
31 * {@hide}
32 */
33interface IWifiManager
34{
35    List<WifiConfiguration> getConfiguredNetworks();
36
37    int addOrUpdateNetwork(in WifiConfiguration config);
38
39    boolean removeNetwork(int netId);
40
41    boolean enableNetwork(int netId, boolean disableOthers);
42
43    boolean disableNetwork(int netId);
44
45    boolean pingSupplicant();
46
47    void startScan(boolean forceActive);
48
49    List<ScanResult> getScanResults();
50
51    void disconnect();
52
53    void reconnect();
54
55    void reassociate();
56
57    WifiInfo getConnectionInfo();
58
59    boolean setWifiEnabled(boolean enable);
60
61    int getWifiEnabledState();
62
63    void setCountryCode(String country, boolean persist);
64
65    void setFrequencyBand(int band, boolean persist);
66
67    int getFrequencyBand();
68
69    boolean isDualBandSupported();
70
71    boolean saveConfiguration();
72
73    DhcpInfo getDhcpInfo();
74
75    boolean acquireWifiLock(IBinder lock, int lockType, String tag, in WorkSource ws);
76
77    void updateWifiLockWorkSource(IBinder lock, in WorkSource ws);
78
79    boolean releaseWifiLock(IBinder lock);
80
81    void initializeMulticastFiltering();
82
83    boolean isMulticastEnabled();
84
85    void acquireMulticastLock(IBinder binder, String tag);
86
87    void releaseMulticastLock();
88
89    boolean setWifiApEnabled(in WifiConfiguration wifiConfig, boolean enable);
90
91    int getWifiApEnabledState();
92
93    WifiConfiguration getWifiApConfiguration();
94
95    void setWifiApConfiguration(in WifiConfiguration wifiConfig);
96
97    void startWifi();
98
99    void stopWifi();
100
101    void addToBlacklist(String bssid);
102
103    void clearBlacklist();
104
105    void connectNetworkWithConfig(in WifiConfiguration wifiConfig);
106
107    void connectNetworkWithId(int networkId);
108
109    void saveNetwork(in WifiConfiguration wifiConfig);
110
111    void forgetNetwork(int networkId);
112
113    WpsResult startWps(in WpsConfiguration config);
114}
115
116