* Use const reference parameter type to avoid unnecessary copy.
Bug: 30407689
Change-Id: Ibf19e5529e548bba21fcc8403eb356cb49548172
Test: build with WITH_TIDY=1
Continue using Android.mk for hardware/libhardware/tests/hardware, until
some partial branches without system/media are fixed to define
SOONG_ALLOW_MISSING_DEPENDENCIES=true.
Change-Id: I82ec7b104ea610ea02a473ba6f5a067faba78052
Moved the init release calls in the vehicle-hal-tool.
I assume the correct sequence for a set is :-
VehicleNetworkService -> VehicleHAL vehicle_device_open
VehicleNetworkService -> VehicleHAL vehicle_device_init
VehicleNetworkService -> VehicleHAL vehicle_device_set
VehicleNetworkService -> VehicleHAL vehicle_device_release
bug: 27816048
Change-Id: I3ac37eaf69027824bc6247f25a99f27527c1a2b9
- add release_memory_from_get to allow hal to release
memory it has allocated in get call
- clear get call's behavior: If data is not available, should
return immediately with VEHICLE_ERROR_NOT_READY error
- make zone separate in vehicle_prop_config_t and
vehicle_prop_value_t: Handing of zoned property becomes
simpler
- cleanup some data type definitions for zoned properties
bug: 27597338, 27596281
Change-Id: I7a8454b86555270fb2211e5d36b3ee06d350f8ed
Added support for event handling of VEHICLE_VALUE_TYPE_INT32_VEC2, and
VEHICLE_VALUE_TYPE_INT32_VEC3.
Bug: 27578597
Change-Id: Ic20da00f9adf634c77c4067a5243cbd2aae681e4
- 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
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
- 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
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
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
- 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
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
- 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
For use by Camera HAL libraries to perform one-time initialization
steps after the library is loaded.
Bug: 20016050
Change-Id: Ia01ae0eafcadece9124ac2cfcc3b1c3939352843
Change the structure offset tests to account for the addition
of a new member in a sensors device structure.
Change-Id: I2ef7b82446b09b32f903346bbc9b857a99d80043
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