Commit graph

521 commits

Author SHA1 Message Date
Glenn Kasten
90b429d56b am 34afb68c: Add screen state parameter
* commit '34afb68c0cd1de315f0250f6a95b9dba234133ae':
  Add screen state parameter
2012-06-08 10:57:52 -07:00
Glenn Kasten
34afb68c0c Add screen state parameter
Change-Id: Iead23e0d91dac34d40e9e55f525916b73c31bcb5
2012-06-08 10:49:34 -07:00
Eric Laurent
762ce0423f am 41eeb4fe: audio HAL: add definitions for capabilities query
* commit '41eeb4fe9f0a043dc207111893dbea26827217a6':
  audio HAL: add definitions for capabilities query
2012-06-05 09:55:29 -07:00
Eric Laurent
41eeb4fe9f audio HAL: add definitions for capabilities query
Added definitions for querying supported channel masks, sampling rates and
format with out_get_parameters().

Change-Id: Icb28fcef504c7e0a0b2daeb1bc7e704d20d3b738
2012-06-04 14:18:16 -07:00
Eino-Ville Talvala
895ed341ba Camera2: Update test code for metadata changes
- New resolution handling
- Don't do long exposures in tests

Bug: 6243944
Change-Id: Ia8362a50c8c4a2230d892e571b31e513c67ab84d
2012-05-20 17:25:53 -07:00
Eino-Ville Talvala
08a6e5e374 I am a HAL of constant structure.
Bug: 6243944
Change-Id: I126313f75f5f7165d3ca96f52054866c4fb6bee0
2012-05-17 17:54:56 -07:00
Eino-Ville Talvala
407a8eeeec Merge "Camera2: Add test for construct_default_request." 2012-05-16 11:55:29 -07:00
Eino-Ville Talvala
97f062e1a9 Merge "Camera2: Match updated camera_metadata methods." 2012-05-16 10:59:13 -07:00
Mathias Agopian
b21b3acf68 am e291f71e: split hwcomposer.h
* commit 'e291f71e0a25ac9bb39fb754c599b710ab8f59d5':
  split hwcomposer.h
2012-05-15 11:43:04 -07:00
Eino-Ville Talvala
3cc81fc180 Merge "Substantial cleanup of camera2 HAL, and some initial unit tests" 2012-05-14 18:03:27 -07:00
Eino-Ville Talvala
15d4e5d073 Merge "Add RAW_SENSOR to gralloc sample" 2012-05-14 15:57:29 -07:00
Eino-Ville Talvala
6adfd6b8ce Camera2: Add test for construct_default_request.
Bug: 6243944
Change-Id: I59b03d7ebece2a4b7672b265bd9f960b3faea621
2012-05-14 15:27:00 -07:00
Eino-Ville Talvala
e6a3c3c113 Camera2: Match updated camera_metadata methods.
Bug: 6243944

Change-Id: Ib691ef513b4811ca1290f0a9a4e3c1ce1e3f0945
2012-05-14 15:26:44 -07:00
Mathias Agopian
e291f71e0a split hwcomposer.h
hwcomposer_defs.h now contains enums, which are essentially names.
This won't change when we rev the h/w composer API (new ones will be added instead).

we do this to avoid having to abstract all these constants in higher
level APIs; instead hwcomposer_defs.h can be included without exposing
the hwcomposer's data structures (which are a lot more fragile wrt.
backward compatibility)

Change-Id: Ifb514f64de02a599fdd2d31c188327209ccb0ffc
2012-05-13 22:49:06 -07:00
Colin Cross
2f96c60cc4 am a3e36414: remove triggering suspend from power hal
* commit 'a3e364144cc258bbe94e7eb0a216e317a9e7e38d':
  remove triggering suspend from power hal
2012-05-09 01:54:29 -07:00
Eino-Ville Talvala
567b4a24fa Substantial cleanup of camera2 HAL, and some initial unit tests
- Clean up const/struct usage in HAL
- Add user pointer to notify callback
- Revamp allocate_stream, now it picks its own ID.
- Much simpler stream interface
- Merged request/reprocess input queues
- Frame queue interface no longer a mirror of request queue
- Added triggers/notifications
- Added default request creation
- Lots of comments

Unit tests added:

- Lots of utility code to speed up test writing
- Basic open/close
- Capturing 1 raw buffer (request input, frame output, buffer output)
- Capturing a burst of 10 raw buffers

Bug: 6243944
Change-Id: I490bd5df81079a44c43d87b02c9a7f7ca251f531
2012-05-08 17:30:56 -07:00
Eino-Ville Talvala
984272d92e Add RAW_SENSOR to gralloc sample
Change-Id: I0621bd70896385c3d522d283a1be714f5f29df3b
2012-05-07 11:01:17 -07:00
Colin Cross
a3e364144c remove triggering suspend from power hal
PowerManagerService will trigger suspend after calling into the
power hal, remove it from here.

Change-Id: I98cc096413bd5c9e39a28b2bfc376d3d30544193
2012-05-03 19:01:02 -07:00
Todd Poynor
3f86dbb657 am bcdb4cd3: hardware: Power HAL: Add POWER_HINT_INTERACTION
* commit 'bcdb4cd34b9c2a4a3ccebf0048137892e5586fe8':
  hardware: Power HAL: Add POWER_HINT_INTERACTION
2012-05-03 18:53:26 -07:00
Todd Poynor
bcdb4cd34b hardware: Power HAL: Add POWER_HINT_INTERACTION
Change-Id: I9b2c29eadc60e2bea2f01b3925ad6a8539ec2655
2012-05-03 16:04:41 -07:00
Jamie Gennis
4467a5e51f am 6b7adef0: hwcomposer: clarify vsync timestamp meaning
* commit '6b7adef0ef38f568099eab38d6865f402c92235b':
  hwcomposer: clarify vsync timestamp meaning
2012-04-30 13:49:10 -07:00
Jamie Gennis
6b7adef0ef hwcomposer: clarify vsync timestamp meaning
This change clarifies the meaning of the HWC vsync timestamp to specify that
the timestamp must be relative to the system monotonic clock.

Change-Id: I4386ce90511fd5b8f8e988917da637d84d86f026
2012-04-30 12:57:11 -07:00
Mathias Agopian
aeba023e68 am 5cb1de89: add version number to power HAL
* commit '5cb1de89a905dd13c858779d73721bbc36cd4be1':
  add version number to power HAL
2012-04-26 19:56:05 -07:00
Mathias Agopian
5cb1de89a9 add version number to power HAL
Change-Id: I6acf4523b5878565035ea6c85bddd58f9b20ef1b
2012-04-26 19:49:40 -07:00
Todd Poynor
a0d4e32a0d am 2f143fba: (-s ours) hardware: libhardware: Power HAL add power hints -- DO NOT MERGE
* commit '2f143fba74f6be91fe8805ef8bbdffe5b8ece8b4':
  hardware: libhardware: Power HAL add power hints -- DO NOT MERGE
2012-04-25 21:41:22 -07:00
Todd Poynor
2f143fba74 hardware: libhardware: Power HAL add power hints -- DO NOT MERGE
Change-Id: I8ab0376e4f5d8ef09d5b1062cbfbb30c30c5bb96
Signed-off-by: Todd Poynor <toddpoynor@google.com>
2012-04-25 18:16:40 -07:00
Todd Poynor
1d1775bb4d hardware: libhardware: Power HAL add power hints
Change-Id: I8ab0376e4f5d8ef09d5b1062cbfbb30c30c5bb96
Signed-off-by: Todd Poynor <toddpoynor@google.com>
2012-04-25 11:15:16 -07:00
Mike Lockwood
f7781bc9dd Merge "Update USB audio HAL to use API" 2012-04-24 16:51:00 -07:00
Mike Lockwood
46a9809e9c Update USB audio HAL to use API
Also don't clear card and device when out_set_parameters is called
to set other parameters.

Change-Id: I4feda9f6a2e76cb45bbc8a8f8256bb1760302707
Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-04-24 16:46:24 -07:00
Mathias Agopian
eb67160b99 fix typo in documentation
Change-Id: I2c55034c25edd466180cd9c5718c2ad568aeedff
2012-04-24 15:42:37 -07:00
Eric Laurent
da4b0b26d1 rename audio policy output flags.
Change-Id: I965fa9bcba45f223f2f2cbc4adccfb5491414c8b
2012-04-18 13:58:44 -07:00
Eric Laurent
55786bcf3c audio: updated audio HAL device API
Modified open output and input stream functions to add new
parameters needed by audio HAL. Also grouped parameters
in a config structure for clarity.

Change-Id: I60832d8e5b5e4a48f209a6d83f5ca9c044be61f1
2012-04-17 16:02:48 -07:00
Eino-Ville Talvala
0c8e630ad6 Merge "Revise camera HAL 2, and add unit test skeleton." 2012-04-17 08:57:44 -07:00
Simon Wilson
19957a37a0 usbaudio: add initial usbaudio default HAL
Change-Id: I6e93b2512883f3697683a74cadb9a29113966bc0
2012-04-12 22:48:10 -07:00
Eino-Ville Talvala
fed0c0244b Revise camera HAL 2, and add unit test skeleton.
- Add missing method in stream_ops (set_buffers_geometry)

- Remove extra method in stream_ops (set_swap_interval)

- Document metadata queue protocol

- Change metadata queue methods to be set/get through function calls
  only, instead of a struct member in the HAL device ops.

- Change vendor extension tag query methods to be retrieved by a get
  call, instead of a struct member in the HAL device ops.

- Add basic gtest unit test skeleton, which currently just returns
  static info from all camera devices.

Change-Id: I94117097b0243023ad60638070cc7f0cefec18e6
2012-04-11 11:23:31 -07:00
Mathias Agopian
6d3fec70d8 improve hwc VSYNC documentation
Change-Id: I5820d8fa183701ebbc0a825cf27bd0004b47d62e
2012-04-10 21:22:28 -07:00
Eric Laurent
c65a2fe392 audio policy: load audio hw modules.
Added methods to audio_policy_service_ops to load an audio hw module.

Added methods to open an output or input stream on a particualr module.

Change-Id: Ia0618053bec9978c1b7d2a5f6c02b78209557256
2012-04-03 19:47:04 -07:00
Mathias Agopian
d126b910ab Merge "add support for VSYNC events in h/w composer HAL" 2012-04-03 19:10:25 -07:00
Eric Laurent
b934784bbe Merge "audio: added definitions for audio HAL modules" 2012-04-03 16:46:46 -07:00
Eric Laurent
431fc78c11 audio: added definitions for audio HAL modules
Change-Id: I16f8b42ab5de503d38086413b83e934ac9aa1f24
2012-04-03 16:01:17 -07:00
Mathias Agopian
b08d45dff6 add support for VSYNC events in h/w composer HAL
Change-Id: Ic19a41ae522a236f45957e50c792934d987b116a
2012-04-03 11:45:41 -07:00
Glenn Kasten
0cacd8d44b Update comments
Change-Id: I123d9baeceda13608cc01eda6a19e13822258dc0
2012-04-01 13:43:02 -07:00
Dima Zavin
e8da6bf1cc Merge "hardware: add some guidance on providing version defines" 2012-03-30 11:58:04 -07:00
Eino-Ville Talvala
e911e4c160 Merge "Add specific version number constants to Camera HAL." 2012-03-27 16:50:18 -07:00
Eino-Ville Talvala
ddc026e393 Add specific version number constants to Camera HAL.
These constants should be used by HAL implementations to indicate
which versions of the module and device APIs they support.

Change-Id: I4b6eae278481545694e6a1827833b5958c26720c
2012-03-27 16:15:25 -07:00
Dima Zavin
2fe3ae5ec9 hardware: add some guidance on providing version defines
Change-Id: I456cb209bc5d5eb739b6fd2e2f3e869caa363ff0
Signed-off-by: Dima Zavin <dima@android.com>
2012-03-26 23:14:15 -07:00
James Dong
89c8a6df0e Merge "Fixed an incorrect path for the include header file in a comment" 2012-03-26 17:47:50 -07:00
Kenny Root
6be478050f Merge "keymaster: add flags for keymaster features" 2012-03-26 16:42:39 -07:00
James Dong
d0ca70d834 Fixed an incorrect path for the include header file in a comment
Change-Id: I9c6f76279b54c2de66a31f751afc9222c345eb47
2012-03-26 16:32:23 -07:00
Kenny Root
3c338f4731 keymaster: add flags for keymaster features
The first flag is something for the default implementation to use to
indicate that its keys are importable to hardware keymasters. This
allows easy migration from the default software implementation to
hardware implementations as they become available.

Change-Id: Ideb26a4b1ac91ca8c330a4fe4df323f028b2f855
2012-03-26 16:21:07 -07:00