Chih-Hung Hsieh
69e9179327
Fix sizeof warnings on unusual calloc
...
Test: make tidy-hardware-libhardware-modules-soundtrigger_subset
Change-Id: If1afcd4834461a2d1f855832dc89b8ae54bd8e2f
2022-12-09 12:41:40 -08:00
Bob Badour
d7984ccf02
[LSC] Add LOCAL_LICENSE_KINDS to hardware/libhardware
...
Added SPDX-license-identifier-Apache-2.0 to:
modules/audio/Android.bp
modules/audio_remote_submix/Android.bp
modules/audio_remote_submix/tests/Android.bp
modules/camera/3_0/Android.bp
modules/consumerir/Android.bp
modules/fingerprint/Android.bp
modules/gralloc/Android.mk
modules/hwcomposer/Android.bp
modules/input/evdev/Android.bp
modules/local_time/Android.bp
modules/nfc-nci/Android.bp
modules/nfc/Android.bp
modules/power/Android.bp
modules/radio/Android.bp
modules/sensors/Android.bp
modules/sensors/Android.mk
modules/sensors/dynamic_sensor/Android.bp
modules/sensors/dynamic_sensor/HidUtils/Android.bp
modules/soundtrigger/Android.bp
modules/thermal/Android.bp
modules/tv_input/Android.bp
modules/usbaudio/Android.bp
modules/usbcamera/Android.bp
modules/vibrator/Android.bp
modules/vr/Android.bp
tests/camera3/Android.bp
tests/fingerprint/Android.bp
tests/hardware/Android.bp
tests/hwc/Android.bp
tests/input/evdev/Android.bp
tests/nusensors/Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
Android.bp
modules/camera/3_4/Android.mk
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: I28924363e6c478f5d0b465b63534c4efd041c770
2021-02-12 20:51:13 -08:00
mike dooley
737f4ce99d
Converting sound trigger v2.2 getModelState to be asynchronous
...
Test: built android with checkbuild flag
Change-Id: I8e927125dcedbc4b98ceb2886806225b2851c082
Bug-Id: 70206501
2018-11-08 08:11:02 +01:00
Michael Dooley
c2704a5fac
Revert "Revert "Adding getModelState API to sound trigger""
...
This reverts commit 5ac2672ce3
.
Reason for revert: rolling forward with fix
Change-Id: Ib7d321f06c94f06a22e962542c9a4c8744702134
2018-10-16 19:55:18 +00:00
Michael Dooley
5ac2672ce3
Revert "Adding getModelState API to sound trigger"
...
This reverts commit ce0c253ae7
.
Reason for revert: fix build breakage
Change-Id: I2a29aff8a33336e3a514ae681d7887cf3fe2d2c2
2018-09-14 16:10:59 +00:00
mike dooley
ce0c253ae7
Adding getModelState API to sound trigger
...
Test: built android
Bug-Id: 70206501
Change-Id: I2c84fa941eed3f887974f2377655eb0a700542b0
2018-09-12 11:50:31 +02:00
Dan Willemsen
86e247ae89
Convert to Android.bp
...
See build/soong/README.md for more information
Test: mmma hardware/libhardware
Change-Id: Ibb7e2af9d55f581e951d8996cea5e52cd0766b04
2017-12-27 11:05:29 -08:00
Mark Salyzyn
1ae7379baa
resolve merge conflicts of 7c451a93
to oc-dev-plus-aosp
...
Test: I solemnly swear I tested this conflict resolution.
Bug: 34250038
Change-Id: I4196a6d5a1365106643ac6c1548fd86faffead6f
2017-04-12 09:11:38 -07:00
Mark Salyzyn
d88dfe8607
libhardware: deprecate cutils/log.h
...
Replace cutils/log.h with log/log.h. Sort headers. Minimize conflicts.
Add missing required headers.
Test: compile
Bug: 34250038
Change-Id: I5c0f231cbfed90b73e0538c9d32ad3226c7cc5e4
2017-04-11 10:50:06 -07:00
Po-Chien Hsueh
c535b2fded
Move default HAL libraries to vendor
...
Libraries under /hardware/libhardware/modules should go to /vendor/.
These are conventionl HALs for default implementations, most of them
are not used.
Camera and thermal are already moved in other CLs.
Bug: 35907904
Test: Compiled and checked install path. Verified on Sailfish with
$ lsof | grep default.
Change-Id: Ibde574001c01cbfea014a20a0fbbb3265e6cdc8a
2017-03-07 11:28:32 +08:00
Arunesh Mishra
57ec0192a5
Add "clear" command.
...
Minor visual fixes for the command line interface.
Bug: 27279191
Change-Id: Ibb20231125c5d46bffc9241711c46dd8101dffb3
2016-04-08 09:55:16 -07:00
Ryan Bavetta
0718681e3e
Merge "Fix build error in stub soundtrigger HAL" into nyc-dev
2016-04-01 22:07:14 +00:00
Chris Thornton
0a965102e7
Bump the sound trigger device api's minor version number.
...
This is needed so we know if we should look for the
stop_all_recognitions function.
Change-Id: Ifa1d7ac0fa293e04bf80729bf34fefa48e74b8bb
2016-03-30 11:25:11 -07:00
Ryan Bavetta
12b20e31d1
Fix build error in stub soundtrigger HAL
...
Also combines sound model events and trigger events
BUG:27852833
Change-Id: I277b35a5b32c18b09a2c68024f30f9b981688900
2016-03-29 13:09:51 -07:00
Chris Thornton
42a448d790
Adds stop_all_recognitions as an optional method to the sound trigger hal.
...
Change-Id: I6c905b79673fe21782f5dc5f3abc4c2ac75de805
2016-03-29 09:19:44 -07:00
Andy Hung
b149109eef
Merge "Update audio services for 64 bit compilation" into nyc-dev
2016-03-18 20:23:26 +00:00
Andy Hung
19540e344b
Update audio services for 64 bit compilation
...
Bug: 27479136
Change-Id: I1cb6baf3c507c7004b3245176727be1fd96174df
2016-03-18 10:43:05 -07:00
Ryan Bavetta
a8328a37e5
Allows triggering stub HAL by sound model by UUID
...
BUG: 27604763
Change-Id: I906f6f3c96ae148a7636b5481cb89f83ddb81a03
2016-03-11 22:20:30 -08:00
Ryan Bavetta
9beb06c383
Stub HAL now can test abort and fail events
...
BUG:27278692
Change-Id: Ibd03e8a13a6bd3f25b312c94436ff9f8ea2d305a
2016-02-29 18:37:29 -08:00
Arunesh Mishra
d0535ae18c
Run network thread on open.
...
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
2016-02-21 16:24:15 -08:00
Arunesh Mishra
e1df8138dc
Stub sound trigger hal fix for lock release.
...
Bug: 27279191
Change-Id: If339732cac782d85dc74dba9f1fb92c5a8d0c40d
2016-02-20 17:34:12 -08:00
Ryan Bavetta
f9f0871158
Fix 'end' command, initialize next in linked list
...
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
2016-02-19 21:38:44 -08:00
Arunesh Mishra
7db0a7a447
Minor sound trigger stub hal fixes.
...
Bug: 27227051
Change-Id: I90209689cfb501efc8345e140c985c25103961d7
2016-02-19 16:20:10 -08:00
Arunesh Mishra
f1d59fc9d0
Stub sound trigger HAL changes:
...
- Added a simple command parsing ability for text commands.
- Ability to output text via the socket interface.
Bug: 27227051
Change-Id: I9ea06897d69cf55b58aba5cc30f1c32773b3da00
2016-02-17 16:06:11 -08:00
Ryan Bavetta
c2bdc551f0
Adds sound model update event, adds helper methods
...
Change-Id: Ifb03843a51a796e1fdb224d4671a52f84b4fceed
2016-02-15 15:51:46 -08:00
Ryan Bavetta
cc6541c740
Adds GenericSoundModel Event Support to Stub HAL
...
Change-Id: I2a021cbd12a4e17954dcf84528c80731054f2fd3
2016-02-10 18:40:45 +00:00
Ryan Bavetta
be0c8fdc94
Fixs for soundtrigger stub HAL
...
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
2016-02-01 15:26:09 -08:00
Ryan Bavetta
4615aad645
Allow Multiple Triggers and Simulate DSP Events
...
Triggers can be sent via socket connection from an app
or from the command line.
BUG: 22860713
Change-Id: I7ba8fa50286be2d08f2699e601e7c76138cc4831
2016-01-28 03:02:08 +00:00
Eric Laurent
83cd830918
sound_trigger HAL update
...
Bug: 12378680.
Change-Id: I556cd316cbff3b8d88331319ca0ad65a09aae0f9
2014-07-31 11:16:16 -07:00
Eric Laurent
30f3e6d348
sound trigger: update HAL
...
New start_recognition() prototype with recognition
configuration structure specifying:
- List of keyphrases to listen to.
- Recognition mode for each keyphrase
- List of users and min confidence levels for each users
New recognition event format with confidence level and user ID
for each user.
Bug: 12378680.
Change-Id: I95e998c735321ceb5c27f477d894b574a6eca860
2014-07-07 10:15:45 -07:00
Eric Laurent
cbca9056de
sound trigger test/stub HAL - WIP
...
Change-Id: Ie8120df144662b12bba41e2346bac3ce816f9838
2014-06-04 14:34:43 -07:00