IWifiManager.aidl revision 758bdf4a915c313f1c3bef0b95b494c91f363f03
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.BatchedScanResult;
20import android.net.wifi.BatchedScanSettings;
21import android.net.wifi.WifiAdapter;
22import android.net.wifi.WifiConfiguration;
23import android.net.wifi.WifiInfo;
24import android.net.wifi.ScanSettings;
25import android.net.wifi.WifiChannel;
26import android.net.wifi.ScanResult;
27import android.net.DhcpInfo;
28
29
30import android.os.Messenger;
31import android.os.WorkSource;
32
33/**
34 * Interface that allows controlling and querying Wi-Fi connectivity.
35 *
36 * {@hide}
37 */
38interface IWifiManager
39{
40    List<WifiAdapter> getAdaptors();
41
42    List<WifiConfiguration> getConfiguredNetworks();
43
44    List<WifiConfiguration> getPrivilegedConfiguredNetworks();
45
46    int addOrUpdateNetwork(in WifiConfiguration config);
47
48    boolean removeNetwork(int netId);
49
50    boolean enableNetwork(int netId, boolean disableOthers);
51
52    boolean disableNetwork(int netId);
53
54    boolean pingSupplicant();
55
56    List<WifiChannel> getChannelList();
57
58    void startScan(in ScanSettings requested, in WorkSource ws);
59
60    List<ScanResult> getScanResults(String callingPackage);
61
62    void disconnect();
63
64    void reconnect();
65
66    void reassociate();
67
68    WifiInfo getConnectionInfo();
69
70    boolean setWifiEnabled(boolean enable);
71
72    int getWifiEnabledState();
73
74    void setCountryCode(String country, boolean persist);
75
76    void setFrequencyBand(int band, boolean persist);
77
78    int getFrequencyBand();
79
80    boolean isDualBandSupported();
81
82    boolean saveConfiguration();
83
84    DhcpInfo getDhcpInfo();
85
86    boolean isScanAlwaysAvailable();
87
88    boolean acquireWifiLock(IBinder lock, int lockType, String tag, in WorkSource ws);
89
90    void updateWifiLockWorkSource(IBinder lock, in WorkSource ws);
91
92    boolean releaseWifiLock(IBinder lock);
93
94    void initializeMulticastFiltering();
95
96    boolean isMulticastEnabled();
97
98    void acquireMulticastLock(IBinder binder, String tag);
99
100    void releaseMulticastLock();
101
102    void setWifiApEnabled(in WifiConfiguration wifiConfig, boolean enable);
103
104    int getWifiApEnabledState();
105
106    WifiConfiguration getWifiApConfiguration();
107
108    void setWifiApConfiguration(in WifiConfiguration wifiConfig);
109
110    void startWifi();
111
112    void stopWifi();
113
114    void addToBlacklist(String bssid);
115
116    void clearBlacklist();
117
118    Messenger getWifiServiceMessenger();
119
120    String getConfigFile();
121
122    void enableTdls(String remoteIPAddress, boolean enable);
123
124    void enableTdlsWithMacAddress(String remoteMacAddress, boolean enable);
125
126    boolean requestBatchedScan(in BatchedScanSettings requested, IBinder binder, in WorkSource ws);
127
128    void stopBatchedScan(in BatchedScanSettings requested);
129
130    List<BatchedScanResult> getBatchedScanResults(String callingPackage);
131
132    boolean isBatchedScanSupported();
133
134    void pollBatchedScan();
135
136    String getWpsNfcConfigurationToken(int netId);
137
138    void enableVerboseLogging(int verbose);
139
140    int getVerboseLoggingLevel();
141
142    int getAggressiveHandover();
143
144    void enableAggressiveHandover(int enabled);
145
146    int getAllowScansWithTraffic();
147
148    void setAllowScansWithTraffic(int enabled);
149}
150
151