1436 Commits

Author SHA1 Message Date
Romain Guy
94677083ab Merge "Fix 9patch rendering in ExpandableListView." into honeycomb 2011-01-16 15:14:39 -08:00
Romain Guy
fb13abd800 Fix 9patch rendering in ExpandableListView.
Change-Id: I60843d61a40b0cb7dd09923cb4489a5a76f20486
2011-01-16 15:16:38 -08:00
Joe Onorato
80a44401a2 Need to update the largeIcon for notifications when we're reapplying the views.
Bug: 3298062
Change-Id: I6bb72c0b93e00a9de8cc2633ac07add0a572a20f
2011-01-15 16:22:24 -08:00
Guang Zhu
44060f4d76 Merge "when test case times out, stop loading first" into honeycomb 2011-01-14 16:26:30 -08:00
Guang Zhu
4ce6e7c433 when test case times out, stop loading first
current timeout mechanism does a text dump and then move to next case.
sometimes the text dump causes WebView to spin, and doing a
stopLoading seems to resolve some of the cases.

Change-Id: Iae08f9c93b2da3e805cacae43f80083fdf1bc5e1
2011-01-14 16:17:20 -08:00
Guang Zhu
e88255df39 remove runFinalizationSync calls
according to csharpiro, these calls are unnecessary and may
lead to problems.

bug: 3350034

Change-Id: I25a80e4e7610901e75622334bf97d6c1bed17cbd
2011-01-13 15:37:43 -08:00
Philippe Marti
84cc2dbb1d Improve error handling (NPE in DRT2)
Bug: 3284126
Change-Id: I7f8c6259f2932d2b1a10a2f9612866786d425da9
2011-01-13 14:16:20 +00:00
Guang Zhu
37f813443d Merge "change webkit test data path" into honeycomb 2011-01-12 23:29:53 -08:00
Guang Zhu
7171622320 change webkit test data path
path changed from "/sdcard/android/" to "/sdcard/webkit/". the
old path clashes with "/sdcard/Android/" and has some odd issues
under FUSE

Change-Id: I57102dca99612bdd7b4d1f196e43436cd1276281
2011-01-12 22:57:41 -08:00
Joe Onorato
f4699efb63 Merge "Possibly fix bad notification updates." into honeycomb 2011-01-12 17:07:11 -08:00
Joe Onorato
c9596d6d8e Possibly fix bad notification updates.
I think what was happening is that it was using a different layout but we were trying to reapply the
RemoveViews because of some bad boolean logic.  This fixes that, and adds some better debugging that
might show us what else is happening.

Bug: 3298062
Change-Id: I0984f24cb2960166c79b9f2cc7c6a98bd75e17ba
2011-01-12 17:06:14 -08:00
Carl Shapiro
d3b8eb098d Remove minimum heap size test now that the underlying interface is gone.
Change-Id: I4431247286dfd93ad0c3af9ebbba2ece92c35308
2011-01-12 14:20:27 -08:00
Romain Guy
d139a0ca25 Merge "Better backend for hardware layers." into honeycomb 2011-01-11 17:52:05 -08:00
Romain Guy
6c319ca127 Better backend for hardware layers.
With this new backend, a hardware layer is only recreated when
its associated view is udpated. This offers fast composition
in GL and fast update of the layer in GL as well.

Change-Id: I97c43a612f5955c6bf1c192c8ca4af10fdf1d076
2011-01-11 17:53:19 -08:00
Joe Onorato
2c1a63fe99 Update AppWidgetHostActivity to work again.
Change-Id: I301b59ef49423d45b052edb350856421c7844fba
2011-01-11 11:57:52 -08:00
Romain Guy
91bfb813b6 Merge "Composite layers as regions." into honeycomb 2011-01-10 22:25:05 -08:00
Romain Guy
7230a74e9a Composite layers as regions.
This change detects what area of a layer was drawn into and generates a mesh
to match this area exactly. This can be used to avoid blending empty pixels
when the layer is composited.
This change also adds proper layers support to lines rendering and implements
layers composition in a more readable way.

Change-Id: I4a5588b98b19bd66891ebdc39631b193c5e31999
2011-01-10 22:26:16 -08:00
Joe Onorato
d070e89396 Make AppWidgetService handle components enabling and disabling.
Change-Id: Ie6b75cb90be38bbce694ccf2d5a342d7f0172fa4
2011-01-10 17:26:39 -08:00
Elliott Hughes
ffcac1a127 Remove tests for dead API.
We removed the implementation, so there's no point trying to test it. (The
methods are still there for binary compatibility, which is why this still
compiled.)

Change-Id: I51f392f3dab542fca0c80fab4974354e2c689b9e
2011-01-10 12:57:36 -08:00
Romain Guy
171c592f0b New layers API for Views.
This API can be used to back a view and its children with either a
software layer (bitmap) or hardware layer (FBO). Layers have
various usages, including color filtering and performance
improvements during animations.

Change-Id: Ifc3bea847918042730fc5a8c2d4206dd6c9420a3
2011-01-06 18:34:30 -08:00
Dianne Hackborn
9f0696709b We are now Honeycomb.
Change-Id: I69dadd57184d2d80f426c1c862ed0a040c8baf03
2011-01-06 12:57:49 -08:00
Guang Zhu
f2f7f56e8b bugfix: remove dump timeout message after dump is received
Change-Id: I4061ccf77d47045a23065d27d6c9fa7452d085cc
2010-12-23 16:25:47 -08:00
Guang Zhu
f37a574f1c Throw exception if webview dump times out
if a webview dump times out, normally it's already in a bad state,
throwing runtime execption will generate a crash on the test case
and make the test move forward.

Change-Id: Id7430700db6b6d90160d60d23debd250b1731789
2010-12-23 14:37:31 -08:00
Xavier Ducrohet
d38e776a3c LayoutLib: support for layers.
Layers require that drawing methods potentially
draw in more than one bitmaps.

To handle this this patch offers the following:
- move all drawing methods to use Drawable
- Drawables are now handled by GcSnapshot since
  its the one handling the layers
- moved Canvas_Delegate.createCustomGraphics to
  GcSnapshot which does not expose the Graphics2D
  objects anymore so its draw() methods are the only
  way to draw.
- handles creating layers in GcSnapshot.save() and
  blitting them in restore()

Other changes:
- Clean up the create/save API in GcSnapshot
- Fixed drawing bitmaps with alpha and other
  composite modes.

Change-Id: I1e230087493d044a10de71f4b6d29083e3f3bf64
2010-12-22 10:30:53 -08:00
Jesse Wilson
63acafec59 Merge "Remove unused performance tests." 2010-12-21 12:22:08 -08:00
Xavier Ducrohet
63fd87113c LayoutLib: Misc rendering fixes.
- always set up the stroke. Paint may not have the proper
  style when drawing lines. stroke should still be setup.

- Fixed vertical linear gradient. Old code generated
  a gradient ratio of NaN

- Fixed alpha rendering when using shaders. In that
  case the alpha channel from the paint color should be
  used in conjunction with the shader.

- Fixed miter limit. Java expects the value to be multiplied
  by the stroke width

- Fixed support for drawing ALPHA_8 bitmaps. Java2D doesn't
  have bitmaps with only alpha channels, so we keep using
  ARGB bitmaps but when drawing them into a bitmap we erase
  the color information.

Change-Id: I4f04341fc843e3f7dadd1fdbf709b11a4f1e24b9
2010-12-21 10:43:18 -08:00
Xavier Ducrohet
d348b6eaa9 LayoutLib: support for Path and BitmapShader using delegates.
Also created delegates for all missing shader, xfermode
and patheffect classes. Moved the logic of the xfermode,
and patheffects that was in Canvas_Delegate into the
xfermode/patheffect classes, and added support (in all
3 clases) for knowing if the shader/xfermode/patheffect
is actually supported or not. Make use of fidelityWarning
in LayoutLog if they are not.
2010-12-21 10:43:18 -08:00
Jesse Wilson
bd1c5da28d Remove unused performance tests.
Change-Id: I5a252e314831716f99ce5fbb32d983c7473ee787
2010-12-21 10:23:28 -08:00
Daniel Sandler
6f6cf3c5e5 Reimplement StatusBarManager.disable(DISABLE_SYSTEM_INFO).
Bug: 3284968
Change-Id: I7171b7770c2972bb56672a771c7ed5ca10fb4dda
2010-12-16 12:54:03 -05:00
Steve Block
6a6146958c Add LayoutTest http/tests/appcache/foreign-fallback.html to the DRT ignore list
Bug: 3285647
Change-Id: I3acafe4690a4d2c7fae74bbd01a5f487867f2fc6
2010-12-16 13:30:52 +00:00
Romain Guy
b146b1214e Fix text shadow rendering issue.
Change-Id: Ic9eb0d38ad684d2f2c95a4f586f865db911cb872
2010-12-15 17:28:30 -08:00
Jesse Wilson
ab9b6285a0 Merge "Move 41 tests to libcore, closer to the tested code. (2nd half)" 2010-12-14 15:41:44 -08:00
Xavier Ducrohet
20af3709b8 Merge "Create some layout files for HwAccelerationTest" 2010-12-14 15:33:54 -08:00
Jesse Wilson
29ac247d21 Move 41 tests to libcore, closer to the tested code. (2nd half)
Change-Id: I18650718a7e49c84a0cc3c5b0c1172c71d2d54cf
http://b/3073226
2010-12-14 15:19:48 -08:00
Xavier Ducrohet
ec31a7f119 Create some layout files for HwAccelerationTest
The goal is use the app to test layout lib, so layout
files are needed, and custom views must be instantiable
(ie public)

Change-Id: I46bb3d8af6e4d7973d041aa618f1c7762efd93d0
2010-12-14 14:58:59 -08:00
Jesse Wilson
437afa8c4a Move HashMapTest from frameworks/base to libcore (second half)
Change-Id: I178e376ab12d82e23a8b0ddd267a6c150c9bbddf
http://b/3073226
2010-12-14 13:49:36 -08:00
Dianne Hackborn
7da6ac33a9 Fix issue #3272051: Use backward transition when going backwards.
Also know as:

Issue #3272051 Contacts edit view: Tapping the in-app back button
results in a forward transition

Yeah more complexity in deciding which animation to use.

Also reduce complexity in deciding which app's animation set to use,
to balance things out (and make it have less stupid behavior).

Change-Id: I78c6c5c5249a96206f7e03ce587c1dcb9a7dc14f
2010-12-09 19:22:04 -08:00
Romain Guy
279d34f4b2 Merge "New, better line drawing implementation. Bug #3207544 Bug #3225875" 2010-12-08 19:10:51 -08:00
Romain Guy
a957eea785 New, better line drawing implementation.
Bug #3207544
Bug #3225875

Change-Id: Ibdd1dfc64e01625d5c441f39eb0aa3ee647f6ff5
2010-12-08 19:06:58 -08:00
Guang Zhu
e81d1f9012 re-enable HW acceleration in DRT
Change-Id: I281f7fd94624611797fceb162d6a5e12b6b08d20
2010-12-07 18:00:18 -08:00
Guang Zhu
b05deade05 disable HW acceleration
currently DRT will block upon launch if HW acceleration is enabled. see
b/3255765.

Change-Id: I19f2e6a6673a0284fd4916370b06aa80e04df4d2
2010-12-06 11:34:14 -08:00
Guang Zhu
afeffb744f Merge "change how assets are copied out of apk" 2010-12-06 11:28:49 -08:00
Guang Zhu
0006952a8d change how assets are copied out of apk
Currently test code use getActivity to get DRT's assets. However
the side effect is that this will actually launch the activity.
This is not affecting any tests yet, however there are cleaner
ways to do this. The instrumentation framework provides a
getTargetContext call which will give access to app under test's
context, and therefore granting access to its assets.

Change-Id: I0560b0fa5681f80bcb9296beec3fd0549c40cc8e
2010-12-06 11:24:01 -08:00
Daniel Sandler
3e8f5a2c1b Hide navigation buttons and clock on lockscreen.
(This introduces a StatusBarManager disable flag to ask the
status bar to hide just the clock, which might be useful in
other situations, such as clock/dock apps.)

Bug: 3130393
Change-Id: Ia08627508518e2ed3713ffbf856e4ec42952b3a8
2010-12-03 15:55:04 -05:00
Guang Zhu
7d936867a0 Merge "enabled hardware acceleration for DRT" 2010-12-01 11:19:28 -08:00
Guang Zhu
c54476b4a9 enabled hardware acceleration for DRT
Change-Id: I1357c734288829b42cebe88f147f5b8a03ac6f74
2010-12-01 11:16:24 -08:00
Daniel Sandler
1bfddc8d15 Fix build.
Change-Id: Iccbe1609bbe582180d1c61f908b8dce4d485494b
2010-11-30 16:17:28 -05:00
Daniel Sandler
373a998374 When updating notifications, always reuse the last row.
Ordinarily, changing the "when" slot when updating a
Notification will move its expanded payload to the bottom of
the notification panel's list. But if it's already at the
bottom, this causes an unsightly out-then-in animation
sequence. We now check for that exact situation.

Bug: 3222274
Bug: 3162218
Change-Id: I8b643b3f8bce64e57a22bdbb06d92c196c2484c2
2010-11-30 15:32:55 -05:00
Guang Zhu
2f422a50d6 Merge "pass layout test list using external file" 2010-11-29 17:50:04 -08:00
Steve Block
f23538c2b5 Merge "Skip LayoutTest http/tests/cookies/third-party-cookie-relaxing.html" 2010-11-24 08:24:44 -08:00