Commit graph

181 commits

Author SHA1 Message Date
Keun-young Park
bf877a7e66 vehicle hal update
- add zones to subscribe to allow selected subscription for
  zoned properties
- extend config to uint32[4] to allow passing more informaiton
  from configs
- change audio volume to be per context, not physical stream.
  This maps better to android side's logical streams.
- renamed APP_CONTEXT to AUDIO_CONTEXT: It is useful only for
  audio.
- add more audio contexts: safety alert, CD, aux audio

bug: 25183740, 26233321

Change-Id: I29de7b6c9d9a770cf87e7f50991c875d7ce9fdbe
2016-01-06 15:15:02 -08:00
Andreas Gampe
a72296a223 Merge "Libhardware: Fix tests" am: de5662d7fa
am: 7edadd7197

* commit '7edadd7197e2bc4665b49f07cb3561120cd4ed1f':
  Libhardware: Fix tests
2015-12-17 16:16:16 -08:00
Andreas Gampe
1aa58f9ef9 Libhardware: Fix tests
Fix some warnings. Silence another. Less build noise.

Change-Id: Ibdbba093c2aca45343bfbe72c551b15d0f94e1b5
2015-12-16 15:53:35 -08:00
Eino-Ville Talvala
d4392024d2 Camera: Mark camera HAL device v2.x as unsupported
Device HAL v2.x is obsolete, and no devices using it are still
supported. Mark it unsupported, and clean up native tests.

Bug: 25866588
Change-Id: I8e0f1448b8ae0eaaf3714f2351746af46c7657a7
2015-11-30 10:20:57 -08:00
Sanket Agarwal
fb63668a8a Add vehicle hal.
- vehicle hal is used for supporting car specific features.
- Each property can be written (=set), read (=get), or subscribed.
- Each property has configuration informaiton to tell what that property
  is and how it can be accessed.
- also adding dummy hal implementation.

bug: 25183740

Change-Id: Ib1cc1c11540f156db73552f2a18a8efb361002af
2015-11-13 11:50:54 -08:00
Tim Kilbourn
864984c3b1 MouseInputMapper
Maps relative movements of a mouse or scroll wheel and mouse button
presses. All other logic from CursorInputMapper will be handled in the
host.

Change-Id: I00a966a6194d4810b7b6ac5cc815287ecf7dfb84
2015-07-28 13:21:10 -07:00
Eino-Ville Talvala
505981c721 am 79797687: am d95a340b: Merge "Camera2 tests: Fix incorrect error code check" into mnc-dev
* commit '797976876f6afde0a3a114c1b8a12f26b4ebd666':
  Camera2 tests: Fix incorrect error code check
2015-07-14 15:17:10 +00:00
Ruben Brunk
f29796c2fe am fa843087: am 49f58811: Remove out-of-date camera2 native tests.
* commit 'fa8430875ced1b31396cdea392b85cd33c1fee6c':
  Remove out-of-date camera2 native tests.
2015-07-14 15:17:09 +00:00
Eino-Ville Talvala
797976876f am d95a340b: Merge "Camera2 tests: Fix incorrect error code check" into mnc-dev
* commit 'd95a340b9f74b38703e78b3e2e8bc43f49c3ebf8':
  Camera2 tests: Fix incorrect error code check
2015-07-14 15:06:53 +00:00
Ruben Brunk
fa8430875c am 49f58811: Remove out-of-date camera2 native tests.
* commit '49f58811ea29ff8bed5e307d8018ead075731881':
  Remove out-of-date camera2 native tests.
2015-07-14 15:06:52 +00:00
Eino-Ville Talvala
d95a340b9f Merge "Camera2 tests: Fix incorrect error code check" into mnc-dev 2015-07-11 00:32:27 +00:00
Eino-Ville Talvala
5ad8086ad7 Camera2 tests: Fix incorrect error code check
Bug:  22410279
Change-Id: Iad74e90d148908aafd39878608c10fe03c689b8a
2015-07-10 15:06:02 -07:00
Ruben Brunk
49f58811ea Remove out-of-date camera2 native tests.
Bug: 22410279
Change-Id: Ib4a39306115e05b8e430bdc8456ad940b3426a8e
2015-07-10 14:45:56 -07:00
Dan Albert
12468e63be am b1988842: am 5e901ed4: Merge "Use abort() instead of a null dereference."
* commit 'b1988842df47187031718ccffa458ccafa9c2d6e':
  Use abort() instead of a null dereference.
2015-06-11 20:25:48 +00:00
Dan Albert
b1988842df am 5e901ed4: Merge "Use abort() instead of a null dereference."
* commit '5e901ed49faed3465c9df8e6cf6c684249bb3c8c':
  Use abort() instead of a null dereference.
2015-06-11 20:05:53 +00:00
Dan Albert
5b57857c7f Use abort() instead of a null dereference.
Clang deletes these because they're invalid. It's pretty awful of
clang to do this, but this should be abort() anyway.

Change-Id: I89423ff2c4d08db82077e56b726549e3783d38e1
2015-06-11 11:04:52 -07:00
Tim Kilbourn
2154c9d659 Merge "Code layout cleanup" 2015-06-10 16:40:34 +00:00
Tim Kilbourn
e8ee0c3ee0 Merge "Initial InputMappers for evdev input HAL." 2015-06-10 16:38:44 +00:00
Eino-Ville Talvala
736a0173f1 am 966fbc67: am 17b8cee9: Merge "Camera2 tests: Update for framework changes" into mnc-dev
* commit '966fbc673a60f0ecdcf9f535d01b549f7ef04b31':
  Camera2 tests: Update for framework changes
2015-06-09 23:23:30 +00:00
Eino-Ville Talvala
cd6984e762 Camera2 tests: Update for framework changes
Change-Id: I9ac788cfe9a001ef33bdc52a9e8ba0bdcf3ded2c
2015-06-09 15:23:34 -07:00
Tim Kilbourn
dbc8c16841 Code layout cleanup
- Fwd declare where possible
- List .h first in the .cpp to verify proper includes
- Remove hacky -internal.h file and move testBitInRange to a new component

Change-Id: I442248c4b32738c6c2af250f45d4c8822c862e08
2015-06-09 11:16:04 -07:00
Tim Kilbourn
4f3145d75f Initial InputMappers for evdev input HAL.
The previous design of the InputHost wrapper classes made it very
painful to do testing, so this change also reverts to a more classical
C++ pattern for non-copyable objects. The InputHost classes still simply
call through to the input_host_t and callbacks as before.

Updated unittests to use gmock for mocking the InputHost interactions.

Change-Id: I4b70df2c89ed48af77446b8f5b87a4bde94510bf
2015-06-09 11:16:04 -07:00
Tim Kilbourn
3186e7bf48 Configure device classes for evdev devices.
Change-Id: Ia75b71253771d9d558c59411e27f8a51e352fb8b
2015-06-01 14:33:47 -07:00
Tim Kilbourn
c929d25095 Clarify usage of smart pointers
- Members should be smart (shared or unique)
- Prefer function args to be bare, unless the arg is intended to be
  stored by the callee
- Function args that are smart should be const refs to avoid an extra
  copy

Change-Id: I8052fa432bcffbabff9d67a8d568640cac64d4ad
2015-04-29 15:33:25 -07:00
Sasha Levitskiy
468b567316 Fingerprint: Add an API to get authenticator id
Change-Id: If45ebc228425eaa43bf9abde934f8bb4e7d97e6c
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-04-16 21:52:28 +00:00
Eino-Ville Talvala
aee4782839 Camera: Add HAL module init method.
For use by Camera HAL libraries to perform one-time initialization
steps after the library is loaded.

Bug: 20016050
Change-Id: Ia01ae0eafcadece9124ac2cfcc3b1c3939352843
2015-04-15 17:26:13 -07:00
Ashutosh Joshi
a679e3fcf0 Merge "Change struct offsets tests" 2015-04-14 23:26:20 +00:00
Ashutosh Joshi
5f0ebe67c5 Change struct offsets tests
Change the structure offset tests to account for the addition
of a new member in a sensors device structure.

Change-Id: I2ef7b82446b09b32f903346bbc9b857a99d80043
2015-04-14 16:24:10 -07:00
Jim Miller
1e1f7ba5c9 Clean up FingerprintManager API and make it public.
Change-Id: I416dcc42fd70926875cc77e0c2cc958fdfcd9f9d
2015-04-11 09:21:56 -07:00
Tim Kilbourn
73475a4eb2 Input event hub for evdev input HAL module.
InputHub monitors paths for device changes and input events.
InputDeviceManager creates InputDevices and routes input events to
them. InputDevices currently just log these events during development.
InputHost represents a wrapper around the HAL interface.

Change-Id: Ic47d574498eb07bcdcd17812a648539fdf1c69d6
2015-03-30 17:21:29 -07:00
Jim Miller
3fba7bebe8 Merge "Update fingerprint.h for new API" 2015-03-25 19:45:17 +00:00
Jim Miller
1fb1e33454 Update fingerprint.h for new API
This adds vendor-specific messaging capabilities to the
HAL driver to avoid the possibility of vendors clobbering
general-purpose methods. The framework translates these
additional messages as an offset into a custom message array.

Additionally, authenticate() now takes a group id to restrict
authentication to a subset of possible fingerprints.

Bug 16487912

Change-Id: I8a92a6c86b4729af03a5576b4a150b1c73fbc9cc
2015-03-24 19:27:57 -07:00
Yin-Chia Yeh
c253765481 Camera: update test per interface change
CameraModule does not allow for accessing raw module pointer
anymore. Also cleanup some warnings.

Bug: 19897963

Change-Id: I111cc093f09f5fb3c4b13693d5d0687e1f441058
2015-03-24 12:07:32 -07:00
Yin-Chia Yeh
5407ef1ec2 Camera: Fix tests per camera service interface change
Also clarify rotation field has no meaning and will always be 0
for a input stream.

Change-Id: I0f4343a0bfa7bf09ba887c78a1da1c08daa35333
2015-03-16 13:11:11 -07:00
Eino-Ville Talvala
898ad176cd Camera tests: Adjust for framework device interface changes
Account for requirement to pass in dataspace in stream creation.

Change-Id: Ibc5af912ef4a55b787c70843fc82422977a02c0b
2015-03-09 12:54:15 -07:00
Eino-Ville Talvala
e69efbbabf Replace/rename old HAL graphics formats
- Replace RAW_SENSOR with RAW16
 - Remove sRGB formats

Change-Id: Ic5c44878c638c3d3559495ea5685e10fcc2c39e1
2015-03-06 13:19:36 -08:00
Shawn Willden
e05ffdbb30 am 17dde875: Merge "Separate keymaster0 and keymaster1 HALs."
* commit '17dde875dda1b96722e6fb07850c268ca716c3d1':
  Separate keymaster0 and keymaster1 HALs.
2015-02-26 23:31:14 +00:00
Shawn Willden
302d252f2c Separate keymaster0 and keymaster1 HALs.
For now the keymaster1 HAL still includes all of the keymaster0 entry
points, and soft_keymaster_device will continue to implement them.  In
the near future the keymaster0 entry points will be removed, as soon as
we can ensure that keystore no longer needs them.

Change-Id: I5c54282c12d1c4b8b22ed4929b6e6c724a94ede4
2015-02-25 23:08:39 -07:00
Shawn Willden
fd4b4d5a9b Separate keymaster0 and keymaster1 HALs.
For now the keymaster1 HAL still includes all of the keymaster0 entry
points, and soft_keymaster_device will continue to implement them.  In
the near future the keymaster0 entry points will be removed, as soon as
we can ensure that keystore no longer needs them.

Change-Id: I5c54282c12d1c4b8b22ed4929b6e6c724a94ede4
2015-02-24 14:58:17 -07:00
Yin-Chia Yeh
7eb3d91b87 Camera: modify test per framework interface change
Wrap camera_module_t by CameraModule to follow
framework interface change.

Change-Id: Ief423a1571cf06c7ef80b98b403a33969baf95f6
2015-02-03 14:43:09 -08:00
Kenny Root
1ea23b102b am c9832229: am 7b8e44f5: Merge "Remove superfluous OpenSSL include paths."
* commit 'c98322296c13617c911cc66f4578aa5daf08aadb':
  Remove superfluous OpenSSL include paths.
2015-01-26 19:17:35 +00:00
Kenny Root
c98322296c am 7b8e44f5: Merge "Remove superfluous OpenSSL include paths."
* commit '7b8e44f511fdb5bd2730e29cc88f72305cf7ab16':
  Remove superfluous OpenSSL include paths.
2015-01-26 19:12:19 +00:00
Adam Langley
d3564c7f90 Remove superfluous OpenSSL include paths.
The libcrypto and libssl modules (and their respective static and host
versions) use LOCAL_EXPORT_C_INCLUDE_DIRS thus just including the module
is sufficient.

Change-Id: I9030a3747b8a1f18acd0308746cb2f63d4123f8b
2015-01-22 17:16:01 -08:00
Chien-Yu Chen
301591776f camera_common: add torch mode APIs for flashlight
Add torch mode APIs to support flashlight without opening any
camera devices.

Bug: 2682206
Change-Id: Ida46bb878962caf305f3e97051b15e0465fe8c02
2015-01-15 10:35:07 -08:00
Dan Albert
6bafdcb508 am 4f1fe2f5: Merge "Fix build in C++11 mode"
* commit '4f1fe2f59889d88ed026596c1841043db7edbc6f':
  Fix build in C++11 mode
2014-12-17 02:43:50 +00:00
Bernhard Rosenkränzer
1f1d79732f Fix build in C++11 mode
Fix build in C++11 mode instead of reverting to C++98 mode.
(Fixes some constructs that were mistaken for C++11 literals and
a use of the std::ostream(NULL) constructor).

Building in C++98 mode causes clang to fall over conflicting definitions
of char16_t.

Change-Id: I66230eeb960f4a894d6c98fe7935ec932569c5a4
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2014-12-12 22:16:55 +01:00
Dan Albert
9d018618c4 am 58afe329: Merge "Use an older C++ standard."
* commit '58afe329533dc60618186f414d945829706ed772':
  Use an older C++ standard.
2014-11-20 23:00:38 +00:00
Dan Albert
e51237cda5 Use an older C++ standard.
Bug: 18466763
Change-Id: Ibea0eb2617f13bacca0a662fe4ca88fc8a168cd7
2014-11-20 21:14:12 +00:00
Dan Stoza
1497e7e767 am e0e834e3: Merge "Add a BufferItem parameter to onFrameAvailable" into lmp-mr1-dev
* commit 'e0e834e3fe5561bf87aac7f88faaed39f0937a64':
  Add a BufferItem parameter to onFrameAvailable
2014-11-07 20:03:42 +00:00
Dan Stoza
e0e834e3fe Merge "Add a BufferItem parameter to onFrameAvailable" into lmp-mr1-dev 2014-11-07 19:44:33 +00:00