The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 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 | /** |
| 25 | * Interface that allows controlling and querying Wi-Fi connectivity. |
| 26 | * |
| 27 | * {@hide} |
| 28 | */ |
| 29 | interface 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 | |
Mike Lockwood | a5ec95c | 2009-07-08 17:11:17 -0400 | [diff] [blame] | 43 | boolean startScan(boolean forceActive); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 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 | |
Robert Greenwalt | b5010cc | 2009-05-21 15:11:40 -0700 | [diff] [blame] | 61 | boolean setNumAllowedChannels(int numChannels, boolean persist); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 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); |
Robert Greenwalt | 5347bd4 | 2009-05-13 15:10:16 -0700 | [diff] [blame] | 72 | |
Robert Greenwalt | e2d155a | 2009-10-21 14:58:34 -0700 | [diff] [blame^] | 73 | void initializeMulticastFiltering(); |
| 74 | |
Robert Greenwalt | 58ff021 | 2009-05-19 15:53:54 -0700 | [diff] [blame] | 75 | boolean isMulticastEnabled(); |
Robert Greenwalt | 5347bd4 | 2009-05-13 15:10:16 -0700 | [diff] [blame] | 76 | |
Robert Greenwalt | fc1b15c | 2009-05-22 15:09:51 -0700 | [diff] [blame] | 77 | void acquireMulticastLock(IBinder binder, String tag); |
Robert Greenwalt | 5347bd4 | 2009-05-13 15:10:16 -0700 | [diff] [blame] | 78 | |
Robert Greenwalt | fc1b15c | 2009-05-22 15:09:51 -0700 | [diff] [blame] | 79 | void releaseMulticastLock(); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 80 | } |
| 81 | |