2109 Commits

Author SHA1 Message Date
Chet Haase
db8c9a6a4d Optimization of alpha with DisplayList properties
Some views (such as ImageView and TextView) handle non-opaque alpha
values directly. This was originally an optimization, but we can handle it faster
in many cases without this optimization when DisplayList properties are enabled.
Basically, if a view has non-overlapping rendering, we set the alpha value directly
on the renderer (the equivalent of setting it on the Paint object) and draw each
primitive with that alpha value. Doing it this way avoids re-creating DisplayLists
while getting the same speedup that onSetAlpha() used to get pre-DisplayList properties.

Change-Id: I0f7827f075d3b35093a882d4adbb300a1063c288
2012-04-03 14:02:17 -07:00
Fabrice Di Meglio
59dfce8bda Fix bug #6140391 Make RTL awareness as an opt-in into the AndroidManifest
- introduce "supportsRtl" as a new application attribute in the AndroidManifest
- "supportsRtl" default value is FALSE (no RTL support)
- adapt the View layoutDirection and textDirection logic to take care of "supportsRtl" value

Change-Id: I5e4f9f576e14f35dedc6b0c29a7142c397f598e0
2012-04-03 11:43:20 -07:00
Chet Haase
296a5b4018 Merge "Re-enable DisplayList properties." 2012-04-02 15:42:27 -07:00
Chet Haase
9420abd56a Re-enable DisplayList properties.
Re-enabling DisplayList properties last week caused some app
errors due to the way that some transforms were being handled (specifically,
those coming from the old Animations and ViewGroup's childStaticTransformation
field). This change pushes *all* transform/alpha data from View.draw() into
the view's DisplayList, making DisplayLists more encapsulated (and correct).

Change-Id: Ia702c6aae050784bb3ed505aa87553113f8a1938
2012-04-02 15:31:24 -07:00
Jason Sams
c5f519c5ec Rename ioReceive and ioSend
First checkin of Allocation IO test

Change-Id: I26379e442796caab95a089dbb42b02192f4cc563
2012-03-29 17:58:15 -07:00
Jason Sams
75ec67848c Add fp_relaxed pragma to image processing test.
BUG=4540719

Change-Id: I147587b50106208a2280712ae69ca2bc111a2b77
2012-03-28 17:58:52 -07:00
Dianne Hackborn
8078d8c8a2 Add new thumbnail animation.
Use it for recent tasks switching.

Not perfect yet by far, but something.

Also fix issue #6186758: Twitter crashes after tapping on a tweet on JRM75D

Change-Id: I49bf6c94aafde875ac652dedaf96d6c08cc9e7d2
2012-03-23 14:13:13 -07:00
Alex Sakhartchouk
043f5ced1b More rearrangement and renaming.
Change-Id: Ia922c5bff1734a29b786ba95065f81c8dedf90cd
2012-03-22 10:50:55 -07:00
Alex Sakhartchouk
b09aaeca08 Merge "Changing rsg to rs where functions don't rely on graphics." 2012-03-21 15:31:25 -07:00
Alex Sakhartchouk
73797e97a8 Changing rsg to rs where functions don't rely on graphics.
Change-Id: I92a93d7a520b4a5416be88c7c05c2f8d3cc89243
2012-03-21 10:21:08 -07:00
Chris Craik
6f92c15180 Factor viewport scaling into coverage calculation
Change-Id: I32114ead0ca42eaf2161d516a4281da216b61fa4
2012-03-20 14:30:30 -07:00
Omari Stephens
bf29121c21 Try to make error messages more useful and improve ANR handling
Bug: 6128185
Change-Id: I6032a199c26577fb3058ff4038085de257781d81
2012-03-13 23:17:45 -07:00
Omari Stephens
ad8037e3a9 Avoid crashes in a single app from causing cascading test failures
This should work properly for crashes.  It currently doesn't do the right
thing for ANRs since, in a lot of cases, they seem to happen asynchronously
_after_ the testcase has ended.  Will try to improve that behavior with a
subsequent change.

Bug: 6128185
Change-Id: Ie535141e879062c11ee7108b37d282a33a5b5eef
2012-03-13 21:57:54 -07:00
Alex Sakhartchouk
0657813970 Merge "Using the rs API instead." 2012-03-13 09:31:22 -07:00
Omari Stephens
3d441a1c4f Merge "Refactor smoke tests to enable one-app-per-testcase runs" 2012-03-12 16:38:35 -07:00
Omari Stephens
5ae3dfe59d Refactor smoke tests to enable one-app-per-testcase runs
Also creates a special TestRunner which runs one app per testcase.  Note that
running the smoke tests with android.test.InstrumentationTestRunner will /also/
work, but will run all of the launchable activites in a single testcase called
testRunAllActivities.

Bug: 6128185
Change-Id: Iffedff7e6105bbca614778a4d294d3be421f19d6
2012-03-12 15:26:11 -07:00
Alex Sakhartchouk
44e3fe99c5 Using the rs API instead.
Change-Id: I819c37f8c05ec887500db38a4e18390a1c5ea137
2012-03-12 13:52:33 -07:00
Alex Sakhartchouk
c709216310 Merge "Support for more vector types." 2012-03-09 08:44:02 -08:00
Alex Sakhartchouk
c53254ec92 Merge "Enable AA in scenegraph. Minor shader work in sample." 2012-03-08 14:25:56 -08:00
Stephen Hines
ebc34f820c Merge "Check in older versions of RS tests." 2012-03-08 11:41:34 -08:00
Stephen Hines
41f1e5edee Check in older versions of RS tests.
This change adds a v11 version of Fountain, as well as v11 and v14 versions of
RSTest. All tests currently build and pass on the required platforms.

This also fixes an initialization bug for RSTest running on older devices.
If we don't directly initialize "each" component of the vector types, it can
result in uninitialized memory (or zero) being used for divisors (particularly
with the char vector types). This triggers SIGFPE with the latest pending
Clang/LLVM rebase.

Change-Id: I92a70c2aeed4e20f110b1cb24ee926fc27be9dbb
2012-03-07 17:47:53 -08:00
Alex Sakhartchouk
29e239203d Support for more vector types.
Change-Id: I06d6e8814e75c0dcd726a3c95de82fd6f6267c4d
2012-03-07 15:59:24 -08:00
Alex Sakhartchouk
42f23b3cfe Merge "Adding more modes to the sampler test app. Fixing pixel placement." 2012-03-07 09:25:56 -08:00
Alex Sakhartchouk
e51ae26282 Adding more modes to the sampler test app.
Fixing pixel placement.

Change-Id: I355cc611ebe0bfb15af96cc498604d9b9fa1a9d3
2012-03-06 16:43:28 -08:00
Alex Sakhartchouk
6a1d388282 Merge "First draft of the sample function implementation." 2012-03-06 08:31:54 -08:00
Alex Sakhartchouk
43ca3cfa87 First draft of the sample function implementation.
Change-Id: I51bb999419b5b424a8549461a6d91f48f3fc9298
2012-03-05 18:03:32 -08:00
Guang Zhu
3ae8c42152 Update to DumpRenderTree test harness
* removed some unused parameters
* removed obsolete live website test harness
* updated test class so that mean suite time for page cycler
  is emmitted via instrumentation status

Change-Id: Iccb40f70a62a4ac9b8d5bceab9a6a715c611c573
2012-03-05 15:33:17 -08:00
Jonathan Dixon
3c90952036 Refactor WebView to be a thin proxy class
Splits interface and implementation; all client calls are forwarded
to an abstract WebViewProvider interface, and the existing implementation
moved into the WebViewClassic implementor of this interface.

Originally taken from a snapshot from the development branch, by:
git diff HEAD 9a4c328a54cc05e5 | git apply
- but then rebased to keep up to date with master

Interdepends on webkit and Browser changes:
https://android-git.corp.google.com/g/158979
https://android-git.corp.google.com/g/167911

Change-Id: I91403f32654ff308934e95c832d17b292a7d9b2e
2012-03-02 11:17:47 +00:00
Fabrice Di Meglio
3fd29d908a Unhide BiDiTests app
- unhide its makefile so that now it is part of the standard build process

Change-Id: Ied86c252975e30da8e3e75180869835f00a5969d
2012-03-01 18:15:25 -08:00
Romain Guy
7084e75282 Merge "Full implementation of Canvas.drawPath()" 2012-02-29 19:16:15 -08:00
Romain Guy
9777173eb6 Full implementation of Canvas.drawPath()
Change-Id: I23223b89770a0cd2b4762365bead9bfddb094290
2012-02-29 19:14:37 -08:00
Alex Sakhartchouk
b23b58ad34 Enable AA in scenegraph. Minor shader work in sample.
Change-Id: Ifa81d2b19901002f901f25ac9dce5a4ca09fa363
2012-02-29 09:06:10 -08:00
Stephen Hines
47e432e37c Add test for signed/unsigned char bug (conversion).
BUG=6080056

Change-Id: I7980ff3e4a23ff8ba007ff0372ec855b7272630d
2012-02-27 18:06:51 -08:00
Romain Guy
2abb138152 Merge "More infrastructure for Canvas.drawTextOnPath" 2012-02-24 18:01:47 -08:00
Romain Guy
778f67f7c0 Merge "Add hooks to implement Canvas.drawTextOnPath() in GL" 2012-02-24 18:01:22 -08:00
Romain Guy
03d58520c3 More infrastructure for Canvas.drawTextOnPath
Change-Id: Iff42b24e342650d06fa4e2fa9db6c28da820ff01
2012-02-24 17:54:07 -08:00
Romain Guy
325740fb44 Add hooks to implement Canvas.drawTextOnPath() in GL
Change-Id: I165c9e05facf5365aa6850605688e538640c7fcc
2012-02-24 16:48:34 -08:00
Daniel Sandler
3f0c58eb70 Merge "New notification priority and related APIs." 2012-02-24 10:53:42 -08:00
Daniel Sandler
2561b0b10a New notification priority and related APIs.
This change introduces a few new bits of data on
Notification that will help the Notification Manager and
System UI route and display them more intelligently:

 -> priority: an integer in a predefined range that
    indicates the app's best guess as to the relative
    importance (to the user, right now) of that information

 -> kind: a tag (really, set of tags) indicating the general
    type of notification (realtime, asynchronous, etc)

 -> extras: a Bundle of additional key/value pairs
    associated with this notification (currently @hidden)

The notification manager takes these data into account when
assigning to each notification a score which is passed with
the notification on to the system UI, where it can be used to
affect presentation. For example:

  - Spammy apps (identified explicitly by the user or by
    some other means) will have their notifications scored
    very negatively by the notification manager, allowing
    the UI to suppress them
  - Notifications of higher score might be shown larger
    or in a different way
  - Very important notifications (indicated by a very high
    score) might interrupt the user during an otherwise
    important task (videochat, game, etc)

Implementation note: This replaces/extends the old internal
notion of "priority", which was mostly used to organize
ongoings and system notifications at the top of the panel.

Change-Id: Ie063dc75f198a68e2b5734a3aa0cacb5aba1ac39
2012-02-24 13:47:00 -05:00
Romain Guy
34c55d3085 Merge "Only recreate path textures when necessary" 2012-02-23 17:11:49 -08:00
Romain Guy
4bcb7467a1 Only recreate path textures when necessary
When a drawPath command is recorded in a display list, a copy of the
source path is made to preserve against possible modifications of the
said source path. Copies are discarded when a display list is cleared,
which usually happens on invalidate(). This means that even if a path
is never modified, the texture generated to draw it on screen is
destroyed every time an invalidate() is issued. This change fixes this
problem by introducing a reference to the source path in the copy.
If both the copy and the source path have the same genID, they are
the same path and can share the same texture.

Change-Id: I34849311c183e06336a1391d2d1568a087f973f6
2012-02-23 17:08:38 -08:00
Alex Sakhartchouk
5d3bc7d3e4 Merge "Adding a few more howto elements to scenegraph example." 2012-02-23 16:57:00 -08:00
Alex Sakhartchouk
3c8eed3bdc Adding a few more howto elements to scenegraph example.
Change-Id: I29f025ce6ecf3a8090a8365991de40af72b4e78f
2012-02-23 10:12:45 -08:00
Stephen Hines
a16c98c155 Merge "Support running ForEach on non-root functions." 2012-02-23 09:58:56 -08:00
Stephen Hines
473a2048d3 Support running ForEach on non-root functions.
BUG=6000538

Change-Id: Ie2b16893b150cc5955ee4b9d028c988f69a82744
2012-02-22 15:24:29 -08:00
Alex Sakhartchouk
d2dc983896 Simplifying programmatic creation.
Change-Id: I792f96b5ed47d3c78976d57259074c9ae402575b
2012-02-22 11:59:12 -08:00
Alex Sakhartchouk
9cc290038c Properly pipe texture names through.
Change-Id: I3e44c2757acee90539869c32771626cd0f770a25
2012-02-22 09:06:03 -08:00
Alex Sakhartchouk
1eb4c26a96 Merge "Adding a very simple all-code scenegraph example." 2012-02-22 09:02:53 -08:00
Romain Guy
f541e4395a Merge "Only copy paths, paints and shaders when we need to." 2012-02-21 18:33:58 -08:00
Romain Guy
96ebc6b509 Only copy paths, paints and shaders when we need to.
Change-Id: Iba7a9c92c865f698821b6ff7bc4f502659642ac1
2012-02-21 18:32:32 -08:00