OSDN Git Service

android-x86/frameworks-av.git
11 years agoMerge "Instead of returning an error, return an invalid duration (-1 ms)" into jb...
Andreas Huber [Mon, 15 Apr 2013 15:16:02 +0000 (15:16 +0000)]
Merge "Instead of returning an error, return an invalid duration (-1 ms)" into jb-mr2-dev

11 years agoMerge "Update the test output path." into jb-mr2-dev
Yu Shan Emily Lau [Mon, 15 Apr 2013 01:30:32 +0000 (01:30 +0000)]
Merge "Update the test output path." into jb-mr2-dev

11 years agoUpdate the test output path.
Yu Shan Emily Lau [Fri, 12 Apr 2013 21:52:52 +0000 (14:52 -0700)]
Update the test output path.

In order for the automated test to pick up the test.
The output must be in /data/nativetest.

Change-Id: Idc15036afb5617ac1ef67ff74ba332c5f73fe155

11 years agoMerge "OMXNodeInstance: fix OMX_GetExtensionIndex logging" into jb-mr2-dev
Jamie Gennis [Fri, 12 Apr 2013 17:38:49 +0000 (17:38 +0000)]
Merge "OMXNodeInstance: fix OMX_GetExtensionIndex logging" into jb-mr2-dev

11 years agoMerge "Fix MediaCodec.flush()" into jb-mr2-dev
Marco Nelissen [Fri, 12 Apr 2013 17:20:51 +0000 (17:20 +0000)]
Merge "Fix MediaCodec.flush()" into jb-mr2-dev

11 years agoFix MediaCodec.flush()
Marco Nelissen [Tue, 9 Apr 2013 21:57:38 +0000 (14:57 -0700)]
Fix MediaCodec.flush()

There were two problems here. One was that the skip/cut buffer
wasn't cleared when it should be, and the second was that we
were always sending the first buffer of encoded data to the AAC
decoder twice.
b/8543366

Change-Id: Ic040edabf16cccd1f6ef8c9e5c9cfbacbdd8a089

11 years agoMerge "ACodec now signals an error if the mediaserver died while it is in" into jb...
Andreas Huber [Fri, 12 Apr 2013 15:22:20 +0000 (15:22 +0000)]
Merge "ACodec now signals an error if the mediaserver died while it is in" into jb-mr2-dev

11 years agoMerge "The framework really doesn't need to know the specifics of the codec" into...
Andreas Huber [Fri, 12 Apr 2013 15:22:05 +0000 (15:22 +0000)]
Merge "The framework really doesn't need to know the specifics of the codec" into jb-mr2-dev

11 years agoMerge "Camera3: Improve error logging" into jb-mr2-dev
Eino-Ville Talvala [Thu, 11 Apr 2013 23:47:32 +0000 (23:47 +0000)]
Merge "Camera3: Improve error logging" into jb-mr2-dev

11 years agoACodec now signals an error if the mediaserver died while it is in
Andreas Huber [Thu, 11 Apr 2013 23:06:14 +0000 (16:06 -0700)]
ACodec now signals an error if the mediaserver died while it is in

anything other than "uninitialized" state.

Change-Id: Id133d897ac65b455b34e5de17ff9c39b47285630
related-to-bug: 8397711

11 years agoThe framework really doesn't need to know the specifics of the codec
Andreas Huber [Thu, 11 Apr 2013 18:37:28 +0000 (11:37 -0700)]
The framework really doesn't need to know the specifics of the codec

color format, so stop trying to enforce a whitelist.

Change-Id: I0ceb3bdd5bcc6c1bbd56740b0cd662a2b5820dfe
related-to-bug: 8596546

11 years agoInstead of returning an error, return an invalid duration (-1 ms)
Andreas Huber [Thu, 11 Apr 2013 18:07:55 +0000 (11:07 -0700)]
Instead of returning an error, return an invalid duration (-1 ms)

if no duration information was available. This prevents us from
entering ERROR state, effectively rendering the player instance useless.

Change-Id: I602d2661ae8b8633360306c0ea9208fb11e2bf17
related-to-bug: 8596285

11 years agoAdd liblog
Ying Wang [Wed, 10 Apr 2013 04:53:49 +0000 (21:53 -0700)]
Add liblog

Bug: 8580410
Change-Id: If493d87d60d71be664ad75b140c62acadb75b0d0

11 years agoOMXNodeInstance: fix OMX_GetExtensionIndex logging
Jamie Gennis [Tue, 9 Apr 2013 23:40:54 +0000 (16:40 -0700)]
OMXNodeInstance: fix OMX_GetExtensionIndex logging

This change fixes the logging of OMX_GetExtensionIndex errors.  Under certain
circumstances these errors are not harmful and should not be logged.

Bug: 8538872
Change-Id: I19a13d29ca6263454a9a7a8be205e10363725f31

11 years agoCamera3: Improve error logging
Eino-Ville Talvala [Tue, 9 Apr 2013 20:49:56 +0000 (13:49 -0700)]
Camera3: Improve error logging

In preparation for supporting fragmented result calls.

Bug: 8565103
Change-Id: Id834637d7cbecf7b550333beedab3281b5400748

11 years agoAdd support for common encryption
Marco Nelissen [Mon, 8 Apr 2013 21:30:57 +0000 (14:30 -0700)]
Add support for common encryption

b/7465749

Change-Id: I5403b74a5ae428ad28b382863a09daafc400b137

11 years agoCamera: implement takePicture for HAL3-using clients
Igor Murashkin [Tue, 2 Apr 2013 00:29:07 +0000 (17:29 -0700)]
Camera: implement takePicture for HAL3-using clients

* Implements Camera2Device-style triggers by mutating the next request
* Implements Camera3Device::waitUntilRequestReceived

Change-Id: Ie0b5591158872513a0bffbfab33123cf18dacf8a

11 years agoMerge "In certain cases where AAC audio frames extended into the next PES payload...
Andreas Huber [Fri, 5 Apr 2013 16:53:23 +0000 (16:53 +0000)]
Merge "In certain cases where AAC audio frames extended into the next PES payload" into jb-mr2-dev

11 years agoIn certain cases where AAC audio frames extended into the next PES payload
Andreas Huber [Fri, 5 Apr 2013 16:27:29 +0000 (09:27 -0700)]
In certain cases where AAC audio frames extended into the next PES payload

(inside transport streams) timestamps would be miscalculated. This fixes it.

Change-Id: I9d74eeea474d2b89e8a9cdc478ed6085282fb3be

11 years agoMerge "Implement async event callout from drm plugin to Java app" into jb-mr2-dev
Jeff Tinker [Fri, 5 Apr 2013 01:16:19 +0000 (01:16 +0000)]
Merge "Implement async event callout from drm plugin to Java app" into jb-mr2-dev

11 years agoMerge "Make sure resume() and flush() are handled appropriately even if the codec...
Marco Nelissen [Thu, 4 Apr 2013 23:18:05 +0000 (23:18 +0000)]
Merge "Make sure resume() and flush() are handled appropriately even if the codec" into jb-mr2-dev

11 years agoMake sure resume() and flush() are handled appropriately even if the codec
Marco Nelissen [Thu, 4 Apr 2013 22:37:21 +0000 (15:37 -0700)]
Make sure resume() and flush() are handled appropriately even if the codec

is in Loaded->Idle state.
b/8347958

Change-Id: Ic14d29502a7effc636251379bb1bbc25739db98e

11 years agoMerge "audioflinger: multiple tracks on direct output" into jb-mr2-dev
Eric Laurent [Thu, 4 Apr 2013 21:50:47 +0000 (21:50 +0000)]
Merge "audioflinger: multiple tracks on direct output" into jb-mr2-dev

11 years agoaudioflinger: multiple tracks on direct output
Eric Laurent [Thu, 4 Apr 2013 00:27:56 +0000 (17:27 -0700)]
audioflinger: multiple tracks on direct output

Fix problems when multiple tracks exist on a direct output
thread:  when multiple tracks are active, continue to update all
track states but only take into account the last track started
for audio HAL volume and mixer state control.

Bug 8388941

Change-Id: I57e6757286f41651dda99b11a5449e431812431b

11 years agoMerge "Fix previous changes." into jb-mr2-dev
Lajos Molnar [Thu, 4 Apr 2013 20:11:22 +0000 (20:11 +0000)]
Merge "Fix previous changes." into jb-mr2-dev

11 years agoFix previous changes.
Andreas Huber [Thu, 4 Apr 2013 20:03:03 +0000 (13:03 -0700)]
Fix previous changes.

Change-Id: I1cd3803b6507156174591c3252f1d89ef2e6140a

11 years agoMerge "RTPReceiver can now track packet loss, account for late arrivals" into jb...
Andreas Huber [Thu, 4 Apr 2013 19:57:42 +0000 (19:57 +0000)]
Merge "RTPReceiver can now track packet loss, account for late arrivals" into jb-mr2-dev

11 years agoMerge "Support "raw" packetization in RTPSender." into jb-mr2-dev
Andreas Huber [Thu, 4 Apr 2013 19:57:31 +0000 (19:57 +0000)]
Merge "Support "raw" packetization in RTPSender." into jb-mr2-dev

11 years agoMerge "New nettest, a simple TCP connection test to measure" into jb-mr2-dev
Andreas Huber [Thu, 4 Apr 2013 19:57:21 +0000 (19:57 +0000)]
Merge "New nettest, a simple TCP connection test to measure" into jb-mr2-dev

11 years agoMerge "RTPTest updated to allow for UDP/TCP transport and abstracted" into jb-mr2-dev
Andreas Huber [Thu, 4 Apr 2013 19:54:51 +0000 (19:54 +0000)]
Merge "RTPTest updated to allow for UDP/TCP transport and abstracted" into jb-mr2-dev

11 years agoRTPReceiver can now track packet loss, account for late arrivals
Andreas Huber [Thu, 4 Apr 2013 18:17:05 +0000 (11:17 -0700)]
RTPReceiver can now track packet loss, account for late arrivals

it also uses timers to trigger retransmission and packet loss declaration

Change-Id: If1f9324783b3bef950076c2edf321f7c33ff9fea

11 years agoSupport "raw" packetization in RTPSender.
Andreas Huber [Thu, 4 Apr 2013 18:16:39 +0000 (11:16 -0700)]
Support "raw" packetization in RTPSender.

Change-Id: I14d59573ee0f57eccc104fea0fb46377476d213d

11 years agoNew nettest, a simple TCP connection test to measure
Andreas Huber [Thu, 4 Apr 2013 18:12:24 +0000 (11:12 -0700)]
New nettest, a simple TCP connection test to measure

latency between two devices exchanging low-bitrate data.

Change-Id: Iac138fa70d2a69bbc86c517c953011c80bed071f

11 years agoMerge "Track max latency in WifiDisplaySink" into jb-mr2-dev
Andreas Huber [Thu, 4 Apr 2013 18:09:36 +0000 (18:09 +0000)]
Merge "Track max latency in WifiDisplaySink" into jb-mr2-dev

11 years agoMerge "Reduce TimeSyncer frequency to once every 60 secs, added some logs" into jb...
Andreas Huber [Thu, 4 Apr 2013 18:09:26 +0000 (18:09 +0000)]
Merge "Reduce TimeSyncer frequency to once every 60 secs, added some logs" into jb-mr2-dev

11 years agoMerge "Removed rtp timestamp patching hack in ANetworkSession, advertise" into jb...
Andreas Huber [Thu, 4 Apr 2013 18:09:17 +0000 (18:09 +0000)]
Merge "Removed rtp timestamp patching hack in ANetworkSession, advertise" into jb-mr2-dev

11 years agoMerge "Fix adaptive frame rate handling to be non-adaptive unless specified through...
Andreas Huber [Thu, 4 Apr 2013 18:09:04 +0000 (18:09 +0000)]
Merge "Fix adaptive frame rate handling to be non-adaptive unless specified through" into jb-mr2-dev

11 years agoRTPTest updated to allow for UDP/TCP transport and abstracted
Andreas Huber [Thu, 4 Apr 2013 18:08:21 +0000 (11:08 -0700)]
RTPTest updated to allow for UDP/TCP transport and abstracted

where the data is coming from, also added time synchronization.

Change-Id: Iecc2201a2bd17be06f16690a28261bef5b4e439c

11 years agoTrack max latency in WifiDisplaySink
Andreas Huber [Thu, 4 Apr 2013 17:53:34 +0000 (10:53 -0700)]
Track max latency in WifiDisplaySink

also unbreak non-special-mode by choosing a proper time offset based
on arrival time of the first access unit even when no time synchronization
is present.

Change-Id: I133050afc6f70d4639ca45de68a31d5bc3594e96

11 years agoReduce TimeSyncer frequency to once every 60 secs, added some logs
Andreas Huber [Thu, 4 Apr 2013 17:51:52 +0000 (10:51 -0700)]
Reduce TimeSyncer frequency to once every 60 secs, added some logs

to indicate when syncing intervals start and end.

Change-Id: I3b2b997d6723ff592af7c31082c6020cc1eca433

11 years agoRemoved rtp timestamp patching hack in ANetworkSession, advertise
Andreas Huber [Thu, 4 Apr 2013 17:50:18 +0000 (10:50 -0700)]
Removed rtp timestamp patching hack in ANetworkSession, advertise

differentiated service tags to help prioritize our traffic.

Change-Id: Ibe42df64da272f4bb6b978e46a4ea2efdadfcbc7

11 years agoFix adaptive frame rate handling to be non-adaptive unless specified through
Andreas Huber [Thu, 4 Apr 2013 17:48:50 +0000 (10:48 -0700)]
Fix adaptive frame rate handling to be non-adaptive unless specified through

adb shell setprop media.wfd.video-framerate adaptive

Change-Id: I452576b62ad465680232b40464977e126616df18

11 years agoFix a number of warnings in stagefright code.
Andreas Huber [Thu, 4 Apr 2013 17:42:23 +0000 (10:42 -0700)]
Fix a number of warnings in stagefright code.

Change-Id: If3edd00d991851797aeccdfe795a4a405e3a2ea3

11 years agoImplement async event callout from drm plugin to Java app
Jeff Tinker [Tue, 2 Apr 2013 20:08:05 +0000 (13:08 -0700)]
Implement async event callout from drm plugin to Java app

Change-Id: I007f147d693664e777b8758be2bb8a4c7ec0236b

11 years agoMerge "audioflinger: add effect config status check" into jb-mr2-dev
Eric Laurent [Wed, 3 Apr 2013 16:06:30 +0000 (16:06 +0000)]
Merge "audioflinger: add effect config status check" into jb-mr2-dev

11 years agoaudioflinger: add effect config status check
Eric Laurent [Tue, 2 Apr 2013 23:41:41 +0000 (16:41 -0700)]
audioflinger: add effect config status check

Check the result of the effect engine configuration command
and do not attempt to send parameters to, enable, or process
the effect if configuration fails.

Bug 8512027

Change-Id: I8c78a05d79fba36b1a387aa5cf2700612301ac91

11 years agoCamera3: Fix output stream creation for JPEG streams
Igor Murashkin [Tue, 2 Apr 2013 23:36:33 +0000 (16:36 -0700)]
Camera3: Fix output stream creation for JPEG streams

Change-Id: Iadf85c103c21614abb1aeb69a832ca01919c2aa5

11 years agoMerge "MediaDrm API update" into jb-mr2-dev
Jeff Tinker [Tue, 2 Apr 2013 22:49:20 +0000 (22:49 +0000)]
Merge "MediaDrm API update" into jb-mr2-dev

11 years agoCamera3: Fix metadata result not being rewritten after capture
Igor Murashkin [Tue, 2 Apr 2013 19:32:32 +0000 (12:32 -0700)]
Camera3: Fix metadata result not being rewritten after capture

Generally this problem manifested itself as the Frame Count not being set,
which then errored out ProFrameProcessor with a "Success" error.

Change-Id: Ifa927f43d0ce92100651ad3f714099a2f1ec4c2a

11 years agoMediaDrm API update
Jeff Tinker [Sat, 30 Mar 2013 23:19:44 +0000 (16:19 -0700)]
MediaDrm API update

Clarify offline usage of sessions and keys and implement
implement CryptoSession to support additional crypto use
cases.

Change-Id: I5d8000ce7e1dd7eba08969fc50296c9e1456c4fc

11 years agoMerge "Fix seek in response to OnPrepared() for HLS content" into jb-mr2-dev
Andreas Huber [Mon, 1 Apr 2013 21:40:34 +0000 (21:40 +0000)]
Merge "Fix seek in response to OnPrepared() for HLS content" into jb-mr2-dev

11 years agoFix seek in response to OnPrepared() for HLS content
Andreas Huber [Mon, 1 Apr 2013 21:28:31 +0000 (14:28 -0700)]
Fix seek in response to OnPrepared() for HLS content

Change-Id: I0e52352845398a4db074e939487f6f6de94bd523
related-to-bug: 8225122

11 years agoMerge "ToneGenerator: fix overflow in stopTone" into jb-mr2-dev
Eric Laurent [Mon, 1 Apr 2013 21:15:46 +0000 (21:15 +0000)]
Merge "ToneGenerator: fix overflow in stopTone" into jb-mr2-dev

11 years agoMTP: Implement date created field in GetObjectInfo
Mike Lockwood [Mon, 1 Apr 2013 17:51:35 +0000 (10:51 -0700)]
MTP: Implement date created field in GetObjectInfo

Bug: 8293874
Change-Id: I6b74fe73362bd4fac34ca8a54e127ae91f82aef9

11 years agoMerge "stagefright: matroska: don't crash on parsing error" into jb-mr2-dev
Lajos Molnar [Mon, 1 Apr 2013 17:31:15 +0000 (17:31 +0000)]
Merge "stagefright: matroska: don't crash on parsing error" into jb-mr2-dev

11 years agoMerge "Fix SHUTDOWN after SETUP and before PLAY in wifi display." into jb-mr2-dev
Andreas Huber [Thu, 28 Mar 2013 20:54:55 +0000 (20:54 +0000)]
Merge "Fix SHUTDOWN after SETUP and before PLAY in wifi display." into jb-mr2-dev

11 years agoFix SHUTDOWN after SETUP and before PLAY in wifi display.
Andreas Huber [Thu, 28 Mar 2013 20:34:10 +0000 (13:34 -0700)]
Fix SHUTDOWN after SETUP and before PLAY in wifi display.

Change-Id: Ieb8ce1ac3130254839975a3677162b64156735bc
related-to-bug: 8499893

11 years agoToneGenerator: fix overflow in stopTone
Eric Laurent [Thu, 28 Mar 2013 18:58:45 +0000 (11:58 -0700)]
ToneGenerator: fix overflow in stopTone

Fix overflow in tone duration calculation introduced in
commit 681be039.

Bug 6607077

Change-Id: Ie12f13701345c2b2d3be0b3c4d71cbfa2394a29b

11 years agoMerge "Make sure resume() and flush() are handled appropriately even if the codec...
Andreas Huber [Thu, 28 Mar 2013 18:21:11 +0000 (18:21 +0000)]
Merge "Make sure resume() and flush() are handled appropriately even if the codec" into jb-mr2-dev

11 years agoMake sure resume() and flush() are handled appropriately even if the codec
Andreas Huber [Thu, 28 Mar 2013 18:16:43 +0000 (11:16 -0700)]
Make sure resume() and flush() are handled appropriately even if the codec

is in Idle->Executing state.

Change-Id: I16a10791fae0e062a19299732c472cc93e4ed971
related-to-bug: 8347958

11 years agoMerge "Fix valgrind error in software h264 decoder" into jb-mr2-dev
Marco Nelissen [Thu, 28 Mar 2013 16:15:14 +0000 (16:15 +0000)]
Merge "Fix valgrind error in software h264 decoder" into jb-mr2-dev

11 years agoMerge "Camera: Add output side to camera3 HAL device" into jb-mr2-dev
Eino-Ville Talvala [Thu, 28 Mar 2013 16:07:16 +0000 (16:07 +0000)]
Merge "Camera: Add output side to camera3 HAL device" into jb-mr2-dev

11 years agoMerge "Camera: Add input side to camera3 HAL device" into jb-mr2-dev
Eino-Ville Talvala [Thu, 28 Mar 2013 16:06:21 +0000 (16:06 +0000)]
Merge "Camera: Add input side to camera3 HAL device" into jb-mr2-dev

11 years agoMerge "Camera: Add streams to camera3 HAL device" into jb-mr2-dev
Eino-Ville Talvala [Thu, 28 Mar 2013 16:06:11 +0000 (16:06 +0000)]
Merge "Camera: Add streams to camera3 HAL device" into jb-mr2-dev

11 years agoMerge "Fix valgrind error." into jb-mr2-dev
Marco Nelissen [Thu, 28 Mar 2013 15:55:38 +0000 (15:55 +0000)]
Merge "Fix valgrind error." into jb-mr2-dev

11 years agostagefright: matroska: don't crash on parsing error
Lajos Molnar [Thu, 28 Mar 2013 02:04:12 +0000 (19:04 -0700)]
stagefright: matroska: don't crash on parsing error

MatroskaExtractor crashed with an assertion if mkvparser::ParseNext()
returned a negative number.  Now handle all error values the same
way as the EOF.

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

11 years agoToneGenerator: fix truncated tones
Eric Laurent [Wed, 27 Mar 2013 19:05:40 +0000 (12:05 -0700)]
ToneGenerator: fix truncated tones

The first DTMF tone after a silent period is truncated.
This is because the phone app starts and stops the tone
when the user presses and releases the key.
This combined to the fact that the tones use the low latency path
and that when the output stream exists standby there is a period
of several milliseconds during which no audio is mixed until the
stream is "warmed up".
The result is that much less audio is generated than the actual
key press duration.

The fix consists in storing the tone start time and making sure that
the number of samples generated corresponds at least to the time difference
between the tone start and stop commands.

Bug 6607077

Change-Id: I070d20dd8600c25a9e5d5a60c1d3313b7917b00d

11 years agoMerge "ToneGenerator: fix stop/destroy concurrency" into jb-mr2-dev
Eric Laurent [Thu, 28 Mar 2013 00:24:50 +0000 (00:24 +0000)]
Merge "ToneGenerator: fix stop/destroy concurrency" into jb-mr2-dev

11 years agoCamera: Add output side to camera3 HAL device
Eino-Ville Talvala [Mon, 11 Mar 2013 21:13:50 +0000 (14:13 -0700)]
Camera: Add output side to camera3 HAL device

- Notifications
- Result queue and processing

Change-Id: Id6b4746708ce6c6dcc7262666b6ac3130fa3d225

11 years agoCamera: Add input side to camera3 HAL device
Eino-Ville Talvala [Thu, 28 Feb 2013 02:02:26 +0000 (18:02 -0800)]
Camera: Add input side to camera3 HAL device

- Stream creation/deletion
- Request submission
- Request thread loop
- Add get() to CameraMetadata to allow HAL submission while retaining
  ownership.

Change-Id: I271f72bcbe9557eded43cbcbfe789109857f8144

11 years agoCamera: Add streams to camera3 HAL device
Eino-Ville Talvala [Thu, 7 Mar 2013 00:20:06 +0000 (16:20 -0800)]
Camera: Add streams to camera3 HAL device

- Generic stream interface
- Functional output stream
- Skeleton input/zsl stream

Change-Id: I143794eac1a2217031d62b51912662fc6d1db900

11 years agoFix valgrind error in software h264 decoder
Marco Nelissen [Wed, 27 Mar 2013 23:44:54 +0000 (16:44 -0700)]
Fix valgrind error in software h264 decoder

h264bsdNextMbAddress could read past the end of an allocation, which
could conceivably result in a segfault if the allocation was at the
very end of a page.

Change-Id: Id7a0c5733d66e609f36feb0e15b2d67b9bbc0b4d

11 years agoMerge "Camera: Add hotplug support (for fixed # of cameras)" into jb-mr2-dev
Igor Murashkin [Wed, 27 Mar 2013 22:43:14 +0000 (22:43 +0000)]
Merge "Camera: Add hotplug support (for fixed # of cameras)" into jb-mr2-dev

11 years agoFix valgrind error.
Marco Nelissen [Wed, 27 Mar 2013 20:48:36 +0000 (13:48 -0700)]
Fix valgrind error.

The constructor calls reset(), which in turn calls stop(), which then
accesses mCaptureTimeLapse before it has been initialized.

Change-Id: Ia94ac740b9bd1a0389c72647a5639dd25320d92c

11 years agoMerge "ProCamera: Fix memory leak in consumeFrameMetadata" into jb-mr2-dev
Igor Murashkin [Wed, 27 Mar 2013 18:24:37 +0000 (18:24 +0000)]
Merge "ProCamera: Fix memory leak in consumeFrameMetadata" into jb-mr2-dev

11 years agoProCamera: Fix memory leak in consumeFrameMetadata
Igor Murashkin [Wed, 27 Mar 2013 18:07:06 +0000 (11:07 -0700)]
ProCamera: Fix memory leak in consumeFrameMetadata

Bug: 8402301
Change-Id: I975990185f45bb8552712271b9ac457af08a170c

11 years agoCamera: Add hotplug support (for fixed # of cameras)
Igor Murashkin [Wed, 20 Mar 2013 22:56:31 +0000 (15:56 -0700)]
Camera: Add hotplug support (for fixed # of cameras)

* Minor: also change addListener to fire the current status upon subscription
* Minor: STATUS_AVAILABLE is now an alias for STATUS_PRESENT and deprecated

Change-Id: I254608a7332095e3ef201ffea64cff156cfc1b3e

11 years agoToneGenerator: fix stop/destroy concurrency
Eric Laurent [Tue, 26 Mar 2013 23:37:19 +0000 (16:37 -0700)]
ToneGenerator: fix stop/destroy concurrency

There is a problem if the stopTone() method is called
from two different threads (for instance if the destructor is called
while stopTone() is waiting for the audio callback to finish).

In this case, the second call to stopTone() will not wait for the
condition to be signaled and call clearWaveGens() while the callback
can still be active, thus causing a crash.

There is a similar problem in case of concurrent calls to startTone()
and stopTone().

The fix consists in making sure that stopTone() always waits for call
back completion or timeout and exits before calling clearWaveGens()
if a concurrent start request is detected.

Bug 8163071

Change-Id: I9ddb4390407701dcad5bf83660fd9903f0d72268

11 years agoMerge "media.log dump" into jb-mr2-dev
Glenn Kasten [Tue, 26 Mar 2013 22:43:00 +0000 (22:43 +0000)]
Merge "media.log dump" into jb-mr2-dev

11 years agomedia.log dump
Glenn Kasten [Tue, 26 Mar 2013 22:09:04 +0000 (15:09 -0700)]
media.log dump

Bug: 8446008
Change-Id: Ia47b204f5c4c91b99591eec5420a25a3dc8e7631

11 years agoMerge "Adapt frame rate instead of keeping that constant and tweaking bitrate" into...
Andreas Huber [Tue, 26 Mar 2013 21:57:28 +0000 (21:57 +0000)]
Merge "Adapt frame rate instead of keeping that constant and tweaking bitrate" into jb-mr2-dev

11 years agoAdapt frame rate instead of keeping that constant and tweaking bitrate
Andreas Huber [Tue, 26 Mar 2013 20:52:43 +0000 (13:52 -0700)]
Adapt frame rate instead of keeping that constant and tweaking bitrate

Change-Id: I889abbbe1237e1a8fdd7135cdc91a2e9728ff39b

11 years agoToneGenerator: fix AudioTrack pointer init
Eric Laurent [Tue, 26 Mar 2013 19:25:30 +0000 (12:25 -0700)]
ToneGenerator: fix AudioTrack pointer init

The pointer to AudioTrack should be initialized before
early return from ToneGenerator constructor because
it is tested by the destructor.

Bug 8140963

Change-Id: I9a7dfb60ba162b75dfaa5630ab7fc9485afd0074

11 years agoIdentify network servers and clients with a OS version related string
Andreas Huber [Tue, 26 Mar 2013 17:19:24 +0000 (10:19 -0700)]
Identify network servers and clients with a OS version related string

and put the logic to create that string in one location instead of many...

Change-Id: I1f729f2e7376cd3b45eea0e48f7bd10084b41b39

11 years agoMerge "In "special" mode we now establish a UDP RTCP channel in addition to the"...
Andreas Huber [Tue, 26 Mar 2013 16:08:49 +0000 (16:08 +0000)]
Merge "In "special" mode we now establish a UDP RTCP channel in addition to the" into jb-mr2-dev

11 years agoMerge "ToneGenerator: optimize silent tone" into jb-mr2-dev
Eric Laurent [Tue, 26 Mar 2013 00:27:06 +0000 (00:27 +0000)]
Merge "ToneGenerator: optimize silent tone" into jb-mr2-dev

11 years agoIn "special" mode we now establish a UDP RTCP channel in addition to the
Andreas Huber [Mon, 25 Mar 2013 22:46:52 +0000 (15:46 -0700)]
In "special" mode we now establish a UDP RTCP channel in addition to the

TCP RTP channel and provide feedback on the latency of arriving packets from
the sink back to the source. This information is then used to throttle
video bitrate.

Change-Id: Ic589a3cb65e4893a3ff67de947da6063d32a1c6e

11 years agoMerge "Get rid of TunnelRenderer" into jb-mr2-dev
Andreas Huber [Mon, 25 Mar 2013 22:46:43 +0000 (22:46 +0000)]
Merge "Get rid of TunnelRenderer" into jb-mr2-dev

11 years agoToneGenerator: optimize silent tone
Eric Laurent [Mon, 25 Mar 2013 21:38:10 +0000 (14:38 -0700)]
ToneGenerator: optimize silent tone

Do not create an AudioTrack and start playback when a silent
tone is requested to ToneGenerator.

Bug 7946399

Change-Id: Ib9282871a56f7a862af7d1504ce3fbd7c18e34e2

11 years agoGet rid of TunnelRenderer
Andreas Huber [Mon, 25 Mar 2013 21:15:24 +0000 (14:15 -0700)]
Get rid of TunnelRenderer

Change-Id: I40dc00e2e689d7a6b8717ce524016c2948229807

11 years agoMerge "Misc debugging support and handling of latency changes." into jb-mr2-dev
Andreas Huber [Mon, 25 Mar 2013 20:43:00 +0000 (20:43 +0000)]
Merge "Misc debugging support and handling of latency changes." into jb-mr2-dev

11 years agoMisc debugging support and handling of latency changes.
Andreas Huber [Mon, 25 Mar 2013 20:25:39 +0000 (13:25 -0700)]
Misc debugging support and handling of latency changes.

Change-Id: I682944f793690842219cf1adbae5e61e061b6b62

11 years agoMerge "Load crypto plugins from additional shared libraries" into jb-mr2-dev
Jeff Tinker [Mon, 25 Mar 2013 20:18:02 +0000 (20:18 +0000)]
Merge "Load crypto plugins from additional shared libraries" into jb-mr2-dev

11 years agoMerge "Separate the mode of the RTP and RTCP channels." into jb-mr2-dev
Andreas Huber [Mon, 25 Mar 2013 17:37:25 +0000 (17:37 +0000)]
Merge "Separate the mode of the RTP and RTCP channels." into jb-mr2-dev

11 years agoSeparate the mode of the RTP and RTCP channels.
Andreas Huber [Fri, 22 Mar 2013 16:56:29 +0000 (09:56 -0700)]
Separate the mode of the RTP and RTCP channels.

I now can use a TCP reliable data channel with a UDP back channel.

Change-Id: Ieb0f0970e3a6da4cff250e9547e181c0c961b9fb

11 years agoMerge "Ensure that the payload in each TS packet is an even multiple of 16 bytes...
Andreas Huber [Mon, 25 Mar 2013 17:24:23 +0000 (17:24 +0000)]
Merge "Ensure that the payload in each TS packet is an even multiple of 16 bytes long" into jb-mr2-dev

11 years agoLoad crypto plugins from additional shared libraries
Jeff Tinker [Fri, 22 Mar 2013 22:26:39 +0000 (15:26 -0700)]
Load crypto plugins from additional shared libraries

Currently crypto plugins are expected to be in libdrmdecrypt.so.
When there are multiple plugins supporting different schemes,
this approach requires source code integration across
vendors which is unmanagable.  Also, for integration with
MediaDrm where the crypto keys are obtained from a drm server,
the MediaCrypto plugin needs to interoperate with the MediaDrm
plugin. This change allows {MediaCrypto, MediaDrm} pairs that
are logically related to be implemented in a common shared
library.

Change-Id: I7f6638f29171f91609fc2d944396365568630b56

11 years agoMerge "ICameraServiceListener.h: Add STATUS_ENUMERATING enum" into jb-mr2-dev
Igor Murashkin [Fri, 22 Mar 2013 00:45:55 +0000 (00:45 +0000)]
Merge "ICameraServiceListener.h: Add STATUS_ENUMERATING enum" into jb-mr2-dev

11 years agoICameraServiceListener.h: Add STATUS_ENUMERATING enum
Igor Murashkin [Mon, 18 Mar 2013 20:36:48 +0000 (13:36 -0700)]
ICameraServiceListener.h: Add STATUS_ENUMERATING enum

Change-Id: I41a9f358f63a19e7b746a9ccf24722001e5e7475

11 years agoMerge changes Ic92924ce,I53107a39 into jb-mr2-dev
Igor Murashkin [Thu, 21 Mar 2013 20:58:29 +0000 (20:58 +0000)]
Merge changes Ic92924ce,I53107a39 into jb-mr2-dev

* changes:
  Camera2: getSceneMode should return NULL when there are no supported scene modes
  commandStartFaceDetectionL returned the wrong value when face detection is not supported by the HAL. This caused the JNI function to fail since it expected a BAD_VALUE response in that case.