OSDN Git Service

android-x86/hardware-libhardware.git
10 years agolibhardware: search hals by hal.* properties android-x86-4.4-r1
Chih-Wei Huang [Mon, 14 Jan 2013 08:39:14 +0000 (16:39 +0800)]
libhardware: search hals by hal.* properties

The patch allows us to control which hals to be loaded more flexible.
It's the key point to make a generic image to support more devices.

10 years agogralloc: Add DRM actions.
Chia-I Wu [Mon, 11 Oct 2010 05:17:10 +0000 (13:17 +0800)]
gralloc: Add DRM actions.

Change-Id: I1eaefcea4da6ed01b769717d69ef08cce7ce7ef4

10 years agogralloc: fallback to use fewer buffer on mapping error
Chih-Wei Huang [Thu, 2 Dec 2010 03:54:46 +0000 (11:54 +0800)]
gralloc: fallback to use fewer buffer on mapping error

Change-Id: I6be89437fd10bdc3f5e05d56944d3d547bffbf3c

10 years agogralloc: auto select pixel format according to color depth
Chih-Wei Huang [Thu, 2 Dec 2010 03:27:10 +0000 (11:27 +0800)]
gralloc: auto select pixel format according to color depth

Change-Id: I1e6db2bbe03260d156644ca0700eb2e3e02956dc

10 years agoUpdate HWC documentation for virtual displays
Jesse Hall [Wed, 13 Nov 2013 22:48:15 +0000 (14:48 -0800)]
Update HWC documentation for virtual displays

Bug: 8316155
Change-Id: I56598551b07082bfff90df160b103a4158e8c8c9

10 years agoCamera2 Test: Skip CameraModuleTest for HAL V1 devices
Zhijun He [Mon, 28 Oct 2013 22:52:56 +0000 (15:52 -0700)]
Camera2 Test: Skip CameraModuleTest for HAL V1 devices

Bug: 10971907
Change-Id: Ia3aa0e370d7eb5de6bb1fb7ff48a71ea5605fa17

10 years agohardware: look in /vendor for default.so
Colin Cross [Mon, 30 Sep 2013 21:23:01 +0000 (14:23 -0700)]
hardware: look in /vendor for default.so

Some vendors have their own HAL modules, which may need their
default implementation stored in /vendor.

Change-Id: I5337a61875023404a85029bbc59b984056b3e441

10 years agoMerge "Camera3: Add PASSIVE_UNFOCUSED AF state and clean up INACTIVE" into klp-dev
Eino-Ville Talvala [Wed, 25 Sep 2013 19:27:54 +0000 (19:27 +0000)]
Merge "Camera3: Add PASSIVE_UNFOCUSED AF state and clean up INACTIVE" into klp-dev

10 years agoCamera2 Test: skip some tests for limited hardware level
Zhijun He [Thu, 19 Sep 2013 06:42:12 +0000 (23:42 -0700)]
Camera2 Test: skip some tests for limited hardware level

Bug: 10388724
Change-Id: Ifd13f72f1b7ff78cf50dc1c238f17c4b4e90d9b0

10 years agoCamera3: Add PASSIVE_UNFOCUSED AF state and clean up INACTIVE
Eino-Ville Talvala [Sat, 21 Sep 2013 00:24:50 +0000 (17:24 -0700)]
Camera3: Add PASSIVE_UNFOCUSED AF state and clean up INACTIVE

Needed to support the real case of continuous focus giving up on a
scene for a while (say, a blank wall), during which we shouldn't claim
the lens is in motion.

Also add new states for INACTIVE to clarify it as the starting state
after mode transitions or enabling AF/AE/AWB.

Bug: 10860639
Bug: 10446772

Change-Id: Ie4c1ac73e5a9eb6d1894d83dbded49a2767a8ffd

10 years agoCamera2 Test: Fix module and burst test issues
Zhijun He [Wed, 18 Sep 2013 16:44:19 +0000 (09:44 -0700)]
Camera2 Test: Fix module and burst test issues

Bug: 10388724
Change-Id: Idc404cf8a7a96c00941aa8f1880734a236cb3737

10 years agoCamera2 Tests: fix some sanity checks
Zhijun He [Tue, 17 Sep 2013 23:51:06 +0000 (16:51 -0700)]
Camera2 Tests: fix some sanity checks

Remove the requirement of HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED and make and
fix some minor issues.

Bug: 10388724
Change-Id: I18f0ea60f87902d6c2bbaca53957a91953866c40

10 years agoMerge "Initial interface for MemoryTrackerHAL" into klp-dev
Rom Lemarchand [Fri, 13 Sep 2013 18:23:56 +0000 (18:23 +0000)]
Merge "Initial interface for MemoryTrackerHAL" into klp-dev

10 years agoMerge "Camera2 Test: check the right result metadata" into klp-dev
Zhijun He [Fri, 13 Sep 2013 14:31:07 +0000 (14:31 +0000)]
Merge "Camera2 Test: check the right result metadata" into klp-dev

10 years agoCamera2 Test: check the right result metadata
Zhijun He [Sun, 8 Sep 2013 17:56:24 +0000 (10:56 -0700)]
Camera2 Test: check the right result metadata

We need check the right result metadata by looking for the right request id.

Bug: 10710768
Change-Id: I1e946f82e569fa6afc5067552c3f850ffffbf698

10 years agoconsumer_ir: add array length to get carrier freq
Alex Ray [Wed, 11 Sep 2013 23:20:07 +0000 (16:20 -0700)]
consumer_ir: add array length to get carrier freq

Change-Id: Iefb424db6f16ffefa40da56c765c9b7a24bea397

10 years agoMerge "consumerir: make transmit array constant" into klp-dev
Alex Ray [Wed, 11 Sep 2013 20:45:02 +0000 (20:45 +0000)]
Merge "consumerir: make transmit array constant" into klp-dev

10 years agoconsumerir: make transmit array constant
Alex Ray [Wed, 11 Sep 2013 20:36:58 +0000 (13:36 -0700)]
consumerir: make transmit array constant

Change-Id: I0409970d7bd8efe69a69ec038eea4ee3ff9cbfe0

10 years agoMerge "Clarify return values of get_presentation_position" into klp-dev
Glenn Kasten [Wed, 11 Sep 2013 19:31:26 +0000 (19:31 +0000)]
Merge "Clarify return values of get_presentation_position" into klp-dev

10 years agoClarify return values of get_presentation_position
Glenn Kasten [Tue, 10 Sep 2013 16:23:07 +0000 (09:23 -0700)]
Clarify return values of get_presentation_position

Change-Id: I495d7abd7e366849308c66bcaee99554dcd244aa

10 years agomodules: add demo consumer IR HAL
Alex Ray [Thu, 5 Sep 2013 06:32:55 +0000 (23:32 -0700)]
modules: add demo consumer IR HAL

Change-Id: Iaae40c06af0dc008429d5dee4f45dc0b156957a1

10 years agolibhardware: add Consumer IR HAL API
Alex Ray [Thu, 5 Sep 2013 06:32:14 +0000 (23:32 -0700)]
libhardware: add Consumer IR HAL API

Change-Id: I68db7911784aa802b378a5e1dad62397da16b03b

10 years agoInitial interface for MemoryTrackerHAL
Colin Cross [Fri, 6 Sep 2013 00:45:07 +0000 (17:45 -0700)]
Initial interface for MemoryTrackerHAL

Bug: 10294768
Change-Id: I65cb28c8f77f3dafe5b47b24479c647fa72fc65f

10 years agoMerge "Camera2 Tests: Fix stream id types" into klp-dev
Zhijun He [Mon, 9 Sep 2013 18:28:12 +0000 (18:28 +0000)]
Merge "Camera2 Tests: Fix stream id types" into klp-dev

10 years agoMerge "hardware: camera_common: add module vendor tag ops" into klp-dev
Alex Ray [Mon, 9 Sep 2013 17:29:13 +0000 (17:29 +0000)]
Merge "hardware: camera_common: add module vendor tag ops" into klp-dev

10 years agohardware: camera_common: add module vendor tag ops
Alex Ray [Thu, 13 Jun 2013 19:40:52 +0000 (12:40 -0700)]
hardware: camera_common: add module vendor tag ops

This updates the camera module API to have vendor-specific tag support.

Vendor-specific metadata tags could be contained in static camera
characteristics, so we need a method of accessing vendor tag information
from the module level (and not just with a device open).

Bug: 10612133
Change-Id: I28e8c769f8112ff4f745f3f1b5472e8a718f1356

10 years agoCamera2 Tests: Fix stream id types
Zhijun He [Fri, 6 Sep 2013 22:35:09 +0000 (15:35 -0700)]
Camera2 Tests: Fix stream id types

Bug: 10604704
Change-Id: I5edddb1011d6744225c59f44bd6df8ae4234d336

10 years agokeymaster: use new version fields in hw_module
Kenny Root [Thu, 5 Sep 2013 05:17:56 +0000 (22:17 -0700)]
keymaster: use new version fields in hw_module

The original version of this HAL used a field in keymaster_module to
represent the module's version number, but a later revision of the HAL
interface added a distinguisher between HAL module and device versions.
This is needed to support upgrade code in keystore.

Bug: 10600582
Change-Id: Ied34cf382e2b7725e648faada00df2dee993e6c5

10 years agoAdd support for DSA and ECDSA key types
Kenny Root [Mon, 19 Aug 2013 16:51:35 +0000 (09:51 -0700)]
Add support for DSA and ECDSA key types

(cherry picked from commit 6e1683f5d508a4c1ff761a9a3508619ac5ac6ed7)

Bug: 10600582
Change-Id: I8e5b66baa70b37031198260853bb5355df75e23d

10 years agoMerge "get_presentation_position" into klp-dev
Glenn Kasten [Fri, 30 Aug 2013 00:02:56 +0000 (00:02 +0000)]
Merge "get_presentation_position" into klp-dev

10 years agoget_presentation_position
Glenn Kasten [Thu, 22 Aug 2013 23:27:22 +0000 (16:27 -0700)]
get_presentation_position

Change-Id: Iedc4df9018321d7273eaa862e913ad6d9a844618

10 years agoAddition of EFFECT_CMD_OFFLOAD for effects offload
jpadmana [Tue, 25 Jun 2013 09:18:49 +0000 (14:48 +0530)]
Addition of EFFECT_CMD_OFFLOAD for effects offload

Added EFFECT_CMD_OFFLOAD command to audio effect control
interface. It is used by the framework to indicate if
the playback thread the effect is attached to is offloaded
of not.

Added effect flag EFFECT_FLAG_OFFLOAD_SUPPORTED indicating if
the effect implementation supports offloading to a DSP.

Change-Id: I26553576657d3aa9cd0cdcd5785c813b02f48136
Signed-off-by: jpadmana <jayashree.r.padmanaban@intel.com>
Signed-off-by: Eric Laurent <elaurent@google.com>
10 years agoMerge "Fix file permissions" into klp-dev
Glenn Kasten [Thu, 22 Aug 2013 22:26:35 +0000 (22:26 +0000)]
Merge "Fix file permissions" into klp-dev

10 years agoMerge "Fix typo in FlpHal" into klp-dev
destradaa [Thu, 22 Aug 2013 19:37:11 +0000 (19:37 +0000)]
Merge "Fix typo in FlpHal" into klp-dev

10 years agoremote submix: fix test on sampling valid rates
Eric Laurent [Thu, 22 Aug 2013 16:55:13 +0000 (09:55 -0700)]
remote submix: fix test on sampling valid rates

Change-Id: I4e9e378940bb56202a6e6882f561b3293ad7225d

10 years agoFix typo in FlpHal
destradaa [Wed, 21 Aug 2013 19:41:19 +0000 (12:41 -0700)]
Fix typo in FlpHal

Change-Id: I0a0598c4755052e071d793fbacf0aa25dfca6e5c

10 years agoFix file permissions
Glenn Kasten [Tue, 20 Aug 2013 19:48:44 +0000 (12:48 -0700)]
Fix file permissions

Change-Id: Iffc2941d98ee16796cf3d44dec1cfa376d9362bb

10 years agoMerge "Define a range for device specific sensors" into klp-dev
Mathias Agopian [Mon, 19 Aug 2013 22:59:16 +0000 (22:59 +0000)]
Merge "Define a range for device specific sensors" into klp-dev

10 years agoDefine a range for device specific sensors
Mathias Agopian [Mon, 19 Aug 2013 21:34:47 +0000 (14:34 -0700)]
Define a range for device specific sensors

Bug: 9551417
Change-Id: I5412d9c063743a0e99e8839a0758337c72a8725e

10 years agoMerge "Camera2 Tests: Add multiple stream tests" into klp-dev
Zhijun He [Mon, 19 Aug 2013 21:03:22 +0000 (21:03 +0000)]
Merge "Camera2 Tests: Add multiple stream tests" into klp-dev

10 years agoCamera2 Tests: Add multiple stream tests
Zhijun He [Wed, 14 Aug 2013 00:36:17 +0000 (17:36 -0700)]
Camera2 Tests: Add multiple stream tests

Add a test to test multiple stream configuration: one preview stream, one small
size YUV burst capture stream, and one large size YUV burst capture stream.

Also cleanup the code.

Bug 10325342

Change-Id: I676484cc0034055caa8f2a8788100ed34b4cefbb

10 years agoMerge "Add support for AbsoluteVolume" into klp-dev
Matthew Xie [Sun, 18 Aug 2013 19:46:01 +0000 (19:46 +0000)]
Merge "Add support for AbsoluteVolume" into klp-dev

10 years agoAdd support for AbsoluteVolume
Satya Calloji [Thu, 1 Aug 2013 10:11:11 +0000 (03:11 -0700)]
Add support for AbsoluteVolume

Add support for AbsoluteVolume in HAL

bug 9595622

Change-Id: Iaf08b81b61aa07ebaa83f4bd6cc9e82171947aa1

Conflicts:
include/hardware/bt_rc.h

10 years agoAdd HWC_DISPLAY_VIRTUAL and adjust display count constants
Jesse Hall [Fri, 16 Aug 2013 18:13:36 +0000 (11:13 -0700)]
Add HWC_DISPLAY_VIRTUAL and adjust display count constants

Both surfaceflinger and HWC implementations have been defining these
themselves, making future changes more difficult. Better to define
them centrally, where they can be updated easily.

Change-Id: I793158b858c84b2470b05f9ea77cc5a0c7e247f1

10 years agoAdd support for ff/rew
John Du [Wed, 24 Jul 2013 00:15:34 +0000 (17:15 -0700)]
Add support for ff/rew

Change-Id: I95d17aa4f54d58596085f8d67e63e277b280a242
(cherry picked from commit a068b57857a6f9f2db335dbb18f1be37e85937c6)

10 years agoLE: Add peripheral role support (3/4)
Andre Eisenbach [Wed, 7 Aug 2013 02:54:25 +0000 (19:54 -0700)]
LE: Add peripheral role support (3/4)

Initial stack support for the LE peripheral role.

Change-Id: Ie036432c90c405a331e2fceaf88bf97a46182176

10 years agoLE: Add instance ID to descriptors (3/4)
Andre Eisenbach [Tue, 9 Jul 2013 07:02:48 +0000 (00:02 -0700)]
LE: Add instance ID to descriptors (3/4)

If a remote devices offers multiple descriptors with the same UUID, the
instance ID is used to differentiate between them.

Change-Id: Ia5ab989f222a5cf1b7cb66966ad4f91f2b660708

10 years agoCamera2 tests: Fix a typo of a test check
Zhijun He [Fri, 9 Aug 2013 02:43:24 +0000 (19:43 -0700)]
Camera2 tests: Fix a typo of a test check

Change-Id: Ib47eba8d01e93d0c3ce2b1e8bc2ff638529e32f9

10 years agominor changes to sensor HAL interface
Mathias Agopian [Wed, 7 Aug 2013 03:33:38 +0000 (20:33 -0700)]
minor changes to sensor HAL interface

Change-Id: Idc415fd0a92482f4f4cd051b458a28d97f251f35

10 years agoMerge "improvements to the batch mode APIs"
Mathias Agopian [Tue, 6 Aug 2013 23:29:17 +0000 (23:29 +0000)]
Merge "improvements to the batch mode APIs"

10 years agoFix build, 2nd attempt
Mathias Agopian [Tue, 6 Aug 2013 21:22:12 +0000 (14:22 -0700)]
Fix build, 2nd attempt

Change-Id: Iaa86a6888a5ccf784b13f4c3b2d8dc4813612155

10 years agoFix build.
Mathias Agopian [Tue, 6 Aug 2013 21:17:59 +0000 (14:17 -0700)]
Fix build.

Change-Id: Ibf73106f8be63cf433fafe9510c8477f74b7ac41

10 years agoimprovements to the batch mode APIs
Mathias Agopian [Thu, 25 Jul 2013 04:07:40 +0000 (21:07 -0700)]
improvements to the batch mode APIs

- also added a flush() method to drain the FIFO before
  the batch timeout has expired

Change-Id: I73cc450fae0a6acf73d8b5d73bcd7a225bfbfe35

10 years agoCamera: Add new 3.1 device version
Eino-Ville Talvala [Tue, 30 Jul 2013 21:58:31 +0000 (14:58 -0700)]
Camera: Add new 3.1 device version

- Add new definition to camera_common
- Update comment in camera3.h

Change-Id: I9d8c594cfdaff40c543e8f9017091b0c06bbf022

10 years agoMerge "Camera2 tests: Update paths to camera service"
Eino-Ville Talvala [Tue, 30 Jul 2013 17:57:55 +0000 (17:57 +0000)]
Merge "Camera2 tests: Update paths to camera service"

10 years agoCamera2 tests: Update paths to camera service
Eino-Ville Talvala [Fri, 26 Jul 2013 00:09:14 +0000 (17:09 -0700)]
Camera2 tests: Update paths to camera service

Change-Id: Ic50ea977194073e3768c22a5f21eb15f430fa2f5

10 years agomodules: camera: Separate locking for static characteristics
Alex Ray [Wed, 17 Jul 2013 21:23:04 +0000 (14:23 -0700)]
modules: camera: Separate locking for static characteristics

Static camera characteristics can be queried on any device at any time.
Separate the locking for it from the rest of the device to eliminate any
contention between operations on the device and static characteristic
initialization.

Change-Id: I8076378699f274e70c6318e537df4758972de9db

10 years agoget rid of HAL pixelformats 5551 and 4444
Mathias Agopian [Fri, 26 Jul 2013 23:23:33 +0000 (16:23 -0700)]
get rid of HAL pixelformats 5551 and 4444

Change-Id: I196ee30ed57707ed4cc46fb3a9c5c07c5bac6fff

10 years agoMerge "camera3: Add flush"
Alex Ray [Fri, 26 Jul 2013 20:47:51 +0000 (20:47 +0000)]
Merge "camera3: Add flush"

10 years agoMerge "camera3: Pass consumer information in configure_streams"
Alex Ray [Fri, 26 Jul 2013 20:41:59 +0000 (20:41 +0000)]
Merge "camera3: Pass consumer information in configure_streams"

10 years agoMerge "Add debug menu to enable btsnoop"
Zhihai Xu [Fri, 26 Jul 2013 18:28:49 +0000 (18:28 +0000)]
Merge "Add debug menu to enable btsnoop"

10 years agoMerge "Code changes for offload support in hardware libhardware"
Eric Laurent [Thu, 25 Jul 2013 21:15:23 +0000 (21:15 +0000)]
Merge "Code changes for offload support in hardware libhardware"

10 years agomodules: camera: Fix build break due to metadata change
Zhijun He [Fri, 19 Jul 2013 00:59:30 +0000 (17:59 -0700)]
modules: camera: Fix build break due to metadata change

Change-Id: I085796569ea77336d32907ee2287ff7533b0c122

10 years agoCamera2Test: fix build break due to metadata change
Zhijun He [Fri, 19 Jul 2013 00:01:57 +0000 (17:01 -0700)]
Camera2Test: fix build break due to metadata change

Change-Id: I1b81f14fe0f093a7d29d0b0facdb1886d521d256

10 years agoCode changes for offload support in hardware libhardware
Richard Fitzgerald [Mon, 13 May 2013 15:58:54 +0000 (16:58 +0100)]
Code changes for offload support in hardware libhardware

Change-Id: Icfe9bf4b4768bbdcb11e6c77ac26163018f9c7c8

10 years agoMerge "Add usage bit for RenderScript."
Jason Sams [Tue, 16 Jul 2013 19:52:36 +0000 (19:52 +0000)]
Merge "Add usage bit for RenderScript."

10 years agoAdd usage bit for RenderScript.
Jason Sams [Tue, 16 Jul 2013 19:51:13 +0000 (12:51 -0700)]
Add usage bit for RenderScript.

Change-Id: I3ac3dc8e20e94ee885228febdc8eeb66278054cb

10 years agoalways pass the BufferQueue explicitely to consumers
Ying Wang [Tue, 16 Jul 2013 05:18:04 +0000 (22:18 -0700)]
always pass the BufferQueue explicitely to consumers

to fix tests build.

Change-Id: Ifec605926324683ac9b12b8ed3cbfb6ac02ec18c

10 years agoMerge "always pass the BufferQueue explicitely to consumers"
Mathias Agopian [Tue, 16 Jul 2013 02:18:04 +0000 (02:18 +0000)]
Merge "always pass the BufferQueue explicitely to consumers"

10 years agoalways pass the BufferQueue explicitely to consumers
Mathias Agopian [Sat, 13 Jul 2013 05:06:45 +0000 (22:06 -0700)]
always pass the BufferQueue explicitely to consumers

Change-Id: Ie13b251d6bfadd533fa045ec5d3299ee8ae752af

10 years agoMerge "Update FLP HAL definition for thread semantics."
destradaa [Sat, 13 Jul 2013 00:59:03 +0000 (00:59 +0000)]
Merge "Update FLP HAL definition for thread semantics."

10 years agoMerge "Camera tests: Add variable burst test"
Eino-Ville Talvala [Sat, 13 Jul 2013 00:10:41 +0000 (00:10 +0000)]
Merge "Camera tests: Add variable burst test"

10 years agoUpdate FLP HAL definition for thread semantics.
destradaa [Fri, 12 Jul 2013 23:18:12 +0000 (16:18 -0700)]
Update FLP HAL definition for thread semantics.

Change-Id: I3dd1f5c72f0fa62a131b7ce166f3df631bb44394

10 years agoCamera tests: Add variable burst test
Eino-Ville Talvala [Tue, 2 Jul 2013 01:47:09 +0000 (18:47 -0700)]
Camera tests: Add variable burst test

By default, this test runs through a range of application-set
exposure, frame duration, and sensitivity values, and verifies
that the duration of capture, and in some cases the brightness,
match what's expected.

Optionally, it can use environment variables to specify the
burst parameters, and to enable dumping the captured YUV images
to flash for later debugging.

Change-Id: I647d360344ef3684e99c86c369e96ac82e62fc96

10 years agoMerge "Clarify some comments in the sensor HAL"
Etienne Le Grand [Fri, 12 Jul 2013 16:17:52 +0000 (16:17 +0000)]
Merge "Clarify some comments in the sensor HAL"

10 years agoMerge "bump HWC version to 1.3, add support for float crop rectangle"
Mathias Agopian [Wed, 10 Jul 2013 23:10:47 +0000 (23:10 +0000)]
Merge "bump HWC version to 1.3, add support for float crop rectangle"

10 years agobump HWC version to 1.3, add support for float crop rectangle
Mathias Agopian [Wed, 10 Jul 2013 02:55:41 +0000 (19:55 -0700)]
bump HWC version to 1.3, add support for float crop rectangle

Change-Id: I8601ecc9f39052000b872805be1637ee73b0d3e1

10 years agoClarify some comments in the sensor HAL
Etienne Le Grand [Wed, 10 Jul 2013 21:08:40 +0000 (14:08 -0700)]
Clarify some comments in the sensor HAL

Step count can reset when android restarts
When calling activate() without calling setDelay() before, use a default rate
Uncalibrated magnetometer should not be low pass filtered
The accelerometer can be used for the geomagnetic rotation vector
When batching call retuns an error, it shouldn't change the state. In particular, it shouldn't change the rate.
batch(timeout=0) must always return success
Wake upon fifo full will never be specified when timeout=0
setDelay is not called when in batch mode

Change-Id: I8a437eeedbdc54e5f1f3e644a92e9f781d7add0d

10 years agomodules: camera: simplify metadata list traversal
Alex Ray [Tue, 9 Jul 2013 19:19:49 +0000 (12:19 -0700)]
modules: camera: simplify metadata list traversal

keep traveling pointer local to the walking loop

Change-Id: I0038007d6e7a45e519b9b2162c674132477879cc

10 years agomodules: camera: Shutter notify message support
Alex Ray [Tue, 4 Jun 2013 19:38:07 +0000 (12:38 -0700)]
modules: camera: Shutter notify message support

The shutter callback timestamp should originate from the sensor itself,
since it knows exactly when the first line of the frame started
exposing.  However, as a fallback (or in the CPU-painting case) query
CLOCK_BOOTTIME instead.

Change-Id: Id57c05525e9c575d009b9deb96a69557fccac16b

10 years agoMerge "modules: camera: make Metadata a delete-able object"
Alex Ray [Tue, 9 Jul 2013 19:18:35 +0000 (19:18 +0000)]
Merge "modules: camera: make Metadata a delete-able object"

10 years agoMerge "modules: camera: only wait on valid acquire fence"
Alex Ray [Tue, 9 Jul 2013 19:18:17 +0000 (19:18 +0000)]
Merge "modules: camera: only wait on valid acquire fence"

10 years agoam cb7f5b94: (-s ours) Reconcile with jb-mr2-zeroday-release - do not merge
The Android Open Source Project [Mon, 8 Jul 2013 22:52:25 +0000 (15:52 -0700)]
am cb7f5b94: (-s ours) Reconcile with jb-mr2-zeroday-release - do not merge

* commit 'cb7f5b94a3d683f297ddf839ca4aa897e0927139':

10 years agoReconcile with jb-mr2-zeroday-release - do not merge
The Android Open Source Project [Mon, 8 Jul 2013 22:35:35 +0000 (15:35 -0700)]
Reconcile with jb-mr2-zeroday-release - do not merge

Change-Id: I2c24ec07adc57969cc48647a07afca7337923d51

10 years agoMerge "be more explicit about 64 bits values in sensor events"
Mathias Agopian [Mon, 8 Jul 2013 22:33:54 +0000 (22:33 +0000)]
Merge "be more explicit about 64 bits values in sensor events"

10 years agobe more explicit about 64 bits values in sensor events
Mathias Agopian [Mon, 8 Jul 2013 21:00:54 +0000 (14:00 -0700)]
be more explicit about 64 bits values in sensor events

Change-Id: I61e4832ff2c721987c38897924b1b50b758384da

10 years agomerge in jb-mr2-zeroday-release history after reset to jb-mr2-dev
The Android Automerger [Mon, 8 Jul 2013 12:55:35 +0000 (05:55 -0700)]
merge in jb-mr2-zeroday-release history after reset to jb-mr2-dev

10 years agomodules: camera: make Metadata a delete-able object
Alex Ray [Fri, 31 May 2013 23:51:39 +0000 (16:51 -0700)]
modules: camera: make Metadata a delete-able object

Metadata is currently only used for immutable persistent settings
(static camera characteristics, and the capture templates), but will be
used for dynamic metadata as well.  Make it deleteable so we can
create/destroy these at will.

Change-Id: I7372b07b904d5a6b55453093712e0bb2675918b5

10 years agomodules: camera: only wait on valid acquire fence
Alex Ray [Thu, 30 May 2013 07:19:04 +0000 (00:19 -0700)]
modules: camera: only wait on valid acquire fence

Change-Id: I4f51e509d86722c18308f4f1312ca3379cffd795

10 years agomodules: camera: Write back stream parameters
Alex Ray [Wed, 29 May 2013 22:08:29 +0000 (15:08 -0700)]
modules: camera: Write back stream parameters

max_buffers and usage are read by the framework inside the struct used
to pass the stream configuration parameters;  scribble our new
calculated values whever they are updated internally.

Adds logging to stream creation method (reuse/new).

Change-Id: I04e12880820571900f2ae80c27100f8aedcf9d02

10 years agomodules: camera: Fix stream type characterization
Alex Ray [Tue, 2 Jul 2013 23:56:14 +0000 (16:56 -0700)]
modules: camera: Fix stream type characterization

Type is now enum, not mask.

Change-Id: I264da26a457957a7659154e507970e0303c76e25

10 years agomodules: camera: Dirty metadata objects on update
Alex Ray [Tue, 2 Jul 2013 22:47:24 +0000 (15:47 -0700)]
modules: camera: Dirty metadata objects on update

Change-Id: I4fbd4ad919b855168e3ff5424613271b1fa907af

10 years agomodules: camera: default request templates
Alex Ray [Wed, 29 May 2013 03:32:48 +0000 (20:32 -0700)]
modules: camera: default request templates

Change-Id: I0a4b389e1850c10e12a65b3c8a5670c78c6746f7

10 years agoam 43c754f4: am 4c543a14: Enable native HAL tests to work for camera3 devices
Eino-Ville Talvala [Tue, 2 Jul 2013 19:41:26 +0000 (12:41 -0700)]
am 43c754f4: am 4c543a14: Enable native HAL tests to work for camera3 devices

* commit '43c754f49c0cbd31f3a067b6bff4b98829cb3811':
  Enable native HAL tests to work for camera3 devices

10 years agoam 4c543a14: Enable native HAL tests to work for camera3 devices
Eino-Ville Talvala [Tue, 2 Jul 2013 19:36:39 +0000 (12:36 -0700)]
am 4c543a14: Enable native HAL tests to work for camera3 devices

* commit '4c543a1456cd34a94e2c3a09879aa65ed8cd2f3a':
  Enable native HAL tests to work for camera3 devices

10 years agomodules: camera: fix compiler warnings
Alex Ray [Tue, 28 May 2013 22:52:04 +0000 (15:52 -0700)]
modules: camera: fix compiler warnings

Change-Id: Id1aa624d377776a7e37b52978664d30c927595be

10 years agoMerge "modules: camera: add get_camera_info support"
Alex Ray [Fri, 28 Jun 2013 21:07:01 +0000 (21:07 +0000)]
Merge "modules: camera: add get_camera_info support"

10 years agomodules: camera: add get_camera_info support
Alex Ray [Tue, 28 May 2013 22:52:47 +0000 (15:52 -0700)]
modules: camera: add get_camera_info support

Basic static metadata statically constructed from preprocessor passes
over an array of camera metadata tags.

Change-Id: I16ea9f4d68120d5a0bc010a4a67b0cbcd761329e

10 years agoEnable native HAL tests to work for camera3 devices
Eino-Ville Talvala [Wed, 26 Jun 2013 01:12:19 +0000 (18:12 -0700)]
Enable native HAL tests to work for camera3 devices

Change-Id: Ie11270cc8cf301ec94795b595f0517ee3bad2817

10 years agoAdd defines and support for audio offload
Richard Fitzgerald [Mon, 25 Mar 2013 16:11:44 +0000 (16:11 +0000)]
Add defines and support for audio offload

- Add non-blocking write support, set_callback() function
- Add pause, resume, flush, drain functions to audio output stream
- Add audio parameter defines for compressed audio metadata
- Extend audio_config_t to include an audio_offload_info_t field
- Add is_offload_supported() function to test whether there is
    hardware decode support for a given compressed audio format
- Change audio_stream_frame_size() to handle offloaded streams.
    For an offloaded stream the size is always counted in bytes
    (frame size == 1) and the number of channels is irrelevant.

Change-Id: I5b82c3fdcfa1456502d0042888f166bf02d8d54b
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Eric Laurent <elaurent@google.com>