978 Commits

Author SHA1 Message Date
Mathias Agopian
90daccf3fd fix [2143798] Need to figure out how to do video on Passion w/ GPU
This builds on the EGLImage solution. We simply use copybit to convert from the
YUV frame into an EGLImage created for that purpose and proceed with the
regular EGLImage code.
We need to do this because "regular" GL doesn't support YUV textures.

We could improve upon this by detecting exacly what the GL supports and bypass
this extra step if not required, but we'll do this later if needed.
2009-11-11 16:44:43 -08:00
Romain Guy
baed727481 Don't feed the timezone to RenderScript time functions, let the library figure it out.
Bug #2211070.

Change-Id: I5975651fd12399fb8dfe283dfdfaa17569738c7b
2009-11-11 15:36:06 -08:00
Eric Laurent
059b4be2a5 Improvements for issue 2197683: English IME key-press latency is noticeably higher on passion than sholes
This change goes with a kernel driver change that reduces the audio buffer size from 4800 bytes (~27ms) to 3072 bytes (~17ms).
- The AudioFlinger modifcations in change 0bca68cfff161abbc992fec82dc7c88079dd1a36 have been removed: the short sleep period was counter productive when the AudioTrack is using the call back thread as it causes to many preemptions.
- AudioFlinger mixer thread now detects long standby exit time and in this case anticipates start by writing 0s as soon as a track is enabled even if not ready for mixing.
- AudioTrack::start() is modified to start call back thread before starting the IAudioTrack so that thread startup time is masked by IAudioTrack start and mixer thread wakeup time.
2009-11-11 12:13:27 -08:00
Eric Laurent
aaad676137 am c6aaa09b: am 756e75cf: am 090c60bb: Merge change I73b60354 into eclair
Merge commit 'c6aaa09b7075f00e2cff543b50bc84bbdd133d7b'

* commit 'c6aaa09b7075f00e2cff543b50bc84bbdd133d7b':
  AudioFlinger: delete Track object when createTrack() fails due to lack of tracks in AudioMixer.
2009-11-09 16:30:29 -08:00
Eric Laurent
9731f7c96f am 43396952: am 05388e45: am 93572eef: Merge change Ifb9d6df3 into eclair
Merge commit '43396952a5b9466f18aa640f9755b6b80fa587f5'

* commit '43396952a5b9466f18aa640f9755b6b80fa587f5':
  More log for issue 2242381.
2009-11-09 16:30:05 -08:00
Christopher Tate
670fb3732f am 2c203adb: am ee9f9759: am 1dacdd48: Reset binder service threads\' cgroup/priority after command completion
Merge commit '2c203adbe6df2c0d86abf280cdc36917595fe41d'

* commit '2c203adbe6df2c0d86abf280cdc36917595fe41d':
  Reset binder service threads' cgroup/priority after command completion
2009-11-09 16:29:08 -08:00
Eric Laurent
73b603546d AudioFlinger: delete Track object when createTrack() fails due to lack of tracks in AudioMixer.
This problem was encountered as a side effect of issue 2245298.
2009-11-09 04:45:39 -08:00
Android (Google) Code Review
93572eef41 Merge change Ifb9d6df3 into eclair
* changes:
  More log for issue 2242381.
2009-11-08 22:58:34 -08:00
Christopher Tate
1dacdd4828 Reset binder service threads' cgroup/priority after command completion
To prevent buggy command implementations from poisoning binder threads'
scheduling class & priority for future command execution, we now reset the
cgroup and thread priority to foreground/normal when a binder service thread
finishes executing the designated command.

Change-Id: Ibc0ab2485751453f6dc96fdb4eb877fd02796e3f
2009-11-08 14:29:02 -08:00
Eric Laurent
3fdb1267c1 More log for issue 2242381.
Added more log in system dump for AudioFlinger and AudioPolicyService to help debug issue 2242381 and other issues where the audio driver hangs.
2009-11-07 01:18:20 -08:00
Evan Millar
6a9137661d am 3d43d816: am c11b225c: am 7e4a0047: Merge change I97b30e2f into eclair
Merge commit '3d43d816772d0c395f7a3335e6bde421b8539508'

* commit '3d43d816772d0c395f7a3335e6bde421b8539508':
  Revert jparks code from IPCThreadState.
2009-11-06 12:05:00 -08:00
Evan Millar
97b30e2f62 Revert jparks code from IPCThreadState. 2009-11-06 11:25:23 -08:00
Romain Guy
e1cd1ef7b9 am b25cb21f: am 8426319c: am f20e9a88: Merge change Idf40f3b0 into eclair
Merge commit 'b25cb21f59da53f138bc516a6047f55a2c412764'

* commit 'b25cb21f59da53f138bc516a6047f55a2c412764':
  Prevent crash in Home when using widgets whose ids collide with Home's
2009-11-05 16:04:32 -08:00
Jason Sams
237d247cc4 am 4909b554: am a8f2c2b4: am 902051df: Merge change I0e27b5ca into eclair
Merge commit '4909b554782c1970bce11fb421b0a06664a25718'

* commit '4909b554782c1970bce11fb421b0a06664a25718':
  Fix texture upload bug for narrow texture of less than 32bpp.
2009-11-05 16:00:56 -08:00
Romain Guy
85e677572b Revert change incorrectly submitted as part of change #32153.
Change-Id: I31c52beff03c0d038a257fc151eff3b8da60eddc
2009-11-05 15:49:22 -08:00
Android (Google) Code Review
f20e9a88a3 Merge change Idf40f3b0 into eclair
* changes:
  Prevent crash in Home when using widgets whose ids collide with Home's resources.
2009-11-05 18:42:14 -05:00
Romain Guy
ae8dd29c03 Prevent crash in Home when using widgets whose ids collide with Home's
resources.

Bug #2228943.

Approved by mcleron, triaged by ryanpc.

Change-Id: Idf40f3b09502ae5d0d3b9a6a72c265a2de2ffca2
2009-11-05 15:40:35 -08:00
Jason Sams
0e27b5cadb Fix texture upload bug for narrow texture of less than 32bpp. 2009-11-05 12:44:58 -08:00
Jason Parks
ba986b1acb am 3e1000b7: am 6176790e: am ef16a545: Merge change I2867746d into eclair
Merge commit '3e1000b706f92d229e473ae31f76643d82d5cdb9'

* commit '3e1000b706f92d229e473ae31f76643d82d5cdb9':
  When a thread is about to be put back onto the thread pool ensure that it is in the foreground cgroup.
2009-11-04 15:21:10 -08:00
Jason Parks
2867746d7b When a thread is about to be put back onto the thread pool ensure that it is in the foreground cgroup. 2009-11-04 14:25:26 -08:00
Jason Sams
bd98f10764 am eb7e27e8: am a1c3681f: am decc139b: Merge change I7a824efc into eclair
Merge commit 'eb7e27e8007d1b27d3e01c376b6747dc885db517'

* commit 'eb7e27e8007d1b27d3e01c376b6747dc885db517':
  Support applications changing the surface attached to the RS.
2009-11-03 16:27:39 -08:00
Jason Sams
74807763e0 am 03fa848a: am ebca5eec: am 83665194: Merge change I9d5e03db into eclair
Merge commit '03fa848afd16ee678e2d04ec824794893f199804'

* commit '03fa848afd16ee678e2d04ec824794893f199804':
  Fix RS bugs.  We were holding a pointer to the script text from the java vm. Move freeing of objects to before context teardown to allow allocations to clean up their data.
2009-11-03 15:26:09 -08:00
Jason Sams
efd9b6fb2e Support applications changing the surface attached to the RS. 2009-11-03 14:15:28 -08:00
Android (Google) Code Review
83665194ab Merge change I9d5e03db into eclair
* changes:
  Fix RS bugs.  We were holding a pointer to the script text from the java vm. Move freeing of objects to before context teardown to allow allocations to clean up their data.
2009-11-03 16:56:31 -05:00
Jason Parks
b4229d4b06 am 11335d98: am 2e6e80b9: am c6e88afb: Merge change If2fdad3b into eclair
Merge commit '11335d98fd28c6c10967055afb1862e6e44e8e80'

* commit '11335d98fd28c6c10967055afb1862e6e44e8e80':
  Add a warning when we leave threads in the binder thread pool in the background scheduling group.
2009-11-03 13:52:01 -08:00
Android (Google) Code Review
c6e88afb3e Merge change If2fdad3b into eclair
* changes:
  Add a warning when we leave threads in the binder thread pool in the background scheduling group.
2009-11-03 16:29:22 -05:00
Jason Parks
dabcf4151a Add a warning when we leave threads in the binder thread pool in the background scheduling group. 2009-11-03 13:10:15 -08:00
Jason Sams
9d5e03db99 Fix RS bugs. We were holding a pointer to the script text from the java vm. Move freeing of objects to before context teardown to allow allocations to clean up their data. 2009-11-03 11:25:42 -08:00
Eric Laurent
76363ea3ee am 7fc9343c: am 62174d02: am 65e4f618: Merge change I60bed5d3 into eclair
Merge commit '7fc9343c33dc5b97963dcd0a2e46d391ec333985'

* commit '7fc9343c33dc5b97963dcd0a2e46d391ec333985':
  Log for issue 2203561.
2009-11-03 10:48:36 -08:00
Mathias Agopian
55ab1c002d am d1d744cd: am 07d38c66: am 8637759a: Merge change I36d0184e into eclair
Merge commit 'd1d744cdf4b08c8ef969790bae305c82ae783f4e'

* commit 'd1d744cdf4b08c8ef969790bae305c82ae783f4e':
  fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts when playing back video
2009-11-03 10:04:07 -08:00
Eric Laurent
f4ee40e26e Log for issue 2203561.
Implemented AudioPolicyService dump().
Added detailed dump for AudioPolicyManageriGeneric when AudioPolicyService is dumped.
2009-11-03 09:33:35 -08:00
Android (Google) Code Review
8637759a1d Merge change I36d0184e into eclair
* changes:
  fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts when playing back video
2009-11-02 21:26:54 -05:00
Mathias Agopian
36d0184e08 fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts when playing back video
we lost the concept of vertical stride when moving video playback to EGLImage.
Here we bring it back in a somewhat hacky-way that will work only for the
softgl/mdp backend.
2009-11-02 17:48:33 -08:00
Dima Zavin
7a889a37be am 8559ca18: am 0a5201f0: am dfc7244a: libbinder: MemoryHeapPmem: honor the NO_CACHING flag when creating a client heap
Merge commit '8559ca18de9cdd60bd8979e641c4fd1a8e66b62e'

* commit '8559ca18de9cdd60bd8979e641c4fd1a8e66b62e':
  libbinder: MemoryHeapPmem: honor the NO_CACHING flag when creating a client heap
2009-11-02 17:46:03 -08:00
Dima Zavin
dfc7244aa8 libbinder: MemoryHeapPmem: honor the NO_CACHING flag when creating a client heap
Change-Id: Ia7beb800f5a24beaa4b7f3032b486d4ed1991b23
Signed-off-by: Dima Zavin <dima@android.com>
2009-11-02 16:36:45 -08:00
Jason Sams
46f385459f am 15ec511b: am 38f95586: am 03e778b9: Merge change Ic4918c30 into eclair
Merge commit '15ec511b5c5cdb901bf1bd0e26ff0514635fc681'

* commit '15ec511b5c5cdb901bf1bd0e26ff0514635fc681':
  Fix a build break.  Too many branches to keep track of.
2009-11-02 15:23:02 -08:00
Iliyan Malchev
a3cbfe0e8f am 8ba42ba8: am cd767bfd: am d4649b2f: Merge change Ibaef6141 into eclair
Merge commit '8ba42ba83b206929c4c13c0b8ef24de87a92f42c'

* commit '8ba42ba83b206929c4c13c0b8ef24de87a92f42c':
  libbinder: add a NO_CACHING flag to MemoryHeapBase
2009-11-02 15:22:53 -08:00
Jason Sams
43b5a56644 am 766df995: am d31b0e44: am 3bbb5e9a: Merge change Ib7a6c434 into eclair
Merge commit '766df995e30caa054cc25068e55f160c765590eb'

* commit '766df995e30caa054cc25068e55f160c765590eb':
  Fix some leaks.  This fixes the major malloc memory leak in allApps.  Still tracking some much more minor issues.
2009-11-02 15:22:34 -08:00
Android (Google) Code Review
03e778b913 Merge change Ic4918c30 into eclair
* changes:
  Fix a build break.  Too many branches to keep track of.
2009-11-02 18:05:55 -05:00
Jason Sams
c4918c3014 Fix a build break. Too many branches to keep track of. 2009-11-02 15:05:04 -08:00
Android (Google) Code Review
d4649b2f8e Merge change Ibaef6141 into eclair
* changes:
  libbinder: add a NO_CACHING flag to MemoryHeapBase
2009-11-02 17:55:43 -05:00
Jason Sams
b7a6c4340a Fix some leaks. This fixes the major malloc memory leak in allApps. Still tracking some much more minor issues. 2009-11-02 14:25:10 -08:00
Eric Laurent
a4ded45056 am 80164966: am a86861a8: am 31f62008: Merge change I29bc113c into eclair
Merge commit '80164966d087388ac0192caf7270158dea22444e'

* commit '80164966d087388ac0192caf7270158dea22444e':
  Fix issue 197683: English IME key-press latency is noticeably higher on passion than sholes. Part 2.
2009-11-02 11:13:34 -08:00
Eric Laurent
0bca68cfff Fix issue 197683: English IME key-press latency is noticeably higher on passion than sholes. Part 2.
Reduce sleep time in AudioFlinger mixer thread when no data has been written to output to speed up startup time when  exiting standby.

The rest of the modifications for this issues is in kernel driver:
 commit 0dbb0ee136ed8de757df1ae26d84556c1751deae for buffer size modification from 8192 to 4800 bytes.
Another kernel improvement that is not submitted yes will reduce delay when audio output is exiting standby.
2009-11-02 00:13:56 -08:00
Mathias Agopian
3ccc7fa6ba am 739dcc56: am b199d114: am 9baef73c: Merge change Id8b28e4f into eclair
Merge commit '739dcc562af9bc4506d8cc6ccf837f072ed90d2d'

* commit '739dcc562af9bc4506d8cc6ccf837f072ed90d2d':
  fix [2225964] Android runtime restarted in surfaceflinger/BlurFilter.cpp
2009-11-01 21:55:06 -08:00
Mathias Agopian
aee73dc45a am c64e9346: am d85545d0: am d01767f8: Merge change I56779290 into eclair
Merge commit 'c64e9346785a1a4fc95ec6cf27da8a5193a2dfbc'

* commit 'c64e9346785a1a4fc95ec6cf27da8a5193a2dfbc':
  fix[2222341] Soft reset while going back from camcorder settings
2009-11-01 21:54:55 -08:00
Mathias Agopian
8617d1a6f3 am 5acbf81a: am 74d4640c: am f989c114: Merge change If007a2fa into eclair
Merge commit '5acbf81a20f5cd121c1eee81de5f9350b1a8c16e'

* commit '5acbf81a20f5cd121c1eee81de5f9350b1a8c16e':
  return proper error code from eglCreateImageKHR
2009-11-01 21:54:44 -08:00
Iliyan Malchev
baef6141a3 libbinder: add a NO_CACHING flag to MemoryHeapBase
The NO_CACHING flag translates to opening a memory region with O_SYNC.

Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-10-30 18:35:47 -07:00
Android (Google) Code Review
9baef73c9b Merge change Id8b28e4f into eclair
* changes:
  fix [2225964] Android runtime restarted in surfaceflinger/BlurFilter.cpp
2009-10-30 17:54:16 -04:00
Android (Google) Code Review
d01767f8b7 Merge change I56779290 into eclair
* changes:
  fix[2222341] Soft reset while going back from camcorder settings
2009-10-30 17:54:10 -04:00