History log of /frameworks/base/wifi/java/android/net/wifi/WifiManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0e164b199ee33dbb1e9feeaa24c52231f9b81ac0 08-Aug-2016 Paul Stewart <pstew@google.com> Document correct context for obtaining WifiManager

Added comments to both WifiManager WIFI_SERVICE.

Bug: 25015174
Change-Id: Ibd1e21d860ef2b7cc432b3da76671d22c02ef7cb
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
b7d13d53bf95c86ed3e65277dc072e3379c94f8e 20-May-2016 Rebecca Silberstein <silberst@google.com> DO NOT MERGE WifiManager: add WIFI_MODE_NO_LOCKS_HELD

(cherry-pick from master)

Add a WifiLock mode representing that no locks are held (@hide).

Bug: 28669096
Change-Id: I774d5ff226e7c639812f9735555c8ea1ed6444af
Test: compiles and runtest frameworks-wifi
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
44a4668b4599a1284f4c2011b1ab4bf90b9b4ab6 07-Apr-2016 Samuel Tan <samueltan@google.com> Rename enableAutoJoinWhenAssociated() to setEnableAutoJoinWhenAssociated()

This renaming better reflects how this method is a setter, and
supports variable renaming taking place in WifiConfigManager and
WifiStateMachine.

BUG: 28088867
Change-Id: Ic2f7a1f53ffec4072e556d2831bfdcff9fef1ad7
TEST: 'runtest frameworks-wifi' passes.
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
74638cdb31a10fa6d013744d201bb12465dff3ea 01-Apr-2016 Randy Pan <zpan@google.com> Enable/disable WifiConnectivityManager at runtime

Add support to turn on and off WifiConnectivityManager at
runtime.

Bug: 27968625
Change-Id: I57d3604bfb2a4e816fb16f6389f7cbaa2460c24b
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
467400a23b365419bb64e58d34f70d287973d3f9 11-Mar-2016 Randy Pan <zpan@google.com> Obsolete a couple of auto-join related APIs.

Remove the get/setHalBasedAutojoinOffset() APIs. HAL based PNO
is now enabled on all supported devices.

Bug: 26666366
Change-Id: I55b3a80a5807c33569dbbdf4dcfc2411af067567
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
bf8cbb05e085c4504685883f3dd564f200405bea 17-Mar-2016 Paul Stewart <pstew@google.com> WifiManager: Use ConnectivityThread

Instead of minting it's own hander thread, have WifiManager use
the looper from ConnectivityThread.

Bug: 27432949

Change-Id: Iddeebeb8ab506c912f526c7569f304e10b9d7ab8
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
75f129e17b05e6d51080cf1ab9eb5cdddecdc734 17-Mar-2016 Paul Stewart <pstew@google.com> WifiManager: Defer Async Channel init

Now that WifiManager instances are separate and do not depend
on a single static AsyncChannel for the entire process, all
contexts within a process will create an async channel on init.
Since creating this channel requires special permissions that
some applications do not have, it is problematic for them all
to request it in the process of getting a WifiManager instance.

This CL defers AsyncChannel initialization until it is actually
going to be used. This allows callers to create WifiManager
instances without necessarily creating an AsyncChannel.
Depending on what parts of the API will be used, some callers
will never need one. Also, this means that these apps will
not run afoul of permissions exceptions that do not apply to
them unless they actually request functionality that requires
the AsyncChannel.

While here, this CL no longer catches SecurityException while
requesting a messenger from WifiService. That hack appeared to
be an artifact of the static instance of sAsyncChannel -- it
was not clear to WifiManager which context had permissions to
successfully create the messenger, so it was necessary to
silently fail the attempt especially since that attempt was
made in the constructor. With the restructuring to keep
mAsyncChannel per-instance and now only created at the time
specific API calls require it, a SecurityException is
completely relevant to the caller and should not be discarded.

Bug: 27694933
Test: Boot full image, repro b/27694933 with com.google.android.music

Change-Id: I680bf2443bc5b057e629544a687f985261201ded
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
0f3b7ac4b5cc689243176a960ba004f19cf95bc1 14-Mar-2016 Paul Stewart <pstew@google.com> Merge "WifiManager: Remove static objects" into mm-wireless-dev
am: d292ed866c

* commit 'd292ed866c27bc7a23cfa292603d722a6b7f9d81':
WifiManager: Remove static objects
a016ebbee7c9cf37bc19044e787b02bfb59f2f98 25-Feb-2016 Paul Stewart <pstew@google.com> WifiManager: Remove static objects

Thanks to b/24334032, we know that there can be more than one
WifiManager object per process. Also, due to b/19159232 we know
that holding static references to contexts within WifiManager is
not okay. This CL addresses both issues by correctly implementing
Wifimanager as the per-context CachedService as it is instantiated
in SystemServiceRegistry.

To do this, all previously static object members of WifiManager
are converted to non-static. This is primarily safe since:

- In processes which only instantiated WifiManager from a single
context, the behavior is functionally identical between the
static and non-static implementation.

- In situations where multiple WifiManager objects were created,
this is not a real issue:

+ sListenerKey is okay to be tracked per-instance since it
only tracks replies for asynchronous outgoing calls for a
single WifiManager instance (replies are not multicast to
all instances within a pid, since replies from
WifiServiceImpl are addressed to the other end of the
AsyncConnection the request message came from).
+ The same is true of sListenerMap and sListenerMapLock
+ Having a per-WifiManager-instance mAsyncChannel is at worst
a small linear increase with the number of contexts that
use WifiManager, but for the vast majority of processes will
not be an increase at all.
+ Having a thread per WifiManager is something that has been
brought up in the past (b/25644527 comes to mind). I think
we should continue to track that particular problem there.

One static was added: an sServiceHandlerDispatchLock which ensures
that listeners from multiple ServiceHandler threads will be called
sequentially instead of interleaved. Since ServiceHandler was
previously static, this preserves the behavior where multiple
WifiManager objects would not deliver callbacks in parallel.

BUG=19159232
BUG=24334032

Change-Id: I24125a285f97e0c5b3ca4fd721ba8ed19aa245e9
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
2a3ca73158227751321e98ba707496adf84007a6 29-Feb-2016 Lorenzo Colitti <lorenzo@google.com> DO NOT MERGE: Move PinningNetworkCallback out to a new NetworkPinner class.

Cherry-picked from 531a34430072b9296aaeb47d9e7d04326a93fee4

Bug: 19159232
Change-Id: Ic366b53259ee5944a8e864876425a6558c0a7216
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
b94df9db50b3813d9836ebc0a4e650f2fd090756 03-Mar-2016 Jeremy Joslin <jjoslin@google.com> Merge "Revert "New systemapi to mark a wifi network as metered."" into mm-wireless-dev
am: 3f7314e331

* commit '3f7314e3310fbaddc984ae3218f7bb22f13cda11':
Revert "New systemapi to mark a wifi network as metered."
3f7314e3310fbaddc984ae3218f7bb22f13cda11 03-Mar-2016 Jeremy Joslin <jjoslin@google.com> Merge "Revert "New systemapi to mark a wifi network as metered."" into mm-wireless-dev
e9e6083ee19b7474d853b4b8c3e4b4fbcba30855 02-Mar-2016 Jeremy Joslin <jjoslin@google.com> Revert "New systemapi to mark a wifi network as metered."

This reverts commit 7a598d3d800fc47b7c2f9300411edc0ef06da493.

Change-Id: Ib6b9081ee4ded7582fb90d7a9066de95ab221f61
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
b7ffb764370805aa0734d2f31bc2def34df04d86 02-Mar-2016 Lorenzo Colitti <lorenzo@google.com> Merge changes Ic366b532,I0179b45b into nyc-dev

* changes:
Move PinningNetworkCallback out to a new NetworkPinner class.
Use MessageUtils in ConnectivityManager.
531a34430072b9296aaeb47d9e7d04326a93fee4 29-Feb-2016 Lorenzo Colitti <lorenzo@google.com> Move PinningNetworkCallback out to a new NetworkPinner class.

Also add tests.

Bug: 19159232
Change-Id: Ic366b53259ee5944a8e864876425a6558c0a7216
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
c53962d4ede82a03b62f0c8bb86bd0da090a15eb 02-Mar-2016 Jeff Sharkey <jsharkey@android.com> When system server goes down, crash apps more.

Apps making calls into the system server may end up persisting
internal state or making security decisions based on the perceived
success or failure of a call, or the default values returned.

The reality is that if the system process just died, init will be
along shortly to kill all running apps, so we should have no problem
rethrowing the RemoteException as a RuntimeException.

Bug: 27364859
Change-Id: Ife0bcb079636c88d54c44d17eb580409fd79028b
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
cea11df038465ad15dc7d33c39a1bbbc3864aa99 11-Feb-2016 Paul Stewart <pstew@google.com> Merge "WifiManager: Return empty scan list on remote exception" into mm-wireless-dev
am: 4e9e3d02e0

* commit '4e9e3d02e057ddccb95d5299e60ac02da7766024':
WifiManager: Return empty scan list on remote exception
4e9e3d02e057ddccb95d5299e60ac02da7766024 11-Feb-2016 Paul Stewart <pstew@google.com> Merge "WifiManager: Return empty scan list on remote exception" into mm-wireless-dev
ed9297991a922b88a00c04d034c172c18d550ac1 11-Feb-2016 Paul Stewart <pstew@google.com> WifiManager: Return empty scan list on remote exception

In the (hopefully rare) situation where there is a remote exception
from a call to getScanResults(), do not pass null back to callers.
Nobody expects this, and failures that occur as a result can distract
from the real problem (e.g., the system server crashing). This CL
now returns an empty list.

BUG=27139097
TEST=None

Change-Id: I637eae1fa8ac1a1bc2b76dea8628359b5dec06e1
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
5c55babd64d0ba3bbed77739587594e22bfa3b52 11-Feb-2016 Jeremy Joslin <jjoslin@google.com> Merge "New systemapi to mark a wifi network as metered." into mm-wireless-dev
am: 3d4acbf5fb

* commit '3d4acbf5fbe74133b70b0bec51a387428f251ac1':
New systemapi to mark a wifi network as metered.
7a598d3d800fc47b7c2f9300411edc0ef06da493 10-Feb-2016 Jeremy Joslin <jjoslin@google.com> New systemapi to mark a wifi network as metered.

The implementation will come after the wifi code base has stablized.

BUG:27120794
Change-Id: I6a8140dae45dcd7ec70ac0c51b9513b907a41b63
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
962c6a81e3f9b3ea6b4b178ca41a87230864525e 03-Feb-2016 Jan Nordqvist <jannq@google.com> Merge "New System APIs for Passpoint r2 app." into mm-wireless-dev
am: fd600b1113

* commit 'fd600b1113af6f66e28b65f5b53f4a7c751cdef9':
New System APIs for Passpoint r2 app.
a772f0cf34f0db67997cb31fa44315c0933563da 28-Jan-2016 Vinit Deshpande <vinitd@google.com> New System APIs for Passpoint r2 app.

Change-Id: I09428e9a393999f43aefe5efd77cffe4b1b17da5
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
94e95746db3709074230b14c0f41520004f67789 20-Jan-2016 Jeremy Klein <jlklein@google.com> Merge "Expose WifiAp methods as @SystemApi."
b625377b1a9b324254fcde9928eade4473712486 06-Jan-2016 Jeremy Klein <jlklein@google.com> Expose WifiAp methods as @SystemApi.

GTS tests to follow shortly.

BUG: 22406002
Change-Id: I42883fa5e35a11b4b2d734f07b7d72f2ac0ec1f8
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
3da7357951a1981ecf40391e19ad8e53b45cb046 15-Jan-2016 Etan Cohen <etancohen@google.com> Merge "NAN: baseline NAN manager for discovery." into mm-wireless-dev
am: e540b64aaf

* commit 'e540b64aaf58460f7930a5e4937cee660215c948':
NAN: baseline NAN manager for discovery.
20d329b08df7d1a94e6caee781f09e812a79c913 29-Sep-2015 Etan Cohen <etancohen@google.com> NAN: baseline NAN manager for discovery.

Initial framework for user API (all @hide for now). Supports:
- NAN configuration
- Publish/Subscribe = Discovery
- Message passing
- Notifications

Bug: 26216681
Change-Id: I72e467756a02f7b80c52fae916b9a47c8174af42
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
a23840e7a4a43209bfb8ca3d9ecebe44660b1115 07-Oct-2015 Mitchell Wills <mwills@google.com> DO NOT MERGE Remove old APIs that are no longer used/implemented

All of these APIs were hidden and are no longer used by anyone. The scan
APIs are being replaced by the new WifiScanner API

Cherry-picked from 88d93cd68a32e7110f9328ff522226126c7e493e
Change-Id: I36ffef137d0620263278e5ef46bbc498a39c588f
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
d1ed98f83367fd3b2cc02be039fbc4edb7c29afa 18-Aug-2015 Mitchell Wills <mwills@google.com> DO NOT MERGE Check if link stats are supported when reporting activity info

Cherry-picked from 9a568e6f2f69cc923bbfc1ffb07c2f194acdb981
Bug: 23286362
Change-Id: I42c91d488acd39341a6874797788d3e5357f0270
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
255d41dce1194b2edf3c4c1a5ece7f764fd40707 23-Sep-2015 Jan Nordqvist <jannq@google.com> DO NOT MERGE Hotspot 2.0 relase 2 first cut.

CP mods to take a URL as a parameter, and new ScanInfo object.

Cherry-picked from 52eb29f0822f129f2b14bacec23dd492f2260ac0
Change-Id: Idbb2d4751c575ba07a56942771e2b2955b624635
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
b8c7badbb5b0cf2d101ddfabdcf7c95135965eea 01-Dec-2015 Jeremy Klein <jlklein@google.com> Mark WIFI_AP_STATE_CHANGED_ACTION and extras @SystemApi.

These will be used by Magic Tether within GmsCore.

Change-Id: I06691e69d256d0400d16a7bb63e3406fada7b5f1
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
568f4de11a87308cbcb888083f02818a8290a7d7 03-Dec-2015 Neil Fuller <nfuller@google.com> Merge "Fix @code escapes"
71fbb81b14958b80fe55738607740c6630e4e9da 30-Nov-2015 Neil Fuller <nfuller@google.com> Fix @code escapes

The body of {@code} must not be HTML escaped. This is one of
several changes that fix the source in conjunction with a
doclava fix.

Bug: 25757239
Change-Id: Ib38a0fa2dd2a3d68e467f78a812071e763d7e881
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
0d3d1f825f399c62f2ba236b53bef17581e03a16 02-Dec-2015 Sungsoo Lim <sungsoo@google.com> Fixed typos: when when

Change-Id: I80c0b8817dcbed45071e42d9ffa88bae52a93a81
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
593474e07493d1aed0e1dbbf3157d1acfcc04852 31-Oct-2015 Mitchell Wills <mwills@google.com> Merge "Remove old APIs that are no longer used/implemented"
e9c56b8f8feb54b28506ff61254f39e604bce830 24-Oct-2015 Mitchell Wills <mwills@google.com> Merge "Check if link stats are supported when reporting activity info"
88d93cd68a32e7110f9328ff522226126c7e493e 07-Oct-2015 Mitchell Wills <mwills@google.com> Remove old APIs that are no longer used/implemented

All of these APIs were hidden and are no longer used by anyone. The scan
APIs are being replaced by the new WifiScanner API

Change-Id: I36ffef137d0620263278e5ef46bbc498a39c588f
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
52eb29f0822f129f2b14bacec23dd492f2260ac0 23-Sep-2015 Jan Nordqvist <jannq@google.com> Hotspot 2.0 relase 2 first cut.

CP mods to take a URL as a parameter, and new ScanInfo object.

Change-Id: Idbb2d4751c575ba07a56942771e2b2955b624635
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
9a568e6f2f69cc923bbfc1ffb07c2f194acdb981 18-Aug-2015 Mitchell Wills <mwills@google.com> Check if link stats are supported when reporting activity info

Bug: 23286362
Change-Id: I42c91d488acd39341a6874797788d3e5357f0270
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
f6d3d148d50562823e5f953ddd9c084266ac4c1b 01-Aug-2015 Jan Nordqvist <jannq@google.com> Added logging in a few error paths for wifi config installation.

Bug: 22790527
Change-Id: I71b298b98da098f647f52886c3c3a7456cb24d51
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
959991b957fb58672aef17c46a7662941f138e19 23-Jul-2015 Fyodor Kupolov <fkupolov@google.com> Fixed a typo

Change-Id: I85d75429baed3263c04e747eb374c66177c064f5
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
e8de06d2feb6680df15c1473fb72efb214ced744 10-Jul-2015 xinhe <xinhe@google.com> Add API to turn OFF "best network selection" feature

b/14990268

Change-Id: I0231a9f0fae2baee50138e1cfa5416612ff41d6d
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
e0ec6ba9cb6494df147479316c24defb167ab2b1 14-Jul-2015 xinhe <xinhe@google.com> Need to disable 5GHz bands for WiFi tethering in Japan

b/22396383

Change-Id: I61efef1babaab756425e6958843dfb9ad47b46cd
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
cb13aebfec313a3433ed0f53cc2e3b6dbaf888d0 20-Jun-2015 Fyodor Kupolov <fkupolov@google.com> Check location permission/appop in getScanResults

Return an empty list if the calling process has no location permission/appop

Bug: 21852542
Change-Id: Ifb9c5eb06c3fc7136a7f8251ac152234585f5b67
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
a0d929e505432a8c84f3899696c910db16bd73bf 13-Jun-2015 Vinit Deshpande <vinitd@google.com> Address API review comments

Added a flags field in ScanResult; along with flag
values and methods to read them.

Changed types of passpoint related fields.

Bug: 21342042
Bug: 21572290
Bug: 21343777

Change-Id: I413960de88b387853d11b9e10f92665e9c06a81b
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
29ad7c7000393751a0ab0e1a17912db7866d4ff8 20-May-2015 Vinit Deshpande <vinitd@google.com> Indicate failed scans with EXTRA_RESULTS_UPDATED

This flag indicates if scan was successful and results were
updated. It will be set to false if a scan is not performed
(intentionally) or if it failed to produce any results.

Bug: 20642015

Change-Id: I06a1fdd684932db68891ee28d5a049980f483f0f
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
358673e275ed065fadb04c1722ac458e6c617a89 11-May-2015 Pierre Vandwalle <vandwalle@google.com> hal based pno and lazy roam implementation

cherry-picked from mirror-m-wireless-internal-release
3655257 - hal based pno and lazy roam implementation

Change-Id: Ib58d40796c896a6d0dad856e0cb86c716c7aee7f
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
a3b9a2240ef25ae7c7fae557be150f43fdd5f675 14-May-2015 Vinit Deshpande <vinitd@google.com> Merge "fix null pointer crash" into mnc-dev
20903b392b78e5f3dc0ce8b782154adc77853468 09-May-2015 Pierre Vandwalle <vandwalle@google.com> fix null pointer crash

(cherry-picked from mirror-m-wireless-internal-release
216d8c3 fix null pointer crash)

Bug: 20232584

Change-Id: I7c46e372bc8f3a54b0428ef56c034eb2c79133ea
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
976f044b2b3eff2ce968e3ea59022414180c268d 13-May-2015 Lorenzo Colitti <lorenzo@google.com> Only activate the wifi alternate reality hack for KK and lower

Currently, the hack is activated for apps that target L or lower.
Per discussion, we should activate the hack only for apps that
target KK or lower. Apps that target L or above must instead use
the appropriate multinetwork APIs to deal with this situation.

Bug: 20081183
Change-Id: I29e1989e7a07aaabc10f604c20ecdc0d8b5366a3
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
7094d22022c8e0c6ad71920b101434dded8a276e 02-May-2015 Sanket Padawe <sanketpadawe@google.com> Adding "Connected, no Internet" string in Wifi nw summary.

Bug: 17380953
Change-Id: I9664bcbf33832fe722e7d2b3125939287ee98098
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
fa57c489f621cd10add639cf7df59f630a7f41a4 22-Apr-2015 Lorenzo Colitti <lorenzo@google.com> Allow apps with ACCESS_WIFI_STATE to listen for wifi networks

The compatibility measure introduced in bug 20081183 for apps
that connect to a Wi-Fi network without Internet access and then
expect to be able to use that network requires that such apps
register a NetworkCallback so that their WifiManager can pin them
to whatever wifi Network connects.

Currently, registering the callback requires ACCESS_NETWORK_STATE
and the app may not have that permission. Allow registering wifi
(only) callbacks if the app has ACCESS_WIFI_STATE.

If the app does not have ACCESS_WIFI_STATE (unlikely, since
CHANGE_WIFI_STATE is not very useful without ACCESS_WIFI_STATE),
then don't enable the compatibility measure.

Bug: 20081183
Bug: 20423580
Change-Id: Iad328d30c2d170dead883868fece3d922da68f6f
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
f1fb39763d87dabe254b6ed64ac8f20145035bc0 03-Apr-2015 Stuart Scott <stuartscott@google.com> Move factoryReset to service and protect.

bug:16161518
Change-Id: I02d1bbae1887c62ee426e6f03e8bc1f18c6666bf
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
1022dde719ca430f062f9e628574d70ae1320677 08-Apr-2015 Lorenzo Colitti <lorenzo@google.com> Pin a process to wifi when it calls enableNetwork(..., true)

Bug: 20081183
Change-Id: I12bbda1061bbebeb4d0844d0b0d7f51237645958
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
57bf2a8a38e929f00f3323cf97a8ea7a9af900ce 11-Apr-2015 Prerepa Viswanadham <dham@google.com> Merge commit 'e593d0a' into merge_work

Change-Id: I4f8ae40fc446cd9cda4d5c6ec99469a98dda595b
e9b056f8860296a08f93f4b7d2a0971c746c227b 30-Mar-2015 Jan Nordqvist <jannq@google.com> API for config app.

Change-Id: Icda0ac1b081a08f438645ccf3667b5b81cb5e244
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
b4d90fca0ec461c24cd38e4b7d1990447ad047a1 04-Apr-2015 Vinit Deshpande <vinitd@google.com> Implement 'Available via Passpoint' feature

This also fixes the issues related to explicit connection
to passpoint AP, and fixes occassional mention of
'connected via Wi-Fi Assistent'

Change-Id: Ib4de956f2ea29709d0212fbcb392815644800e78
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
36711e0e2cee9181a328718a349454dbd834f4e2 02-Apr-2015 Etan Cohen <etancohen@google.com> Merge changes from topic 'mwd-merge-040115'

* changes:
Merge (manually) pag/209446: Increase allowed duration to connect to HOGP profile
Merge commit 'd91f193' into merge2
Merge commit '5718646' into merge2
Merge commit '7aa0345' into merge2
eb864d4000dacad94d5135a10ed7bdeb29f31881 01-Apr-2015 Etan Cohen <etancohen@google.com> Merge commit 'd91f193' into merge2
984dc850b4caeb4470e52bce773935be5305cf8e 30-Mar-2015 Stuart Scott <stuartscott@google.com> Move reset network settings into framework.

bug: 16161518
Change-Id: Ic3b537ebd09d1b9723feff9dcc96e20fda05a94f
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
ddfd35dbf9aab0ff196e1d7046ebe6bcd972c7a5 23-Mar-2015 Pierre Vandwalle <vandwalle@google.com> add wifi config for power calculation

Change-Id: Ic312ffeb299d199547cc75bc6977140f8e6e5f7b
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
4209a28270a70016ee5ee6cae3dc96d6df0ade26 24-Mar-2015 Prerepa Viswanadham <dham@google.com> Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release' into master_merge

Change-Id: I49aab437af220f1139cfd2d0a9c362acce31074e
af3f1c995cd9ee5b4ffe2aed42522121cd8736c7 19-Mar-2015 Pierre Vandwalle <vandwalle@google.com> Merge "export API to disable autojoin scan initial implementation" into lmp-mr1-wfc-dev
automerge: 7c39808

* commit '7c398083319bbd1ad51d23cb307cfc3ac9091c3a':
export API to disable autojoin scan initial implementation
9e535b86eed3671ce997aee024ad76038e30f78b 15-Mar-2015 Vinit Deshpande <vinitd@google.com> am "Do not provide 5GHz option for softap if there is no country code available"

merged from goog/mirror-m-wireless-internal-release
b938c0e Do not provide 5GHz option for softap if there is no country code available
5914caff06f9790238bea0536acfbf533cee9046 13-Mar-2015 Pierre Vandwalle <vandwalle@google.com> export API to disable autojoin scan initial implementation

Change-Id: I28e268dd8b859a3a22c3d6f699216bbd7124af26
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
b938c0e2036d28df24ec626fc8ed7e277248b9a6 24-Feb-2015 xinhe <xinhe@google.com> Do not provide 5GHz option for softap if there is no country code available

Bug:19414134
Change-Id: I88da5c3d547522263394403c97147baabae45394
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
5d0bf5de0d334db6cbfb7d32fd3a5d31b2f7deee 09-Dec-2014 Jeff Davidson <jpd@google.com> am 820ba1f9: am 401ef259: am a4144563: Merge "add disable Ephemeral Network API Bug:18525241" into lmp-mr1-dev

* commit '820ba1f96f5917db98df5b5d36cf5f4b32f50f59':
add disable Ephemeral Network API Bug:18525241
93e4192c06a28f37bc1c16b280fbd22c735b5c92 04-Dec-2014 vandwalle <vandwalle@google.com> add disable Ephemeral Network API
Bug:18525241

Change-Id: I954c53c55c39f6c376b2bae3c7ac4d28246a7f5a
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
a7af2e8fb659c258c72b1a44bb2073c5cc70486c 26-Nov-2014 vandwalle <vandwalle@google.com> am f12fc2e1: am b6c9cbc5: am 47772ac8: Merge "make startScan with worksource specific to location scans" into lmp-mr1-dev

* commit 'f12fc2e14ebcf14745de03963a621e36bda11232':
make startScan with worksource specific to location scans
da123a6726e7c64b3f19f74ed0eb02bb4398a989 22-Nov-2014 vandwalle <vandwalle@google.com> make startScan with worksource specific to location scans

Change-Id: Ia09dae3e334ef6fd11f2b468e78ad7c2c3cf55e9
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
33f97d8304ab8c78f42f49df368630e385ddcebc 19-Nov-2014 Vinit Deshpande <vinitd@google.com> am 77fe4c96: am a34f3d30: am 800bf3ae: Merge "Fix WPS docs for LABEL method" into lmp-mr1-dev

* commit '77fe4c96b75550e5d22a294314b05beabd55e97a':
Fix WPS docs for LABEL method
c3eb1556446c932b5674adc40af8ff9bfc3a1880 17-Nov-2014 Vinit Deshpande <vinitd@google.com> Fix WPS docs for LABEL method

Since we don't support LABEL method in startWps, document
it explicitly.

Bug: 18298388

Change-Id: I5d4c2475a68f1b41e5fc449c911b7b01b3b82fc4
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
4ec0cf048ad52027bd1773f436aa01268ce5c18b 04-Sep-2014 David Christie <dnchrist@google.com> am 1fc17b58: am d3a78eff: am 36b0eac4: Merge "Add @SystemApi annotations to methods used by GmsCore. -Currently these methods are called using reflection for location. Bug: 17371392 Change-Id: I6546f5b485415beff69164ba0d526757ee831f69" into lmp-dev

* commit '1fc17b58efa68b7128fd5b1cfa3355c353aaff4e':
Add @SystemApi annotations to methods used by GmsCore. -Currently these methods are called using reflection for location. Bug: 17371392 Change-Id: I6546f5b485415beff69164ba0d526757ee831f69
e7baf5afc07127854e5791d93f05e6b46633bc47 04-Sep-2014 David Christie <dnchrist@google.com> Merge "Add @SystemApi annotations to methods used by GmsCore. -Currently these methods are called using reflection for location. Bug: 17371392 Change-Id: I6546f5b485415beff69164ba0d526757ee831f69" into lmp-dev
c20b795cf05b48fe5e024c19dab9c7e4b18cd10f 04-Sep-2014 David Christie <dnchrist@google.com> Add @SystemApi annotations to methods used by GmsCore.
-Currently these methods are called using reflection for location.
Bug: 17371392
Change-Id: I6546f5b485415beff69164ba0d526757ee831f69
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
3df10a64b92be8150d005ec5c578fe9cee677f78 03-Sep-2014 Vinit Deshpande <vinitd@google.com> am 21790061: am f4b970e5: am 2705b859: Merge "Address API Council feedback for WifiAdapter/WPS APIs" into lmp-dev

* commit '217900618fedda7ddc447b2fb861d0458cf8ed0e':
Address API Council feedback for WifiAdapter/WPS APIs
73f5d16ad5c61320deac161fe23e00a8a4aed772 29-Aug-2014 Vinit Deshpande <vinitd@google.com> Address API Council feedback for WifiAdapter/WPS APIs

This change addresses concerns from the API review. Things that
are fixed are -

1. WifiAdapter is removed, until we have 'real' support for it
2. All the methods from WifiAdapter are moved to WifiManager
3. Changed WPSListener API names to be onFailed/onSucceeded et al
4. Removed ActionListener from WPS APIs, they now take WpsListener

Bug: 16403303
Bug: 17115004

Change-Id: Ia721dd95041acb3e50d16690319e3320fe550ff5
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
0f5734dda8ae7442c3c2a013726bbb20111001c6 26-Aug-2014 vandwalle <vandwalle@google.com> am 362448d4: am dbf54ec2: am b2139607: Merge "add radio stats to link layer" into lmp-dev

* commit '362448d4b91704503340e9f751d26b88706c2057':
add radio stats to link layer
b928a3802bfcd3aeed592906ddb3e14c653b213c 07-Aug-2014 vandwalle <vandwalle@google.com> add radio stats to link layer

Bug:15563188

Change-Id: I3d2a230b0362520b9f1b2bc3792260116971e106
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
5223cc6167f79e9f2f2dcc3c461a63e79154883a 21-Aug-2014 Wenchao Tong <tongwenchao@google.com> am de1bc6cb: am f654d5b2: am 2954d35a: Merge "Revert "Annotate @SystemApi on some WifiManager methods."" into lmp-dev

* commit 'de1bc6cb3ecdfab5e7f42bc9f865f39a1ef0c01e':
Revert "Annotate @SystemApi on some WifiManager methods."
cd8e0416687c00a1e8eff525be0925a3f00c08bb 21-Aug-2014 Wenchao Tong <tongwenchao@google.com> Revert "Annotate @SystemApi on some WifiManager methods."

This reverts commit 041bcc22bd21f84358e5b2102e3a919bcdd99b81.

Bug: 17134034
Change-Id: I1ebcdd9b4c56e5c93fd5667699c8971e8c6e5452
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
b413f19d8f634bafdee1ba4e0d7f5d070158bcca 20-Aug-2014 Wenchao Tong <tongwenchao@google.com> am 143817b4: am 3e76a3aa: am 3ddfe1ce: Merge "Annotate @SystemApi on some WifiManager methods." into lmp-dev

* commit '143817b4302baa8f42f2f2a489a75b429735a3eb':
Annotate @SystemApi on some WifiManager methods.
4d114920719d4bdf6c014a9475178bbd0eba905d 19-Aug-2014 Wenchao Tong <tongwenchao@google.com> Annotate @SystemApi on some WifiManager methods.

Bug: 17112931
Change-Id: I5980bc46bc1f16316caecd7fcc6cd771b8ca6cdf
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
c216c473eb50e16ab6c6361bd0c9232d5bfaeb39 07-Aug-2014 Chelsea Derrick <chelsead@google.com> Revert "Changes in framework for WIFI_CREDENTIAL_CHANGE broadcast. [DO NOT MERGE]"

This reverts commit 41158d90a69cae2a9c4ced0e04f235e8cfef5259.

Bug: 16871063
Change-Id: I93623be92f2de41789b16827867f3f95bf0480c5
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
e75c0b8e3becd9f875679a5240f3b1e26d089a3f 07-Aug-2014 Chelsea Derrick <chelsead@google.com> Unhide broadcasts for WiFi network changes.

This change will fulfill the same role as ag/487624, which unhid other broadcast
constants (and is being rolled back). We can leverage the existing broadcasts
in this CL rather than introducing new ones. They just need to be exposed.

Bug: 16871063
Change-Id: I91462851c8016ed962cdafa54e9ec938d52c84b6
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
4eeecb25509f91ac7a6e2cde76dac782fbec5360 26-Jul-2014 vandwalle <vandwalle@google.com> introduce WifiConnectionstatistics

This CL is dependent on I10584a447fecd977df3eefd8e2cc028bd26ec0e3

Change-Id: I51fbbf062feb22c5f16b438675519064cc43e160
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
758bdf4a915c313f1c3bef0b95b494c91f363f03 17-Jun-2014 Wenchao Tong <tongwenchao@google.com> Add a new SystemApi, getPrivilegedConfiguredNetworks(). Part 1 [DO NOT MERGE]

This is very similar to the existing
WifiManger.getConfiguredNetworks(), but it returns real preSharedKey.
This API is only used by system application.

Bug: 15703353
Change-Id: If3eaca3286e77b780272f42a28772d1d8d39db65
(cherry picked from commit 775bf6ae5d052948bcb60eaf89defa9105d7077c)
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
cdd5858e481fb0087c40c5997a9fa1446b326165 18-Jun-2014 Wenchao Tong <tongwenchao@google.com> Changes in framework for WIFI_CREDENTIAL_CHANGE broadcast. [DO NOT MERGE]

* Only allow system app to send/receive
WIFI_CREDENTIAL_CHANGE.
* Define constants in WifiManager.

Bug: 15703353
Change-Id: I4bcc6bc82ec01952500eef3965cf81116bba693d
(cherry picked from commit f4a43f196e1132968a8add60efa4ae4558f8b010)
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
81e32da98f5a8ab11bb557f4f12de022ab59b48b 11-Jul-2014 Vinit Deshpande <vinitd@google.com> Unhide WifiAdapter APIs

Change-Id: Ia19ab4cfddddd3285ae9e0c5804f2cceda4cf063
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
c7cc37b3cd2a73882e75c74ff9ca2499011ce193 07-Jul-2014 Vinit Deshpande <vinitd@google.com> Introduce Wifi Adapters

This change extracts all the wifi interfaces on the device; and provides
its supported features.

Change-Id: I7fbdbec684d653a6e4bf851797e3065ce222e873
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
f5af4a972598611c46d4bf169919e23b7375a5a9 08-Jul-2014 vandwalle <vandwalle@google.com> add BSSID blacklist indicator

Change-Id: I6f5f437327de9516468386628095eb4cbee68472
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
ae81483a15bb3811cfc221970ea290599b43d4de 07-Jul-2014 Sky Faber <skyf@google.com> Enable ability for secondary users to scan for networks, but not forget.

Bug: 15437477
Bug: 14676589
Change-Id: I3f1956265f4877b8c3cba138628b7393c393d175
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
d524c78d9358e2fa1e67124468cffa5284870c62 18-Jun-2014 vandwalle <vandwalle@google.com> initial tuning

Change-Id: Iffe899225899e7805478a507ce270d537dc84abd
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
5fb7bf5fdb93831684b00eb637ec15b5cf0d1e2d 22-May-2014 vandwalle <vandwalle@google.com> make verbose logging a wifimanager hidden API

Change-Id: I325f6ea9f1a6c16dbee9aca641cad7ed3bcd7d2c
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
674ca8a1f47c07033645a1016e68a2e82597e2fa 21-May-2014 Vinit Deshpande <vinitd@google.com> Make Wifi WPS API available on application layer

Un-hide WPS methods (and required interface classes, etc.) of WifiManager to
enable Apps to start/stop the WPS procedure, add a patch for WPS method
KEYPAD to avoid early failure callbacks. (Methods PBC, DISPLAY, KEYPAD
tested on 4.4.2_r2.)

Change-Id: I25aafdc4b637c87d754d4fdb70e40a34a569b738
Signed-off-by: Olaf Stoyke <o.stoyke@avm.de>
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
94f77dbb025f0182f2fe816b2a00ffa1cd2becfc 10-Apr-2014 Navtej Singh Mann <navtejsingh@google.com> Fixed bypass of ConnectivityInternal permission

Removed public function 'getWifiStateMachineMessenger' of
WifiManager to fix bypass of ConnectivityInternal permission
by application, which is security concern

Bug: 13749822

Change-Id: I3ae73e33b77ee8ae0133ca9dc8cc03c504f09e40
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
f9cb86aebe9647e0fe0137fc198ba16c017445c6 09-Apr-2014 Robert Greenwalt <rgreenwalt@google.com> Replace LinkCapabilities with NetworkCapabilities

Also remove unused LinkSocket and LinkSocketNotifier.
bug:13885501

Change-Id: Id426e31b201fa4f29109b5fea485d8efb34519d3
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
2517be5b72904ddaee27eb1243fdc5dc4782ebf5 04-Apr-2014 Andres Morales <anmorales@google.com> Merge "Add calls for NFC WSC token creation"
738803fee62a98f244250996380820c4923e7f7b 06-Feb-2014 Yuhao Zheng <yuhaozheng@google.com> Add new API to scan a given channel set

Create new (hidden) APIs to scan a specified channel set. This is mainly for
location service for now, as doing frequent full scans (including DFS channel)
kills battery.

This set of new APIs contains:
- API to query available channel list for scanning, and DFS channels are marked
- API to scan a specified channel set

Selective scan results are returned in the same way as normal full scan ones.
In order not to intrude full scan results, BSS_FLUSH is NOT performed before a
selective scan. Therefore, selective scan results may contain results that's not
in the given channel set, and post-filtering may be required for location
service use.

Bug: 12610436
Change-Id: Icced18dd9b54f6dd92c0c2874d31518d56af8163
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
b2e6bfd0f0fc675b253ce081d97ca192422a7495 17-Jan-2014 Andres Morales <anmorales@google.com> Add calls for NFC WSC token creation

Expose interface for generating Wifi Simple
Configuration tokens from supplicant.

Change-Id: Ie310a32f529c0330340e045aee561dc434aeee3e
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
ffadfb9ffdced62db215319d3edc7717802088fb 07-Dec-2013 Vinit Deshapnde <vinitd@google.com> Move Wifi/P2p service components under services

Some methods need to be public, since frameworks/base complies before
frameworks/base/services; and services takes build dependency on base.

Similar issue exists with WifiEnterpriseConfig constants.

Bug: 9907308
Change-Id: Ied0e3dee0b25c939067dbc66867a9814b3b3b68e
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
6090995951c6e2e4dcf38102f01793f8a94166e1 19-Nov-2013 John Spurlock <jspurlock@google.com> Remove unused imports from frameworks/base.

Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
d528d48e5d8444de0730d62b9f621b9cc2df5fbd 08-Nov-2013 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of c3eef190 to master

Change-Id: I36fd3c7fcbb13e47e27ffc340484c03b5a553bb1
a029ea131836725b050e1a7550aa171b68171522 26-Sep-2013 Robert Greenwalt <rgreenwalt@google.com> Add BatteryStats for Wifi Batched Scanning.

bug:10690989
Change-Id: Ia39b715ee6d5733970095bc76de0ed40ff8208c0
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
98e1797367ca8cd8b8476f6befdb55f81cd13e19 29-Aug-2013 Narayan Kamath <narayan@google.com> Remove captive portal code that has no effect.

Note that this CL does not change any behaviour.

At the center of this change is
CaptivePortalTracker#detectCaptivePortal(), which does nothing
except call back into ConnectivityService. Removing it allows us to
simplify code in ConnectivityService. It also allows us to remove
ConnectivityService#captivePortalCheckComplete which was only ever
called in response to this method.

While this does not change any behaviour, it preserves existing
bad behaviour, i.e, that the CAPTIVE_PORTAL_CHECK NetworkInfo
state does not correspond to actual captive portal detection.
We transition into that state and immediately (and unconditionally)
out of it and into CONNECTED.

Change-Id: Ib3797f956d2db5e3cacaaa53e899d81aa8e958af
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
cb2fe96f2c2b754bb2377acd3be46d62216251fa 04-Oct-2013 Robert Greenwalt <rgreenwalt@google.com> Un-deprecate getDhcpInfo

Replacement api isn't available.

bug:10003785
Change-Id: Ibe981ae90e1c6c2f1b65fa225443ae4cc92c2a3a
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
f31a78977401b155c0781dfe7d7cb6b7b38543c0 20-Sep-2013 David Christie <dnchrist@google.com> Merge "Clear names from externally supplied WorkSources to WifiManager (b/10733757)" into klp-dev
a31510e47a0f0c2525702c2f10a85064322a28f2 20-Sep-2013 David Christie <dnchrist@google.com> Clear names from externally supplied WorkSources to WifiManager (b/10733757)

Change-Id: I36102f13962df2093c1e35fb40081ead647eff32
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
540784f903c8a9e808ef88d14fe5e1227bda4561 20-Sep-2013 Robert Greenwalt <rgreenwalt@google.com> Merge "Cleanup the shutdown of BatchedScans." into klp-dev
82f4218c0d5dbc10404db8cf31f0284140d80175 20-Sep-2013 Robert Greenwalt <rgreenwalt@google.com> Cleanup the shutdown of BatchedScans.

Fixes binder-death as well as disambiguation when an app has multiple requests in.

bug:10641931
Change-Id: Ib701d531fa51e7e2a027848cfdfcad3b47056923
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
b481dae2f5238252d81dafeecf13d5f387824689 12-Sep-2013 Vinit Deshapnde <vinitd@google.com> Merge "Fix invalid Wifi Network system crash" into klp-dev
126755cf41710d52554d747f3d3667eb0a3c2694 06-Sep-2013 Robert Greenwalt <rgreenwalt@google.com> Fix Wifi Batch Scanning

Some parsing bugs, more debug logs, etc.

bug:9301872
Change-Id: I245ab00955e245be81a019750be0f8491aa505fd
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
95d785346b4dae808a2d8f77356175e55a572d96 11-Sep-2013 Dianne Hackborn <hackbod@google.com> Fix issue #10688644: Java crash in com.android.phone:

java.lang.SecurityException: Operation not allowed

There was a situation I wasn't taking into account -- components
declared by the system has a special ability to run in the processes
of other uids. This means that if that code loaded into another
process tries to do anything needing an app op verification, it will
fail, because it will say it is calling as the system package name but
it is not actually coming from the system uid.

To fix this, we add a new Context.getOpPackageName() to go along-side
getBasePackageName(). This is a special call for use by all app ops
verification, which will be initialized with either the base package
name, the actual package name, or now the default package name of the
process if we are creating a context for system code being loaded into
a non-system process.

I had to update all of the code doing app ops checks to switch to this
method to get the calling package name.

Also improve the security exception throw to have a more descriptive
error message.

Change-Id: Ic04f77b3938585b02fccabbc12d2f0dc62b9ef25
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
10652a95b16909acf26f31cdafc0c6aa09212f26 10-Sep-2013 Vinit Deshapnde <vinitd@google.com> Fix invalid Wifi Network system crash

There is some validation code that is eventually detecting that we
have an invalid network; only the result is a crash. The right thing
to do is to do validation up front; and fail calls if the network
configuration looks invalid.

Bug: 10571289

Change-Id: I100506b777a34b26ac9a310ba508140560f87a90
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
4d0145add16bccb6b0f4a7d767a0b052f1b6bb04 19-Aug-2013 Vinit Deshapnde <vinitd@google.com> Merge "Expose WifiManager.setTdlsEnabled public API" into klp-dev
b676a4a70db36bdd6ce5060d16f453f797378098 17-Aug-2013 Vinit Deshapnde <vinitd@google.com> Expose WifiManager.setTdlsEnabled public API

Bug: 10221775

Change-Id: I559e4a2afd525a03c8a13fd151eca4638426d03e
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
8e628dadc321bf49e93e482540df87431d014b01 15-Aug-2013 Robert Greenwalt <rgreenwalt@google.com> Modify wifi BatchedScan.

Add pollBatchedScan API to allow forced retrieval.
Modified driver API, adding MSCAN, removing nextCount and making
the results look more like normal manual scan results.

bug:9301872
Change-Id: I58bce0624c36e2ad8d3c3f5defcb4d4e155dc8f9
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
0451d59ba2d768e7653752028910f00a6c96e64e 02-Aug-2013 Robert Greenwalt <rgreenwalt@google.com> Add support for batched wifi scans.

bug:9301872

Change-Id: I5a7edfdbd2b78a65119d11acad491eae350c0870
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
6942a1200cf8872e67e8e0a8ebc9e2e65531595b 26-Jul-2013 David Christie <dnchrist@google.com> Add WorkSource capability to WifiManager for starting a scan.

Change-Id: I011bf3b91fbddaba7ab0128bb03d27d90b8a886f
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
64f0d5ba158e9135bcd48d64a1c0db282a4628ba 12-Jul-2013 Vinit Deshapnde <vinitd@google.com> Allow enabling TDLS on specific routes

This change exposes couple of internal APIs to enable TDLS between local
machine and a remote machine. The implementation translates client provided
remote IP to a MAC address using system ARP cache, and then instructs the
driver to enable TDLS with that endpoint. Another API takes application
specified MAC address.

Bug: 8538898

Change-Id: Ida343fc42ba3a817a4f380255596e7fb7fcdfb9b
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
89710842585404ea33f941afeb2c321e706005e9 25-Jun-2013 Robert Greenwalt <rgreenwalt@google.com> Fix power issues around wifi scans.

- Sending a broadcast indicating when scan requests could be serviced so that
apps don't request scans we won't do anything with.
- Fix our batt stats accounting so we only count it if we send the request to
the driver.

bug: 8868201
bug: 9496690
Change-Id: I64a4f1c294c848ac64c50d8854ed4a6a1a47f603
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
aee3d28763230e54d9ce250c17744858e79bf798 13-May-2013 Robert Greenwalt <rgreenwalt@google.com> Remove wifi scan-always dialog.

Removes intent type for dialog and Setting on whether to show
dialog.

bug:8907190
Change-Id: Id37e03126d4afdfd7d921132a57233b84603c8bd
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
7ea33eac4b57aabf9326d60f52e3ed85217ac846 19-Apr-2013 Irfan Sheriff <isheriff@google.com> Fix API name

Address council feedback

Bug: 8656932
Change-Id: I92972fc3672afbc38cdeee628c04b639053f7cf3
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
7b7beb7952440ee2e255694b7b19e60abae93dc0 21-Mar-2013 Irfan Sheriff <isheriff@google.com> Notify user when wi-fi is toggled about scans

We let the user know when he turns off Wi-Fi that scans will continue to
be available.

User has the option to turn off the dialog and not receive this in the future.

Bug: 8141918
Change-Id: I115ce2ac57125b8ffbb34245dc25effd4b3bebb0
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
1ef840cdc785d0e8a07e317cc1d7af42a0d0185d 13-Mar-2013 Irfan Sheriff <isheriff@google.com> Add API to control scan always mode

Bug: 8141918
Change-Id: I1e5e45e514726c2cbfd86e747123e477e00fd7ed
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
c808a1955f7571108e8c22502897ed82c69a7c3b 05-Mar-2013 Irfan Sheriff <isheriff@google.com> Fix client tracking

Bug: 8311559
Change-Id: I167fcdd5c3da4d46b7d99e18041036023c8c60f7
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
302b06de7ea7ac97ac4a2189213a1133220bfdc8 22-Feb-2013 Irfan Sheriff <isheriff@google.com> Fix leak in WifiManager

Avoid leaks from having a channel connection per manager instance

Bug: 8254124
Change-Id: I10de91d7e5a775bc14bbab245734717d3b2f90d5
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
bcc97ca43a339c3356b5c8d9eaf1cbdfb0de3165 21-Feb-2013 Irfan Sheriff <isheriff@google.com> Clean up scan handling

Remove obsolete active/passive scan handling - drivers always
do active scan.

Also, remove AP_SCAN hack for preventing connections and use
the TYPE=ONLY scan.

Bug: 8158647
Change-Id: I8f70e19219ad789b7501a40529bcd6b6524739e8
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
5e45ee6752528791deb66b83d76250685de15d47 25-Jan-2013 Dianne Hackborn <hackbod@google.com> App ops: you can now turn off operations.

Also add new ops for calendar and wi-fi scans, finish
implementing rejection of content provider calls, fix
issues with rejecting location calls, fix bug in the
new pm call to retrieve apps with permissions.

Change-Id: I29d9f8600bfbbf6561abf6d491907e2bbf6af417
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
321020b7e08215b813f15caaad1c59ac215831c6 09-Nov-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Remove DhcpInfoInternal"
4717c261b2c670d5c0925e3527a864aa52db6ac0 31-Oct-2012 Robert Greenwalt <rgreenwalt@google.com> Remove DhcpInfoInternal

First step in accepting a set of patches.
bug:6799630

Change-Id: I6c894c60aeb3022960c2aaa45451bb1dde2b493b
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
cd3d75f35db669f9671d251a36b51cef8a7ca009 07-Nov-2012 Irfan Sheriff <isheriff@google.com> Re-use existing thread

Bug: 7377541
Change-Id: I097f2288ebfc2b4a9782cbced19d9c36d0703acb
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
939caef712f306a1c80ea27e9f41ef6e3ea9e0f1 16-Oct-2012 Irfan Sheriff <isheriff@google.com> Fix NPE

Bug: 7357742
Change-Id: I4d12d137b9d5ebf5c6739cbd4405de3f90a3d846
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
fa3b6258bedf6a66b676020f0ff531d4c9c579eb 11-Oct-2012 Irfan Sheriff <isheriff@google.com> Cleanup on async disconnect and finalize

Bug: 7326726
Change-Id: I6cca47a70cc0f29c68f922618cdcc181fb919a05
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
59358536d2f14b27cdc7386daeabc2b6dca8e177 25-Sep-2012 Irfan Sheriff <isheriff@google.com> Update doc on getConfiguredNetworks

BUg: 7223590
Change-Id: Id92699ae48ea75f94638fcc3bd776b863911985b
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
da6da0907b28d4704aabbdb1bbeb4300954670d1 16-Aug-2012 Irfan Sheriff <isheriff@google.com> Captive portal handling

We now notify the user of a captive portal before switching to the network as default.
This allows background applications to continue to work until the user confirms he
wants to sign in to the captive portal.

Also, moved out captive portal handling out of wifi as a seperate component.

Change-Id: I7c7507481967e33a1afad0b4961688bd192f0d31
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
35bbe27d58ccf01ffd170b0f617a568bc843a49e 24-Aug-2012 Irfan Sheriff <isheriff@google.com> Fix permission issue on channel

Change-Id: I57f5d128dc2e2aa3bff93e82456f73cb96851f82
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
f6307820c88e694e102824225b9d8caa6de75a30 14-Aug-2012 Yuhao Zheng <yuhaozheng@google.com> CTS test for WiFi watchdog - framework support.

The new WiFi watchdog requires kernel/driver to export some packet loss
counters. This CTS tests whether those counters are correctly exported.

Change-Id: I41999676f8488e86f35f1f8214ce668f1a2b5638
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
88759bbd31e05a4163e1f8e72804ca83000afd53 03-Jul-2012 Irfan Sheriff <isheriff@google.com> Update WifiManager API

Use feedback based on NSD to update WifiManager API

Change-Id: I0c1dc74f7e2fa7cd697a995b7194e3e0366d7981
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
2c02da2bc62c4dfef684ea381be02a4e568b73d0 02-May-2012 Irfan Sheriff <isheriff@google.com> Fix reference counting of wifi locks

Bug: 6105898
Change-Id: I7368de91fa4aa63fd97dda0ee91d810aaaa53d8b
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
1b6989cdc212aec7579489a362f99b791abe7352 22-Mar-2012 Mike Lockwood <lockwood@google.com> Merge commit '74803dc'

Change-Id: I35a76a27390c75a47e6387fb0ee853a5a689a56f
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
db9e6937f18ceeb5715954c828ac4a51e383d140 03-Mar-2012 Irfan Sheriff <isheriff@google.com> Merge "Enhance WPS"
86a5f5b9afa97a4ed6f5a2466fb9359ea131e2fb 29-Feb-2012 Irfan Sheriff <isheriff@google.com> Enhance WPS

- Add a cancel API
- Add more error reporting on WPS
- Fix network status reporting that showed up with new implementation

Change-Id: I499796c80d16d18df95fb702d029aa7e7283b603
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
ab26407124cf861eacfe7bf0f2a1ef25f4b3a7bd 02-Mar-2012 Irfan Sheriff <isheriff@google.com> Fix connect on a network id with zero

Pass invalid network id on arg1 when using a config object

Change-Id: I8ef047c951911324d9bf79b744c3e7122bb73bae
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
d3975a917799b85cacaf382b65c5832813066b51 24-Feb-2012 Irfan Sheriff <isheriff@google.com> Fix WifiManager async API

Fix the current asynchronous API to use callback like the way
was done with p2p API.

In the process, fix the use of WPS

Change-Id: Ib6f8714cf51b3525b655948268804e7eaaf17587
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
07573b32494acbabd21979d8b9584c1ed3f7a6ad 28-Jan-2012 Irfan Sheriff <isheriff@google.com> Improve Wi-Fi hand-off

When Wi-fi connects at L2 layer, the beacons reach and the device
can maintain a connection to the access point, but the application
connectivity can be flaky (due to bigger packet size exchange).

We now use Watchdog to monitor the quality of the last hop on
Wi-Fi using signal strength and ARP connectivity as indicators
to decide if the link is good enough to switch to Wi-Fi as the uplink.

ARP pings are useful for link validation but can still get through
when the application traffic fails to go through and thus not best indicator
real packet loss since they are tiny packets (28 bytes) and have
much low chance of packet corruption than the regular data
packets.

Signal strength and ARP used together ends up working well in tests.
The goal is to switch to Wi-Fi after validating ARP transfer
and RSSI and then switching out of Wi-Fi when we hit a low
signal strength threshold and waiting until the signal strength
improves and validating ARP transfer.

Change-Id: Ica593291ec7772da892f03cf45b649635b730c47
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
ea933cb3fddbf5971dd4c62090edabbed295c3a7 09-Dec-2011 Irfan Sheriff <isheriff@google.com> Change RSSI notification levels to 5 in framework

At some point the system UI switched to using 5 rssi levels
while the framework only broadcasts a change for 4 levels.

Hence RSSI change can be slow to be displayed on the UI, fix this

Bug: 5732700
Change-Id: I21700f96ba7a8dd678fb2ccfff8ef59f9b696666
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
651cdfcbac6245f570475991588ddc2d30265e8d 07-Sep-2011 Irfan Sheriff <isheriff@google.com> Unhide wifi p2p API

Bug: 5247957
Change-Id: Id93e30c0cb60f361ba13a840de8f843415777336
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
489a9d81fd1458940e1ec01ba0cef36843732479 07-Sep-2011 Irfan Sheriff <isheriff@google.com> Rename WpsConfiguration to Wps

For the purpose of exposing the class as a storage for Wps
info with p2p, it is better to just call it Wps

Bug: 5247957
Change-Id: Iaebef958dd8f08fdbeb4b9d7fa5ad5527400710d
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
8dc6a1b2823f374a176fb21b8a174664a5f825fa 27-Jul-2011 Isaac Levy <ilevy@google.com> Watchdog notify on explicit connect

Notifies when user explicitly clicks on wifi dialog.

Change-Id: I5eee37d68b422d748d41e9384d5006482a223dc5
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
3550ac919c492f3fbaebbf868f4df0d1ea7ee784 07-Jul-2011 Isaac Levy <ilevy@google.com> Adding WifiInfo object in CONNECTED broadcast

Adding a parsable wifiinfo object in Connected broadcast, public api.
The connected broadcast only occurs on successful setup on the wifi
interface, so in normal use is very infrequent (once if the wifi
sleeps, or once at new hotspots, etc...)

WifiInfo objects are small, <10 ints, <5 short strings, and contain info
that could be useful to listeners, such as SSID.

The alternative is to the poll the Wifi Manager, using getConnectionInfo.
Because the Wifi Manager can update state in its own thread, polling the
Wifi Manager might result in an info object that's out of sync from the
received broadcast.

Change-Id: Iafcec77f45dd094ea84e6022b7a40e8952ae8137
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
e526cfb490a4c855d3b6c89096c9f606b02190f8 20-May-2011 Irfan Sheriff <isheriff@google.com> am 5b9ceeba: am a4815c0e: am 9c9088a5: Merge "Move softap config handling to WifiConfigStore" into honeycomb-mr2

* commit '5b9ceebafd36db4491a49c1f00750ce50c4d4433':
Move softap config handling to WifiConfigStore
ffcea7ae7316ab748a49f5e8f6c6798356f35719 11-May-2011 Irfan Sheriff <isheriff@google.com> Move softap config handling to WifiConfigStore

Move softap config to flat file and read/write on a seperate handler thread

Bug: 4391796

Change-Id: Iafe43200d7f829df7ced20a4e7b0ed451ad22a05
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
d710fb500c121b3f9563ccfbe488f7c9d3ec4985 16-Mar-2011 Kenny Root <kroot@google.com> Update WakeLock-related docs to mention permissions

android.permission.WAKE_LOCK permission is required to use WakeLock or
WifiLock, but nowhere is it mentioned that you must declare that
permission to use it.

Change-Id: Ib5f5294d37e39169fe5678743f380d95c4e5a842
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
4aeca7c5908387bc7efb0785830aea1053264062 11-Mar-2011 Irfan Sheriff <isheriff@google.com> Backup and restore IP and proxy settings

Bug: 4081954
Change-Id: I27266637c6ade0c5c8242792176d1edae0983446
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
ebe606fccd9293674273d5f73246e0e8e6e6ddcf 24-Feb-2011 Irfan Sheriff <isheriff@google.com> Using AsyncChannel for wifi connectivity

Change-Id: Ieee5a3a1a739238d8a6659493684f1be0cbea691
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
227bec49157bc496f7c9e8e8f63c12728a448922 16-Feb-2011 Irfan Sheriff <isheriff@google.com> data activity reporting on wifi

Initial checkin, need icons to complete the feature

Bug: 3412258

Change-Id: I9a3ecc8159cc314d84707065dafe23d402409a84
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
652bc96444b0a82d34e6c3766b7862effac11adb 16-Feb-2011 Irfan Sheriff <isheriff@google.com> Make high performance wifi lock public

gtalk and sip already use the high perf lock. Improve
the comments and make the constant public.

This will allow applications that use voice or video
to keep the connection good even when device screen
is off

Change-Id: I3608cd478175c773bd835b26a686a61b8baf5471
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
fcb659b66756ac02bd1491ae1365b27e8509a890 16-Jan-2011 Irfan Sheriff <isheriff@google.com> Report WPS overlap error

Add certification requirement to report an overlapping
WPS session failure to user

Bug: 3354319
Change-Id: I8c51bc20c2ec8e8d92a86ed2dfe2a3ede9c56885
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
e4c56c9655bf936454e2f3ee434aacb403876c7d 13-Jan-2011 Irfan Sheriff <isheriff@google.com> Fix WPS to provides immediate feedback

If WPS is already active, we drop user's request
and convey an in progress message

If WPS fails to start, a failure indication is conveyed
to the user

Bug: 3316078
Change-Id: I238c55973cb29cf5c1be66197ffcb4978316cb89
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
02fb46a297c4f645f2a30b574151401dd0978521 08-Dec-2010 Irfan Sheriff <isheriff@google.com> WPS fixes and refactor

- Allow IP and proxy set up for WPS
- Use string for WPS pin to avoid losing leading zeros
- Add a seperate WPS state machine and WpsConfiguration class

Change-Id: I87f43fff8bba0ae8ff02e5fc495a8bc628a8c8cf
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
be9ee6a498afc08df1ca6d796b703b703b25c9a9 02-Dec-2010 Irfan Sheriff <isheriff@google.com> Fix configuration change handling

When IP or proxy config changes, we now reconfigure
the network and inform connectivityservice.

Also, fixed the naming for changes on configured
networks.

Bug: 3237735
Change-Id: I2a94b3158b6b0e0d27442d7fd525a8a23f0497f8
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
36f7413dabfab50699135019ba55151e9227f59d 05-Nov-2010 Irfan Sheriff <isheriff@google.com> add frequency band control API

Change-Id: I6cc6cdef27d493d4ef76cec17fdca7e49d9dc8d7
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
ed4f28b492da3ff140bbaabbbda798a08c40ea5b 30-Oct-2010 Irfan Sheriff <isheriff@google.com> Set country code in the driver and remove channel set

With dual band support, using country code
settings is the way to go

Bug: 2936741
Change-Id: I760dce4c43b1af19ee205c28f0d287420c8d9e85
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
5876a4273e67271f0eca607af9520f7e5abbe4f3 13-Aug-2010 Irfan Sheriff <isheriff@google.com> WifiLock extensions for high performance mode

Add extension to WifiLock to allow apps to operate
in high performance mode (high power & disable suspend
optimizations for battery consumption).

Bug: 2834260
Change-Id: Id394d265b9876bf0230efb3d222056e9b80b44fd
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
f235c5ab91b040b88ceb61beb819e15f1b19e9e4 22-Oct-2010 Irfan Sheriff <isheriff@google.com> add wps pin from device capability

Bug: 3119043
Bug: 3112178
Change-Id: Iaae6bcf53e11f7fac82b3c604ddc27ff05e00542
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
5ee89800bee7c6c755778795a536e0e2f12b85ff 17-Sep-2010 Irfan Sheriff <isheriff@google.com> Add Wifi Protected Setup support

Add WPS PBC and WPS pin method support with pin obtained
from AP

Bug: 2277571

Change-Id: I6ff8e447ab8c5e59456a55152588fd4d6386c610
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
f61101f6266be243c481d163b95e65d67b8d1669 17-Sep-2010 Wink Saville <wink@google.com> Add LinkCapabilities

Change-Id: Ia1599ade936b79f12526252c0a2e6b453abb136e
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
e746f03c6c8b8d0897d322ab524d545ace200fcd 14-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 53686433 to master

Change-Id: I27004dc464f5771d3205ae5757c6eccc5b16854d
7e9f4eb2608148436cef36c9969bf8a599b39e72 11-Sep-2010 Dianne Hackborn <hackbod@google.com> Track client requests through location manager.

This fixes a problem where applications could ask the location
manager to do very heavy-weight things (like... say... update
location every minute), which would get accounted against the
system instead of the application because ultimately it is the
system making the heavy calls (wake locks, etc).

To solve this, we introduce a new class WorkSource representing
the source of some work. Wake locks and Wifi locks allow you
to set the source to use (but only if you are system code and thus
can get the permission to do so), which is what will be reported
to the battery stats until the actual caller.

For the initial implementation, the location manager keeps track
of all clients requesting periodic updates, and tells its providers
about them as a WorkSource param when setting their min update time.
The network location provider uses this to set the source on the
wake and wifi locks it acquires, when doing work because of the
update period.

This should also be used elsewhere, such as in the GPS provider,
but this is a good start.

Change-Id: I2b6ffafad9e90ecf15d7c502e2db675fd52ae3cf
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
37e65ebb7eb932e1a144b1cab262e11ca5fd109b 30-Aug-2010 Robert Greenwalt <robdroid@android.com> Rename NetworkProperties to LinkProperties

Also add copy constructors and use them when giving out data.

Change-Id: Id320eb8fb91d0bd250305ce7bb4f628570215615
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
e498475b187277309c81b38240c7e71ec049e369 19-Aug-2010 Irfan Sheriff <isheriff@google.com> asynchronous driver commands

Make some of the common driver commands scan/disconnect/reconnect/reassociate
asynchronous. We already have broadcasts to indicate results.

Change-Id: I343c6be077fb11a3d488e586ab10ab2373b269d8
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
4c0d81b8add0372cc7194b17cc6d2bfc58baacd1 19-Aug-2010 Daniel Sandler <dsandler@google.com> Fix divide-by-zero when calculating signal level over a large output range.

Change-Id: I17eff6fb458532465a836414e1973a8d5b7c715b
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
4d32d81bd7abb77ab9663f4f800bd96dca0c0e03 18-Aug-2010 Irfan Sheriff <isheriff@google.com> Fix SDK build

Add the tag and documentation when we open up the high perf mode

Change-Id: I921e46a7519561e59fb917d08a36dd1d3d2fc7f3
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
8c11e952305327183db9f7be719e4c94fde15a7c 13-Aug-2010 Irfan Sheriff <isheriff@google.com> DO NOT MERGE WifiLock extensions for high performance mode

Add extension to WifiLock to allow apps to operate
in high performance mode (high power & disable suspend
optimizations for battery consumption).

Bug: 2834260
Change-Id: I8b33d307f3d569bc92ba2139b9ed224ffc147547
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
e04653cbd0e8303eba92088344312b827e6b0bab 09-Aug-2010 Irfan Sheriff <isheriff@google.com> Asynchronous API

Add asynchronous API for simplified connect, save
and remove.

Add a SUPPLICANT_CONFIG_CHANGED_ACTION broadcast to
notifiy a supplicant configuration change.

Change-Id: I69ae116246094de4a469cb2af5baf37e5ad4d6dd
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
0d25534fed91f636def5776ddc4605005bd7471c 28-Jul-2010 Irfan Sheriff <isheriff@google.com> Split WifiStateMachine from WifiStateTracker

Notifications handled in WifiService. WifiStateTracker tracks
state for connectivity service

Change-Id: Idb0cf494898d28712af0f95f9e60c5417cd4a053
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
a2a1b911a31dd94ee75e94845f762b91f1db1368 07-Jun-2010 Irfan Sheriff <isheriff@google.com> Refactor WifiStateTracker

Implement WifiStateTracker as a HSM.

Change-Id: Ic12fd78f1f183b5c4dea8ad2301002267ceff0cb
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
17b232b5b59ab91ab543b87e849583678a000f9b 24-Jun-2010 Irfan Sheriff <isheriff@google.com> Add setWifiApConfiguration interface

Bug: 2538623
Change-Id: I779044173a2fa0e9b851ea92aeec5ca25eb9c86f
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
9ab518ad793385f8405edf19363fe825fb64f5f8 13-Mar-2010 Irfan Sheriff <isheriff@google.com> softAp framework changes

Remove AP persist settings
Add new netd interface
Handle errors
Handle AP config change
Bug: 2413908
Change-Id: I31a1221ef5479da8d4a2620f0f0ee0b62539bc69
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
5321aef4a22daef6ed01ed48d936cdd82f2e38b7 12-Feb-2010 Irfan Sheriff <isheriff@google.com> Wifi AP framework changes first pass

Bug: 2421638
Change-Id: Ic5ea8f7560a7fe5e1b0769daa5d92cc33eefc692
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
e2d155a51e68694e17fa6e27d05c928215a5dbcf 21-Oct-2009 Robert Greenwalt <robdroid@android.com> Add a new API for initing Wifi multicast filtering

Gets rid of the old method which generated Log noise.

bug: 1973855
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
4a51c20ce607c74914f90fd897f04080121ac13b 22-Aug-2009 Dianne Hackborn <hackbod@google.com> I am getting tired of the java doc warnings, so fix them.

Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
0cbdb39991d65909e00700db0c8e9e9447365882 30-Jul-2009 Robert Greenwalt <robdroid@android.com> am 41c10433: Fix MulticastLock API to match WifiLock API.

Merge commit '41c104339951e0e5e78240e1f48455c21b3ba5fd'

* commit '41c104339951e0e5e78240e1f48455c21b3ba5fd':
Fix MulticastLock API to match WifiLock API.
41c104339951e0e5e78240e1f48455c21b3ba5fd 30-Jul-2009 Robert Greenwalt <robdroid@android.com> Fix MulticastLock API to match WifiLock API.

Adds option to make lock refcounted or not. Fixes 2017680.
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
6811355d9683412cb3651e75c59c3256ceaddcec 09-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 463aacfb: Merge change 6661 into donut

Merge commit '463aacfbd220c9ef2f6ed915d54092289fdac05b'

* commit '463aacfbd220c9ef2f6ed915d54092289fdac05b':
wifi: WifiManager.startScan() will now do passive scans by default.
a5ec95cdb1a7d2024249277dff1f99d0046c9b56 08-Jul-2009 Mike Lockwood <lockwood@android.com> wifi: WifiManager.startScan() will now do passive scans by default.

Active scans will only happen if a hidden AP is in use, or if the new method
WifiManager.startScanActive() is called.
This fixes some audio playback problems with bluetooth A2DP.

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
fca3ae1517b19c3cd40b761cd4bc134e98c0c565 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 3bc64a2c: Merge change 6088 into donut

Merge commit '3bc64a2cb97da7bf7dc203416ad6c7d86c5925fc'

* commit '3bc64a2cb97da7bf7dc203416ad6c7d86c5925fc':
WifiManager: Limit the number of WifiLocks that can be active simultaneously.
617750604c69e6068f68266d0e30324273aa990e 02-Jul-2009 Mike Lockwood <lockwood@android.com> WifiManager: Limit the number of WifiLocks that can be active simultaneously.

This is to prevent a bad app from using up all the global references in the
system process due to allocating too many DeathRecipients.

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
96cdc61c69aa735e65295a50e3e2922425b3c877 28-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 1e2e44e9: Merge change 2365 into donut

Merge commit '1e2e44e900cb9a25d548e27a20d65292a7f321bc'

* commit '1e2e44e900cb9a25d548e27a20d65292a7f321bc':
Fix wifi multicast API for public use.
Revert "Bug fixes and performance improvements"
fc1b15cfbfc5f69235ec1f367abd7a909381cd05 23-May-2009 Robert Greenwalt <robdroid@android.com> Fix wifi multicast API for public use.

Applying API review comments and taking it public.
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
b5010cc3c33c74cc406a70f34f93d330a3f0db6a 22-May-2009 Robert Greenwalt <robdroid@android.com> Add carrier/mcc factors to wifi-channel decision.

Uses ro.carrier and MCC when available to try to set
(non-persistingly) the number of allowed wifi channels.
Part of the fix for 1625953.
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
58ff0217a617d5b03d18f0ef532f254f8ba6de2b 20-May-2009 Robert Greenwalt <robdroid@android.com> Increment BatteryStatsImpl's VERSION.
That'll make it stop trying to interpret older records with the new format.
Also applied other comments involving name changes to remove un-needed 'Wifi' labels in WifiManager API, etc.
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
5347bd4cda2b6afc18f8acab48e52131f35ed13c 14-May-2009 Robert Greenwalt <robdroid@android.com> Add wifi multicast filter api (enable/disable).
Fixes 1833432. Automatically re-disables any request when the app
exits/crashes. Also hooked into Battery Stats for power managment analysis.
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
99001278289036a3c645e599ed832943ff1b6e15 14-Apr-2009 Eric Shienbrood <> AI 145980: am: CL 145881 Adding on to CL 145383, unhiding some additional methods and constants
that ought to be exposed. Hid and deprecated the single-arg public
constructor for NetworkInfo, and modified a CTS test that was testing it.
Ran the android.net test package to make sure it still works.
Original author: ers
Merged from: //branches/cupcake/...

Automated import of CL 145980
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/wifi/java/android/net/wifi/WifiManager.java