am: 86df5ad096
* commit '86df5ad096224060eb5275e6b7c4a1d5552210ee':
Ensure we get a default sample rate for "query" cases in open_input_device().
Change-Id: I63a05f0fed8884a8fa69da206d8307126b7dc4b7
Changed module name back to sensors.$(TARGET_DEVICE) to assure
proper load ordering.
Fix use of GNU old-style field designator extension and a couple
type-mismatched comparisons.
Bug: 28251347
Change-Id: I7cf6cc1f78085b8b254729cd8ec42bdb20ea3f81
- added HVAC_POWER_ON property
- added special INT / FLOAT OUT_OF_RANGE values for
max / min / off state
- added dump call for debugging: necessary for debugging
- clarified subscribe behavior for ON_CHANGE type
VNS will make additional get call for checking initial
state.
- added clarification on possible -EAGAIN for set call
- added mute flag to allow muting radio from android
bug: 27721415
bug: 28022648
bug: 27971383
bug: 27971578
Change-Id: Ie9a7334b86ab53174b91a4dc651fd87ca17af3d9
am: caa94e5
* commit 'caa94e5e2b199f07cb2b6f03b7e8fb8348603121':
Adds stop_all_recognitions as an optional method to the sound trigger hal.
Change-Id: I0f24538b1e73f45ddf389585f7baf8c8a8dd9670
The existing vibrator HAL uses the timed_output interface which will
never be moved out of kernel's staging tree. The kernel already has a
similar feature with GPIO controlled LEDs and LED triggers. While a
vibrator is not an LED, the control model is the same and can be reused.
Additionally, DT bindings already exist for GPIO controlled LEDs.
This adds support for the LED device in addition to the timed_output
device. It uses the "transient" trigger for the LED device named
"vibrator".
Change-Id: I90d52d6e50d83d255f484db148064069504f78e0
Signed-off-by: Rob Herring <robh@kernel.org>
- 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
This allows us to query the HAL state even when a model is not started or
after stop.
Note: Thread does not terminate on stdev->close().
Bug: 27279191
Change-Id: I6540d501c17a77bdb5cfa5528837af7bfd3ace71
Thread was not ending properly because only the first
char of the end message was being sent.
The next pointer in the linked list was not being
initialized, causing it to link to bad data values.
BUG:27276657
BUG:22860713
Change-Id: Idfdf300d9ab45f9bf61eba191bb1bb0767e1cb5d
- Added a simple command parsing ability for text commands.
- Ability to output text via the socket interface.
Bug: 27227051
Change-Id: I9ea06897d69cf55b58aba5cc30f1c32773b3da00
Increased the size of the sensor event transfer queue from 20 to
36 sensor events. This size now matches Sensor Services buffer size
that it passes to poll() for reading events and will allow the
multihal to transfer the maximum events possible per poll cycle.
Change-Id: I55459ea0a70b9da848d3d3d43590050d71c53e28
The build system does not use headers in LOCAL_SRC_FILES. To prevent
typos, it's now a warning to add something to LOCAL_SRC_FILES that
is not used.
Change-Id: Ieb6c6d383c04005077043d04f1b4985964ef0341
Also renames re_context to model_context, and
adds missing methods for expanded sound_trigger
operation including
sound_trigger_open_for_streaming
sound_trigger_read_samples
sound_trigger_close_for_streaming
Change-Id: I30e8eebf9c349ffae3c636277ffd0ab6805a324e
- Provide HAL for vendors to turn on VR-specific device performance
settings when we enter VR mode in VrManagerService.
Bug: 22855417
Change-Id: I3dee920818eb0988452bf5c25d1a31f11fde7339
- 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
Also, turn off debug logging in a couple other classes and fix an
incorrect format specifier.
Bug: 25497538
Change-Id: I72af9492415fa6910af90caf03a7884c6cb1a0b1
The Metadata module segfaults when asked to initialize camera_info, upon
camera description request coming from framework.
This was caused by missing intialization of mData instance field.
Additionally, when intializing it with a template metadata, the
validation function return value was wrongly tested
Patchset 2: Do not init mData but let function flow take care of
replacing it after adding new data to it fails.
Change-Id: Iae228f0d66171ed3eac430186ced4d9b023f8de8
Signed-off-by: Jacopo Mondi <jacopo.mondi@linaro.org>
- 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
1. Add clock to metadata - If the CAR does not have a clock (no network
or bad clock) then Radio RDS could be used as a proxy.
2. Add support for emergency announcement - If the CAR wants to make an
emergency announcement.
2.1 Add support for callbacks.
Bug: b/24807501
Bug: b/22701655
Change-Id: Ie5ada889bb6dfc4a2c1b02fc1db2d48d6899bcde
(cherry picked from commit 5768372922fbdfa47afef5bb414c69d606e7c1d2)
A simple tool so that the HAL can be poked using a standalone binary.
Useful when changing the HAL and ensuring that HAL changes are
consistent with the required behavior.
Bug: b/24807501
Bug: b/22701655
Change-Id: I5aa3b614f83c0fd361787346a2c6d6c383fc8519
(cherry picked from commit 611bb7397be3fa341b3ef80f7a252850c68c2597)
Fix problem with defaulting to MONO playback on USB devices that
report 1 & 2 channels.
Bug: 24366970
Change-Id: I6ee1376be998ad1aade66927bf64ff5a2518c0f4
SwiftShader processes 2x2 tiles of pixels simultaneously.
4 bytes of padding are required for reading 4-byte pixels in 8-byte chunks.
Change-Id: Ieb73df07859251cd0e5a649f9f3f16a318276e28