1847 Commits

Author SHA1 Message Date
Guang Zhu
7a640a0936 Merge "Revert "Use port 18000 instead of 8000 for layout tests"" 2012-01-20 17:06:42 -08:00
Guang Zhu
d467347d73 Revert "Use port 18000 instead of 8000 for layout tests"
port 8000 is no longer being occupied, plus this approach never worked 100% because some pages have access to port 8000 hard coded in HTML


This reverts commit e2b9d7f2f027907c7dcdbfb9e99297ff799ce482
2012-01-20 17:06:11 -08:00
Romain Guy
bad1216619 Merge "Deprecate unused APIs" 2012-01-19 17:34:26 -08:00
Romain Guy
f9d9c065ed Deprecate unused APIs
Change-Id: I0107e246b632dda96b8b025217936954f1f46283
2012-01-19 17:16:38 -08:00
Romain Guy
4785a6ff8d Merge "Full support for Canvas.drawPosText" 2012-01-18 18:01:34 -08:00
Romain Guy
671d6cf460 Full support for Canvas.drawPosText
This also introduces a small optimization when rendering text.

Change-Id: Iff620ac97bf878eaac406bccc6daa07052c93890
2012-01-18 18:00:12 -08:00
Stephen Hines
1f541a0423 Run ComputePerf multiple times.
Change-Id: I715c726f15416685b715a14a25c9595d9a9a124b
2012-01-18 15:06:57 -08:00
Romain Guy
11d06a73df Merge "Fix text encoding when drawing with drawPosText in software" 2012-01-17 14:54:45 -08:00
Romain Guy
62b6eaa7f3 Fix text encoding when drawing with drawPosText in software
Change-Id: I0cd8ee526189c38c50953a1a08b50e0b31c55d8c
2012-01-17 14:53:26 -08:00
Fabrice Di Meglio
c7c09960ff Merge "Fix bug #5870701 Thai text can be clipped when there are more glyphs generated than the initial number of code points" 2012-01-17 11:51:22 -08:00
Fabrice Di Meglio
03e250aefa Fix bug #5870701 Thai text can be clipped when there are more glyphs generated than the initial number of code points
- compute total advances correctly by iterating on the advances array for up to mShaperItem.num_glyphs
- update unit tests

Change-Id: I00af68bef88702215e9222ed80dbffcc81df51a7
2012-01-13 19:49:46 -08:00
Xia Wang
e328d6b0a6 am b18a7c3e: am 1446c7b2: Merge "Get average value for image processing test bug#: 5566079" into ics-mr1
* commit 'b18a7c3ef1ff92ee2b8407743ffc4d7fd8b8ba70':
  Get average value for image processing test bug#: 5566079
2012-01-11 17:57:14 -08:00
Narayan Kamath
81754949e0 Merge "Write unit tests for android.speech.tts." 2012-01-11 03:39:57 -08:00
Steve Block
c93643be42 Remove some stale TODOs from the Java Bridge tests
These TODOs were related to testing behavior with JavaScript and Java arrays.
This is now tested thoroughly in JavaBridgeArrayTest.java and
JavaBridgeArrayCoercionTest.java.

No functional change.

Change-Id: I5972b929c3e2743c06aff626c983b4b749ea452f
2012-01-11 11:04:12 +00:00
Narayan Kamath
c60aad2a8a Write unit tests for android.speech.tts.
Change-Id: Ie5b3b4cdd13be2babee9a44bae00da179b372d12
2012-01-09 13:38:55 +00:00
Guang Zhu
57420bf883 Small tweaks to Tile Benchmark test
* tag the module as 'tests' so the apk gets includes in test build
* merge the instrumentation into TileBenchmark app and eliminate
  the test apk entirely
* changed the default test suite to 'alexa25_2011' which is a suite
  of pages based on top 25 news sites from alexa, includes primarily
  english sites, and 3 CJK sites

Change-Id: Icd40a70b560bfd7c521adf8ad4b1068483698103
2012-01-05 15:16:42 -08:00
Xia Wang
6e31a7b762 Get average value for image processing test
bug#: 5566079

Change-Id: Ib7022d20c773c4995b9d3d6eaf4857682190eb5e
2011-12-19 17:30:03 -08:00
Jesse Wilson
0f05f1ebef Merge "Track libcore tests moving from frameworks/base to libcore." 2011-12-16 07:36:32 -08:00
Jesse Wilson
0102c21f6b Track libcore tests moving from frameworks/base to libcore.
Bug: http://b/3073226
Change-Id: I07076e6ed74fcae5482dff477ed102c770c197c9
2011-12-13 13:35:04 -05:00
Chris Craik
09a71e073a Update tilebenchmark to work with current drawing infrastructure
bug:5062896

depends on external/webkit change: https://android-git.corp.google.com/g/#/c/154840/

- directly discard textures, instead of sending an invalidate through webkit
- better ui on smaller screens
- pass native pointer through jni calls

Change-Id: Icadbf8944edc5a2b1f8dc27bab53ac665c975462
2011-12-12 18:10:53 -08:00
Alex Sakhartchouk
f8c1f1c17c Merge "Making UI a bit more responsive." 2011-12-09 10:04:27 -08:00
Alex Sakhartchouk
e7a5b5aa9a Making UI a bit more responsive.
Change-Id: I92875e9304675fcda978a49c1447e22911e2a839
2011-12-07 20:22:08 -08:00
Daniel Sandler
1ba22cc33d am b490d8d6: am 29933fb2: Merge "Improve handling of small largeIcons in tablet ticker." into ics-mr1
* commit 'b490d8d6214114391622b4302ca2f5f39b2166c6':
  Improve handling of small largeIcons in tablet ticker.
2011-12-07 17:43:39 -08:00
Daniel Sandler
a3850b6839 Improve handling of small largeIcons in tablet ticker.
The tablet system bar is too short for a full notification
row, but it will show the largeIcon of a new notification in
its full frame, intruding into the main application content
rectangle a bit. This is a good thing---the notifications
really pop out at you---but it looks a little odd if the
largeIcon is actually *small*: the icon is vertically
centered in the larger (invisible) rectangle, making it look
poorly centered on the system bar.

This change will detect short largeIcons and center them in
the system bar's height instead. Additionally, it applies
the same ticker background all the way to the left
underneath largeIcons that are not full-frame (and therefore
have transparent regions).

Bug: 5708907
Bug: 5560485
Change-Id: I32af45632df164c58fb960110063dbaa08b5536c
2011-12-07 15:53:00 -05:00
Alex Sakhartchouk
7cee31835d Merge "Fixing file writing bug" 2011-12-07 11:07:42 -08:00
Stephen Hines
d53333cc21 Remove warnings about unused results.
Change-Id: I53004b4452c5e1ac6ff0dab8430de7f73e8a99b9
2011-12-06 16:48:43 -08:00
Alex Sakhartchouk
5de7657ac2 Fixing file writing bug
Change-Id: I01b6fa9f14ecf01e8957cb1b9277ba88eea46845
2011-12-06 14:49:12 -08:00
Chris Craik
267a4b0627 am c649180d: am f296ee69: Merge "Send animation start notification back to webkit from ui thread" into ics-mr1
* commit 'c649180d7c12b0b4bc3c183a6431da26cff74819':
  Send animation start notification back to webkit from ui thread
2011-11-30 10:50:42 -08:00
Chris Craik
d0051c06c2 Send animation start notification back to webkit from ui thread
bug:5239801

depends on external/webkit CL: https://android-git.corp.google.com/g/#/c/152559/

Change-Id: I647b5a82680f570c918227dbf57521b862dcfe25
2011-11-29 15:25:47 -08:00
Christopher Tate
2f9e260185 am 6d7bd049: am 05160615: Merge "Add iteration-limited mode to FrameworkPerf" into ics-mr1
* commit '6d7bd049b02cd24429e540b764c44c8371b7d5eb':
  Add iteration-limited mode to FrameworkPerf
2011-11-28 18:00:36 -08:00
Christopher Tate
80a682bc3d Add iteration-limited mode to FrameworkPerf
You can run tests for exactly N iterations regardless of duration now,
in addition to the previous time-limited behavior.

(Clean cherry-pick to break a dependency on a previous patch that
needs work before being committed.)

Change-Id: I2e6cf511bbe968a6f95391567658722e87dfa1fe
2011-11-28 17:48:55 -08:00
Steve Block
fc6cf28884 Add tests for array length bounds in WebView's Java Bridge
Tests for https://android-git.corp.google.com/g/150320.

We test that when the legnth property of a JavaScript object is out of the
bounds for a Java array, we convert to null.

Also update a test in the case that the length property is not numeric.

Bug: 5626284
Change-Id: If41acb117eb4b786d671b5ffece2704c6f045d52
2011-11-21 18:31:14 +00:00
Guang Zhu
33d4dde058 am 1753fd00: am 3af8b699: Merge "add a self instrumentation into framework perf app" into ics-mr1
* commit '1753fd00764614213cfb9f88b00ee16fe3c1da3e':
  add a self instrumentation into framework perf app
2011-11-18 09:15:56 -08:00
Guang Zhu
3af8b69983 Merge "add a self instrumentation into framework perf app" into ics-mr1 2011-11-17 18:04:23 -08:00
Christopher Tate
7c37ce8b01 am 7d997121: am 4cf1656e: Merge "Add a few GC-flexing microbenchmark tests" into ics-mr1
* commit '7d9971213ff8fbfd41fa7039300ac28f555f43be':
  Add a few GC-flexing microbenchmark tests
2011-11-17 15:56:28 -08:00
Guang Zhu
5eefd7711f add a self instrumentation into framework perf app
It's essentially a test app on itself to facilitate
running the perf automatically.

Change-Id: I5aad3565e64719d219e76969a989ca80aa6df286
2011-11-17 15:26:36 -08:00
Alex Sakhartchouk
37333001cb adding benchmark single test
Change-Id: I902579085bfee2f0bdc0bf4f38442f2f1569bf71
2011-11-17 14:08:47 -08:00
Christopher Tate
4c18ad56f7 Add a few GC-flexing microbenchmark tests
Added ObjectGc and FinalizingGc to stress single-object allocation and
collection with/without the presence of finalizers.

Also added GcOp() to the menu of available single-shot tests.

Change-Id: I36d3254dfe2e97e504f9e4f77c8addda98ab4f4b
2011-11-17 14:07:58 -08:00
Alex Sakhartchouk
54b851c9b5 Merge "DO NOT MERGE" 2011-11-17 10:12:13 -08:00
Steve Block
286788c3aa Update Java Bridge test for coercing JavaScript String to Java char in an array
See https://android-git.corp.google.com/g/150052

Bug: 5619677
Change-Id: I2c3049529312b38bd3731dfc79b14edcb8cd6357
2011-11-16 14:28:24 +00:00
Steve Block
c353abba95 Add tests for multidimensional arrays in WebView's Java Bridge
Also add a test for objects with a non-numeric length property being passed to
a method expecting an array.

Change-Id: Ic04bbd691c55744472cab9fb732e504997c62434
2011-11-16 14:28:20 +00:00
Steve Block
908bc4a846 Fix tests for methods returning arrays in WebView's Java Bridge
Change-Id: Ibbac2268307fbfcff09a2d3b0f841ce420edc416
2011-11-16 14:26:37 +00:00
Alex Sakhartchouk
394956bf22 DO NOT MERGE
More flexible structure for rs benchmark.

Major refactoring to allow adding more benchmarks easily.

Change-Id: I8cc97d5cd0a7c8cc5e95083713fbf034a002887e
2011-11-15 10:35:32 -08:00
Steve Block
13ad467a91 Add tests for invalid and static methods in the WebView's Java Bridge
Change-Id: I18dacf4a4de8c787e46ea2781f5a365372a0a7da
2011-11-14 18:26:41 +00:00
Stephen Hines
0906005662 Merge "Fix setTimeZone() and use it properly in RSTest/rstime." 2011-11-10 16:09:29 -08:00
Stephen Hines
d2f561d183 Fix setTimeZone() and use it properly in RSTest/rstime.
BUG=5470134

The original implementation for rsi_ScriptSetTimeZone() never actually did
anything with the bytes received. This change allows it to safely update the
timezone. RSTest is also updated to call setTimeZone(), so that users in
different timezones can accurately get test results.

Change-Id: I6cb1b3a0c3a417749ba39e0fe09cc9c7ab65c2e7
2011-11-10 15:44:25 -08:00
Steve Block
5511bb3ce2 Merge "Add tests for arrays in WebView's Java Bridge" 2011-11-10 08:44:57 -08:00
Steve Block
47538c081d Add tests for arrays in WebView's Java Bridge
Also fixes some minor problems in other tests and reduces the HTML test page to
the minimal valid HTML5 document.

Bug: 5140673
Change-Id: Icc3730d017b778b0e618af3fcfee028300dd0a56
2011-11-10 16:42:05 +00:00
Dianne Hackborn
bd958e4428 am 03507014: am 665e105f: Merge "Cleanup remote execution of perf tests." into ics-mr1
* commit '0350701422eb484d57c5c3bb1e8fa72f03ab280b':
  Cleanup remote execution of perf tests.
2011-11-09 21:50:59 +00:00
Steve Block
8e33fe944f Add another test for WebView's Java Bridge
Tests that an exception is raised if the wrong number of arguments are passed
to a method of an injected object.

Bug: 5140673
Change-Id: Ic9f9d09969e0fccbe82584e1a9ca7580f6010c87
2011-11-09 16:22:13 +00:00