1105 Commits

Author SHA1 Message Date
Romain Guy
980a938c1c Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
2010-01-08 15:11:38 -08:00
Joe Onorato
f5d95cbc1a less log spew 2010-01-08 15:46:24 -05:00
Jason Sams
917cd4fcda Fix npot but where mipmap level sizes were rounding in the wrong direction. Should always be floor. 2010-01-07 16:26:42 -08:00
Jason Sams
6286953ece Change user attribs to look for empty slot rather than using them in order. Prevents conflict with numbered legacy slots. 2010-01-07 16:26:42 -08:00
Jason Sams
74e02ef200 Support npot on es 2.0 HW. 2010-01-06 15:10:29 -08:00
Jason Sams
a09a6e145b More complete support for named attribs. Adds user typed attribs as available to programVertex. Non user attribs are not treated like user for GL2 for simplicity. 2010-01-06 12:01:51 -08:00
Jean-Baptiste Queru
ca328e70ed explicit set an "optional" tag 2010-01-05 11:40:22 -08:00
Jason Sams
e17964e150 Add RS support for generic attribs as input to vertex programs. 2010-01-04 16:52:27 -08:00
Jason Sams
7d46f612a2 Disable excessive RS logging. 2009-12-23 14:56:19 -08:00
Jason Sams
718cd1f322 Element restructuring. Add support for new basic Element types including the RS objects and vectors(2-4). In theory this paves the way for maintaining type info for RS objects, passing elements for GLSL uiforms/attribs/varyings, and supporting nested structures.
This will break some apps, checkings for other projects will follow to unbreak them.
2009-12-23 14:35:29 -08:00
Eric Laurent
b9a44165c7 am 0c5cc224: am d20a55af: Merge change Iccfa50fe into eclair
Merge commit '0c5cc224b052654ee38d39effce427a47697481b'

* commit '0c5cc224b052654ee38d39effce427a47697481b':
  Fix issue 2323920: Notification & A2DP audio stutter.
2009-12-22 10:01:39 -08:00
Eric Laurent
8ac9f8d1c7 Fix issue 2323920: Notification & A2DP audio stutter.
Modified AudioFlinger duplicating output thread so that audio tracks are not mixed until both outputs (A2DP and hardware) have exited standby mode. This avoids to have one output far ahead of the other and audio frames dropped because the compensation mechanism cannot keep up.
Also calculate the maximum wait time in OutputTrack::write() based the on smallest frame count of all output threads instead of the frame count of the thread the OutputTrack is connected to. This avoids starving the thread with the smallest frame count by waiting too long on the other thread.
Since the frame count was reduced on hardware output to reduce latency the difference between A2DP and hardware outputs frame counts had become problematic.
Also increased the number of overflow buffers to cope with bigger timing differences among outputs.
2009-12-22 09:06:46 -08:00
Jason Sams
68afd01ec9 Move texture bindings to base program object. Change ProgramFragment creation to require a texture format in 1.0 mode. 2009-12-17 16:55:08 -08:00
Jason Sams
7b7f29a35c Fix live wallpaper many. Z coordinate was being ignored for draw quad call. 2009-12-16 14:24:17 -08:00
Jason Sams
ce9adcce02 Fix emulated glColor in es2 mode. 2009-12-16 14:13:06 -08:00
Jason Sams
5dad8b4d1f Place shader logging behind prop to declutter logs. 2009-12-15 19:10:11 -08:00
Jason Sams
7e5ab3b177 Continue es2 shader dev
Conflicts:

	graphics/java/android/renderscript/Program.java
	graphics/java/android/renderscript/ProgramVertex.java
2009-12-15 13:27:04 -08:00
Jason Sams
0011bcf57f Continue development of es2.0 user shader support for renderscript. This change cleans up ProgramVertex creation and adds support for passing input, output, and constant type info. 2009-12-15 12:58:36 -08:00
Jason Sams
3b7d39bb51 Implement RS tracked defered texture and buffer object uploads. 2009-12-14 12:59:49 -08:00
Mathias Agopian
0ba8846910 am 2378f141: am b63d91c6: am f9b0e826: fix [2269582] [TOP-10][Passion_1506][APT:Camera]Sometimes camera preview screen is truncated after launching and back to home screen by home key repeatedly
Merge commit '2378f1413426987ccfe9d6ed5f856bb01c9d7c30'

* commit '2378f1413426987ccfe9d6ed5f856bb01c9d7c30':
  fix [2269582] [TOP-10][Passion_1506][APT:Camera]Sometimes camera preview screen is truncated after launching and back to home screen by home key repeatedly
2009-12-11 06:30:53 -08:00
Mathias Agopian
57e9a3fa2f am 871f9de3: am 02472639: am 083a557c: fix [2319255] crash in openGL : from the media recorder stress test.
Merge commit '871f9de3554ccfd2028837dea97b76fcaf5ffedb'

* commit '871f9de3554ccfd2028837dea97b76fcaf5ffedb':
  fix [2319255] crash in openGL : from the media recorder stress test.
2009-12-11 01:39:53 -08:00
Mathias Agopian
b63d91c6fc am f9b0e826: fix [2269582] [TOP-10][Passion_1506][APT:Camera]Sometimes camera preview screen is truncated after launching and back to home screen by home key repeatedly
Merge commit 'f9b0e826689cca5ecbd40aa49f3ea7f7c73ad2a2' into eclair-mr2

* commit 'f9b0e826689cca5ecbd40aa49f3ea7f7c73ad2a2':
  fix [2269582] [TOP-10][Passion_1506][APT:Camera]Sometimes camera preview screen is truncated after launching and back to home screen by home key repeatedly
2009-12-11 01:16:08 -08:00
Mathias Agopian
f9b0e82668 fix [2269582] [TOP-10][Passion_1506][APT:Camera]Sometimes camera preview screen is truncated after launching and back to home screen by home key repeatedly
When a surface is removed from the screen while it holds a "freeze lock", the
release of that lock happens in the destructor as a "safety net". However, it
doesn't trigger an update at that point.

Make sure that "freeze locks" are released from the transaction at the point
a surface is removed from the screen (if it's not on screen, it shouldn't
prevent the screen to redraw, and therefore cannot hold a freeze lock).
The refresh corresponding to that transaction will pick it up as soon as possible.
2009-12-11 00:56:10 -08:00
Kenny Root
24a4f2224b am 1e1d4492: am 218aa945: Merge change I6478884a into eclair-mr2
Merge commit '1e1d44924a334637f9fb47ca8796625bd86cb66a'

* commit '1e1d44924a334637f9fb47ca8796625bd86cb66a':
  Add string resource type inspection
2009-12-10 23:46:34 -08:00
Mathias Agopian
55e070baa1 am abcb3703: am 75ca58d6: am 76169da0: fix [2315900] Monochrome camera preview screen after launching camera
Merge commit 'abcb37038a4981e935e516dd4d56cecd1f6fcb39'

* commit 'abcb37038a4981e935e516dd4d56cecd1f6fcb39':
  fix [2315900] Monochrome camera preview screen after launching camera
2009-12-10 23:42:13 -08:00
Mathias Agopian
024726391a am 083a557c: fix [2319255] crash in openGL : from the media recorder stress test.
Merge commit '083a557c25e0032bc4900f335b6643d0badd09ce' into eclair-mr2

* commit '083a557c25e0032bc4900f335b6643d0badd09ce':
  fix [2319255] crash in openGL : from the media recorder stress test.
2009-12-10 19:48:05 -08:00
Android (Google) Code Review
218aa94581 Merge change I6478884a into eclair-mr2
* changes:
  Add string resource type inspection
2009-12-10 18:05:19 -08:00
Mathias Agopian
75ca58d6f8 am 76169da0: fix [2315900] Monochrome camera preview screen after launching camera
Merge commit '76169da0e84b0fcf621aeac6141af3ee85bc7c1e' into eclair-mr2

* commit '76169da0e84b0fcf621aeac6141af3ee85bc7c1e':
  fix [2315900] Monochrome camera preview screen after launching camera
2009-12-10 17:40:41 -08:00
Jason Sams
aad442ec27 am b62954b6: am 8f31c230: am 57ce0888: Merge change Id22c0137 into eclair
Merge commit 'b62954b66542e3e2654d97a81123c51805bceca7'

* commit 'b62954b66542e3e2654d97a81123c51805bceca7':
  Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
2009-12-10 17:15:13 -08:00
Mathias Agopian
54db799ada am d1b8019a: am ae5bd2b9: am d8c752ef: Merge change Ib548dbb2 into eclair
Merge commit 'd1b8019a69d186df74f072cc51b413e34c3016f4'

* commit 'd1b8019a69d186df74f072cc51b413e34c3016f4':
  improve video performance to minimize the tearing effect seen in 720p movies
2009-12-10 17:15:02 -08:00
Jason Sams
8f31c23021 am 57ce0888: Merge change Id22c0137 into eclair
Merge commit '57ce0888fcb1376b385c3dab5e4262793acaaf16' into eclair-mr2

* commit '57ce0888fcb1376b385c3dab5e4262793acaaf16':
  Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
2009-12-10 16:45:22 -08:00
Mathias Agopian
ae5bd2b9cc am d8c752ef: Merge change Ib548dbb2 into eclair
Merge commit 'd8c752ef74bc6d8b412defe35caf1a19be15eb8b' into eclair-mr2

* commit 'd8c752ef74bc6d8b412defe35caf1a19be15eb8b':
  improve video performance to minimize the tearing effect seen in 720p movies
2009-12-10 16:43:09 -08:00
Mathias Agopian
083a557c25 fix [2319255] crash in openGL : from the media recorder stress test.
never call eglCreateImageKHR() with a NULL native buffer, which can
happen in OOM conditions.
2009-12-10 15:59:08 -08:00
Kenny Root
bb79f64b89 Add string resource type inspection
Allows "aapt dump --values resource" to print out whether a string in a
ResStringPool is in UTF-8 or UTF-16 encoding.

Change-Id: I6478884a70a3b46fee862dece6cb33454fc34843
2009-12-10 14:22:08 -08:00
Dianne Hackborn
8415afdb70 am ea483723: am 9fbb534e: Merge change Iafbeb31b into eclair-mr2
Merge commit 'ea483723b3cc630cf5b5b6fda7b08d9592bdbbde'

* commit 'ea483723b3cc630cf5b5b6fda7b08d9592bdbbde':
  Maybe really fix windows build.
2009-12-10 09:20:51 -08:00
Dianne Hackborn
02909d44d5 am b901f0c6: am 484fe4d6: Merge change I06fb2c1c into eclair-mr2
Merge commit 'b901f0c6dd4c833e4d5a0aa409066d25762abbbb'

* commit 'b901f0c6dd4c833e4d5a0aa409066d25762abbbb':
  Hopefully fix Windows build
2009-12-10 09:12:16 -08:00
Kenny Root
30cee478b7 am 5cd6fcd5: am e6c0e993: Merge change I129483f8 into eclair-mr2
Merge commit '5cd6fcd518d47d1974a10fccf3c3d5431a83307a'

* commit '5cd6fcd518d47d1974a10fccf3c3d5431a83307a':
  Optional use of UTF-8 strings in resource bundles
2009-12-10 07:06:45 -08:00
Dianne Hackborn
314664d247 am 68a3b8b6: am 24eca800: Merge change I887f355f into eclair-mr2
Merge commit '68a3b8b66044d0a9fa901ad306fc6db6d13f94d3'

* commit '68a3b8b66044d0a9fa901ad306fc6db6d13f94d3':
  Propagate background scheduling class across processes.
2009-12-10 07:05:18 -08:00
Mathias Agopian
76169da0e8 fix [2315900] Monochrome camera preview screen after launching camera
this was introduced by a recent change. when we try to figure out the size of
the yuv->rgb temporary buffer, the output resolution has not been computed yet
and an invalid buffer size is used. most of the time the allocation fails
and the system reverts to "standard" GL will uses onle the Y plane.

the allocation of the temporary buffer is moved to onDraw(), the first
time it is called, by that time, the window is positioned properly.
2009-12-09 15:26:29 -08:00
Android (Google) Code Review
57ce0888fc Merge change Id22c0137 into eclair
* changes:
  Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
2009-12-09 11:07:16 -08:00
Jason Sams
b9d5c574ff Throttle low priority RS threads by sleeping once per frame to avoid starving other apps. 2009-12-09 11:05:45 -08:00
Dianne Hackborn
afbeb31bff Maybe really fix windows build. 2009-12-08 19:45:59 -08:00
Mathias Agopian
b548dbb225 improve video performance to minimize the tearing effect seen in 720p movies
always rescale videos to their target size using copybit during yuv->rgb
conversion. this improves performance of the GPU pass and doesn't require
linear filtering to be enabled. Also always use 16-bits buffers.

the average processing time for 720p dropped from ~50ms to ~30ms
2009-12-08 19:29:38 -08:00
Dianne Hackborn
06fb2c1c39 Hopefully fix Windows build 2009-12-08 16:38:01 -08:00
Android (Google) Code Review
e6c0e99334 Merge change I129483f8 into eclair-mr2
* changes:
  Optional use of UTF-8 strings in resource bundles
2009-12-08 13:41:38 -08:00
Dianne Hackborn
887f355f99 Propagate background scheduling class across processes.
This is a very simply implementation: upon receiving an IPC, if the handling
thread is at a background priority (the driver will have taken care of
propagating this from the calling thread), then stick it in to the background
scheduling group.  Plus an API to turn this off for the process, which is
used by the system process.

This also pulls some of the code for managing scheduling classes out of
the Process JNI wrappers and in to some convenience methods in thread.h.
2009-12-07 19:11:14 -08:00
Eric Laurent
f997e3a0f9 am bf831e0d: am 38f6bdc4: am 0a08029f: Fix issue 2306779: Runtime restart - Init failed at android.media.ToneGenerator.
Merge commit 'bf831e0de0fd1636a7ee2670faed208f96f23f65'

* commit 'bf831e0de0fd1636a7ee2670faed208f96f23f65':
  Fix issue  2306779: Runtime restart - Init failed at android.media.ToneGenerator.
2009-12-07 18:35:06 -08:00
Eric Laurent
feab08b901 am e30bae7f: am b8341cf7: am 6d42d806: Merge change I9cc489a2 into eclair
Merge commit 'e30bae7f8ef0489788c155ae44d9a57beca1acf5'

* commit 'e30bae7f8ef0489788c155ae44d9a57beca1acf5':
  Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.
2009-12-07 18:33:53 -08:00
Dima Zavin
aa096cd9fb am 0c15b889: am 401f4220: am 0019215f: Revert "When using MDP, we needed to use a texture for diming."
Merge commit '0c15b889317e9569282e4513db598369a0506b40'

* commit '0c15b889317e9569282e4513db598369a0506b40':
  Revert "When using MDP, we needed to use a texture for diming."
2009-12-07 18:30:40 -08:00
Kenny Root
19138468ca Optional use of UTF-8 strings in resource bundles
Allows the use of UTF-8 for packing resources instead of the
default of UTF-16 for Java. When strings are extracted from the
ResStringPool, they are converted to UTF-16 and the result is
cached for subsequent calls.

When using aapt to package, add in the "-8" switch to pack the
resources using UTF-8. This will result in the value, key, and
type strings as well as the compiled XML string values taking
significantly less space in the final application package in
most scenarios.

Change-Id: I129483f8b3d3b1c5869dced05cb525e494a6c83a
2009-12-07 15:14:15 -08:00