ee0ab818341d44614ffe56ae73ecc08b974c2cbb |
|
20-May-2016 |
Roshan Pius <rpius@google.com> |
Change clock for time interval/elapsed measurments 1. Use the clock retrieved from WifiInjector in more modules: QNS, Scanner, WifiConfigManager. 2. Use |elapsedRealtime| for time interval/elapsed measurments. Things like scan results, config elements still continue to use |currentTimeMillis| Also, 1. Had to make |tryEnableQualifiedNetwork| public to prevent mockito from calling the real method in WifiConfigManager. 2. Move keystore also into WifiInjector. BUG: 28299258 BUG: 28824635 Change-Id: I91272aa5665abb741da7530d8920d09c8c5ea41f TEST: Compiles & unit-test passes
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
|
c38419bd95b0934cb1dfc6f1e1f29eca9929da8c |
|
14-Apr-2016 |
Rebecca Silberstein <silberst@google.com> |
Merge "Update hasEverConnected for wifi networks" into nyc-dev
|
93332917bf29ddbe853a495816e486150f49da40 |
|
29-Mar-2016 |
Rebecca Silberstein <silberst@google.com> |
Update hasEverConnected for wifi networks Set hasEverConnected to true for a network that completes a connection. Set hasEverConnected to false when a network config changes. Add tests to confirm hasEverConnected was added on a successful connection and cleared when connection or credential related configuration changes are made. Also removed some unused imports to fix checkstyle issues in WifiStateMachine and WifiConfigStore. BUG: 27856374 Change-Id: Ica633166892b4673683f21ff98e3ded1607dedec
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
|
49db6a0f9104fea99013fa6cfe6fcf2bdc7aa661 |
|
12-Apr-2016 |
Rebecca Silberstein <silberst@google.com> |
Merge "WifiConfigStore: read requirePMF config variable" into nyc-dev
|
eaea4b75c2ecfd192d5dcefcf67bb851bf031f5e |
|
12-Apr-2016 |
Rebecca Silberstein <silberst@google.com> |
WifiConfigStore: read requirePMF config variable When saving a wifi configuration, we set the requirePMF variable from the config, but it is never read back. Add the getNetworkVariable call for pmfVarName and add a call to verify the attempt to read it back in the WifiConfigManagerTest. Additionally fixed a checkstyle issue for unused imports. BUG: 28088226 Change-Id: Ib7b2ba796e31ae57273c34b6845c218419125b72
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
|
60969bf2c849011fb585cf6dc914dbd779dfb8cf |
|
11-Apr-2016 |
Samuel Tan <samueltan@google.com> |
Rename WifiConfigManager.getConfiguredNetworks() Rename WifiConfigManager.getConfiguredNetworks() and related methods to WifiConfigManager.getSavedNetworks, since it better reflects what this method does (i.e. get all configured networks except ephemeral networks). While there, add comments for some previously undocumented helper methods. BUG: 28088229 Change-Id: I30e144b46277605f5847371d9e65b70306013cf5 TEST: 'runtest frameworks-wifi' passes.
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
|
ac69b83c9cafb9a839b578c3b5b71eb3439244ad |
|
08-Apr-2016 |
Samuel Tan <samueltan@google.com> |
WifiConfigManager: remove WifiStateMachine field Remove the WifiStateMachine field from WifiConfigManager, since the latter no longer calls methods of the former. Also, change calls to the WifiConfigManager constructors to accomodate this change. BUG: 27405059 Change-Id: I468f74259d45d9a1a61e00b987533eaa66846024 TEST: 'runtest frameworks-wifi' succeeds.
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
|
06636d2de935ad5d2e8fb6483c406fe922c75ff2 |
|
05-Apr-2016 |
Samuel Tan <samueltan@google.com> |
Remove getCurrentUserId() and getCurrentUserProfiles() from ...WifiStateMachine Move getCurrentUserId() from WifiStateMachine to WifiConfigManager, and remove WifiStateMachine.getCurrentUserProfiles(), so that WifiConfigManager no longer makes calls to WifiStateMachine to perform these two tasks. Achieve this by moving the bookkeeping for the current user ID from WifiStateMachine to WifiConfigManager. BUG: 27405059 Change-Id: I06a8be88f24fd81cbfe785c4304883ddc44658f8 TEST: 'runtest frameworks-wifi' succeeds.
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
|
73a52d3336a40903965b946f6d3624a223ad5aac |
|
07-Apr-2016 |
Samuel Tan <samueltan@google.com> |
WifiConfigManager: rename member and constant fields Rename fields in WifiConfigManager to properly reflect that they are members (m* prefix), and constants (all caps with underscores). To accomodate this change, also modify uses of these fields outside WifiConfigManager (e.g. in WifiStateMachine). Also: - Remove default values given to WifiConfigManager member fields that are initialized in its constructor, since the initalization renders the default values useless. - Remove member fields and constants that are unused. - Replace the "*Milli" suffix on fields with "Ms". - Re-ordered fields in a logical manner (i.e. static, public, then private). - Fixed checkstyle issues. BUG: 27300099 Change-Id: Ifaef76bc04960f12f09267a581b9a02da7c5ab5c TEST: 'runtest frameworks-wifi' passes. TEST: Checkstyle returns only missing javadoc errors.
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
|
8c0c14b2c98bc26e6a09f66cff1244f0a30f44cb |
|
05-Mar-2016 |
Roshan Pius <rpius@google.com> |
WifiConfigManager: Change PNO network list type Change the PNO network list type from WifiNative to WifiScanner type since that is the new public interface for starting PNO scans. 1. Remove the PnoNetwork constructore from WifiNative 2. Create a temporary conversion function in WifiStateMachine to convert to WifiNative.PnoNetwork. BUG: 27167559 Change-Id: I7c845321eab20f822f5d7d5231294181343ef2be TEST: Compiles & unit-test passes
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
|
9bd01d6cb65ea96d6729d35a1fc43bb2bb40e3bd |
|
02-Mar-2016 |
Roshan Pius <rpius@google.com> |
PNO: Changes in Native for new interface Changes in WifiNative to accomodate the new Scanner based PNO interface. Currently, we're just setting the |wifi_epno_network| list member in |wifi_epno_params| structure. All the other values are being ignored. 1. Change the native |android_net_wifi_setPnoListNative| to accept the PNO settings parameter instead of directly accepting the list of networks. 2. Changes in WifiNative to send down the new |PnoSettings| structure down to the native code instead of directly sending the list. a. Keep the existing interface from |WifiStateMachine| which accepts a |PnoNetwork| list and converts it into |PnoSettings| structure. This interface will be removed once all the new Scanner based interface plumbing is complete. 3. Add a separate native API to reset PNO list. While there, Remove redundant "Wifi" prefix from Pno class names. BUG: 27167559 Change-Id: I78d35c20b4bb7a12c51d0c2cc609fb7bcb5ae516 TEST: Compiles & unit-test passes
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
|
dc61ad4fe8a84909a288af50a8b187c98e2194b6 |
|
26-Feb-2016 |
Roshan Pius <rpius@google.com> |
WifiConfigManager: Refactor remove network Move the actual removal of network from database into a common utility method which can be invoked in handleUserSwitch & removeNetwork. This CL is part 1 of refactoring some repeating patterns in WifiConfigManager. BUG: 27364882 Change-Id: I374a31f4d5cf4d7ec480b9b40f26af33e1deb8b1 TEST: `runtest frameworks-wifi`
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
|
2d65b9aaaa740ecf66bf4734c12aea3df88e352a |
|
24-Feb-2016 |
Roshan Pius <rpius@google.com> |
WifiConfigStore: New WifiConfigStore (Part 2) Integrate the new WifiConfigStore into WifiConfigManager class. Most of the public methods that have been moved to ConfigStore have been stubbed out in WifiConfigManager. Some of the methods have been changed to make it consistent with the other methods. The end goal of this CL to remove all WifiNative usages in WifiConfigManager class. Other related changes: 1. Changes in unit-tests to use mock wifiNative everywhere. 2. Change WifiConfigManager to accept an instance of KeyStore so that it can be mocked out in unit-tests. BUG=27299172 TEST:`mmma -j32 frameworks/opt/net/wifi/service/ && runtest frameworks-wif` Change-Id: I1656d81aec0ae3337bd794541b5a0bde9cddd48e
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
|
c485ebf64d1049d17db8108b85653f53fcdc8949 |
|
23-Feb-2016 |
Glen Kuhne <kuh@google.com> |
WifiConfigStore Refactor read&write NetworkHistory Created a new helper class: WifiNetworkHistory Moved readNetworkHistory() and writeKnownNetworkHistory() from WifiConfigStore into this class, replacing them with calls to the helper. BUG=27294533 Change-Id: I10d43e3fd37e251d1845ef726fea0faf136d9626
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
|
9d7489491984e86915b2cf4fac38a882de1c8cdb |
|
09-Feb-2016 |
Roshan Pius <rpius@google.com> |
Disable all networks in supplicant Temporary changes to test if we can disable all the networks in supplicant conf file except the one we want to connect to. Changes: 1. Remove all existing native enableNetwork invocations and replace it with a single selectNetwork call in |WifiConfigStore.selectNetwork|. selectNetwork enables the provided network and disables all others in wpa_supplicant. 2. Enable all networks in wpa_supplicant before enabling PNO. These will be disabled when we come out of PNO and decide to conneect to one of them via selectNetwork. 3. Save the network status in networkHistory.txt and ignore the status stored in wpa_supplicant.conf. 4. Some other cleanups: a. Remove |enableNetworkWithoutBroadcast| definition/usages and replace with |selectNetworkWithoutBroadcast|. b. Add enableAllNetworksNative/disableAllNetworksNative methods to just enable the network in wpa_supplicant. c. Move all wpa_supplicant network enable/disable to a common API. d. Fixed all the unit-test expectations. BUG:26984166 TEST: `mmma frameworks/opt/net/wifi/tests && runtest frameworks-wifi` Change-Id: Ib5a089f054557071ece6be25aad03b6458c0217c
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
|
c2a0ff06d58e1cfb9b69fa5b6a8fef5929812f27 |
|
22-Feb-2016 |
Roshan Pius <rpius@google.com> |
Rename WifiConfigStore to WifiConfigManager Rename WifiConfigStore class to WifiConfigManager and replace all existing occurences of WifiConfigStore. This is in preparation of refactoring WifiConfigStore into a separate class which will only deal with storing/reading configurations from a perisistent database. BUG: 27296463 Change-Id: Ib4c4bd3bdf3fa28771a646e1f3d244f73b690d5e TEST: Ran unit-tests
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
|