1004 Commits

Author SHA1 Message Date
Andreas Gampe
34a7d13a65 Frameworks/base: Fix a hashCode implementation
Equals uses Arrays.equals. That means two responses are equal if
the content of the data arrays is equal. By convention, the hash
code of those objects should agree. In that case one cannot use
hashCode on the array (which is the identity hash code).

Change-Id: Icce8e2e71e9142421f5dac8a0ee8a211623fb704
2015-03-15 14:38:59 -07:00
vandwalle
7e553a06a0 Merge "aggressively blacklist WifiConfiguration for the purpose of switching network" into lmp-mr1-dev automerge: d169839
automerge: 0a22d43

* commit '0a22d43c9143475c889ce54f0de6261e8857ab9d':
  aggressively blacklist WifiConfiguration for the purpose of switching network
2015-01-29 05:00:44 +00:00
vandwalle
8650c03560 aggressively blacklist WifiConfiguration for the purpose of switching network
In cases where networks are not properly configured, WiFi might tries to repeatdly switch from one network to a bad network, or might try to roam and renew DHCP which can fail. In KK, WiFi autojoin would try other networks (by cycling to network it sees) and end up associated to a "good" network. In L release even thought WiFi might pick a good network it will still repeatedly try to switch to what it thinks is a better network and fail, thus annoying the user whose connection becomes unstable. This CL tries to remember networks that have seen multiple DHCP or auth failure in the past and for those networks it disable roaming temporarily. That is, if wifi is not associated to any network, it will tries to join a network aggressively, however if wifi is currently associated to a network, it will not try to switch to a new network if that new network has seen multiple failure in the past. The maximum blacklist time is set to 2 days for now.
    An example of such situation is:
    - user has multiple SSID at home, one of which is incorrectly configured with a wrong password
    - broken DHCP situation (potentially: multiple servers on home network, broken implementation incorrecting NAK'ing DHCP requests but properly serving DHCP offer...)
Bug:18792931

Change-Id: I332a9cebdc19be2e00b455205d386fcffcb70b29
2015-01-23 18:35:27 -08:00
vandwalle
67878bb5ea am a3c187bc: am f87606fe: Merge "add debug logs to confirm network flapping issue is fixed Bug:18706288" into lmp-mr1-dev
* commit 'a3c187bc1f97dc098ff939cfe937a482a9bdf7fb':
  add debug logs to confirm network flapping issue is fixed Bug:18706288
2014-12-18 22:26:38 +00:00
vandwalle
72e1d3f538 add debug logs to confirm network flapping issue is fixed
Bug:18706288

Change-Id: I59378faafbccfa58639d942c8b8e2e0e815261f4
2014-12-17 16:38:58 -08:00
Prem Kumar
da6ebb4ee2 am fa205fff: am 9ef07ad2: Merge "make sure wificonfiguration scan cache doesnt grow unbounded Bug:18703749" into lmp-mr1-dev
* commit 'fa205ffff292bcbc1c504491b7ca2a5ee1b7b547':
  make sure wificonfiguration scan cache doesnt grow unbounded Bug:18703749
2014-12-14 20:06:28 +00:00
vandwalle
53d1f07073 make sure wificonfiguration scan cache doesnt grow unbounded
Bug:18703749

Change-Id: I8e35d602a80b341668d9607db2da3ca6fdb970ae
2014-12-11 02:58:44 -08:00
Jeff Davidson
820ba1f96f am 401ef259: am a4144563: Merge "add disable Ephemeral Network API Bug:18525241" into lmp-mr1-dev
* commit '401ef259f3b2c8c87b02c9939c0599d6ad0f6f39':
  add disable Ephemeral Network API Bug:18525241
2014-12-08 19:36:33 +00:00
vandwalle
93e4192c06 add disable Ephemeral Network API
Bug:18525241

Change-Id: I954c53c55c39f6c376b2bae3c7ac4d28246a7f5a
2014-12-05 14:56:43 -08:00
vandwalle
f12fc2e14e am b6c9cbc5: am 47772ac8: Merge "make startScan with worksource specific to location scans" into lmp-mr1-dev
* commit 'b6c9cbc57694fb7fbd903fa08d42a55bc729114d':
  make startScan with worksource specific to location scans
2014-11-26 20:02:35 +00:00
vandwalle
da123a6726 make startScan with worksource specific to location scans
Change-Id: Ia09dae3e334ef6fd11f2b468e78ad7c2c3cf55e9
2014-11-25 17:35:12 -08:00
Vinit Deshpande
77fe4c96b7 am a34f3d30: am 800bf3ae: Merge "Fix WPS docs for LABEL method" into lmp-mr1-dev
* commit 'a34f3d30c6a7a4b8863175f009935c61ace42b4e':
  Fix WPS docs for LABEL method
2014-11-19 22:13:18 +00:00
Vinit Deshpande
c3eb155644 Fix WPS docs for LABEL method
Since we don't support LABEL method in startWps, document
it explicitly.

Bug: 18298388

Change-Id: I5d4c2475a68f1b41e5fc449c911b7b01b3b82fc4
2014-11-18 11:07:58 -08:00
vandwalle
4d974fa942 Merge "dont blacklist wifi config that have had validated internet status in the past" into lmp-mr1-dev automerge: 3f558e7
automerge: 39c5118

* commit '39c5118037b5f401217db0fa5ac934291f45e378':
  dont blacklist wifi config that have had validated internet status in the past
2014-11-12 03:23:35 +00:00
vandwalle
ec3e9805dd dont blacklist wifi config that have had validated internet status in the past
Change-Id: Iadb4e0e1beeb9e582b944e003470815a5a865652
2014-11-10 14:27:20 -08:00
Jeff Davidson
a45e98974e am 8cae7f64: am 8fe7676e: Merge "Fix incorrect doc for WifiInfo#getSSID()." into lmp-mr1-dev
* commit '8cae7f644c59f0200f1962abdfbc6001166a192c':
  Fix incorrect doc for WifiInfo#getSSID().
2014-11-05 23:19:44 +00:00
Jeff Davidson
f92fc1ca65 Fix incorrect doc for WifiInfo#getSSID().
This method will never return null. It may return "<unknown ssid>" if
no network is currently connected.

Change-Id: Iae09a6b2376e47c2d010f8d05750a16361510cca
2014-11-05 10:26:00 -08:00
Jeff Davidson
1199a4c436 am f2a598e4: am 074c5b5b: Merge "Don\'t drop WifiConfiguration\'s ephemeral bit on copy/parcel." into lmp-mr1-dev
* commit 'f2a598e445800c9209dc58ab0005ca466eb14679':
  Don't drop WifiConfiguration's ephemeral bit on copy/parcel.
2014-10-15 15:58:47 +00:00
Jeff Davidson
074c5b5b65 Merge "Don't drop WifiConfiguration's ephemeral bit on copy/parcel." into lmp-mr1-dev 2014-10-15 15:49:26 +00:00
vandwalle
28495b02f2 am b75369e2: am 7bbf867b: am 0c0c680d: am a741efd5: Merge "adding debug information to bug report for Bug:16751877" into lmp-dev
* commit 'b75369e22c4617371606571398f0faa0838f02ef':
  adding debug information to bug report for Bug:16751877
2014-10-08 07:51:57 +00:00
vandwalle
63edd98d2e adding debug information to bug report for Bug:16751877
Change-Id: I9d417c20c6b6721933a4eb943c1305845005facf
2014-10-07 14:38:38 -07:00
Jeff Davidson
8faf2a2a15 Don't drop WifiConfiguration's ephemeral bit on copy/parcel.
Bug: 15892711
Change-Id: I4a027c99634a11d13bb3c8420ba959c201644689
2014-10-06 16:29:35 -07:00
vandwalle
542cc240b5 am 88b927e2: am c67e5ae2: am 4f5fd780: am 68104b05: Merge "add millisecond timestamp to locallog" into lmp-dev
* commit '88b927e258214a31342326d46f527528e5979f85':
  add millisecond timestamp to locallog
2014-10-04 15:45:35 +00:00
vandwalle
c520aa89a3 add millisecond timestamp to locallog
Change-Id: I33d8672efd2747ed3f49dd8d5bcd5f47bf418053
2014-10-03 15:35:25 -07:00
Lorenzo Colitti
65d720b3fb am 6245bd9e: am eef8d3eb: am df959707: am 7fe95529: Merge "Revert the configKey generation algorithm to what it was in K." into lmp-dev
* commit '6245bd9e19639ec3f64cae4268b204f8bfa0c6c9':
  Revert the configKey generation algorithm to what it was in K.
2014-10-02 13:40:24 +00:00
Lorenzo Colitti
8e1e34a3f6 Revert the configKey generation algorithm to what it was in K.
Bug: 17670914
Change-Id: Ibb2ea26ea28a38518caab7d1b45ae535a0eaf661
2014-09-30 18:30:58 +09:00
vandwalle
6933d61f2d am 9e22f280: am 713b200d: am 9794dc95: am 0829f6b6: Merge "handle bssid blacklist in case of dhcp failures" into lmp-dev
* commit '9e22f2803c26626851f24db7c54fa68b85ca5e45':
  handle bssid blacklist in case of dhcp failures
2014-09-23 23:18:18 +00:00
vandwalle
176a27f3ab handle bssid blacklist in case of dhcp failures
Change-Id: Iba13db478ed69976c37bd4882f59bf0cae2212e6
2014-09-23 12:38:06 -07:00
Vinit Deshpande
28a15a1fe0 am 6839bf68: am 41fa5e86: am 699ba17f: am 14f0aba3: Merge "Fix documentation for Wifi ScanResult.timestamp" into lmp-dev
* commit '6839bf68d8f557e7d31410a3f88f2e32a4f1a2b8':
  Fix documentation for Wifi ScanResult.timestamp
2014-09-23 15:51:52 +00:00
Vinit Deshpande
02b115b2d8 Fix documentation for Wifi ScanResult.timestamp
Bug: 14997906
Change-Id: Idfcf9ade905c7565cc1d59d15aa4362c1b597b72
2014-09-19 14:23:25 -07:00
Prem Kumar
e2b32aff76 am c3eea0ee: am a203fbc8: Merge "Allow creating EAP_TLS network without specifying Phase2.None" into lmp-dev
* commit 'c3eea0ee551af36c4ad18e8b0f96e5e04bef270c':
  Allow creating EAP_TLS network without specifying Phase2.None
2014-09-15 01:42:04 +00:00
Prem Kumar
97a0c45cf8 Merge "Allow creating EAP_TLS network without specifying Phase2.None" into lmp-dev 2014-09-15 00:51:13 +00:00
vandwalle
397b30b1bd am dfb82a24: am 35967d04: Merge "make wifi cellular params configurable" into lmp-dev
* commit 'dfb82a243b00ced8f093b54a9ed51c06ab11d7ac':
  make wifi cellular params configurable
2014-09-14 19:43:06 +00:00
vandwalle
2e93c38fa6 make wifi cellular params configurable
Change-Id: Ia2a4ac3e11f2b0c7412f33496a655c5d5297ea0c
2014-09-13 13:44:34 -07:00
Vinit Deshpande
26a98001ad Allow creating EAP_TLS network without specifying Phase2.None
Phase2 isn't required for EAP_TLS networks, and it is possible
for a developer to miss it. We are requiring it for internal
book keeping - so this change just sets Phase2 to 'None' when
EAP_TLS is set on the configuration.

Bug: 17043082
Change-Id: I5a8e0a3a236d0dfd1295584de55d5b9a1b76b483
2014-09-13 11:10:07 -07:00
vandwalle
f28489b816 am 8c8f56ca: am e62a18e5: Merge "various fixes:" into lmp-dev
* commit '8c8f56ca16fd9d28ea2c2bf1d4f2fe59dcb1a8a7':
  various fixes:
2014-09-13 02:35:03 +00:00
vandwalle
94fe7e99d1 various fixes:
- allow for making use of more aggressive initial autojoin attempt rssi thresholds
- create a blacklist due to missing identiy reason
- make autojoin parameters configurable

Change-Id: I385db83aab1da7918ff6935eb59a209b253d42e6
2014-09-12 14:30:51 -07:00
vandwalle
afc4885042 am a5ef501a: am 9e444d7a: Merge "make autojoin configurable, clean up BSSID info that may be stake in WifiConfiguration" into lmp-dev
* commit 'a5ef501abfec5b93486f59c1140dc5791433656d':
  make autojoin configurable, clean up BSSID info that may be stake in WifiConfiguration
2014-09-10 21:38:22 +00:00
vandwalle
e26bc8fda7 make autojoin configurable, clean up BSSID info that may be stake in WifiConfiguration
Change-Id: I5052f6a76bcd1f980ef558bff54ce1b172319743
2014-09-10 13:49:48 -07:00
Vinit Deshpande
174538fff5 am b73e94b4: am 8270c789: Merge "Secure access to WifiScanner" into lmp-dev
* commit 'b73e94b4173aca543ea506fbda70890311eba4d5':
  Secure access to WifiScanner
2014-09-10 07:09:32 +00:00
Vinit Deshpande
a0000c6c3c Merge "Secure access to WifiScanner" into lmp-dev 2014-09-10 06:34:25 +00:00
Vinit Deshpande
bb90cfffc1 am 33e1b95c: am fc591cc1: Merge "Implement getAvailableChannels" into lmp-dev
* commit '33e1b95ca08f8ecc114665f3eed3e9c71355310c':
  Implement getAvailableChannels
2014-09-09 05:14:04 +00:00
Vinit Deshpande
592b95901e Merge "Implement getAvailableChannels" into lmp-dev 2014-09-09 01:28:45 +00:00
Vinit Deshpande
4b9975671f Secure access to WifiScanner
This change implements access control for WifiScanner. It is now
available to only those apps that have CONNECTIVITY_INTERNAL permissions.

Bug: 15088601
Change-Id: I6acc13079b6dac6f190644b6d1a270c271cc679f
2014-09-08 18:03:12 -07:00
vandwalle
8828537f61 am 344ddea4: am a35a795f: Merge "add more info to WifiConfiguration.toString: - add the noInternetAccess field - add stats about user triggered wifi state disabling requests - Wifi SSID can change even though we don\'t loose connection, hence it must be looked at with
* commit '344ddea49fb61cde1d9161f3cd010428c137dd6b':
  add more info to WifiConfiguration.toString: - add the noInternetAccess field - add stats about user triggered wifi state disabling requests - Wifi SSID can change even though we don't loose connection, hence it must be looked at with each Network State Change
2014-09-08 19:48:59 +00:00
vandwalle
448e208b0a add more info to WifiConfiguration.toString:
- add the noInternetAccess field
- add stats about user triggered wifi state disabling requests
- Wifi SSID can change even though we don't loose connection, hence it must be looked at with each Network State Change

Bug:17348200

Change-Id: Ic956e11e7d61faf472a7332f84a46a746922455a
2014-09-07 21:43:25 -07:00
Vinit Deshpande
15f8907878 Implement getAvailableChannels
This API allows finding channels by band, so scanning services
can find out which channels to use.

Bug: 16652660
Change-Id: I690825333988a336efa3fc8886297e5b8baf8e1d
2014-09-05 20:43:57 -07:00
David Christie
25fb15035b 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 'd3a78eff9d1a34f4638ddfdb6b1f3519b10426b7':
  Add @SystemApi annotations to methods used by GmsCore. -Currently these methods are called using reflection for location. Bug: 17371392 Change-Id: I6546f5b485415beff69164ba0d526757ee831f69
2014-09-04 21:17:20 +00:00
David Christie
e7baf5afc0 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 2014-09-04 20:53:39 +00:00
David Christie
c20b795cf0 Add @SystemApi annotations to methods used by GmsCore.
-Currently these methods are called using reflection for location.
Bug: 17371392
Change-Id: I6546f5b485415beff69164ba0d526757ee831f69
2014-09-04 20:53:21 +00:00