summaryrefslogtreecommitdiffstats
path: root/core/tests/ConnectivityManagerTest
Commit message (Collapse)AuthorAgeFilesLines
* Update Wifi testsKenny Root2012-03-271-1/+3
| | | | | | | Wifi tests used old WifiConfiguration values. This updates it to the new values. Change-Id: I14498aebba50f906181fa377b84855eae3d046fc
* Fix test flakinessXia Wang2012-03-121-0/+5
| | | | | | | | 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
* Allow CM/WIFI tests running with wifi-only flag.Xia Wang2012-03-096-120/+91
| | | | Change-Id: I12ab8f6f0335574a5af6db497ed76e6d5fec3ab7
* Fix CM testXia Wang2012-03-081-0/+1
| | | | | | http://b/issue?id=6125619 Change-Id: I33306619424ab54281aaf592c78581179ebbfc6e
* Fix WifiManager async APIIrfan Sheriff2012-03-012-4/+20
| | | | | | | | | 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
* Remove airplane mode related wifi test for Wi-Fi only devices.Xia Wang2012-02-161-2/+1
| | | | Change-Id: I5b319b98ac68c0b7f053c5baf084c3138db8fe07
* Use PackageManager to detect wifi-only devices in ConnectivityManagerTest.Brett Chabot2012-02-015-47/+59
| | | | Change-Id: I9749bf9024a73af095d4a681bb902594828ad599
* am 87badc20: am 4ac4ab4e: Merge "Remove sleep from test acitivity to avoid ↵Xia Wang2012-01-111-2/+0
|\ | | | | | | | | | | | | 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
| * Remove sleep from test acitivity to avoid ANR when key event is injectedXia Wang2011-12-191-2/+0
| | | | | | | | | | | | bug#: 5737922 Change-Id: I7871713c5000d122e63127b30d0151b8f5a29bcf
* | Fix configured network statusIrfan Sheriff2011-12-121-0/+42
|/ | | | | | | | | | | 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
* Add extra 2 minute for wifi to shutdownXia Wang2011-12-051-6/+8
| | | | Change-Id: I3cf2fbf5de8b96b75d5e460e4ad822a1947ff6e7
* Fix buildXia Wang2011-11-281-1/+1
| | | | Change-Id: I465d85e4783763f311ed6ec0a09c1edde9712405
* Increase time between wifi stop and wifi start: set to 2 minutesXia Wang2011-11-216-79/+89
| | | | | | | | | | | 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
* Add RouteInfo objects for tracking routes.Robert Greenwalt2011-05-021-1/+2
| | | | | | | Used to have list of gateways for default routes, but general static routes should be supported. Change-Id: I01730142c6139f2b833b9d48f5381d2d320b69f6
* Fix access point parsing: reset static link property after parsingXia Wang2011-04-083-57/+26
| | | | | | | | static ip setting Fix removeConfiguredNetwork: add sleep between remove configured network and disable wifi Change-Id: I619e79e9bc414b9aeae3537dbc642a7fbc9fca97
* resolved conflicts for merge of 16cbe575 to honeycomb-mr1Xia Wang2011-03-102-19/+21
|\ | | | | | | Change-Id: Ic55f0bdeb5fc63bdabb4f4546fa7e1aa3201a6e0
| * Add WifiStressTest to Wi-Fi only test suite.Xia Wang2011-03-082-18/+20
| | | | | | | | Change-Id: Id15ec2e291729b910ee05cef4650efb8d2e1a43c
* | am 928ec5e0: Merge "Modify connectivity manager test suite so that it can be ↵Xia Wang2011-03-054-65/+145
|\ \ | |/ | | | | | | | | | | 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.
| * Modify connectivity manager test suite so that it can be run on Wi-FiXia Wang2011-03-034-65/+145
| | | | | | | | | | | | | | | | | | | | only device. DO NOT MERGE bug id: 3511242 Change-Id: I7dc6d30793cf679b53af571f58b7405ab9e33299
* | Using AsyncChannel for wifi connectivityIrfan Sheriff2011-02-282-10/+56
| | | | | | | | Change-Id: Ieee5a3a1a739238d8a6659493684f1be0cbea691
* | Remove long sleep time in WifiApStress testXia Wang2011-02-231-9/+0
| | | | | | | | | | | | as it causes the test to run for a long time. Change-Id: I82dd042866f9e9f4637a5c3cc553334abe769260
* | Add ping test to verify data connection.Xia Wang2011-02-173-0/+58
| | | | | | | | Change-Id: I88e06934747e9e98bd440ae84268e69486c74734
* | Remove more use of netmaskRobert Greenwalt2011-02-141-20/+4
| | | | | | | | | | bug:2542681 Change-Id: Ifd75672739ee8262d4df22afd8173e4f3f67260d
* | Merge "Add wait time for Wi-Fi tethering test, bug http://b/issue?id=3436586"Xia Wang2011-02-141-0/+8
|\ \
| * | Add wait time for Wi-Fi tethering test, bug http://b/issue?id=3436586Xia Wang2011-02-101-0/+8
| |/ | | | | | | Change-Id: I6aaac0e6ef7f89d5052c8a5dd2bef71612e72942
* | Merge "Fix test3GToWifiNotification for mobile state validation."Xia Wang2011-02-111-7/+17
|\ \
| * | Fix test3GToWifiNotification for mobile state validation.Xia Wang2011-02-101-7/+17
| |/ | | | | | | Change-Id: I018b28b78907fdd9f3f835faf562b4da5fea8f80
* | Update LinkProperties treatment of gatewaysRobert Greenwalt2011-02-111-1/+1
|/ | | | | | | | A link can have multiple gateways (think ipv4/ipv6 for a trivial example). . bug:3438810 Change-Id: I28c90a6947cd50b82e5ca9a0113148f98b3f4dd8
* Change the default ssid from GoogleGuest to the opennet for the power test.Yu Shan Emily Lau2011-01-211-1/+1
| | | | Change-Id: I63bae360d283dc5224790aaccbd879015402187d
* Wait for Wi-Fi state change before set the state verification criteria.Xia Wang2011-01-111-4/+11
| | | | | | bug: 3336896 Change-Id: If4faf55d1c9a326a0cbd95013b8a5edce562230e
* Fix wifi broadcastsIrfan Sheriff2010-12-221-0/+88
| | | | | | | | | | | Add the missing wifi disable broadcast and also send out supplicant disconnect on shutdown. Added unit test cases. Bug: 3294055 Change-Id: Ia56a8ec9d17784c5aac5b8b369c04837f9057c54
* Few changes for Wi-Fi Stress TestXia Wang2010-12-213-42/+48
| | | | | | | | | 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
* Fix ssid storage regressionIrfan Sheriff2010-12-161-1/+1
| | | | | | | | I introduced a bug with change Ic12fd78f. Quite possibly a copy-paste issue. Bug: 3281928 Change-Id: I040fa8580c3d6d5c585d0e5cc4306daab2f44c3d
* Disable airplane mode once the test is finished. #3276498Xia Wang2010-12-101-9/+9
| | | | | | Verify wifi state in 3g->AM->3g test. Change-Id: I3ce7ebad963c09be666b508f05eddbd0ded255d7
* Make Wi-Fi stress tests output log consistent.Xia Wang2010-12-092-12/+12
| | | | | | Fix: record average at the beginning of each iteration Change-Id: Ia129348dbf79ecf7efc7169b8bbfac3755ccce63
* Make the scan test log consistent.Xia Wang2010-12-071-1/+1
| | | | Change-Id: I44fd790c21fed6bb2b615a047b762b5ac7c451bb
* Add Wi-Fi stress tests.Xia Wang2010-12-076-17/+402
| | | | | | | | | | - Wi-Fi scan stress - Wi-Fi reconnection stress - Measure Wi-Fi scanning performance: . Average scanning time . Scanning quality Change-Id: Ifce496876811816b452aed4ae9642fdb2db44798
* Add Wi-Fi connection test for static IPXia Wang2010-12-024-150/+304
| | | | | | | | | | | - 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
* am 6bdd6937: am 5df8c155: Merge "Add Wifi Tethering stress test" into ↵Xia Wang2010-11-224-1/+281
|\ | | | | | | | | | | | | gingerbread * commit '6bdd69370fe2bda7adc7055f62165fccd944b192': Add Wifi Tethering stress test
| * Add Wifi Tethering stress testXia Wang2010-11-224-1/+281
| | | | | | | | | | | | | | Stress Wifi driver loading and unloading by enable/disable access point mode. Change-Id: Ie31266d2b9665cb304473f1c14c83bc57e9920f2
* | am f55c9736: am d0a8f54a: Merge "Add Wi-Fi connection functional tests." ↵Xia Wang2010-11-166-132/+610
|\ \ | |/ | | | | | | | | | | into gingerbread * commit 'f55c973637f2b17de0f5543260e7e409a8635112': Add Wi-Fi connection functional tests.
| * Add Wi-Fi connection functional tests.Xia Wang2010-11-156-132/+610
| | | | | | | | | | | | | | | | | | - 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
| * DO NOT MERGEXia Wang2010-07-291-38/+38
| | | | | | | | | | | | | | | | | | move change to gingerbread. Wait for broadcast even if the network state has been changed. bug: 2863356 Change-Id: Ia78d1d6c2906371b56dfd4765845431047e9e9c0
* | Use AsynChannel for synchronous APIIrfan Sheriff2010-11-022-0/+188
| | | | | | | | | | | | | | also cleaned up some unnecessary synchronous commands from state machine, and fixed an issue with a synchronous WPS command Change-Id: I55bf4379d9810e11f2ba2e03e2e703b132d1488f
* | Wait for broadcast even if the network state has been changed.Xia Wang2010-07-261-38/+38
|/ | | | | | bug: 2863356 Change-Id: If279e891cf66fcef465e85b704b0b857f6ac3742
* am 28fe43be: Merge "Add the hook which can set the device to connect to wifi ↵Hung Dang2010-07-161-0/+43
|\ | | | | | | | | | | | | | | | | 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.
| * Add the hook which can set the device to connect to wifi and in airplane ↵Yu Shan Emily Lau2010-07-161-0/+43
| | | | | | | | | | | | mode after reboot. This is for the power test. Change-Id: I42527612764252d1c47bd29a2b88d5e3019cfdf9
* | Extend unit test framework for Wifi soft AP configurationXia Wang2010-06-293-0/+143
| | | | | | | | | | | | Add test case: testApSsidWithAlphabet Change-Id: Ie188f241d15603015d264a7d568ed44ce4ca3ad8
* | am 3716ea04: am 06906796: If the network SSID is a string, it should be ↵Xia Wang2010-05-201-1/+5
|\ \ | |/ | | | | | | | | | | | | | | enclosed in double quotation marks. Merge commit '3716ea04d9fd59ff95bacdf6efac4ab5583e13fc' into kraken * commit '3716ea04d9fd59ff95bacdf6efac4ab5583e13fc': If the network SSID is a string, it should be enclosed in double quotation marks.
| * If the network SSID is a string, it should be enclosed in double quotation ↵Xia Wang2010-05-201-1/+5
| | | | | | | | | | | | | | | | marks. bug id: 2701058 Change-Id: I40e10ba096053710d4974b005d0d2e7c309ccffe