439 Commits

Author SHA1 Message Date
Irfan Sheriff
b45e726bf5 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
2010-12-22 14:43:13 -08:00
Xia Wang
b057c3dbe6 Merge "Few changes for Wi-Fi Stress Test" 2010-12-21 13:13:42 -08:00
Xia Wang
73055f12d7 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
2010-12-21 11:31:06 -08:00
Jesse Wilson
bd1c5da28d Remove unused performance tests.
Change-Id: I5a252e314831716f99ce5fbb32d983c7473ee787
2010-12-21 10:23:28 -08:00
Jesse Wilson
43c0db48d2 Merge "Test that DefaultHttpClient responds gracefully when the server closes a socket. http://b/2612240" 2010-12-17 10:59:30 -08:00
Jesse Wilson
0cb0d7a2d4 Test that DefaultHttpClient responds gracefully when the server closes a socket.
http://b/2612240

Change-Id: Iafde060572f7865b72fc568b3b55578ed5dd9c94
2010-12-16 19:38:32 -08:00
Irfan Sheriff
d3040307ab Merge "Fix ssid storage regression" 2010-12-16 14:46:32 -08:00
Jesse Wilson
e8a56933de Merge "New tests for AndroidHttpClient with a proxy server." 2010-12-16 12:16:52 -08:00
Jesse Wilson
bf1df887d4 New tests for AndroidHttpClient with a proxy server.
Change-Id: I03ec2f1257824c8675156dd80f6045512d1a36fe
http://b/3254717
2010-12-16 12:06:32 -08:00
Irfan Sheriff
58938159ec Fix ssid storage regression
I introduced a bug with change Ic12fd78f. Quite
possibly a copy-paste issue.

Bug: 3281928
Change-Id: I040fa8580c3d6d5c585d0e5cc4306daab2f44c3d
2010-12-16 07:45:58 -08:00
Vasu Nori
82e891b325 fix downloadmanager tests. add few more. fix some. isolate flaky ones
the following work
  frameworks/base/core/tests/coretests/src/android/app/DownloadManagerFunctionalTest.java
    ideally, most of the tests in this should be moved to cts testsuite.
    will require reformatting of comments
    and probably removal of one or two tests using hidden public API.

  packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/DownloadManagerFunctionalTest.java
  packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java
  packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ThreadingTest.java
  packages/providers/DownloadProvider/tests/public_api_access/src/com/android/providers/downloads/public_api_access_tests/PublicApiAccessTest.java
  packages/providers/DownloadProvider/tests/permission/src/com/android/providers/downloads/permission/tests/DownloadProviderPermissionsTest.java

the following need work
  frameworks/base/core/tests/coretests/src/android/app/DownloadManagerStressTest.java
 some of these tests fail in a flaky way. they need work

Change-Id: Ib64645005a8f5faa32e0b9a4c5cacfe6e6ae3063
2010-12-16 00:36:50 -08:00
Xia Wang
8efaeb03ea Disable airplane mode once the test is finished. #3276498
Verify wifi state in 3g->AM->3g test.

Change-Id: I3ce7ebad963c09be666b508f05eddbd0ded255d7
2010-12-10 17:20:30 -08:00
Xia Wang
93ca011c60 Make Wi-Fi stress tests output log consistent.
Fix: record average at the beginning of each iteration

Change-Id: Ia129348dbf79ecf7efc7169b8bbfac3755ccce63
2010-12-09 19:07:59 -08:00
Fred Quintana
0c4d04ac2e allow sync adapter authors to control more policies
- let the SyncManager know that the SyncAdapter can handle
  parallel syncs even within sync adapter types
- allow indicating that the sync adapter should be auto
  initialized without requiring the sync adapter to run first.
  When this setting is used then setIsSyncable(1) is automatically
  called for the sync adapter.

Change-Id: Ib40eba95c2556eaee4bb0fe715f379af1b72b84a
2010-12-09 14:24:34 -08:00
Svetoslav Ganov
02b93914b4 Merge "bug 3248277 android.webkit.AccessibilityInjectorTest tests are flaky on trygon" 2010-12-08 11:39:13 -08:00
Eric Rowe
f9dee3b1d3 Merge "Allow extra flags to be fired in BT stress tests" 2010-12-08 11:11:48 -08:00
Xia Wang
8c1c1e875e Make the scan test log consistent.
Change-Id: I44fd790c21fed6bb2b615a047b762b5ac7c451bb
2010-12-07 15:39:11 -08:00
Svetoslav Ganov
ea26a4feb6 bug 3248277 android.webkit.AccessibilityInjectorTest tests are flaky on trygon
Change-Id: I06332bc6eafb692b9ec829a093d23eccde897a2a
2010-12-07 14:32:33 -08:00
Xia Wang
90e1c782a6 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
2010-12-07 14:21:51 -08:00
Jesse Wilson
ee3567558f Merge "Test that we use proxies specified by system properties." 2010-12-06 15:24:28 -08:00
Jesse Wilson
10733a71c5 Test that we use proxies specified by system properties.
This tests that we use the properties and also that the
precedence prefers client and request properties.

Change-Id: I480dacaf373e3ddd7642d3c918fa50695b36cdba
http://b/3254717
2010-12-06 15:10:11 -08:00
Fred Quintana
384977fcea Merge "add caching to the AccountManagerService" 2010-12-06 09:55:54 -08:00
Fred Quintana
56285a60e8 add caching to the AccountManagerService
- cache the accounts, userdata and authtokens
 - make the AccountManagerServiceTest work again
 - add a log statement for every binder call

http://b/issue?id=3188457

Change-Id: I96b94b9b690cf391fe4341e2a72893a6d823777b
2010-12-03 15:35:48 -08:00
Xia Wang
3c3743c541 Merge "Add Wi-Fi connection test for static IP" 2010-12-02 16:39:53 -08:00
Xia Wang
a42a1e6b6f 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
2010-12-02 16:25:26 -08:00
Eric Rowe
5d0ed7b952 Allow extra flags to be fired in BT stress tests
Change-Id: I69a7748a3cbbd5aa7d2e4e3d9201389d67180761
2010-12-01 12:35:46 -08:00
Jesse Wilson
47413708eb Add a test to demonstrate parsing of trailing URI parameters.
Change-Id: I1fde21381cf74b5e4847bb2c2a9ef52f8ac6a2bb
http://b/3124097
2010-12-01 11:48:51 -08:00
Bjorn Bringert
93fbae34ce Merge "Don't drop zeros in the second position in formatDuration()" 2010-11-24 03:25:17 -08:00
Fabrice Di Meglio
7e118b5ba0 Fix bug #2898737 (add unit tests for SyncOperation.toKey())
Change-Id: I25ae95c9ca67ae5dcb71ff427d976e3e93b48125
2010-11-23 17:31:29 -08:00
Bjorn Bringert
901b3796fd Don't drop zeros in the second position in formatDuration()
Bug: 3223250
Change-Id: I462c96af51cc052f9df1dc3d2c668551b10155ea
2010-11-23 14:43:12 +00:00
Xia Wang
ef11d3289e am 6bdd6937: am 5df8c155: Merge "Add Wifi Tethering stress test" into gingerbread
* commit '6bdd69370fe2bda7adc7055f62165fccd944b192':
  Add Wifi Tethering stress test
2010-11-22 14:50:28 -08:00
Xia Wang
6bdd69370f am 5df8c155: Merge "Add Wifi Tethering stress test" into gingerbread
* commit '5df8c155872833647ac56951ab90bd26a9af9480':
  Add Wifi Tethering stress test
2010-11-22 14:46:33 -08:00
Xia Wang
6026d52710 Add Wifi Tethering stress test
Stress Wifi driver loading and unloading by enable/disable access point
mode.

Change-Id: Ie31266d2b9665cb304473f1c14c83bc57e9920f2
2010-11-22 12:00:31 -08:00
Jesse Wilson
a8bbc11afc Merge "Decode JSON literal types eagerly and with our own decoder." 2010-11-18 23:09:44 -08:00
Jesse Wilson
9d9b4e70a1 Decode JSON literal types eagerly and with our own decoder.
Previously we relied on Double.parseDouble() to decode tokens. Since
that method is expensive, we deferred calling it unless absolutely
necessary.

Now we decode the literal type immediately. For efficiency we decode
the token right out of the char buffer. This makes things more
complicated but it saves many calls to charAt().

With this change overall performance is 7% faster for JSON documents
cited in the bug.

    benchmark                     run  ms linear runtime                    %
GsonParseFull no switch, no int parse 309 ============================    93%
GsonParseFull                baseline 330 ============================== 100%

http://b/3201883
Change-Id: I436b6769956b1357a17c807a327d3a234691c73f
2010-11-18 23:06:50 -08:00
Eric Rowe
248caac22e Merge "Remove asserts in bluetooth test utils" 2010-11-16 10:41:11 -08:00
Eric Rowe
16013b37cb Merge "Add acceptPair method to BT stress." 2010-11-16 10:39:24 -08:00
Xia Wang
4e74e181d1 am f55c9736: am d0a8f54a: Merge "Add Wi-Fi connection functional tests." into gingerbread
* commit 'f55c973637f2b17de0f5543260e7e409a8635112':
  Add Wi-Fi connection functional tests.
2010-11-16 09:18:48 -08:00
Xia Wang
f55c973637 am d0a8f54a: Merge "Add Wi-Fi connection functional tests." into gingerbread
* commit 'd0a8f54a5bcd6a10eaaa88d888c3cbb83869532c':
  Add Wi-Fi connection functional tests.
2010-11-16 09:16:54 -08:00
Eric Rowe
b49aa60829 Remove asserts in bluetooth test utils
Certain checks were causing the test to fail due to a race condition.

Bug: b/3198566
Change-Id: I9389a1936f6032939851922c052ef8ed32e5283b
2010-11-15 17:09:46 -08:00
Xia Wang
ca1f2b1a1e 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
2010-11-15 15:10:44 -08:00
Eric Rowe
23c067692b Add acceptPair method to BT stress.
Add a method to the test utils which waits to accept a bonding request from
another device.  This is identical to the pairing method except that it
waits for a remote pair request instead of initiating the pairing
request itself.  Also, add a test method to the test utils.

Change-Id: I97e215d3412d4b61757d6dc011b90cc5f2c8f084
2010-11-15 12:18:23 -08:00
Wink Saville
6b888d98f7 Move AsyncChannelTest and HierarchicalStateMachineTest to proper directory.
Change-Id: Ifa0f14aad3fee7cad47cdf762c6cff457b56a473
2010-11-15 12:16:52 -08:00
Jesse Wilson
385125c654 Merge "Test to demonstrate that HTTP cookie hostnames aren't case-sensitive." 2010-11-09 10:25:04 -08:00
Jesse Wilson
40811b0154 Test to demonstrate that HTTP cookie hostnames aren't case-sensitive.
Change-Id: I05c764876acdc1e85b41f4558bd03fff526da1b4
http://b/3167208
2010-11-09 10:23:36 -08:00
Ficus Kirkpatrick
553a53ef9f Make saveRecentQuery() async.
Bug: 3163612
Change-Id: Idd3c1925e0f1dc3272dd1303d8f2907c5c5fca8b
2010-11-08 16:11:54 -08:00
Eric Rowe
5de6d7a162 am 82fc12af: Merge "DO NOT MERGE Add acceptPair method to BT stress." into gingerbread
* commit '82fc12af416e351cb0a9d978734d585ab66d3f27':
  DO NOT MERGE Add acceptPair method to BT stress.
2010-11-04 15:37:19 -07:00
Eric Rowe
776e64da88 DO NOT MERGE Add acceptPair method to BT stress.
Add a method to the test utils which waits to accept a bonding request from
another device.  This is identical to the pairing method except that it
waits for a remote pair request instead of initiating the pairing
request itself.  Also, add a test method to the test utils.

Change-Id: I6391d03e9f33c040afd64d73083acfe3184251eb
2010-11-04 14:22:39 -07:00
Irfan Sheriff
acc863cabb Merge "Use AsynChannel for synchronous API" 2010-11-02 16:12:13 -07:00
Irfan Sheriff
1406bcb751 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
2010-11-02 16:08:35 -07:00