1185 Commits

Author SHA1 Message Date
Etan Cohen
3da7357951 Merge "NAN: baseline NAN manager for discovery." into mm-wireless-dev
am: e540b64aaf

* commit 'e540b64aaf58460f7930a5e4937cee660215c948':
  NAN: baseline NAN manager for discovery.
2016-01-15 01:29:48 +00:00
Etan Cohen
e540b64aaf Merge "NAN: baseline NAN manager for discovery." into mm-wireless-dev 2016-01-15 01:17:08 +00:00
Etan Cohen
20d329b08d 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
2016-01-14 11:34:07 -08:00
Bartosz Fabianowski
f9bf6da6cd Add WifiConfiguration.shared flag
am: 6fb0756d2f

* commit '6fb0756d2f59d70507919350f6192718b5d3f630':
  Add WifiConfiguration.shared flag
2016-01-14 17:24:52 +00:00
Bartosz Fabianowski
6fb0756d2f Add WifiConfiguration.shared flag
* Add boolean WifiConfiguration.shared, which indicates whether a network
  is shared (visible to and usable by all users) or private (visible to
  and usable only by the user who created it)
* Extend WifiConfiguration.configKey(...) so that when two users create
  private configurations for the same network, their configurationKeys
  will be different.
* Make AccessPoint.matches(...) take into account the shared flag

BUG=25600871

Change-Id: I4a4335fa3b4b4f850e16748583a29ab66992ddc8
2016-01-14 17:18:45 +01:00
xinhe
f7705c3ed6 Initial codes for Quality network selection
In this change list, the old WifiAutojoin module is
    refactored initially. The old WifiAutojoinController is
    replaced with a new WifiQualifiedNetworkSelector.
    WifiConfiguration, WifiConfigureStore and
    WifiStateMachine have been modified accordingly. The new
    network selection logic is refactored with a more clear
    and deterministci one. To refer to thedescribed in
    details, in "Quality Network Selection and Connectivity
    Scan Management in N". The link of the document is:
    https://docs.google.com/document/d
    /1JPTa2NEk-PgjCJ16fIrR6ohV-kDKveDlYDOeiMCB2_c

cherry-picked from 8d106780b6a638552749e54e169fc72537d4bccc
and make changes on WiFiConfigurationSerializer.java since
it is not on mm-wireless-dev
Bug:26012244
Change-Id: I44e454544b630b891c9a58a18b5a028edcce580f
2016-01-13 15:06:30 -08:00
xinhe
8d106780b6 Initial codes for Quality network selection [DO NOT MERGE]
In this change list, the old WifiAutojoin module is
    refactored initially. The old WifiAutojoinController is
    replaced with a new WifiQualifiedNetworkSelector.
    WifiConfiguration, WifiConfigureStore and
    WifiStateMachine have been modified accordingly. The new
    network selection logic is refactored with a more clear
    and deterministci one. To refer to thedescribed in
    details, in "Quality Network Selection and Connectivity
    Scan Management in N". The link of the document is:
    https://docs.google.com/document/d
    /1JPTa2NEk-PgjCJ16fIrR6ohV-kDKveDlYDOeiMCB2_c

Bug:26012244

Change-Id: I3df124c110e458e3b6bc29466b9046748d79582a
2016-01-12 16:29:43 -08:00
Randy Pan
a47f684020 resolve merge conflicts of 8c79fe5dc4 to master.
Change-Id: Id331e763f64ecbf8ed23764a487e32b94c4d3c09
2015-12-29 15:09:09 -08:00
Randy Pan
8c79fe5dc4 Correct WiFi exponential back off scan
Correct the comments for exponential back off scan. Only binary
exponential back off scan is supported.

Updated the API doc. A couple of un-related fields which were
not updated get updated as well.

Bug: 26236392
Change-Id: I5668092f393b564aa40904ed609a51aa16890614
2015-12-29 11:28:43 -08:00
Prerepa Viswanadham
46f5f53d28 WLAN wake reason accounting from driver.
Change-Id: I58e0594682bf0f1d5746e9a2d8ec3091a5bf550f
2015-12-16 17:54:39 +00:00
Andreas Gampe
e6748ce31f Frameworks/base: Use Arrays.toString
Fix a couple of cases where Arrays.toString should be used.

Bug: 19797138
Change-Id: I905fc79e63face9b26975320a92086c732bf6316
2015-12-14 12:04:26 -08:00
Mitchell Wills
075698c35f DO NOT MERGE Expose gscan exponential backoff API
Will be ignored until scan scheduling supports it

Cherry-picked from 2564d9a4efb2f3a44dac5ae1e5e437e5355d19cf
Change-Id: I9d392080e6ec8dfa9a998f6c04ec37f9c6dad0b2
2015-12-10 16:06:50 -08:00
Mitchell Wills
21c748d091 DO NOT MERGE Moved Wifi InformationElement parsing to a common utility class
Cherry-picked from 97c46ef28632f275665384d64cf42b698ca70255
Change-Id: Iaa0cfc39ac4df375f80f01cf59eb5f0d0ae61879
2015-12-10 16:06:50 -08:00
Mitchell Wills
a23840e7a4 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
2015-12-10 16:06:50 -08:00
Mitchell Wills
5374e36bb5 DO NOT MERGE Add missing ap threshold config for hotlists
Cherry-picked from ff4fdceafe4646998629587248fff22400f44765
Change-Id: I9e31e72560840ea57ab191e820acf8e3faf00c36
2015-12-10 16:06:50 -08:00
Mitchell Wills
d1ed98f833 DO NOT MERGE Check if link stats are supported when reporting activity info
Cherry-picked from 9a568e6f2f69cc923bbfc1ffb07c2f194acdb981
Bug: 23286362
Change-Id: I42c91d488acd39341a6874797788d3e5357f0270
2015-12-10 16:06:50 -08:00
Jan Nordqvist
255d41dce1 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
2015-12-10 16:06:50 -08:00
Jeremy Klein
b8c7badbb5 Mark WIFI_AP_STATE_CHANGED_ACTION and extras @SystemApi.
These will be used by Magic Tether within GmsCore.

Change-Id: I06691e69d256d0400d16a7bb63e3406fada7b5f1
2015-12-03 18:07:44 -08:00
Neil Fuller
568f4de11a Merge "Fix @code escapes" 2015-12-03 09:44:01 +00:00
Neil Fuller
71fbb81b14 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
2015-12-02 14:24:11 +00:00
Sungsoo Lim
0d3d1f825f Fixed typos: when when
Change-Id: I80c0b8817dcbed45071e42d9ffa88bae52a93a81
2015-12-02 14:50:36 +09:00
Makoto Onuki
a31ebbc439 Add DO API to get wifi mac address
Bug 25496044

Change-Id: Ib1f0ce4ca10951edcfaa0aa79ae5c2d142a74599
2015-11-24 15:38:16 -08:00
Mitchell Wills
48241ddc58 Merge "Expose gscan exponential backoff API" 2015-11-17 18:05:58 +00:00
Mitchell Wills
2564d9a4ef Expose gscan exponential backoff API
Will be ignored until scan scheduling supports it

Change-Id: I9d392080e6ec8dfa9a998f6c04ec37f9c6dad0b2
2015-11-16 15:10:44 -08:00
Paul Stewart
ae64b185fc WifiEnterpriseConfiguration: Do not print credentials in toString
BUG:25624963
Change-Id: I939a12a27d6b915d8a9cc8b142f645fba0ee42ec
2015-11-13 16:43:53 -08:00
Mitchell Wills
593474e074 Merge "Remove old APIs that are no longer used/implemented" 2015-10-30 23:02:35 +00:00
Mitchell Wills
10794f0b5f Merge "Moved Wifi InformationElement parsing to a common utility class" 2015-10-30 21:28:47 +00:00
Mitchell Wills
e9c56b8f8f Merge "Check if link stats are supported when reporting activity info" 2015-10-24 00:19:58 +00:00
Mitchell Wills
19242993d2 Merge "Add missing ap threshold config for hotlists" 2015-10-24 00:17:11 +00:00
xinhe
2452e54de6 [DO NOT MERGE] EAP-TLS PMKID mismatch error
b/24253154

Change-Id: I45c770dc4769e74b668385dbc3a618d31a40dc7e
2015-10-23 12:56:25 -07:00
Mitchell Wills
97c46ef286 Moved Wifi InformationElement parsing to a common utility class
Change-Id: Iaa0cfc39ac4df375f80f01cf59eb5f0d0ae61879
2015-10-19 12:30:10 -07:00
Mitchell Wills
88d93cd68a 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
2015-10-14 10:49:48 -07:00
Jan Nordqvist
52eb29f082 Hotspot 2.0 relase 2 first cut.
CP mods to take a URL as a parameter, and new ScanInfo object.

Change-Id: Idbb2d4751c575ba07a56942771e2b2955b624635
2015-09-22 17:24:22 -07:00
Mitchell Wills
ff4fdceafe Add missing ap threshold config for hotlists
Change-Id: I9e31e72560840ea57ab191e820acf8e3faf00c36
2015-08-25 13:44:07 -07:00
Mitchell Wills
9a568e6f2f Check if link stats are supported when reporting activity info
Bug: 23286362
Change-Id: I42c91d488acd39341a6874797788d3e5357f0270
2015-08-19 01:06:02 +00:00
xin He
54cea23479 Merge "Boot loop when SSID has non UTF-8 character in the name" into mnc-dev 2015-08-05 01:10:34 +00:00
Jan Nordqvist
f6d3d148d5 Added logging in a few error paths for wifi config installation.
Bug: 22790527
Change-Id: I71b298b98da098f647f52886c3c3a7456cb24d51
2015-07-31 17:19:49 -07:00
xinhe
f2c01041fe Boot loop when SSID has non UTF-8 character in the name
b/22773761

Change-Id: I44c8a19c11470ab16baf27eef252097690ef5d4a
2015-07-31 12:50:55 -07:00
Fyodor Kupolov
959991b957 Fixed a typo
Change-Id: I85d75429baed3263c04e747eb374c66177c064f5
2015-07-22 15:25:55 -07:00
xinhe
e8de06d2fe Add API to turn OFF "best network selection" feature
b/14990268

Change-Id: I0231a9f0fae2baee50138e1cfa5416612ff41d6d
2015-07-15 10:40:55 -07:00
xinhe
e0ec6ba9cb Need to disable 5GHz bands for WiFi tethering in Japan
b/22396383

Change-Id: I61efef1babaab756425e6958843dfb9ad47b46cd
2015-07-13 17:44:40 -07:00
Fyodor Kupolov
cb13aebfec Check location permission/appop in getScanResults
Return an empty list if the calling process has no location permission/appop

Bug: 21852542
Change-Id: Ifb9c5eb06c3fc7136a7f8251ac152234585f5b67
2015-07-07 18:47:00 -07:00
Vinit Deshpande
dd14bad82d Merge "correctly print wificonfiguration creation and update time" into mnc-dev 2015-07-01 20:06:29 +00:00
Pierre Vandwalle
edbedd28b6 correctly print wificonfiguration creation and update time
Change-Id: I1c4abf9bed86cddea3592f0604def1a7727b73fc
2015-07-01 12:48:26 -07:00
Vinit Deshpande
7226c8f95b More API review feedback
ScanResult now hides all flags and their values, only methods
are public; and converted roaming consortium to an array of longs
instead of Longs.

Bug: 22179306

Change-Id: I644110dbddd5fa7a7109ac16051845fcc4c4e9d1
2015-06-30 15:44:00 -07:00
Shirish Kalele
c7a38ef840 Mark a connection as a Wifi Assistant connection based on the
ephemeral flag in WifiInfo.
Add this private field to WifiInfo.

Change-Id: Ic815b87a24e8272faa6e9e820b8fa55224af882a
2015-06-26 13:05:22 -07:00
Vinit Deshpande
a0d929e505 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
2015-06-22 19:09:38 -07:00
Pierre Vandwalle
d258d7a86e make sure wifi link stats are reset
Change-Id: I8687594eccea1e3d8b99450da5230442cdbd1a86
(cherry picked from commit 5fc9e14077c3bec51d0a93a5edeeade396d77d15)
2015-06-22 16:28:54 -07:00
Pierre Vandwalle
ced1a65990 add creation/update time to WifiConfiguration
Change-Id: Iaace83e752c8aa7d740a3dfad42cd8bba80a7a08
2015-06-16 16:56:29 -07:00
Adam Lesinski
8a35137388 Bluetooth energy: fix overflow in calculation
Use longs instead of ints, because the energy values can get pretty
high.

Change-Id: I43e696ad9e5965c2e616b11920db5bfae5db1671
2015-06-15 17:19:07 -07:00