• Home
  • History
  • Annotate
  • only in /frameworks/base/core/tests/ConnectivityManagerTest/src/com/
History log of /frameworks/base/core/tests/ConnectivityManagerTest/src/com/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
93ce63760dd09870d689176ab94db652f578d926 21-Sep-2016 Christopher Wiley <wiley@google.com> Remove ability to set frequency from WifiAssociationTest

This is no longer a supported API.

Bug: 31148223
Test: This code would no longer compile
Change-Id: I2d8ee6a40eda7e0f1a266cb0579aff2e504f29a7
ndroid/connectivitymanagertest/functional/WifiAssociationTest.java
4547dac01f3136393cc708bb49ff546413a45d6c 28-Apr-2015 Joshua Schwarz <joshuaschwarz@google.com> Fix one-off error in reporting.

Change-Id: I5315e3d13b42285169e6c92cfcf9cf2ae9667018
ndroid/connectivitymanagertest/stress/WifiStressTest.java
ef1a177e6c5c3d5b33a3debf899737a03d3c9c85 20-Nov-2014 Eric Rowe <erowe@google.com> Fix wifi reconnection tests.

Bug: 18417638
Change-Id: I1710e8b16d4ae1b32317deb0322a98ad45b4e1aa
ndroid/connectivitymanagertest/stress/WifiStressTest.java
58a3ddf5aafacbd84de7104f07a994bb06a9b374 23-Oct-2014 Eric Rowe <erowe@google.com> Add delay in ping connectivity test retry

Change-Id: Id6e36f42b2a2d84605185780fb7a3f2144e7a9b9
ndroid/connectivitymanagertest/ConnectivityManagerTestBase.java
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
ndroid/connectivitymanagertest/stress/WifiApStress.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
485ceb8506f8566f8cf2f48b40b5ed41233e9941 11-Sep-2014 Eric Rowe <erowe@google.com> Fix wifi association tests

Before fix, test assumed that it was already connected to wifi so remove
these assertions. Also, since association test may be used against
access points with no outside connectivity, remove the ping test to
8.8.8.8 at the end.

Change-Id: I3d4f3d752b72028f642da9f8e9adda4ad18a6a56
ndroid/connectivitymanagertest/WifiAssociationTestRunner.java
ndroid/connectivitymanagertest/functional/WifiAssociationTest.java
86e15557c52e2847d2adc8495a281dcf0239506e 10-Sep-2014 Eric Rowe <erowe@google.com> Allow protected wifi in connectivity tests

Change-Id: I31285572f90bfb46cc28fb04e79cb9b407477a7d
ndroid/connectivitymanagertest/ConnectivityManagerTestBase.java
ndroid/connectivitymanagertest/ConnectivityManagerTestRunner.java
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
f5031e549472d1d813fa39b6b2973cd20c1b1120 06-Sep-2014 Eric Rowe <erowe@google.com> Increase long timeout to 2 minutes

Change-Id: I2f9e15c6e551536d61ec52fbaf7f54405fa05bcd
ndroid/connectivitymanagertest/ConnectivityManagerTestBase.java
2591e00b57b8aedd9e44fecce3f55a2c6a5428c2 03-Sep-2014 Eric Rowe <erowe@google.com> Clean up connectivity tests.

Change-Id: I407cb78aecb43aa8413835a25b4558241d69fd2e
ndroid/connectivitymanagertest/AccessPointParserHelper.java
ndroid/connectivitymanagertest/ConnectivityManagerTestBase.java
ndroid/connectivitymanagertest/WifiConfigurationHelper.java
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
ndroid/connectivitymanagertest/functional/WifiAssociationTest.java
ndroid/connectivitymanagertest/functional/WifiConnectionTest.java
ndroid/connectivitymanagertest/stress/WifiApStress.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
12747ab3aafc92f3b86da7df2b1d992866cbaf52 23-Aug-2014 Guang Zhu <guangzhu@google.com> add some missing assert messages for wifi test

Change-Id: I04f4cbbca1a181ab1404fa3abba874e1f78fed3c
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
4afd179a9ad7da51374c6fb0887180976d952001 21-Aug-2014 Guang Zhu <guangzhu@google.com> follow up minor fixes for connectivity manager test

Change-Id: I8f0606890b21d67130efb3bc02c6825823060139
ndroid/connectivitymanagertest/ConnectivityManagerTestBase.java
ndroid/connectivitymanagertest/functional/WifiAssociationTest.java
d21f1c1e4d34306ab7aa99f5be1b886f6b4e07a8 19-Aug-2014 Guang Zhu <guangzhu@google.com> fixes for connectivity manager test suite

* reduced visibility of most util functions in
ConnectivityManagerTestBase
* reimplemented various waitFor... util function in base class:
instead of relying on received broadcast and synchronization
mechanism, we just poll for what we want with a fixed interval
and a max timeout
* minor style fixes
* removed state transition checks in all test cases of
ConnectivityManagerMobileTest: since exact state transitions
are not that interesting, we just care about if we reach a
particular state and if all network interfaces are in their
corresponding states
* clarified in comment what each test cases are testing, since
some of the test case names are not very straightforward
* any wait for DISCONNECTED checkes with ConnectivityManager are
temporarily commented out

Change-Id: I99cca95c33c6060909e0df684969b75c2dca23a9
ndroid/connectivitymanagertest/AccessPointParserHelper.java
ndroid/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
ndroid/connectivitymanagertest/ConnectivityManagerTestBase.java
ndroid/connectivitymanagertest/NetworkState.java
ndroid/connectivitymanagertest/WifiAssociationTestRunner.java
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
ndroid/connectivitymanagertest/functional/WifiAssociationTest.java
ndroid/connectivitymanagertest/functional/WifiConnectionTest.java
ndroid/connectivitymanagertest/stress/WifiApStress.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
ndroid/connectivitymanagertest/unit/WifiClientTest.java
0a82e80073e193725a9d4c84a93db8a04b2456b9 30-Jul-2014 Lorenzo Colitti <lorenzo@google.com> Stop using LinkProperties for static configuration.

LinkProperties can represent way more complicated configurations
than what we can actually apply to interfaces. This makes it
error-prone to use it to represent static configuration, both
when trying to apply configuration coming from LinkProperties
and when trying to save configuration from current
LinkProperties.

Instead, move static configuration (IPv4 only, since we don't
support static IPv6 configuration) into a separate
StaticIpConfiguration class.

Bug: 16114392
Bug: 16893413
Change-Id: Ib33f35c004e30b6067bb20235ffa43c247d174df
ndroid/connectivitymanagertest/AccessPointParserHelper.java
df2b878ff4e7b4a258588d3a93574c399db78a07 06-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Fix public API of LinkProperties.

bug:15142362
Change-Id: I1457111da7d3bd09998f7e010febb8bb4c45c8bc
ndroid/connectivitymanagertest/AccessPointParserHelper.java
247675e5d919c6892722bf4442f54b3266366e51 21-May-2014 Lorenzo Colitti <lorenzo@google.com> Fix build.

Change-Id: I5c09a406b6c43318cea600171b8dd25eeeffa673
ndroid/connectivitymanagertest/AccessPointParserHelper.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
6346155c5a48495944041e65ec279c88b0fa1391 10-Mar-2014 Jaewan Kim <jaewan@google.com> Move IP config from WifiConfiguration to IpConfiguration.

This is so that Ethernet can use it in the future.

Bug: 7606609
Bug: 8687763

Change-Id: I5d1189682b13f1088848809604690648d8d9ecca
ndroid/connectivitymanagertest/AccessPointParserHelper.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
678979748585c5903125a404e448ad6c111dedad 07-Apr-2014 Jaewan Kim <jaewan@google.com> Revert "Refactor IpConfiguration from WifiConfiguration"

This reverts commit 1284767ceb1affa6d5af77fd26ccf7322df48a6d.

Change-Id: Ibccea84e5dc44c1b8954779660e0721b27f762d4
ndroid/connectivitymanagertest/AccessPointParserHelper.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
1284767ceb1affa6d5af77fd26ccf7322df48a6d 10-Mar-2014 Jaewan Kim <jaewan@google.com> Refactor IpConfiguration from WifiConfiguration

Bug: 7606609, Bug: 8687763
Change-Id: I736eb3c73a8ffc8f137a04a5ea66ee564dc2b530
ndroid/connectivitymanagertest/AccessPointParserHelper.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
71aae0b6fd1bb9204b81c2e9447f3544c29579c4 04-Mar-2014 Xia Wang <xiaw@google.com> Fix state transition verification.

When there is connectivity state change, the network states could be broadcasted multiple times.
The state transition should consider that.

Bug: 13277256
Change-Id: I3d400900a0e2454f9d198629f1c062cbb15bdcd8
ndroid/connectivitymanagertest/NetworkState.java
df362d264c5a0204f27da6ee66d741031626c4e5 04-Mar-2014 Xia Wang <xiaw@google.com> Add timer to wait for screen off

bug#: 13278052

Change-Id: Ic4dc847f3f3fe86750343ffabedb13dbeb4f61a7
ndroid/connectivitymanagertest/stress/WifiStressTest.java
8a985d24ce9a38f40ed88fecbdcd0e75e3a68f44 25-Feb-2014 John Spurlock <jspurlock@google.com> Tabs -> spaces in frameworks/base.

Change-Id: I5a84e8e93ac99b5ed0212b37bf66efa5e53864be
ndroid/connectivitymanagertest/AccessPointParserHelper.java
19306af73a8175e1327101132e26a35c7dfe5168 14-Sep-2013 Xia Wang <xiaw@google.com> Update the Connectivity Manager test suit to use InstrumentationTestCase.

- Remove ConnectivityManagerTestActivity as the test activity could be destroyed
after a system config change, which cause test failure in the wifi stress test.
- Update all tests to use InstrumentationTestCase, which instruments the test package.

Bug : 10426067

Change-Id: Ibf6f1f7cffd7a7eabc4cc63c7e033b59274b724e
ndroid/connectivitymanagertest/AccessPointParserHelper.java
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/ConnectivityManagerTestBase.java
ndroid/connectivitymanagertest/ConnectivityManagerUnitTestRunner.java
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
ndroid/connectivitymanagertest/functional/WifiAssociationTest.java
ndroid/connectivitymanagertest/functional/WifiConnectionTest.java
ndroid/connectivitymanagertest/stress/WifiApStress.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
ndroid/connectivitymanagertest/unit/WifiClientTest.java
ndroid/connectivitymanagertest/unit/WifiSoftAPTest.java
0076729d3880f6c71a607af42e06be02c7bda542 11-Sep-2013 Xia Wang <xiaw@google.com> Use setAirplaneMode() API for Connectivity Manager tests

Change-Id: I2e35c58e4101b6b5fe9efdb5adad922402d38b6f
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
1c6911ac1d6c4cfecaaa1c1d6814707d77aed4be 21-May-2013 Xia Wang <xiaw@google.com> Add option to set frequency band

- The reason to add the test runner is to set frequency band when the runner
is created which happens before the test activity is actually launch.
As the test activity will disable/enable wifi when it
is created, this cycle will ensure the frequency is set successfully.

Change-Id: Ie9de3d8bab3dda7d4bb9ba604ddd5cb33164e397
ndroid/connectivitymanagertest/WifiAssociationTestRunner.java
ndroid/connectivitymanagertest/functional/WifiAssociationTest.java
58a5db37b3de268aea18b160234f9fd4d70a970d 03-May-2013 Xia Wang <xiaw@google.com> Add wifi association test

Change-Id: I1f3f49a1857835522c9c5e02ed4f530b83df1d02
ndroid/connectivitymanagertest/functional/WifiAssociationTest.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
ndroid/connectivitymanagertest/stress/WifiStressTest.java
35185a9ccf016f1d5fbe055e89a6c4c79a247981 13-Feb-2013 Wink Saville <wink@google.com> Fix broken test.

Change-Id: I8c5649c9b3d917cf13b94d49da44eaf510643df6
ndroid/connectivitymanagertest/AccessPointParserHelper.java
c5401d4451dfb5edb627a35c1d3ad90cbcef77a1 31-Jan-2013 Xia Wang <xiaw@google.com> am 63d25816: am 599f9611: am f3ef10b1: am 2297d1e7: Merge "Fix WiFi test:" into jb-mr1.1-dev

# Via Android Git Automerger (3) and others
* commit '63d258167637309c0c85725ecc9112a88bf57824':
Fix WiFi test:
f2991add02f3e6f50dd65a835fffec3aa7221769 31-Jan-2013 Xia Wang <xiaw@google.com> Fix WiFi test:

-- In environment where there are too many APs, sometimes, the AP will not show in the scan list.
Part of the reason is due to the change that the scanning on each frequency is shortened to save power.
to avoid that, change the test to connect without scanning.

-- Increase the timer to wait for WiFi to be connected

Change-Id: If1a72607b3c7ad13dbbf788607665986eaf5b6b3
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
ndroid/connectivitymanagertest/functional/WifiConnectionTest.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
f2488b63283dca1d0bb9ca97961d9785ae2c64d8 15-Jan-2013 Irfan Sheriff <isheriff@google.com> Fix connectivitymanagertest

Change-Id: If5687eacec0f502c39b102eb5cf7d9383f0ec056
ndroid/connectivitymanagertest/AccessPointParserHelper.java
b2a2096903342a9eaba0b8f64f0f549e5277b662 01-Nov-2012 Xia Wang <xiaw@google.com> Fix WiFi stress test

- Disable lock screen after screen is turned on.
Without disabling lock screen, device will screen off automatically after around 10 seconds

- Add a longer timer for ping test when the data traffic is stalled.
For a short ping test, it is hard to tell whether it is a transient issue or a real issue.

bug# 7426823

Change-Id: If1a560e11dcdff519562bb2a22651d1fd523b5a2
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
3272a38dbc5fdf2d68b653592a244059cd29255a 26-Sep-2012 Xia Wang <xiaw@google.com> Fix Wifi Stress test after wifi settings are moved to Settings.global

Change-Id: I823e99b39bc340683b686bb0dd43a473865656f0
ndroid/connectivitymanagertest/stress/WifiStressTest.java
c09cdce1b05075da808ae080b9905a14a3e1e627 11-Sep-2012 Christopher Tate <ctate@google.com> Update airplane-mode manipulation for the new Settings namespace

Quick Settings and global actions (aka longpress-Power) toggles are
included in this CL. The Settings app manipulations are updated in
a different CL because that's a different git package.

Bug 7132230

Change-Id: I50838f5e8d7b25a750d2bcae90bf384b09816dbb
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
9630704ed3b265f008a8f64ec60a33cf9dcd3345 28-Jul-2012 Jeff Brown <jeffbrown@google.com> Power manager rewrite.

The major goal of this rewrite is to make it easier to implement
power management policies correctly. According, the new
implementation primarily uses state-based rather than event-based
triggers for applying changes to the current power state.

For example, when an application requests that the proximity
sensor be used to manage the screen state (by way of a wake lock),
the power manager makes note of the fact that the set of
wake locks changed. Then it executes a common update function
that recalculates the entire state, first looking at wake locks,
then considering user activity, and eventually determining whether
the screen should be turned on or off. At this point it may
make a request to a component called the DisplayPowerController
to asynchronously update the display's powe state. Likewise,
DisplayPowerController makes note of the updated power request
and schedules its own update function to figure out what needs
to be changed.

The big benefit of this approach is that it's easy to mutate
multiple properties of the power state simultaneously then
apply their joint effects together all at once. Transitions
between states are detected and resolved by the update in
a consistent manner.

The new power manager service has is implemented as a set of
loosely coupled components. For the most part, information
only flows one way through these components (by issuing a
request to that component) although some components support
sending a message back to indicate when the work has been
completed. For example, the DisplayPowerController posts
a callback runnable asynchronously to tell the PowerManagerService
when the display is ready. An important feature of this
approach is that each component neatly encapsulates its
state and maintains its own invariants. Moreover, we do
not need to worry about deadlocks or awkward mutual exclusion
semantics because most of the requests are asynchronous.

The benefits of this design are especially apparent in
the implementation of the screen on / off and brightness
control animations which are able to take advantage of
framework features like properties, ObjectAnimator
and Choreographer.

The screen on / off animation is now the responsibility
of the power manager (instead of surface flinger). This change
makes it much easier to ensure that the animation is properly
coordinated with other power state changes and eliminates
the cause of race conditions in the older implementation.

The because of the userActivity() function has been changed
so that it never wakes the device from sleep. This change
removes ambiguity around forcing or disabling user activity
for various purposes. To wake the device, use wakeUp().
To put it to sleep, use goToSleep(). Simple.

The power manager service interface and API has been significantly
simplified and consolidated. Also fixed some inconsistencies
related to how the minimum and maximum screen brightness setting
was presented in brightness control widgets and enforced behind
the scenes.

At present the following features are implemented:

- Wake locks.
- User activity.
- Wake up / go to sleep.
- Power state broadcasts.
- Battery stats and event log notifications.
- Dreams.
- Proximity screen off.
- Animated screen on / off transitions.
- Auto-dimming.
- Auto-brightness control for the screen backlight with
different timeouts for ramping up versus ramping down.
- Auto-on when plugged or unplugged.
- Stay on when plugged.
- Device administration maximum user activity timeout.
- Application controlled brightness via window manager.

The following features are not yet implemented:

- Reduced user activity timeout for the key guard.
- Reduced user activity timeout for the phone application.
- Coordinating screen on barriers with the window manager.
- Preventing auto-rotation during power state changes.
- Auto-brightness adjustment setting (feature was disabled
in previous version of the power manager service pending
an improved UI design so leaving it out for now).
- Interpolated brightness control (a proposed new scheme
for more compactly specifying auto-brightness levels
in config.xml).
- Button / keyboard backlight control.
- Change window manager to associated WorkSource with
KEEP_SCREEN_ON_FLAG wake lock instead of talking
directly to the battery stats service.
- Optionally support animating screen brightness when
turning on/off instead of playing electron beam animation
(config_animateScreenLights).

Change-Id: I1d7a52e98f0449f76d70bf421f6a7f245957d1d7
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.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
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/functional/WifiConnectionTest.java
2f19a3103c2cdcf5613eb70493122fb366d509ef 15-May-2012 Xia Wang <xiaw@google.com> Fix issue: Disable soft ap when test activity is created.
Add timer for soft ap enalbing timer: 6192139

Change-Id: I9f9a6a1f0787efdfbb924af80f7d610c07cd32e5
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/stress/WifiApStress.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
81341fee6de80d8808afd8af3009258660a8f834 07-May-2012 Xia Wang <xiaw@google.com> Fix Wifi test

bug: http://b/issue?id=6446248
Change-Id: I22783ed3de37bf51aed7cee9617017868f524f0d
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
fb32ab903affabbf1f71ee499381e070feaef987 21-Mar-2012 Kenny Root <kroot@google.com> Update Wifi tests

Wifi tests used old WifiConfiguration values. This updates it to the new
values.

Change-Id: I14498aebba50f906181fa377b84855eae3d046fc
ndroid/connectivitymanagertest/AccessPointParserHelper.java
6d3c2f0cad85b5f618d0bdbf3e9ca659768a47f0 10-Mar-2012 Xia Wang <xiaw@google.com> Fix test flakiness

Disable soft AP before start the wifi stress test.
If soft AP test failed with AP enabled, the wifi client can not be
enabled.

Change-Id: Ie6950f6b5b662727f2e811d9b81aeb0f4f7cda91
ndroid/connectivitymanagertest/stress/WifiStressTest.java
776cca3b3a84cd16bdaccdd43963cc34d923e0a4 10-Mar-2012 Xia Wang <xiaw@google.com> Allow CM/WIFI tests running with wifi-only flag.

Change-Id: I12ab8f6f0335574a5af6db497ed76e6d5fec3ab7
ndroid/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
ndroid/connectivitymanagertest/ConnectivityManagerTestRunner.java
ndroid/connectivitymanagertest/UtilHelper.java
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
ndroid/connectivitymanagertest/stress/WifiApStress.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
27284da88c4552c5be4c8eff8acd36b518da47da 09-Mar-2012 Xia Wang <xiaw@google.com> Fix CM test
http://b/issue?id=6125619

Change-Id: I33306619424ab54281aaf592c78581179ebbfc6e
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.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
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/functional/WifiConnectionTest.java
16b7ddcfe64acf6715ba4b6e012c3d12d15d0380 07-Feb-2012 Xia Wang <xiaw@google.com> Remove airplane mode related wifi test for Wi-Fi only devices.

Change-Id: I5b319b98ac68c0b7f053c5baf084c3138db8fe07
ndroid/connectivitymanagertest/ConnectivityManagerTestRunner.java
4dfa295ad8b75a8c0976e7de078ebe4f654a6a89 28-Jan-2012 Brett Chabot <brettchabot@android.com> Use PackageManager to detect wifi-only devices in ConnectivityManagerTest.

Change-Id: I9749bf9024a73af095d4a681bb902594828ad599
ndroid/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
ndroid/connectivitymanagertest/ConnectivityManagerTestRunner.java
ndroid/connectivitymanagertest/UtilHelper.java
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
4acb784630c9ceeff1f8834751999661fdb4eab2 12-Jan-2012 Xia Wang <xiaw@google.com> am 87badc20: am 4ac4ab4e: Merge "Remove sleep from test acitivity to avoid ANR when key event is injected bug#: 5737922" into ics-mr1

* commit '87badc20c7d5462ee27f13adf50acaf6a3232884':
Remove sleep from test acitivity to avoid ANR when key event is injected bug#: 5737922
80177940911a143fe61b10b9244e6426f4026e01 20-Dec-2011 Xia Wang <xiaw@google.com> Remove sleep from test acitivity to avoid ANR when key event is injected
bug#: 5737922

Change-Id: I7871713c5000d122e63127b30d0151b8f5a29bcf
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
cdc077c9dd6473b5abfad4edfaf1ff41a436caaf 12-Dec-2011 Irfan Sheriff <isheriff@google.com> Fix configured network status

For a connected network, keep status as CURRENT. For a network,
that is disconnected it should be ENABLED. A disabled network
will have the status as DISABLED

Also, add a unit test to ensure there is only one CURRENT network
that is connected

Change-Id: Iaa4a7124a0c372a8f6df3d846ae8c15d9b29cf13
ndroid/connectivitymanagertest/unit/WifiClientTest.java
10a3e8fae865f17c10816d1767d2efa3d4a18935 03-Dec-2011 Xia Wang <xiaw@google.com> Add extra 2 minute for wifi to shutdown

Change-Id: I3cf2fbf5de8b96b75d5e460e4ad822a1947ff6e7
ndroid/connectivitymanagertest/stress/WifiStressTest.java
2d9f4620625405b916aa27177a6b5f82f8e5b15d 29-Nov-2011 Xia Wang <xiaw@google.com> Fix build

Change-Id: I465d85e4783763f311ed6ec0a09c1edde9712405
ndroid/connectivitymanagertest/functional/WifiConnectionTest.java
a4c2caac05009512213454d329579a79dde11e5f 17-Nov-2011 Xia Wang <xiaw@google.com> Increase time between wifi stop and wifi start: set to 2 minutes
http://b/issue?id=5629901

Change on state validation:
- When network state is broadcast in other network information,
the test activity will record the state change which cause false
alarm in the test.

Change-Id: I8bd1e8c04ab97116f3a02ccc5543f34a7e651cda
ndroid/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/NetworkState.java
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
ndroid/connectivitymanagertest/functional/WifiConnectionTest.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
aa70f101e08098ed9cb190abe2d7f952561026b8 28-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> Add RouteInfo objects for tracking routes.

Used to have list of gateways for default routes, but general static routes
should be supported.

Change-Id: I01730142c6139f2b833b9d48f5381d2d320b69f6
ndroid/connectivitymanagertest/AccessPointParserHelper.java
dddfaa75e77f4d02cc7b4180f5eb0679321cb628 09-Apr-2011 Xia Wang <xiaw@google.com> Fix access point parsing: reset static link property after parsing
static ip setting
Fix removeConfiguredNetwork: add sleep between remove configured network
and disable wifi

Change-Id: I619e79e9bc414b9aeae3537dbc642a7fbc9fca97
ndroid/connectivitymanagertest/AccessPointParserHelper.java
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/functional/WifiConnectionTest.java
4bc5c4a1f5ea529ef7c7b38ee3782c8f209f7b9c 11-Mar-2011 Xia Wang <xiaw@google.com> resolved conflicts for merge of 16cbe575 to honeycomb-mr1

Change-Id: Ic55f0bdeb5fc63bdabb4f4546fa7e1aa3201a6e0
3d58d63b03edd95352b70b9b18251c4f72f17b74 09-Mar-2011 Xia Wang <xiaw@google.com> Add WifiStressTest to Wi-Fi only test suite.

Change-Id: Id15ec2e291729b910ee05cef4650efb8d2e1a43c
ndroid/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
7d83f6020c31c21b84114b35e6303895d082e18d 05-Mar-2011 Xia Wang <xiaw@google.com> am 928ec5e0: Merge "Modify connectivity manager test suite so that it can be run on Wi-Fi only device." into honeycomb

* commit '928ec5e021162fe371da8bdac7f5bb2c854b1aa1':
Modify connectivity manager test suite so that it can be run on Wi-Fi only device.
b97435c94f4d35a70d63e5dcba5415b0110cf2c9 04-Mar-2011 Xia Wang <xiaw@google.com> Modify connectivity manager test suite so that it can be run on Wi-Fi
only device.

DO NOT MERGE

bug id: 3511242

Change-Id: I7dc6d30793cf679b53af571f58b7405ab9e33299
ndroid/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
ndroid/connectivitymanagertest/ConnectivityManagerTestRunner.java
ndroid/connectivitymanagertest/UtilHelper.java
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
ebe606fccd9293674273d5f73246e0e8e6e6ddcf 24-Feb-2011 Irfan Sheriff <isheriff@google.com> Using AsyncChannel for wifi connectivity

Change-Id: Ieee5a3a1a739238d8a6659493684f1be0cbea691
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/functional/WifiConnectionTest.java
8d2f78898eedef90b7382e2517e88db0e0e9ca58 23-Feb-2011 Xia Wang <xiaw@google.com> Remove long sleep time in WifiApStress test
as it causes the test to run for a long time.

Change-Id: I82dd042866f9e9f4637a5c3cc553334abe769260
ndroid/connectivitymanagertest/stress/WifiApStress.java
6bffe14c78efa0b56327262543ce2e0dfc024219 18-Feb-2011 Xia Wang <xiaw@google.com> Add ping test to verify data connection.

Change-Id: I88e06934747e9e98bd440ae84268e69486c74734
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/stress/WifiApStress.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
b979f79158f9c470fa09ff3b96d72db274262201 12-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Remove more use of netmask

bug:2542681
Change-Id: Ifd75672739ee8262d4df22afd8173e4f3f67260d
ndroid/connectivitymanagertest/AccessPointParserHelper.java
718dfa8d94c8ab99133c5ea6b5005fdb70e16c43 14-Feb-2011 Xia Wang <xiaw@google.com> Merge "Add wait time for Wi-Fi tethering test, bug http://b/issue?id=3436586"
cbafbe7c3e4da0a9cccfddd07f78f2e74a7870cb 11-Feb-2011 Xia Wang <xiaw@google.com> Merge "Fix test3GToWifiNotification for mobile state validation."
992564e481af13cbcb058ee801f9254a520c54a1 09-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Update LinkProperties treatment of gateways

A link can have multiple gateways (think ipv4/ipv6 for a trivial example).
.

bug:3438810
Change-Id: I28c90a6947cd50b82e5ca9a0113148f98b3f4dd8
ndroid/connectivitymanagertest/AccessPointParserHelper.java
be142fc6aae5484b518f6ab29d12f0c086f6fa74 08-Feb-2011 Xia Wang <xiaw@google.com> Fix test3GToWifiNotification for mobile state validation.

Change-Id: I018b28b78907fdd9f3f835faf562b4da5fea8f80
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
ec841adcf70edfdffce096b039e2cd3930633131 09-Feb-2011 Xia Wang <xiaw@google.com> Add wait time for Wi-Fi tethering test, bug http://b/issue?id=3436586

Change-Id: I6aaac0e6ef7f89d5052c8a5dd2bef71612e72942
ndroid/connectivitymanagertest/stress/WifiApStress.java
3d273da8fa08ddcb16b8fefa35aff10b45778ddc 21-Jan-2011 Yu Shan Emily Lau <yslau@google.com> Change the default ssid from GoogleGuest to the opennet for the power test.

Change-Id: I63bae360d283dc5224790aaccbd879015402187d
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
2dc2991f5833c9ca72e5e4d1f7bdc1c6c8caca91 12-Jan-2011 Xia Wang <xiaw@google.com> Wait for Wi-Fi state change before set the state verification criteria.
bug: 3336896

Change-Id: If4faf55d1c9a326a0cbd95013b8a5edce562230e
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
b45e726bf5df9650e8a67a7c05bf2f41f414c07d 21-Dec-2010 Irfan Sheriff <isheriff@google.com> Fix wifi broadcasts

Add the missing wifi disable broadcast and also send out
supplicant disconnect on shutdown.

Added unit test cases.

Bug: 3294055

Change-Id: Ia56a8ec9d17784c5aac5b8b369c04837f9057c54
ndroid/connectivitymanagertest/unit/WifiClientTest.java
73055f12d7764e322f3f83717525a2dba01f9ef9 16-Dec-2010 Xia Wang <xiaw@google.com> Few changes for Wi-Fi Stress Test

Add WIFI_IDLE_MS to 1min in Wi-Fi stress test. bug#3284797
Wake up device using PowerManagerService.userActivityWithForce instead
of full wake lock.
Turn screen on when running Wi-Fi tests.

Change-Id: Ib763136cef515eec8b1d25183cf7a84ae1038ef2
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/stress/WifiApStress.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
58938159ec378670ea784d07aa13ac47f4730cbb 16-Dec-2010 Irfan Sheriff <isheriff@google.com> Fix ssid storage regression

I introduced a bug with change Ic12fd78f. Quite
possibly a copy-paste issue.

Bug: 3281928
Change-Id: I040fa8580c3d6d5c585d0e5cc4306daab2f44c3d
ndroid/connectivitymanagertest/unit/WifiClientTest.java
8efaeb03ea1ecd633f61bdb03bb90393887f08df 11-Dec-2010 Xia Wang <xiaw@google.com> Disable airplane mode once the test is finished. #3276498
Verify wifi state in 3g->AM->3g test.

Change-Id: I3ce7ebad963c09be666b508f05eddbd0ded255d7
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
93ca011c60c140facb5a790c25a882a384460a86 10-Dec-2010 Xia Wang <xiaw@google.com> Make Wi-Fi stress tests output log consistent.
Fix: record average at the beginning of each iteration

Change-Id: Ia129348dbf79ecf7efc7169b8bbfac3755ccce63
ndroid/connectivitymanagertest/stress/WifiApStress.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
8c1c1e875e836cfb2377effdf850f5caa1fe6f4d 08-Dec-2010 Xia Wang <xiaw@google.com> Make the scan test log consistent.

Change-Id: I44fd790c21fed6bb2b615a047b762b5ac7c451bb
ndroid/connectivitymanagertest/stress/WifiStressTest.java
90e1c782a63475cd9b3973936decf6a4f6c6148f 03-Dec-2010 Xia Wang <xiaw@google.com> Add Wi-Fi stress tests.

- Wi-Fi scan stress
- Wi-Fi reconnection stress
- Measure Wi-Fi scanning performance:
. Average scanning time
. Scanning quality

Change-Id: Ifce496876811816b452aed4ae9642fdb2db44798
ndroid/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/stress/WifiApStress.java
ndroid/connectivitymanagertest/stress/WifiStressTest.java
a42a1e6b6fb6acc9ca327523ae456e464f8aedc1 23-Nov-2010 Xia Wang <xiaw@google.com> Add Wi-Fi connection test for static IP

- Add support in access point parser to support static ip settings
- Add Wi-Fi test with static IP configuration
- Use WifiManager new APIs
- Fix issue: if the expected AP is not in the scan list, retry scanning.
Maximum is 5.
- Fix issue: wait for wifi state change before connecting to AP.

Change-Id: Id09b921c8a6a4b14f3c65cdea0b58c7e6f395520
ndroid/connectivitymanagertest/AccessPointParserHelper.java
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/functional/WifiConnectionTest.java
ef11d3289ed334f1704dc5e2fdcaba8c34b6c2a6 22-Nov-2010 Xia Wang <xiaw@google.com> am 6bdd6937: am 5df8c155: Merge "Add Wifi Tethering stress test" into gingerbread

* commit '6bdd69370fe2bda7adc7055f62165fccd944b192':
Add Wifi Tethering stress test
6026d52710d7a6195a33885020d29aa1330fa855 16-Nov-2010 Xia Wang <xiaw@google.com> Add Wifi Tethering stress test

Stress Wifi driver loading and unloading by enable/disable access point
mode.

Change-Id: Ie31266d2b9665cb304473f1c14c83bc57e9920f2
ndroid/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/stress/WifiApStress.java
4e74e181d1f06b31ebe98589dbe2ee9ddb722173 16-Nov-2010 Xia Wang <xiaw@google.com> am f55c9736: am d0a8f54a: Merge "Add Wi-Fi connection functional tests." into gingerbread

* commit 'f55c973637f2b17de0f5543260e7e409a8635112':
Add Wi-Fi connection functional tests.
ca1f2b1a1e8cb785be5ebbcf7ded7c921cbf80a7 13-Nov-2010 Xia Wang <xiaw@google.com> Add Wi-Fi connection functional tests.

- Add a XML parser to parse Wi-Fi configurations
- Add Wifi connection tests
- Fix issue: failure in setup will block the next tests.
call tearDown() if the test fails at setUp().

Change-Id: I1a380fa02ebc96b69165d1514da12df985224e8d
ndroid/connectivitymanagertest/AccessPointParserHelper.java
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/ConnectivityManagerTestRunner.java
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
ndroid/connectivitymanagertest/functional/WifiConnectionTest.java
1406bcb75150e8386b4d858f27089cc1359e7f14 28-Oct-2010 Irfan Sheriff <isheriff@google.com> Use AsynChannel for synchronous API

also cleaned up some unnecessary synchronous commands from state machine,
and fixed an issue with a synchronous WPS command

Change-Id: I55bf4379d9810e11f2ba2e03e2e703b132d1488f
ndroid/connectivitymanagertest/ConnectivityManagerUnitTestRunner.java
ndroid/connectivitymanagertest/unit/WifiClientTest.java
8f076ec3c3133c70b67cdb9f5ae0907fd20492dd 26-Jul-2010 Xia Wang <xiaw@google.com> DO NOT MERGE

move change to gingerbread.

Wait for broadcast even if the network state has been changed.
bug: 2863356

Change-Id: Ia78d1d6c2906371b56dfd4765845431047e9e9c0
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
69a5a9666281013fbc5f528b724b6c84e61d5962 26-Jul-2010 Xia Wang <xiaw@google.com> Wait for broadcast even if the network state has been changed.
bug: 2863356

Change-Id: If279e891cf66fcef465e85b704b0b857f6ac3742
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
b6761e73ce6b255cfe96bfa1fa6ac611abcfc067 17-Jul-2010 Hung Dang <hndang@google.com> am 28fe43be: Merge "Add the hook which can set the device to connect to wifi and in airplane mode after reboot. This is for the power test." into froyo

Merge commit '28fe43be5c364a8f7f248a5ac05cf832a83737c2' into gingerbread

* commit '28fe43be5c364a8f7f248a5ac05cf832a83737c2':
Add the hook which can set the device to connect to wifi and in airplane mode after reboot. This is for the power test.
ba1348e3c21502ecde9427413703defa6d105132 16-Jul-2010 Yu Shan Emily Lau <yslau@google.com> Add the hook which can set the device to connect to wifi and in airplane mode after reboot. This is for the power test.

Change-Id: I42527612764252d1c47bd29a2b88d5e3019cfdf9
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
120a58fb80ec9ba5b62e4b7453ea45703d1ce58a 29-Jun-2010 Xia Wang <xiaw@google.com> Extend unit test framework for Wifi soft AP configuration
Add test case: testApSsidWithAlphabet

Change-Id: Ie188f241d15603015d264a7d568ed44ce4ca3ad8
ndroid/connectivitymanagertest/ConnectivityManagerUnitTestRunner.java
ndroid/connectivitymanagertest/unit/WifiSoftAPTest.java
069067963cf0117cfb4a1aef99b550b126d9ca92 20-May-2010 Xia Wang <xiaw@google.com> If the network SSID is a string, it should be enclosed in double quotation marks.

bug id: 2701058

Change-Id: I40e10ba096053710d4974b005d0d2e7c309ccffe
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
4672203ea119f38786f55ac866f38da307671a49 06-May-2010 Xia Wang <xiaw@google.com> Avoid UNKNOWN state for Wifi in bug2542613, not a common user case.

Change-Id: Ief0a953e2909cb5c808f0d683ab95d14f6c53e72
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
72b301fac1f2420f770cd060a3d00dad4340287b 06-Apr-2010 Xia Wang <xiaw@google.com> Fix bug2537659
When airplane mode is disabled, Mobile connection may be bring up
before connecting to a known wifi.

Change-Id: I92e395aefd141c8bc4b8b2e497a71e5fd131eec2
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
2c15966f8cf6160ad5dcbbde372508de89985829 28-Mar-2010 Xia Wang <xiaw@google.com> Test connecitvity manager functionality in state change.
* Verify state change when enabling/disabling wifi
* Verify network connectivity change while switching among 3G, Wifi, and Airplane mode

Change-Id: Ia4581b10b794c7b301d28019563bca832bcd8b90
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/NetworkState.java
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
fc2dbd04005c32360eead803e29df3cc62209cd8 23-Mar-2010 Xia Wang <xiaw@google.com> * Move connectivity manager test closer to source.
* Add license header to java files
* Remove google related information from the test

Change-Id: I2e57960f9ac963cdf3591385e21ed68832f74bd0
ndroid/connectivitymanagertest/ConnectivityManagerTestActivity.java
ndroid/connectivitymanagertest/ConnectivityManagerTestRunner.java
ndroid/connectivitymanagertest/NetworkState.java
ndroid/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java