- 25 Apr, 2016 1 commit
-
-
Pankaj Kanwar authored
-
- 22 Apr, 2016 3 commits
-
-
pkanwar authored
b/27905553 This fixes CTS failures in testProtectedBroadcasts in android.permission.cts.TelephonyManagerPermissionTest. Currently the "state" variable can be null, so the equality condition has been rearranged to avoid the NPE. Change-Id: I0326df8680c6e37bc2151a38f8f74305b3f8de79
-
Roshan Pius authored
* changes: WifiConnectivityManager: Unit tests for rate limit WifiConnectivityManager: Connection rate limit
-
TreeHugger Robot authored
-
- 21 Apr, 2016 7 commits
-
-
Roshan Pius authored
Adding unit tests to verify the connection attempt rate limiting functionality. Had to change the way system time is being fetched in WifiConnectivityManager to achieve this. BUG: 28242396 Change-Id: I2bfae3a9ea60cba1c3c1405dd5eb58208f12c2db TEST: Compiles & unit-test passes
-
Roshan Pius authored
Implement a rate limit for connection attempts to prevent us flapping between networks. While there, Cleanup all the static time values to be more readable. BUG: 28242396 Change-Id: I3e2476674e7239e000b93b95751acec3ea7bc8ce
-
TreeHugger Robot authored
-
Roshan Pius authored
Remove some redundant code in enableNetwork and move some the network status updation from state machine to ConfigManager. BUG: 28317135 Change-Id: I375af87bd971352d3066a150e046571f00de44fd TEST: Compiles & unit-test passes
-
Roshan Pius authored
There is a lot of instability/unknowns for using ePno/Gscans for connectivity purposes. Unless we've all of them hashed out, turn them off. BUG: 28300874 BUG: 28278197 Change-Id: Ifd650032237ac510687f0d374d31f7c9f13d18bd TEST: Compiles & unit-test passes (Will send for ACTS testing).
-
Jeremy Joslin authored
Also made the constants final. BUG:28317300 Change-Id: I32ad6d1e4dbd3f5cc1cdbde8803b66e48b9928c6
-
TreeHugger Robot authored
-
- 20 Apr, 2016 4 commits
-
-
mukesh agrawal authored
When we call WifiLogger.startLogging(), WifiLogger may or may not register callbacks for ring-buffer data delivery, and WiFi alerts. Whether or not WifiLogger registers the callbacks depends on whether or not the callbacks have already been reigstered. If WifiLogger has already registered callbacks, then a new call to startLogging() will skip callback registration. Now, it's not entirely clear if this already-registered check is necessary. It is certainly conceivable that the HAL implementations allow us to replace existing callbacks, without explicitly removing the existing callbacks first. But, the necessity of the check aside, the immediate problem is that the already-registered check fails to handle the case where an early registration failed. This CL revises the code, to handle this case. While there: - Fix some whitespace issues. - Remove unnecessary comment about the effects of resetLogHandler(). (Even if the comment _were_ necessary, it should be part of the Javadoc for resetLogHandler().) BUG=28274991 TEST=(new) unit tests, manual Manual test: - boot device $ adb shell dumpsys | grep -A1 'ring-buffer = driver_prints_rb' ring-buffer = driver_prints_rb <base64 encoded data...> Change-Id: I04e9bc1863aaf5bda00ca9cf8dc35696ae1e5f24
-
Jeremy Joslin authored
-
Samuel Tan authored
* changes: Log summarized packet fate reports Add FrameParser
-
Jeremy Joslin authored
When a saved network has the useExternalScores boolean set to true then lump it in with the ephemeral networks when considering it as a candidate. Externally scored saved networks are only considered if a saved network candidate cannot be found. BUG: 25562019 Change-Id: Icdb7318103e14e518536c3179cd30c87cc2c3035
-
- 19 Apr, 2016 2 commits
-
-
Mitchell Wills authored
If WiFi was not turned on prior to dumping WifiScanningService a NullPointerException would be thrown. Change-Id: I79d7a0d23db670f4fef3fb01072d3eb2155428b2 Fixes: 28274869
-
Daniel Erat authored
-
- 18 Apr, 2016 9 commits
-
-
Roshan Pius authored
-
Robert Greenwalt authored
-
Samuel Tan authored
When verbose debugging is not turned on, log summarized packet fate reports that include the timestamp, direction, fate, protocol, and type of the network frame, but nothing more. These one-line summaries will be logged to the system dump in table format. BUG: 28150622 TEST: 'runtest frameworks-wifi' passes. TEST: Manually trigger a WiFi connection failure (e.g. enter wrong password for a secured network), and examine the output of 'adb shell dumpsys' for the logged packet fate summaries. Change-Id: Id4cc9c3cdc85d209788e0eb1c51e5a47e04d0a6a
-
Adam Lesinski authored
-
Roshan Pius authored
-
Robert Greenwalt authored
We added a carrier config that dictates how ECM affects WiFi. Only old devices (before WiFi-calling) on VZW should turn off WiFi when in ECM/ECBM. Try both configs. bug:28244943 Change-Id: I4047565c00989b9bf02479c89b06041b7171cf44
-
Roshan Pius authored
BUG: 28247321 Change-Id: I7913ae97ceb8566d7e0612455096362c661b6969
-
Roshan Pius authored
Skip ephemeral networks which were explicitly deleted by the user. This was missed in migration from autojoin to QNS. BUG: 28026676 Change-Id: Ib663183b29774b851e492ddd170c4b4bef03ae61 TEST: Compiles & unit-test passes
-
Daniel Erat authored
SoftApManagerTest formerly had tests that doubled as helper methods (sometimes even calling each other), making it difficult to simulate events occurring in different orders. This change creates a clearer distinction between helpers and tests, and also tries to classify helpers as either starting processes or verifying that the code under test did what was expected. Bug: 28107595 Change-Id: I743d8abbf73ffcd6988ef16d00286733355582ea
-
- 16 Apr, 2016 1 commit
-
-
Samuel Tan authored
Add FrameParser, a utility class that parses the contents of a network frame, and stores it in its public member fields. This utility will be used to print out summarized versions of the contents of packet fate report frames. In this initial implementation of FrameParser, we only parse out the information we are interested in printing (i.e. the most specific networking protocol, and the type of packet within this protocol). BUG: 28150622 Change-Id: Ice7dad5a7800736605043688955027893fadffc7 TEST: 'runtest frameworks-wifi -c \ com.android.server.wifi.util.FrameParserTest' passes.
-
- 15 Apr, 2016 5 commits
-
-
Sunil Dutt authored
Wi-Fi disable on ECBM notification is controlled by the configuration parameter KEY_CONFIG_WIFI_DISABLE_IN_ECBM. Hence check for the same while processing the notification. Bug: 27854016 Change-Id: If1724f825f1c8b47ec2f29ecd8abda45ef9bc393
-
Roshan Pius authored
Add a new flag to control both background scans & connected PNO scan in WifiConnectivityManager (We may need to disable connected PNO even if we enable gscan). Also, change the disconnected PNO interval to 20 seconds. BUG: 28020168 BUG: 27877781 Change-Id: I6e7224b02456573070a68dbe8f5a5b0d49f37fdc
-
Mitchell Wills authored
-
Glen Kuhne authored
-
TreeHugger Robot authored
-
- 14 Apr, 2016 8 commits
-
-
Roshan Pius authored
This improves readability of the state machine dump command. BUG: 27886011 Change-Id: I8676f3c3c638d8f32dde063adb5e79b0cf978ea5
-
Mitchell Wills authored
Fixes: 27695292 Change-Id: I34f05fc532c48c7c3eaa735bc6ec95e7da2794aa
-
Randy Pan authored
-
TreeHugger Robot authored
-
Randy Pan authored
In addition to check if the BSSID of the candidate network recommended by QNS matches the one tracked by WifiStateMachine's WifiInfo, check if the phone is in one of the supplicant connecting states. This is to take the fact that WifiInfo stores a diconnected network's BSSID into count. Bug: 28163444 Change-Id: I682bedc26e9f2ea34cb006b859384a8e414b047d
-
TreeHugger Robot authored
-
Glen Kuhne authored
Created the WifiLastResortWatchdog class, that will handle restarting the wifi stack as a last resort when wifi is failing. Implemented the logic that tracks failure counts for all available networks, and the maintaining of that list of available networks. BUG=27856523 Change-Id: I8c944d033955ad7e5cc9484cce8f20cd3755312e
-
Roshan Pius authored
Migrate all scans to use the new RequestList class to maintain the list of active scans. BUG: 28190728 Change-Id: Iad84fda9c50c0c1c493a399ce2adb2792ec75a2f
-