OSDN Git Service

android-x86/frameworks-av.git
11 years agoam 44ade05f: am ea26c777: Camera3: Skip no-op stream configurations.
Eino-Ville Talvala [Wed, 12 Jun 2013 01:23:26 +0000 (18:23 -0700)]
am 44ade05f: am ea26c777: Camera3: Skip no-op stream configurations.

* commit '44ade05f8d030ae3af8d05359734b18eac433935':
  Camera3: Skip no-op stream configurations.

11 years agoam ea26c777: Camera3: Skip no-op stream configurations.
Eino-Ville Talvala [Wed, 12 Jun 2013 01:21:05 +0000 (18:21 -0700)]
am ea26c777: Camera3: Skip no-op stream configurations.

* commit 'ea26c7772f4721657db409068d4bed194ae49c94':
  Camera3: Skip no-op stream configurations.

11 years agoCamera3: Skip no-op stream configurations.
Eino-Ville Talvala [Tue, 11 Jun 2013 23:04:06 +0000 (16:04 -0700)]
Camera3: Skip no-op stream configurations.

If configuring the same set of streams more than once, don't actually
call into the HAL for the second and subsequent configure calls, since
they're no-ops.

This can speed up camera operation substantially if the
HAL implementation does not detect no-ops on its own and does a full
shutdown/restart on each configure call.

Bug: 9392513
Change-Id: I23baf4acbae2304735899adcf8e17565fa94d31d

11 years agoMerge "camera: Make some binder interfaces compatible with AIDL"
Igor Murashkin [Tue, 11 Jun 2013 20:44:58 +0000 (20:44 +0000)]
Merge "camera: Make some binder interfaces compatible with AIDL"

11 years agocamera: Make some binder interfaces compatible with AIDL
Igor Murashkin [Fri, 31 May 2013 00:47:38 +0000 (17:47 -0700)]
camera: Make some binder interfaces compatible with AIDL

Done:
* ICameraService
* ICameraServiceListener

Partial:
* ICamera (disconnect only)
* IProCameraUser (disconnect only)

Bug: 9213377
Change-Id: I8e2e6e05cfd02ec36be1d5b2c551f10ffb43b5b4

11 years agoMerge "Camera3: Add more tracing"
Eino-Ville Talvala [Mon, 10 Jun 2013 20:34:08 +0000 (20:34 +0000)]
Merge "Camera3: Add more tracing"

11 years agoam 6c72c187: (-s ours) Reconcile with jb-mr2-release jb-mr2-zeroday-release - do...
The Android Open Source Project [Mon, 10 Jun 2013 18:11:53 +0000 (11:11 -0700)]
am 6c72c187: (-s ours) Reconcile with jb-mr2-release jb-mr2-zeroday-release - do not merge

* commit '6c72c1877fadca5068fa94f7a0249c0609e85534':
  camera2/3: Fix deadlock take picture while preview callback
  camera3: Fix crash in set error state.
  camera2/3: Add protection to callback processing call

11 years agoReconcile with jb-mr2-release jb-mr2-zeroday-release - do not merge
The Android Open Source Project [Mon, 10 Jun 2013 15:13:42 +0000 (08:13 -0700)]
Reconcile with jb-mr2-release jb-mr2-zeroday-release - do not merge

Change-Id: I9864de7c2785357cea0c4b669607fee76e9f09e8

11 years agomerge in jb-mr2-zeroday-release history after reset to jb-mr2-dev
The Android Automerger [Sun, 9 Jun 2013 12:55:29 +0000 (05:55 -0700)]
merge in jb-mr2-zeroday-release history after reset to jb-mr2-dev

11 years agocamera2/3: Fix deadlock take picture while preview callback
Zhijun He [Thu, 6 Jun 2013 23:52:02 +0000 (16:52 -0700)]
camera2/3: Fix deadlock take picture while preview callback

Acquiring mInputMutex before SharedParameters mutex in preview callback thread
causes circular locking dependency between callback thread and capture callback
thread.
Enforce the right lock ordering to break the dead lock.

Bug: 9323319
Change-Id: Iea2e025e4d9e29debcf74297c19930075017e179

11 years agoCamera3: Add more tracing
Eino-Ville Talvala [Mon, 3 Jun 2013 23:53:32 +0000 (16:53 -0700)]
Camera3: Add more tracing

Change-Id: I5f5d0d3f37244f19446c473db70373bdf16cce56

11 years agoam 574ca4f4: am ba696bbf: Merge "camera2/3: Fix deadlock take picture while preview...
Zhijun He [Fri, 7 Jun 2013 17:01:13 +0000 (10:01 -0700)]
am 574ca4f4: am ba696bbf: Merge "camera2/3: Fix deadlock take picture while preview callback" into jb-mr2-dev

* commit '574ca4f4f15a42d6159150149f68bf3cb800d869':
  camera2/3: Fix deadlock take picture while preview callback

11 years agoam ba696bbf: Merge "camera2/3: Fix deadlock take picture while preview callback"...
Zhijun He [Fri, 7 Jun 2013 16:59:47 +0000 (09:59 -0700)]
am ba696bbf: Merge "camera2/3: Fix deadlock take picture while preview callback" into jb-mr2-dev

* commit 'ba696bbff88d5627beaa0be95be78ba30138983d':
  camera2/3: Fix deadlock take picture while preview callback

11 years agoMerge "camera2/3: Fix deadlock take picture while preview callback" into jb-mr2-dev
Zhijun He [Fri, 7 Jun 2013 16:58:12 +0000 (16:58 +0000)]
Merge "camera2/3: Fix deadlock take picture while preview callback" into jb-mr2-dev

11 years agoam d3a5b48a: am 18b46679: Merge "AudioFlinger: do not cache audio device when 0....
Eric Laurent [Fri, 7 Jun 2013 15:59:12 +0000 (08:59 -0700)]
am d3a5b48a: am 18b46679: Merge "AudioFlinger: do not cache audio device when 0." into jb-mr2-dev

* commit 'd3a5b48a1bc4f5d6ff4472f54f909abaadd5fa39':
  AudioFlinger: do not cache audio device when 0.

11 years agoam 18b46679: Merge "AudioFlinger: do not cache audio device when 0." into jb-mr2-dev
Eric Laurent [Fri, 7 Jun 2013 15:57:00 +0000 (08:57 -0700)]
am 18b46679: Merge "AudioFlinger: do not cache audio device when 0." into jb-mr2-dev

* commit '18b466790aa0a55ff4282ed8b5e550e58e0444b2':
  AudioFlinger: do not cache audio device when 0.

11 years agoMerge "AudioFlinger: do not cache audio device when 0." into jb-mr2-dev
Eric Laurent [Fri, 7 Jun 2013 15:52:59 +0000 (15:52 +0000)]
Merge "AudioFlinger: do not cache audio device when 0." into jb-mr2-dev

11 years agoam 1c540f7d: am 911a184b: am 132bc5bd: Merge "Noise will be heard if audio sample...
Glenn Kasten [Fri, 7 Jun 2013 14:11:34 +0000 (07:11 -0700)]
am 1c540f7d: am 911a184b: am 132bc5bd: Merge "Noise will be heard if audio sample rate not matched with audio track"

* commit '1c540f7d1b04cfd74847587f127b7539c3c15864':
  Noise will be heard if audio sample rate not matched with audio track

11 years agoam 911a184b: am 132bc5bd: Merge "Noise will be heard if audio sample rate not matched...
Glenn Kasten [Fri, 7 Jun 2013 14:09:39 +0000 (07:09 -0700)]
am 911a184b: am 132bc5bd: Merge "Noise will be heard if audio sample rate not matched with audio track"

* commit '911a184bb5f5177a00bb4a8c80453f22e67b449c':
  Noise will be heard if audio sample rate not matched with audio track

11 years agoam 132bc5bd: Merge "Noise will be heard if audio sample rate not matched with audio...
Glenn Kasten [Fri, 7 Jun 2013 14:06:15 +0000 (07:06 -0700)]
am 132bc5bd: Merge "Noise will be heard if audio sample rate not matched with audio track"

* commit '132bc5bd1c68aa807a20e1655f009f74433be588':
  Noise will be heard if audio sample rate not matched with audio track

11 years agoMerge "Noise will be heard if audio sample rate not matched with audio track"
Glenn Kasten [Fri, 7 Jun 2013 14:04:45 +0000 (14:04 +0000)]
Merge "Noise will be heard if audio sample rate not matched with audio track"

11 years agoNoise will be heard if audio sample rate not matched with audio track
Ming Zhou [Wed, 27 Feb 2013 09:12:37 +0000 (17:12 +0800)]
Noise will be heard if audio sample rate not matched with audio track

When audio sample rate which set to audio track is not the same with
the actual pcm data, noise will be heard. Fix the bug when write 8 bit
pcm samples.

Change-Id: Idcb0d7b0e9aaa250dd22b758c8337e23d1706049
Signed-off-by: Ming Zhou <b42586@freescale.com>
Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
11 years agoAudioFlinger: do not cache audio device when 0.
Eric Laurent [Fri, 7 Jun 2013 01:29:01 +0000 (18:29 -0700)]
AudioFlinger: do not cache audio device when 0.

AudioFlinger should not cache the audio device
passed to the audio HAL when it is AUDIO_DEVICE_NONE
but keep previous valid selection instead.

Bug: 9323399.
Change-Id: I6f9480e55a21be4115453e6a5eebc5cf2536c476

11 years agocamera2/3: Fix deadlock take picture while preview callback
Zhijun He [Thu, 6 Jun 2013 23:52:02 +0000 (16:52 -0700)]
camera2/3: Fix deadlock take picture while preview callback

Acquiring mInputMutex before SharedParameters mutex in preview callback thread
causes circular locking dependency between callback thread and capture callback
thread.
Enforce the right lock ordering to break the dead lock.

Bug: 9323319
Change-Id: Iea2e025e4d9e29debcf74297c19930075017e179

11 years agoRemove "LOCAL_MODULE_TAGS := debug" for stagefright tests
Mike Lockwood [Thu, 6 Jun 2013 22:00:14 +0000 (15:00 -0700)]
Remove "LOCAL_MODULE_TAGS := debug" for stagefright tests

Change-Id: I53815d2f6d7dfe7eebb26c3802eb3d195244aab1

11 years agocamera3: Fix crash in set error state.
Zhijun He [Thu, 6 Jun 2013 20:51:22 +0000 (13:51 -0700)]
camera3: Fix crash in set error state.

When camera open fails in camera3device initialize call, setErrorStateLockedV()
tries to access RequestThread object that is not created yet.

Bug: 9319518
Change-Id: Id5c6c0150ecaecb198045d5c6eb1b2ceebf5a727

11 years agocamera2/3: Add protection to callback processing call
Zhijun He [Thu, 6 Jun 2013 03:00:09 +0000 (20:00 -0700)]
camera2/3: Add protection to callback processing call

Callback stream in callbackprocessor could be delleted while process or
discard callback are ongoing, which leads CpuConsumer related call crash.

Bug 9303911

Change-Id: Ib6137e512208e5603468eba166640729b744e8f9

11 years agoam e097efde: am b05eeaed: camera3: Fix crash in set error state.
Zhijun He [Thu, 6 Jun 2013 21:22:29 +0000 (14:22 -0700)]
am e097efde: am b05eeaed: camera3: Fix crash in set error state.

* commit 'e097efde4363f80d5ffc34da6ec6253fbd4e5397':
  camera3: Fix crash in set error state.

11 years agoam b05eeaed: camera3: Fix crash in set error state.
Zhijun He [Thu, 6 Jun 2013 21:18:06 +0000 (14:18 -0700)]
am b05eeaed: camera3: Fix crash in set error state.

* commit 'b05eeaedacaff92b6e5ac89f99b0fccdf7643f09':
  camera3: Fix crash in set error state.

11 years agocamera3: Fix crash in set error state.
Zhijun He [Thu, 6 Jun 2013 20:51:22 +0000 (13:51 -0700)]
camera3: Fix crash in set error state.

When camera open fails in camera3device initialize call, setErrorStateLockedV()
tries to access RequestThread object that is not created yet.

Bug: 9319518
Change-Id: Id5c6c0150ecaecb198045d5c6eb1b2ceebf5a727

11 years agoam 1d263b89: am 62a8f67f: camera2/3: Add protection to callback processing call
Zhijun He [Thu, 6 Jun 2013 18:12:05 +0000 (11:12 -0700)]
am 1d263b89: am 62a8f67f: camera2/3: Add protection to callback processing call

* commit '1d263b89bd1c5d73389f53976e104dd6b088ab6e':
  camera2/3: Add protection to callback processing call

11 years agoam 62a8f67f: camera2/3: Add protection to callback processing call
Zhijun He [Thu, 6 Jun 2013 18:09:54 +0000 (11:09 -0700)]
am 62a8f67f: camera2/3: Add protection to callback processing call

* commit '62a8f67f33faf19d0ff815672dd19bb71dd0d650':
  camera2/3: Add protection to callback processing call

11 years agocamera2/3: Add protection to callback processing call
Zhijun He [Thu, 6 Jun 2013 03:00:09 +0000 (20:00 -0700)]
camera2/3: Add protection to callback processing call

Callback stream in callbackprocessor could be delleted while process or
discard callback are ongoing, which leads CpuConsumer related call crash.

Bug 9303911

Change-Id: Ib6137e512208e5603468eba166640729b744e8f9

11 years agoam 25c8c528: (-s ours) Reconcile with jb-mr2-release jb-mr2-zeroday-release - do...
The Android Open Source Project [Thu, 6 Jun 2013 17:38:56 +0000 (10:38 -0700)]
am 25c8c528: (-s ours) Reconcile with jb-mr2-release jb-mr2-zeroday-release - do not merge

* commit '25c8c528101360119f2aafc1871811cc1a5ad519':
  Camera2/3: Move recording frame processing to its own thread.
  stagefright: Fix port-reconfiguration & output-buffer-filled race condition
  Camera2/3: Don't trigger AF when in INFINITY focus mode.

11 years agoReconcile with jb-mr2-release jb-mr2-zeroday-release - do not merge
The Android Open Source Project [Thu, 6 Jun 2013 17:37:16 +0000 (10:37 -0700)]
Reconcile with jb-mr2-release jb-mr2-zeroday-release - do not merge

Change-Id: I0aa9bb7e725a8352da3eae512c2a62df4f12e3b3

11 years agomerge in jb-mr2-zeroday-release history after reset to jb-mr2-dev
The Android Automerger [Thu, 6 Jun 2013 12:55:27 +0000 (05:55 -0700)]
merge in jb-mr2-zeroday-release history after reset to jb-mr2-dev

11 years agoCamera2/3: Move recording frame processing to its own thread.
Eino-Ville Talvala [Tue, 4 Jun 2013 23:34:35 +0000 (16:34 -0700)]
Camera2/3: Move recording frame processing to its own thread.

Due to new deadlock opportunities from HAL3 integration, recording
frame processing needs to move out of the new frame handler into its
own thread in StreamingProcessor.

Bug: 9282913
Change-Id: I8d2926f2de9d0d395eef3c328c65caebbdbd2827

11 years agostagefright: Fix port-reconfiguration & output-buffer-filled race condition
Lajos Molnar [Fri, 26 Apr 2013 23:11:45 +0000 (16:11 -0700)]
stagefright: Fix port-reconfiguration & output-buffer-filled race condition

Remove the invalid assumption that when a port-reconfiguration event
is received, buffers cannot be downstream (waiting to be rendered).

Luckily, these buffers are properly handled (freed) after they are
sent to be rendered.

Change-Id: I1df39c1ffc2bfb96f8b7b4ee5be07cae654f956f
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 8736466

11 years agostagefright: created SoftVideoDecoderOMXComponent
Lajos Molnar [Wed, 5 Jun 2013 02:35:18 +0000 (19:35 -0700)]
stagefright: created SoftVideoDecoderOMXComponent

Created common base class for all software video decoders to make
adding new features easier.

Change-Id: Id89964e572d5cc5add02662273e6ae96c6b7eb12
Signed-off-by: Lajos Molnar <lajos@google.com>
11 years agoam 4dd110ae: am 254446a8: Camera2/3: Move recording frame processing to its own thread.
Eino-Ville Talvala [Wed, 5 Jun 2013 18:46:46 +0000 (11:46 -0700)]
am 4dd110ae: am 254446a8: Camera2/3: Move recording frame processing to its own thread.

* commit '4dd110ae6d9f00e1ec036f697045f4b3326b7873':
  Camera2/3: Move recording frame processing to its own thread.

11 years agoam 254446a8: Camera2/3: Move recording frame processing to its own thread.
Eino-Ville Talvala [Wed, 5 Jun 2013 18:43:49 +0000 (11:43 -0700)]
am 254446a8: Camera2/3: Move recording frame processing to its own thread.

* commit '254446a80cb13d5beb606bfc3e60a17473869478':
  Camera2/3: Move recording frame processing to its own thread.

11 years agomerge in jb-mr2-zeroday-release history after reset to jb-mr2-dev
The Android Automerger [Wed, 5 Jun 2013 17:11:30 +0000 (10:11 -0700)]
merge in jb-mr2-zeroday-release history after reset to jb-mr2-dev

11 years agoTrack exact timestamps in SoftMPEG4/H263 decoders
Lajos Molnar [Wed, 5 Jun 2013 02:35:03 +0000 (19:35 -0700)]
Track exact timestamps in SoftMPEG4/H263 decoders

Change-Id: I7772e3afec020f889dea80fd6372afbc36cd68d6
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 9285553
(cherry picked from commit e113aa1f078cb3d5f8182058e144fd14ce945fca)

11 years agoReset PV decoder on SoftMPEG4 decoder reset
Lajos Molnar [Wed, 5 Jun 2013 01:43:08 +0000 (18:43 -0700)]
Reset PV decoder on SoftMPEG4 decoder reset

Otherwise, state may be undefined for subsequent frames.

Change-Id: Icdc0126247e1422eba21f2008a04cf7867d93f5d
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 9284771
(cherry picked from commit 0f15875b8e80fb49a3b18d88964b063326f307b9)

11 years agoCamera2/3: Move recording frame processing to its own thread.
Eino-Ville Talvala [Tue, 4 Jun 2013 23:34:35 +0000 (16:34 -0700)]
Camera2/3: Move recording frame processing to its own thread.

Due to new deadlock opportunities from HAL3 integration, recording
frame processing needs to move out of the new frame handler into its
own thread in StreamingProcessor.

Bug: 9282913
Change-Id: I8d2926f2de9d0d395eef3c328c65caebbdbd2827

11 years agoMerge "Fix underruns when sample rate != native sample rate"
Glenn Kasten [Tue, 4 Jun 2013 23:44:55 +0000 (23:44 +0000)]
Merge "Fix underruns when sample rate != native sample rate"

11 years agoFix underruns when sample rate != native sample rate
Glenn Kasten [Mon, 3 Jun 2013 22:00:29 +0000 (15:00 -0700)]
Fix underruns when sample rate != native sample rate

This forces a minimum of 3 application buffers when the sample rates
don't match, using the normal mixer and low latency HAL.

There is still an issue that the latency() varies depending on whether
screen was off or on at the time of creating the AudioTrack.

With screen on:
I/AudioTrack( 2028): afFrameCount=960, minBufCount=2, afSampleRate=48000, afLatency=50
I/AudioTrack( 2028): minFrameCount: 2646, afFrameCount=960, minBufCount=3, sampleRate=44100, afSampleRate=48000, afLatency=50

With screen off:
I/AudioTrack( 2817): afFrameCount=960, minBufCount=4, afSampleRate=48000, afLatency=84
I/AudioTrack( 2817): minFrameCount: 3528, afFrameCount=960, minBufCount=4, sampleRate=44100, afSampleRate=48000, afLatency=84

Change-Id: Ib45515edff2afcd672dda34881b658c800ffc25a

11 years agoCamera2/3: Don't trigger AF when in INFINITY focus mode.
Eino-Ville Talvala [Mon, 3 Jun 2013 23:50:53 +0000 (16:50 -0700)]
Camera2/3: Don't trigger AF when in INFINITY focus mode.

While the HAL should ignore it, it's faster to immediately respond
with success.

Also filter out cancel autofocus calls for FIXED/INFINITY focus.

Bug: 9263856
Change-Id: I637ec7c8b459d654ef11cb1142b959f2674224c5

11 years agoam cbbd6c83: am 8f908c0c: Merge "Camera2/3: Don\'t trigger AF when in INFINITY focus...
Eino-Ville Talvala [Tue, 4 Jun 2013 18:17:10 +0000 (11:17 -0700)]
am cbbd6c83: am 8f908c0c: Merge "Camera2/3: Don\'t trigger AF when in INFINITY focus mode." into jb-mr2-dev

* commit 'cbbd6c8354f7323933081b217ce53461d99215c4':
  Camera2/3: Don't trigger AF when in INFINITY focus mode.

11 years agoam 8f908c0c: Merge "Camera2/3: Don\'t trigger AF when in INFINITY focus mode." into...
Eino-Ville Talvala [Tue, 4 Jun 2013 16:19:14 +0000 (09:19 -0700)]
am 8f908c0c: Merge "Camera2/3: Don\'t trigger AF when in INFINITY focus mode." into jb-mr2-dev

* commit '8f908c0c211f8051f339bc85b01a6450f0dfd7d0':
  Camera2/3: Don't trigger AF when in INFINITY focus mode.

11 years agoMerge "Camera2/3: Don't trigger AF when in INFINITY focus mode." into jb-mr2-dev
Eino-Ville Talvala [Tue, 4 Jun 2013 16:17:17 +0000 (16:17 +0000)]
Merge "Camera2/3: Don't trigger AF when in INFINITY focus mode." into jb-mr2-dev

11 years agoCamera2/3: Don't trigger AF when in INFINITY focus mode.
Eino-Ville Talvala [Mon, 3 Jun 2013 23:50:53 +0000 (16:50 -0700)]
Camera2/3: Don't trigger AF when in INFINITY focus mode.

While the HAL should ignore it, it's faster to immediately respond
with success.

Also filter out cancel autofocus calls for FIXED/INFINITY focus.

Bug: 9263856
Change-Id: I637ec7c8b459d654ef11cb1142b959f2674224c5

11 years agoMerge "Fix uninitialized variable error in HLS bandwidth determination."
Andreas Huber [Mon, 3 Jun 2013 23:03:38 +0000 (23:03 +0000)]
Merge "Fix uninitialized variable error in HLS bandwidth determination."

11 years agoMerge "Fix our software decoders to reset (more of) their internal state"
Andreas Huber [Mon, 3 Jun 2013 23:02:19 +0000 (23:02 +0000)]
Merge "Fix our software decoders to reset (more of) their internal state"

11 years agoFix uninitialized variable error in HLS bandwidth determination.
Andreas Huber [Mon, 3 Jun 2013 23:00:13 +0000 (16:00 -0700)]
Fix uninitialized variable error in HLS bandwidth determination.

Change-Id: I647e79443f2a06e5b1b4f9068c02b424b0e57989

11 years agoFix our software decoders to reset (more of) their internal state
Andreas Huber [Mon, 3 Jun 2013 22:48:11 +0000 (15:48 -0700)]
Fix our software decoders to reset (more of) their internal state

properly on a transition from idle->loaded.

Change-Id: I56ccfeef24c391e50e42b522194206e35c7ab700
related-to-bug: 9105408

11 years agoam e64d4133: am 25b5617c: Merge "stagefright: Fix port-reconfiguration & output-buffe...
Lajos Molnar [Mon, 3 Jun 2013 20:34:42 +0000 (13:34 -0700)]
am e64d4133: am 25b5617c: Merge "stagefright: Fix port-reconfiguration & output-buffer-filled race condition" into jb-mr2-dev

* commit 'e64d41332776e3c91f51c3239589695bf2cd0aeb':
  stagefright: Fix port-reconfiguration & output-buffer-filled race condition

11 years agoam 25b5617c: Merge "stagefright: Fix port-reconfiguration & output-buffer-filled...
Lajos Molnar [Mon, 3 Jun 2013 20:32:36 +0000 (13:32 -0700)]
am 25b5617c: Merge "stagefright: Fix port-reconfiguration & output-buffer-filled race condition" into jb-mr2-dev

* commit '25b5617c56488fe5413473ffae6b43f6c5bddc96':
  stagefright: Fix port-reconfiguration & output-buffer-filled race condition

11 years agoMerge "stagefright: Fix port-reconfiguration & output-buffer-filled race condition...
Lajos Molnar [Mon, 3 Jun 2013 20:30:48 +0000 (20:30 +0000)]
Merge "stagefright: Fix port-reconfiguration & output-buffer-filled race condition" into jb-mr2-dev

11 years agoMerge "Use sp<AudioTrack> instead of raw AudioTrack *"
Glenn Kasten [Mon, 3 Jun 2013 19:14:50 +0000 (19:14 +0000)]
Merge "Use sp<AudioTrack> instead of raw AudioTrack *"

11 years agoMerge "wifi-display: fix resolution list and keepalive interval"
Chong Zhang [Mon, 3 Jun 2013 18:53:14 +0000 (18:53 +0000)]
Merge "wifi-display: fix resolution list and keepalive interval"

11 years agoUse sp<AudioTrack> instead of raw AudioTrack *
Glenn Kasten [Thu, 30 May 2013 21:33:29 +0000 (14:33 -0700)]
Use sp<AudioTrack> instead of raw AudioTrack *

This change prepares for the new implementation of AudioTrack client, which
will require clients to use only sp<AudioTrack>, not raw AudioTrack *.
A raw delete will cause a race condition during AudioTrack destruction.

AudioTrack was made a RefBase by commit b68a91a70bc8d0d18e7404e14443d4e4020b3635
on 2011/11/15, when it was needed by OpenSL ES (for the callback protector).
At that time, the only other client that was also converted from
AudioTrack * to sp<AudioTrack> was android.media.AudioTrack JNI in
project frameworks/base (file android_media_AudioTrack.cpp).

Details:
 * Use .clear() instead of delete followed by = NULL.
 * ALOG %p need .get().
 * sp<> don't need to be listed in constructor initializer, if initially 0.
 * Use == 0 for sp<> vs == NULL for raw pointers.
 * Use if (sp != 0) instead of if (raw).

Change-Id: Ic7cad25795d6e862e112abdc227b6d33afdfce17

11 years agoam f9bb8358: am b7319a7e: Update HTTP proxy configuration for all media playback...
Andreas Huber [Mon, 3 Jun 2013 15:48:27 +0000 (08:48 -0700)]
am f9bb8358: am b7319a7e: Update HTTP proxy configuration for all media playback inside stagefright.

* commit 'f9bb8358e454be6dc88403171db7e0e182407f17':
  Update HTTP proxy configuration for all media playback inside stagefright.

11 years agoam b7319a7e: Update HTTP proxy configuration for all media playback inside stagefright.
Andreas Huber [Mon, 3 Jun 2013 15:46:18 +0000 (08:46 -0700)]
am b7319a7e: Update HTTP proxy configuration for all media playback inside stagefright.

* commit 'b7319a7eb0a06ef4fd3a0c9157ee63e637ad7aa1':
  Update HTTP proxy configuration for all media playback inside stagefright.

11 years agoUpdate HTTP proxy configuration for all media playback inside stagefright.
Andreas Huber [Wed, 29 May 2013 21:20:52 +0000 (14:20 -0700)]
Update HTTP proxy configuration for all media playback inside stagefright.

Change-Id: Ie0dd00045aba668d8b49da73224e7a7c9c04f69b
related-to-bug: 8873723
(cherry picked from commit 2704965b8a1ff3b7450ff58ccecf86d8ec688c40)

11 years agoMerge "New HLS implementation supporting independent stream sources, audio-only streams"
Andreas Huber [Fri, 31 May 2013 20:09:34 +0000 (20:09 +0000)]
Merge "New HLS implementation supporting independent stream sources, audio-only streams"

11 years agostagefright: Fix port-reconfiguration & output-buffer-filled race condition
Lajos Molnar [Fri, 26 Apr 2013 23:11:45 +0000 (16:11 -0700)]
stagefright: Fix port-reconfiguration & output-buffer-filled race condition

Remove the invalid assumption that when a port-reconfiguration event
is received, buffers cannot be downstream (waiting to be rendered).

Luckily, these buffers are properly handled (freed) after they are
sent to be rendered.

Change-Id: I1df39c1ffc2bfb96f8b7b4ee5be07cae654f956f
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 8736466

11 years agoMerge "Consistent whitespace"
Glenn Kasten [Fri, 31 May 2013 18:51:47 +0000 (18:51 +0000)]
Merge "Consistent whitespace"

11 years agoNew HLS implementation supporting independent stream sources, audio-only streams
Andreas Huber [Tue, 15 Jan 2013 17:04:18 +0000 (09:04 -0800)]
New HLS implementation supporting independent stream sources, audio-only streams

and more.

Change-Id: Icfc45a0100243b2f7a14a9e65696be45b67d6495

11 years agowifi-display: fix resolution list and keepalive interval
Chong Zhang [Fri, 31 May 2013 04:51:38 +0000 (21:51 -0700)]
wifi-display: fix resolution list and keepalive interval

- add all resolutions lower than 1280x720p30

- schedule next keepalive when sending M16

bug 9116665

Change-Id: I7b3fea2101d3d882c0af5c153af5c502b8ce98f6

11 years agoMerge "wifi-display: fixes for PAUSE/PLAY state"
Chong Zhang [Fri, 31 May 2013 03:22:49 +0000 (03:22 +0000)]
Merge "wifi-display: fixes for PAUSE/PLAY state"

11 years agoMerge "Edit list uses timescale from movie header"
Marco Nelissen [Thu, 30 May 2013 21:55:07 +0000 (21:55 +0000)]
Merge "Edit list uses timescale from movie header"

11 years agoam 268f5ccf: (-s ours) Reconcile with jb-mr2-release - do not merge
The Android Open Source Project [Thu, 30 May 2013 21:24:11 +0000 (14:24 -0700)]
am 268f5ccf: (-s ours) Reconcile with jb-mr2-release - do not merge

* commit '268f5ccf7b8adf80f18ef8a9dac46a0813cec19f':

11 years agoConsistent whitespace
Glenn Kasten [Wed, 26 Dec 2012 22:43:16 +0000 (14:43 -0800)]
Consistent whitespace

Change-Id: I118cce68d3b777f9ec9b6bfb70367496422a40f2

11 years agoMerge "libstagefright: Check for duration > 0 to avoid divide-by-zero exception"
Vineeta Srivastava [Thu, 30 May 2013 19:48:25 +0000 (19:48 +0000)]
Merge "libstagefright: Check for duration > 0 to avoid divide-by-zero exception"

11 years agocamera: Dont segfault when result lacks timestamp
Alex Ray [Thu, 30 May 2013 07:12:13 +0000 (00:12 -0700)]
camera: Dont segfault when result lacks timestamp

Also make a log message more useful.

Change-Id: Id8b65a9b55e1ebe41598dc2db4b0b2aa3f161965

11 years agoEdit list uses timescale from movie header
Marco Nelissen [Thu, 30 May 2013 18:00:47 +0000 (11:00 -0700)]
Edit list uses timescale from movie header

not from track media header

Change-Id: I24063183f44027b999782cc9006e9a1b56e87355

11 years agowifi-display: fixes for PAUSE/PLAY state
Chong Zhang [Thu, 30 May 2013 16:46:20 +0000 (09:46 -0700)]
wifi-display: fixes for PAUSE/PLAY state

PAUSE could be initiated by either source (via trigger method)
or sink, in latter case we have to allow PAUSE from PLAYING state.
Similarly PLAY should be allowed from PAUSED state.

Bug: 8922515

Change-Id: I475534aa4ffa6dc6844f59c5868d8f88291019ae

11 years agoReconcile with jb-mr2-release - do not merge
The Android Open Source Project [Thu, 30 May 2013 14:31:31 +0000 (07:31 -0700)]
Reconcile with jb-mr2-release - do not merge

Change-Id: Ia17841b4d49f0fe09e1034ff0b28efe55947f03a

11 years agomerge in jb-mr2-release history after reset to jb-mr2-dev
The Android Automerger [Thu, 30 May 2013 12:55:32 +0000 (05:55 -0700)]
merge in jb-mr2-release history after reset to jb-mr2-dev

11 years agocamera3: Error on minimum buffer count
Alex Ray [Wed, 29 May 2013 03:18:22 +0000 (20:18 -0700)]
camera3: Error on minimum buffer count

Change-Id: Idf16de20e940e411286ec3e477534b36ef1c9b11

11 years agoam 1cd68527: am 41688da2: Merge "MediaMuxer: Remove SAMPLE_FLAG_SYNC flag" into jb...
Lajos Molnar [Wed, 29 May 2013 22:21:25 +0000 (15:21 -0700)]
am 1cd68527: am 41688da2: Merge "MediaMuxer: Remove SAMPLE_FLAG_SYNC flag" into jb-mr2-dev

* commit '1cd68527a6c4cc92608dfe8a8c6ba51e5e2c4fc2':
  MediaMuxer: Remove SAMPLE_FLAG_SYNC flag

11 years agoam 41688da2: Merge "MediaMuxer: Remove SAMPLE_FLAG_SYNC flag" into jb-mr2-dev
Lajos Molnar [Wed, 29 May 2013 22:14:04 +0000 (15:14 -0700)]
am 41688da2: Merge "MediaMuxer: Remove SAMPLE_FLAG_SYNC flag" into jb-mr2-dev

* commit '41688da226e91c97ea3b2fe096044e1e5b0520bc':
  MediaMuxer: Remove SAMPLE_FLAG_SYNC flag

11 years agoMerge "MediaMuxer: Remove SAMPLE_FLAG_SYNC flag" into jb-mr2-dev
Lajos Molnar [Wed, 29 May 2013 19:11:25 +0000 (19:11 +0000)]
Merge "MediaMuxer: Remove SAMPLE_FLAG_SYNC flag" into jb-mr2-dev

11 years agoMerge "Don't crash if no timescale was given"
Marco Nelissen [Wed, 29 May 2013 19:03:45 +0000 (19:03 +0000)]
Merge "Don't crash if no timescale was given"

11 years agoMerge "Camera: static parameter default values"
Alex Ray [Wed, 29 May 2013 18:32:11 +0000 (18:32 +0000)]
Merge "Camera: static parameter default values"

11 years agoMerge "libcameraservice: missing argument when logging"
Alex Ray [Wed, 29 May 2013 18:31:46 +0000 (18:31 +0000)]
Merge "libcameraservice: missing argument when logging"

11 years agoDon't crash if no timescale was given
Marco Nelissen [Wed, 29 May 2013 17:58:08 +0000 (10:58 -0700)]
Don't crash if no timescale was given

b/9175577

Change-Id: Ie159a9c9b42e6c8d9366d0ef6a607234af569e36

11 years agoam 197d3e07: (-s ours) Reconcile with jb-mr2-release - do not merge
The Android Open Source Project [Wed, 29 May 2013 15:10:31 +0000 (08:10 -0700)]
am 197d3e07: (-s ours) Reconcile with jb-mr2-release - do not merge

* commit '197d3e077384087a8674bbfcbecf63a88e611426':

11 years agoReconcile with jb-mr2-release - do not merge
The Android Open Source Project [Wed, 29 May 2013 15:05:57 +0000 (08:05 -0700)]
Reconcile with jb-mr2-release - do not merge

Change-Id: I55d8c1a91b9750864f82176768ea93bf11337726

11 years agomerge in jb-mr2-release history after reset to jb-mr2-dev
The Android Automerger [Wed, 29 May 2013 12:55:12 +0000 (05:55 -0700)]
merge in jb-mr2-release history after reset to jb-mr2-dev

11 years agoCamera: static parameter default values
Alex Ray [Thu, 23 May 2013 00:44:26 +0000 (17:44 -0700)]
Camera: static parameter default values

Use sane default values for static metadata parameters.

Change-Id: I180d9b6560ebba468a083e847b78e02b845db788

11 years agolibcameraservice: missing argument when logging
Alex Ray [Fri, 24 May 2013 22:41:53 +0000 (15:41 -0700)]
libcameraservice: missing argument when logging

Change-Id: I6f3da400f8f47a387968b9da4ee7cd8e0c9dea70

11 years agolibstagefright: Check for duration > 0 to avoid divide-by-zero exception
Ajay Dudani [Thu, 23 May 2013 05:16:33 +0000 (22:16 -0700)]
libstagefright: Check for duration > 0 to avoid divide-by-zero exception

Change-Id: I58ccacbf7ede892dff9626715162ea7b1f2ddbc6

11 years agoam 9f013a46: am 3c89a2e9: Merge "camera3: Don\'t try to disconnect stream native...
Igor Murashkin [Tue, 28 May 2013 23:51:18 +0000 (16:51 -0700)]
am 9f013a46: am 3c89a2e9: Merge "camera3: Don\'t try to disconnect stream native windows more than once" into jb-mr2-dev

* commit '9f013a46e150da01ebb267574d8095eef399cd0c':
  camera3: Don't try to disconnect stream native windows more than once

11 years agoam 3c89a2e9: Merge "camera3: Don\'t try to disconnect stream native windows more...
Igor Murashkin [Tue, 28 May 2013 23:49:02 +0000 (16:49 -0700)]
am 3c89a2e9: Merge "camera3: Don\'t try to disconnect stream native windows more than once" into jb-mr2-dev

* commit '3c89a2e9d4ee10b9e955783af2ab9e9dd137922f':
  camera3: Don't try to disconnect stream native windows more than once

11 years agoMerge "camera3: Don't try to disconnect stream native windows more than once" into...
Igor Murashkin [Tue, 28 May 2013 23:47:00 +0000 (23:47 +0000)]
Merge "camera3: Don't try to disconnect stream native windows more than once" into jb-mr2-dev

11 years agoMediaMuxer: Remove SAMPLE_FLAG_SYNC flag
Lajos Molnar [Tue, 28 May 2013 17:11:35 +0000 (10:11 -0700)]
MediaMuxer: Remove SAMPLE_FLAG_SYNC flag

MediaMuxer.writeSampleData() uses MediaCodec.BufferInfo
objects to specify the flags, so use directly the MediaCodec
flags.  This is more intuitive and avoids users of the
MediaMuxer API having to create translations between
MediaMuxer's and MediaCodec's flag constants.

Change-Id: I18e12a6839ffb2c63da62516a4dc4c94e8bb3d17
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 9169479

11 years agocamera3: Don't try to disconnect stream native windows more than once
Igor Murashkin [Tue, 28 May 2013 22:31:39 +0000 (15:31 -0700)]
camera3: Don't try to disconnect stream native windows more than once

This fixes the multiple-disconnect-from-BufferQueue bug.

(In logs)
BufferQueue: [SurfaceView] disconnect: connected to another api (cur=0, req=4)

Bug: 9114681
Change-Id: I21ae1c5bd993701eea13648aa9994979a24eb210

11 years agoam 30ca8004: (-s ours) Reconcile with jb-mr2-release - do not merge
The Android Open Source Project [Tue, 28 May 2013 20:50:15 +0000 (13:50 -0700)]
am 30ca8004: (-s ours) Reconcile with jb-mr2-release - do not merge

* commit '30ca8004cf259c5dceab5cec06cab5ae9a17d89b':