Commit graph

1242 commits

Author SHA1 Message Date
Mike Lockwood
f847762477 DO NOT MERGE: Sensor multi HAL
Squashed commit of:

Move sensors multi HAL to libhardware

Added a SensorEventQueue, a circular buffer meant for reading with one thread
and polling a subhal with another. The writing thread gets access to pointers
in the internal buffer. This design avoids a memcpy on write when the multihal
fetches subhal events using poll().

Unit-tests include multithreaded reading and writing lots of events, in
random-sized chunks.

This is not used by the multihal yet. That will be a different CL.

MultiHal multithreaded polling

Tests SensorEventQueue I/O when the queue is full.
Reduced debug logging in multihal.

deactivated multihal logspam, made warnings warnings, left critical startup info

Removed unneeded linux/input.h includes, to fix Mac SDK build

Change-Id: I1e35508949df98a1acef7a4a2d012eea87b4a5eb
2013-12-09 15:26:55 -08:00
Qiwen Zhao
0bd030b5df DO NOT MERGE reset to goog/klp-volantis-dev 2013-12-09 14:19:06 -08:00
Qiwen Zhao
888e507b97 snap to klp-dev-plus-aosp 19b13b9 with history 2013-12-06 13:30:37 -08:00
The Android Open Source Project
19b13b9a45 am 20ebefd9: Merge commit \'eed5dceb4a0bc02f50f236ab191d30c49c58f610\' into HEAD
* commit '20ebefd966eed9da545ab645199c2f93ca93af20':
2013-12-05 17:25:49 -08:00
The Android Open Source Project
20ebefd966 Merge commit 'eed5dceb4a0bc02f50f236ab191d30c49c58f610' into HEAD 2013-12-05 12:38:20 -08:00
Mike Lockwood
0bae43dc59 DO NOT MERGE: Sensor multi HAL
Squashed commit of:

Move sensors multi HAL to libhardware

Added a SensorEventQueue, a circular buffer meant for reading with one thread
and polling a subhal with another. The writing thread gets access to pointers
in the internal buffer. This design avoids a memcpy on write when the multihal
fetches subhal events using poll().

Unit-tests include multithreaded reading and writing lots of events, in
random-sized chunks.

This is not used by the multihal yet. That will be a different CL.

MultiHal multithreaded polling

Tests SensorEventQueue I/O when the queue is full.
Reduced debug logging in multihal.

deactivated multihal logspam, made warnings warnings, left critical startup info

Removed unneeded linux/input.h includes, to fix Mac SDK build
2013-12-02 07:34:19 -08:00
Rom Lemarchand
e735e5fa42 am 047510b1: Merge "gralloc: delete unused mutex declaration"
* commit '047510b132e33c26607b4b93e806884aa4d13f19':
  gralloc: delete unused mutex declaration
2013-11-26 10:37:58 -08:00
Rom Lemarchand
047510b132 Merge "gralloc: delete unused mutex declaration" 2013-11-26 18:30:34 +00:00
Rom Lemarchand
0287721d28 gralloc: delete unused mutex declaration
Change-Id: Ibc7e70887b61f7dd885c86d412387636d3a6a867
2013-11-26 10:01:25 -08:00
The Android Open Source Project
dbf6b34587 am bae5cf92: Merge commit \'c9940a2bfe94dbe2ef3bfe5e8692bf4e3cea5ba0\' into HEAD
* commit 'bae5cf92cfa9e2867af91057265df7f029f7865e':
2013-11-22 17:41:01 -08:00
The Android Open Source Project
bae5cf92cf Merge commit 'c9940a2bfe94dbe2ef3bfe5e8692bf4e3cea5ba0' into HEAD 2013-11-22 10:35:26 -08:00
Jesse Hall
eed5dceb4a am 7ccf148f: Update HWC documentation for virtual displays
* commit '7ccf148f5066ceb1a161f0d7a7d66f75c6e8d420':
  Update HWC documentation for virtual displays
2013-11-13 17:04:25 -08:00
Jesse Hall
7ccf148f50 Update HWC documentation for virtual displays
Bug: 8316155
Change-Id: I56598551b07082bfff90df160b103a4158e8c8c9
2013-11-13 14:48:15 -08:00
Nick Kralevich
15f0d47dc6 am af822c43: Merge "gralloc: do not use GNU old-style field designators"
* commit 'af822c43cf144a991db49d8c25068d054265ae37':
  gralloc: do not use GNU old-style field designators
2013-11-06 19:40:57 -08:00
Nick Kralevich
af822c43cf Merge "gralloc: do not use GNU old-style field designators" 2013-11-07 03:34:27 +00:00
synergy dev
6abbed5093 gralloc: do not use GNU old-style field designators
Avoiding the use of gnu extensions improves code portability

Change-Id: Icf8e3d4813bcddff40548bb5e65e615f8697b75c
2013-11-06 17:29:22 -08:00
Zhijun He
fc2a795151 am b44ff650: Camera2 Test: Skip CameraModuleTest for HAL V1 devices
* commit 'b44ff6508bbcb8df751b5815dd4dfbd4cae252f7':
  Camera2 Test: Skip CameraModuleTest for HAL V1 devices
2013-10-29 18:37:02 -07:00
Zhijun He
b44ff6508b Camera2 Test: Skip CameraModuleTest for HAL V1 devices
Bug: 10971907
Change-Id: Ia3aa0e370d7eb5de6bb1fb7ff48a71ea5605fa17
2013-10-28 15:52:56 -07:00
Colin Cross
c9940a2bfe am b0c30322: hardware: look in /vendor for default.so
* commit 'b0c303229fcbc89a0afa8f170de64f2a7fee9d6c':
  hardware: look in /vendor for default.so
2013-10-01 22:21:16 -07:00
Colin Cross
b0c303229f 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
2013-09-30 14:23:01 -07:00
Eino-Ville Talvala
9c73c0a2f2 am 89cfe208: Merge "Camera3: Add PASSIVE_UNFOCUSED AF state and clean up INACTIVE" into klp-dev
* commit '89cfe20899d41e1c96efc20e3f203d3f1dba71cd':
  Camera3: Add PASSIVE_UNFOCUSED AF state and clean up INACTIVE
2013-09-25 12:29:27 -07:00
Eino-Ville Talvala
89cfe20899 Merge "Camera3: Add PASSIVE_UNFOCUSED AF state and clean up INACTIVE" into klp-dev 2013-09-25 19:27:54 +00:00
Zhijun He
69716f4b1d am 3bf3b45f: Camera2 Test: skip some tests for limited hardware level
* commit '3bf3b45f2d5eb43b74e1a46ff03ed3e2142b1b38':
  Camera2 Test: skip some tests for limited hardware level
2013-09-24 19:29:53 -07:00
Zhijun He
3bf3b45f2d Camera2 Test: skip some tests for limited hardware level
Bug: 10388724
Change-Id: Ifd13f72f1b7ff78cf50dc1c238f17c4b4e90d9b0
2013-09-23 10:13:17 -07:00
Eino-Ville Talvala
4d45d30d4e 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
2013-09-20 18:02:06 -07:00
Zhijun He
8c81382d68 am 60cbb526: Camera2 Test: Fix module and burst test issues
* commit '60cbb52613d212236de49b4f22fe059585f8c1b2':
  Camera2 Test: Fix module and burst test issues
2013-09-19 21:01:20 -07:00
Zhijun He
60cbb52613 Camera2 Test: Fix module and burst test issues
Bug: 10388724
Change-Id: Idc404cf8a7a96c00941aa8f1880734a236cb3737
2013-09-19 19:01:04 -07:00
Zhijun He
8a658946e9 am b3ac07c0: Camera2 Tests: fix some sanity checks
* commit 'b3ac07c0028b0afe8f9b009e37af90ec9a697b44':
  Camera2 Tests: fix some sanity checks
2013-09-17 18:29:35 -07:00
Zhijun He
b3ac07c002 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
2013-09-17 16:53:55 -07:00
Rom Lemarchand
0cd89c8c36 am cd996be7: Merge "Initial interface for MemoryTrackerHAL" into klp-dev
* commit 'cd996be7791b3f78e925532d5820da06d58cf635':
  Initial interface for MemoryTrackerHAL
2013-09-13 13:20:43 -07:00
Zhijun He
8d24efb096 am 2a512b49: Merge "Camera2 Test: check the right result metadata" into klp-dev
* commit '2a512b49e028b5714782ab69cba9662e01e25016':
  Camera2 Test: check the right result metadata
2013-09-13 13:20:09 -07:00
Rom Lemarchand
cd996be779 Merge "Initial interface for MemoryTrackerHAL" into klp-dev 2013-09-13 18:23:56 +00:00
Zhijun He
2a512b49e0 Merge "Camera2 Test: check the right result metadata" into klp-dev 2013-09-13 14:31:07 +00:00
Alex Ray
d587c613c6 am d9d105a0: consumer_ir: add array length to get carrier freq
* commit 'd9d105a0ce6bbaa8d1d1cf70a255612a5dd33701':
  consumer_ir: add array length to get carrier freq
2013-09-12 09:12:47 -07:00
Zhijun He
914226ce76 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
2013-09-12 02:45:12 -07:00
Alex Ray
d9d105a0ce consumer_ir: add array length to get carrier freq
Change-Id: Iefb424db6f16ffefa40da56c765c9b7a24bea397
2013-09-11 17:51:19 -07:00
Kenny Root
0b4b67c488 am 1d640f05: Merge "Use canonical UniquePtr.h header"
* commit '1d640f05dcedfcaae63eeb90f3d89b16e95d0208':
  Use canonical UniquePtr.h header
2013-09-11 14:56:06 -07:00
Kenny Root
1d640f05dc Merge "Use canonical UniquePtr.h header" 2013-09-11 21:52:15 +00:00
Kenny Root
a4cef69367 Use canonical UniquePtr.h header
Change-Id: I0487bd53fc946e1a488d7109eebd402d1ecc5a0a
2013-09-11 14:51:09 -07:00
Alex Ray
ddc0748f30 am c900b423: Merge "consumerir: make transmit array constant" into klp-dev
* commit 'c900b4230c5f33abc1b7bc590c4ffe21ec8a59d0':
  consumerir: make transmit array constant
2013-09-11 13:49:29 -07:00
Alex Ray
c900b4230c Merge "consumerir: make transmit array constant" into klp-dev 2013-09-11 20:45:03 +00:00
Alex Ray
6670e24966 consumerir: make transmit array constant
Change-Id: I0409970d7bd8efe69a69ec038eea4ee3ff9cbfe0
2013-09-11 13:36:58 -07:00
Glenn Kasten
063c87f2b9 am 22b42bc5: Merge "Clarify return values of get_presentation_position" into klp-dev
* commit '22b42bc528c1a38176572c128323e945ea4a7d0a':
  Clarify return values of get_presentation_position
2013-09-11 12:33:30 -07:00
Glenn Kasten
22b42bc528 Merge "Clarify return values of get_presentation_position" into klp-dev 2013-09-11 19:31:27 +00:00
Alex Ray
8473b3056d am 09875a2e: modules: add demo consumer IR HAL
* commit '09875a2eabe6bc6582b40ab8f1cc9eac9c3901d5':
  modules: add demo consumer IR HAL
2013-09-10 12:54:16 -07:00
Alex Ray
1e3073bf08 am fe46e6a9: libhardware: add Consumer IR HAL API
* commit 'fe46e6a90675fc637a1482e8dfeb27e374b7600d':
  libhardware: add Consumer IR HAL API
2013-09-10 12:54:16 -07:00
Kenny Root
9c83f1d807 am 6a09617e: Merge "keymaster: use new version fields in hw_module"
* commit '6a09617eaa2e47e768b87c341459bf80e008a359':
  keymaster: use new version fields in hw_module
2013-09-10 11:18:11 -07:00
Kenny Root
6a09617eaa Merge "keymaster: use new version fields in hw_module" 2013-09-10 18:14:58 +00:00
Kenny Root
36ab8ed76f 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.

(cherry picked from commit c124b23f94)

Bug: 10600582
Change-Id: Ia2b0cbeca5c507600228c39ec7a8402f819f8804
2013-09-10 18:14:49 +00:00
Glenn Kasten
22a06b752f Clarify return values of get_presentation_position
Change-Id: I495d7abd7e366849308c66bcaee99554dcd244aa
2013-09-10 09:23:48 -07:00