1472 Commits

Author SHA1 Message Date
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
Steve Block
a662c8c92c Skip LayoutTest http/tests/cookies/third-party-cookie-relaxing.html
Bug: 3227269
Change-Id: Iae94fe1c8b0ccb52463733c676569c0b9c887963
2010-11-24 14:54:04 +00:00
Guang Zhu
2aafca6408 pass layout test list using external file
Currently layout test list is passed between two processes in
intent, which does not work for large lists. This change store
the list in external storage folder (per app based, actual
location determined by framework) instead.

Change-Id: Ib175f766159f5e4f831d6b9ace9f1c4caef7298d
2010-11-23 14:32:53 -08:00
Dianne Hackborn
621e17de87 Implement issue #3221502: New APIs to support new back stack / task navigation
What this adds:

- A new Intent activity flag to completely replace an existing task.
- A new Intent activity flag to bring the current home task up behind
  a new task being started/brought to the foreground.
- New versions of startActivity() that take an array of Intents to be
  started, allowing applications to start a task in a specific state.
- A public moveTaskToFront() method on ActivityManager, with a new flag
  that allows the caller to have the task moved to the front with the
  current home task immediately behind it.

Change-Id: Ie8028d09acffb5349d98043c67676daba09f75c8
2010-11-22 18:35:55 -08:00
Joe Onorato
8d0b655c49 Add a better notification test and clean up the flag handling in the notification builder.
Change-Id: I9354ed2c2cda690f53e5f43ad60943b63b02e7d4
2010-11-22 16:19:40 -08:00
Joe Onorato
561d3858bb The large icon for notifications.
Change-Id: I8537c602b5b5fca03be8980295bfa28330543669
2010-11-21 16:16:28 -08:00
Joe Onorato
3f76aa7755 Test for using the right size of notification info text.
Change-Id: Iac8764542ddcd3ef0375f6d6d03225e9f6c2fc1c
2010-11-21 16:16:28 -08:00
Joe Onorato
8595a3dd9a Show the number in the expanded notification instead of in the bar.
Change-Id: I248b4fe1732ed290e9f3f9c094de4544a0e396ab
2010-11-21 16:16:28 -08:00
Joe Onorato
46439cec0e Update the look of the notifications. Includes adding a new Notification.Builder class.
Change-Id: I7c57b81c45defe77d6f3d22472e9cf8432bbed03
2010-11-21 16:16:27 -08:00
Kristian Monsen
221b1d6df7 Removing some js script tests from the skip list
Change-Id: I588c6d3c246d0233f7dfffa7920d44c14556c339
2010-11-17 17:44:26 +00:00
Dianne Hackborn
7eec10e6c9 Get rid of the extended themes.
We now decide whether to use a bitmap background based on whether the
window's drawing is hardware accelerated.  To do this, there is a new
"state_accelerated" that state list drawables can be parameterized on,
and the standard window background uses this to select a solid color
or bitmap drawable as appropriate.

Introduces a little hackery to have wm preview windows pretend like
they are hardware accelerated even if they aren't, so the preview looks
closer to the actual app.

Also Add a DialogWhenLarge variation for the light theme.

Change-Id: I215a79d5df65ba3eed52ab363cade9d8218a6588
2010-11-14 14:23:42 -08:00
Steve Block
edfdd15527 Fix EventSender mouse events to correctly convert from screen coordinates
This is required for LayoutTest fast/dom/Node/mutation-blur.html

Change-Id: Ib82f897ab61ac3a8e8eacee8ec08f5242c43c736
2010-11-11 20:06:42 +00:00
Steve Block
aca659c207 Refactor EventSenderImpl.MousePoint
This factors out a new Point class and a new
createViewPointFromContentCoordinates() method. This will allow Point
and the conversion method to be re-used with mouse events.

Change-Id: I2d689d0ffa0ad7ba01d0e90f78c812604ab96234
2010-11-11 20:05:56 +00:00
Steve Block
6a108501b1 Remove the failing expectation for fast/encoding/char-encoding.html for DRT
This test now passes with both HTTP stacks.

Bug: 3047156
Change-Id: Ibb723d3e1b8bf45c23abf5ebd7a9789a5c7cc6de
2010-11-11 16:54:05 +00:00
Iain Merrick
ace92b871a Include .php tests in DumpRenderTree2.
I've manually checked the existing LayoutTests for false positives.
There are non-test .php files, but they're all in "resources"
subdirectories, so they should be caught by isTestDir(). Added an
extra @warning to isTestFile() just in case.

Bug: 3164771
Change-Id: Ib282acf46f6e839439ce521c4b2cb5820fcd263c
2010-11-09 15:44:16 +00:00