515 Commits

Author SHA1 Message Date
Android (Google) Code Review
773fd13130 Merge change I3429f77a into eclair
* changes:
  Suppress flaky test HeapTest#testOomeLarge.
2009-10-06 22:35:27 -04:00
Brett Chabot
b8a4e5f79a Suppress flaky test HeapTest#testOomeLarge.
BUG 2170975
2009-10-06 19:33:24 -07:00
Romain Guy
c404ed2be5 Fix failing unit test; the test was using a deprecated API making it fail on WVGA devices.
Change-Id: I407c7baa5606aaee875f51d6e96ce8a0117fc375
2009-10-06 18:38:27 -07:00
Tammo Spalink
61aac7b377 Add PERIOD char to CDMA address sugar list.
Addresses issue:
http://buganizer/issue?id=2164455
2009-10-05 14:20:06 +08:00
Hung-ying Tyan
865a1bbf36 Remove deprecated VpnType.getDescription(). 2009-09-30 18:39:48 +08:00
Guang Zhu
a0609a0d8a rebase layout test result as the numbers reported are much more stable now 2009-09-29 16:24:43 -07:00
Android (Google) Code Review
1cdb55aa97 Merge change 27457 into eclair
* changes:
  Added code style fix that actually did not get submitted in 2nd patch of previous change.
2009-09-28 12:56:02 -04:00
Guang Zhu
56a3693217 Added code style fix that actually did not get submitted in 2nd patch of previous change. 2009-09-28 09:53:48 -07:00
Android (Google) Code Review
c18b0ebcfb Merge change 27185 into eclair
* changes:
  Add checks for double-dumping on webkit data.
2009-09-28 12:21:30 -04:00
Guang Zhu
7216047ac3 Add checks for double-dumping on webkit data.
Also some logs seem to suggest that in rare occations, a webkit dump after timeout has occured actually never hears any response back from webkit, thus causing the test app to wait forever, because the request webkit data mechanism is not protected by a timeout watchdog. So adding a explicit log print before calling webkit dump for monitoring in future test runs.
2009-09-28 09:20:20 -07:00
Yu Shan Emily Lau
30412d1ce0 Modified the test case name for the browser page load test. 2009-09-27 14:14:10 -07:00
Jesse Wilson
e78fcbac04 DO NOT MERGE: Cleaning up the PipedStreamTest 2009-09-26 09:28:17 -07:00
johnwang
9c118c80fd Update CID in NeighboringCellInfo
NeighboringCellInfo works in GSM and UMTS network.

In GSM network, the locaiton value is the combination of LAC and CID.

In UMTS network, the locaiton value is PSC code.

NeighboringCellInfo should access and store those two values seperately.

It involves the change of Public API.

1. Add new API getRadioType(), getLac(), and getPsc() to get location info in GSM and UMTS.

2. Deprecate setCid() and NeighboringCellInfo(int cid) because cid is set by interpreting network type.
2009-09-25 12:17:46 -07:00
Ben Murdoch
2eea5f3dc8 Change the way DRT determines if it is ready to continue to the next test when running in automated mode.
Change-Id: I4d8f6b447dd3c7d7b4baa449a5bacebe4ba59d25
(cherry picked from commit 15b503e46315a56467c0b40d411b457eda7ee334)
2009-09-24 12:48:59 +01:00
Tammo Spalink
af8e23fe9e Conditionalized CDMA-specific test.
Addresses issue:
http://b/issue?id=2122045

Change-Id: Ia43e254f0808e1d96cbd240101eee621979e9100
2009-09-24 12:29:16 +08:00
Android (Google) Code Review
a1dfa7f4a1 Merge change 26550 into eclair
* changes:
  fix bug 2134367: failing phone number compare test.
2009-09-23 01:01:18 -04:00
Wei Huang
409308617f fix bug 2134367: failing phone number compare test.
Change-Id: Iccc3b69cd1e4bdb82da48d87d610e4a45ae31601
2009-09-22 21:52:41 -07:00
Android (Google) Code Review
c3c6621a2c Merge change 25879 into eclair
* changes:
  Setting the default HTTP user agent at runtime init.
2009-09-22 22:04:05 -04:00
Android (Google) Code Review
31a12429b7 Merge change 26254 into eclair
* changes:
  fix bug 2134685: fix tests for PhoneNumberUtilsTest.
2009-09-21 17:43:20 -04:00
Android (Google) Code Review
c2f97178ac Merge change 26111 into eclair
* changes:
  Added a workaround to clear the browser cache.
2009-09-21 16:58:35 -04:00
Yu Shan Emily Lau
d2ef9e31e6 Added a workaround to clear the browser cache.
modified:   BrowserPowerTest/src/com/android/browserpowertest/PowerMeasurement.java
2009-09-21 13:48:24 -07:00
Wei Huang
35fd2e5853 fix bug 2134685: fix tests for PhoneNumberUtilsTest.
Change-Id: I28c4e69775c7ce20983c052b8b77ba2df6d5c63b
2009-09-21 12:56:21 -07:00
Daisuke Miyakawa
6a857d957e Fix test for phone number comparation. Now that there are two algorithms, we should consider them in Java layer.
Uguu.

Internal issue number: 2134367
2009-09-21 10:49:44 -07:00
Jesse Wilson
d0f80d4456 Setting the default HTTP user agent at runtime init.
I can't do this in HttpURLConnection directly, since that would
cause a forbidden dependency from Dalvik on Android.
2009-09-18 18:16:16 -07:00
Daniel Sandler
da06e32e4c Fix http://b/2126318 (density test fails due to wrong-size asset stripping)
The density test expects all resources of all densities to be included, but specifying a density for a particular device build kills that. We therefore add all the required densities explicitly to the Makefile to compensate.
2009-09-18 15:12:07 -04:00
Ben Murdoch
977f7691e5 Only move to the next test in DRT after the test has completed AND the page has finished loading.
Change-Id: I157da58bb99f7bf0fcd00073d078c26c7df201ed
2009-09-17 11:57:47 +01:00
Android (Google) Code Review
8843620cb2 Merge change 25360 into eclair
* changes:
  Fix issue #2121993: com.android.unit_tests.os.HandlerThreadTest:testHandlerThread is failing
2009-09-16 19:20:52 -04:00
Android (Google) Code Review
5f78786cf9 Merge change 25190 into eclair
* changes:
  add the ability to do a newAssert with no values
2009-09-16 18:36:00 -04:00
Android (Google) Code Review
44ca7090ac Merge change 25356 into eclair
* changes:
  Filter out failing cases for future investigation.
2009-09-16 18:28:31 -04:00
Dianne Hackborn
207700d857 Fix issue #2121993: com.android.unit_tests.os.HandlerThreadTest:testHandlerThread is failing
Change-Id: I5f2cc8b39d3f15782e5fbf47015be9f4fa94a65b
2009-09-16 15:10:30 -07:00
Guang Zhu
01033abd7a Filter out failing cases for future investigation. 2009-09-16 15:04:38 -07:00
Guang Zhu
6bf18bae60 Refactor logic for starting forward servers and http test cases hacking, so that they can be shared between automated test mode and UI launch mode. 2009-09-15 23:47:20 -07:00
Fred Quintana
5ab78057a3 add the ability to do a newAssert with no values 2009-09-15 18:57:17 -07:00
Derek Sollenberger
0b3a5d6524 First pass at replacing native plugin views with java.
Change-Id: I6d1f45f31210c2353fa348cc37be8d91bcd5e887
2009-09-15 19:33:54 -04:00
Android (Google) Code Review
4b687f2eb5 Merge change 25132 into eclair
* changes:
  fix ContentProviderOperationTest
2009-09-15 17:42:25 -04:00
Fred Quintana
bfed8e9a32 fix ContentProviderOperationTest 2009-09-15 14:36:55 -07:00
Android (Google) Code Review
617d470dff Merge change 25124 into eclair
* changes:
  Add more error message if the script failed to pull result file from device.
2009-09-15 17:18:02 -04:00
Guang Zhu
ce8d9d1672 Add more error message if the script failed to pull result file from device. 2009-09-15 14:17:04 -07:00
Android (Google) Code Review
6d9eebe732 Merge change 25090 into eclair
* changes:
  Move backlight brightness from HardwareService to PowerManager
2009-09-15 15:50:51 -04:00
Mike Lockwood
237a29923a Move backlight brightness from HardwareService to PowerManager
to prevent apps from changing the hardware behind its back.
Fixes b/2041941 Lock screen flashes the screen very bright before dimming

Change-Id: Ice757f7ae87902bdfb3634471cf44f020ebfaae4
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-15 15:47:09 -04:00
Brett Chabot
0393d349be Fix FileObserverTest#testRun.
The assertion in the test was expecting 4 events, but it was only waiting for
three.

BUG 2119135
2009-09-15 11:07:33 -07:00
Guang Zhu
ad1e25da74 Fix the bogus crashes in layout and reliability tests (the device actually went offline). 2009-09-14 15:20:52 -07:00
Guang Zhu
60ef21a5da Fix the parsing for instrumentation result, some Java exceptions are not reported right now 2009-09-14 11:27:40 -07:00
Jack Wang
ff1df69dd4 Performance measurement framework:
+ For bug 1810508
  - Added PerformanceCollector class to collect runtime and memory usage data
    * Moved performance snapshotting from Intrumentation to PerformanceCollector
  - Added PerformanceResultsWriter interface which defines functions for
    reporting performance data

+ Framework integration
  - Added TimedTest annotation to automatically time tests and write results
    to instrumentation output
  - Modified PerformanceTestBase to add collection hooks and wrapper methods
  - Modified WatcherResultPrinter in InstrumentationTestRunner to implement
    PerformanceResultsWriter for instrumentation output of performance data
  - Modified InstrumentationTestRunner and AndroidTestRunner to pass writer
    instance to test
2009-09-11 17:15:15 -07:00
Grace Kloba
d0990d4a78 The empty path and no path mean default path. So "a=d" should replace "a=c". 2009-09-09 18:22:44 -07:00
Android (Google) Code Review
0a46e91357 Merge change 23414 into eclair
* changes:
  Fix broken GSM SMS unit test, and general cleanup.
2009-09-08 19:41:13 -07:00
Android (Google) Code Review
9bb1101f5c Merge change 23924 into eclair
* changes:
  	new file:   LowStorageTest/Android.mk 	new file:   LowStorageTest/AndroidManifest.xml 	new file:   LowStorageTest/res/layout/main.xml 	new file:   LowStorageTest/res/values/strings.xml 	new file:   LowStorageTest/src/com/android/lowstoragetest/LowStorageTest.java Add the test app which can eat up 100% of the data parition. This is for the low storage test.
2009-09-08 16:30:42 -07:00
Yu Shan Emily Lau
4333bd145e new file: LowStorageTest/Android.mk
new file:   LowStorageTest/AndroidManifest.xml
	new file:   LowStorageTest/res/layout/main.xml
	new file:   LowStorageTest/res/values/strings.xml
	new file:   LowStorageTest/src/com/android/lowstoragetest/LowStorageTest.java
Add the test app which can eat up 100% of the data parition. This is for the low storage test.

	new file:   LowStorageTest/Android.mk
	new file:   LowStorageTest/src/com/android/lowstoragetest/LowStorageTest.java
2009-09-08 14:14:20 -07:00
Android (Google) Code Review
9c93007bcd Merge change 24101 into eclair
* changes:
  Fix CDMA BCD unit test.
2009-09-07 21:02:29 -07:00
Tammo Spalink
d0085ed5e2 Fix CDMA BCD unit test.
Addresses issues:
http://buganizer/issue?id=2056263

Change-Id: I80e2412bd53b9045ae3cdc95cdf132da0946c2ea
2009-09-07 16:17:45 +08:00