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