summaryrefslogtreecommitdiffstats
path: root/core/java/android/hardware/soundtrigger
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused imports in frameworks/base.John Spurlock2015-02-281-3/+0
| | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* resolved conflicts for merge of 517e0274 to lmp-mr1-dev-plus-aospAlex Klyubin2015-02-111-1/+1
|\ | | | | | | Change-Id: Ic20b6c8851458483dd73a144bd5ae6e8d141e62a
| * Move hidden ApplicationInfo flags into a separate field.Alex Klyubin2015-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The public API field android.content.pm.ApplicationInfo.flags can support only 32 flags. This limit has been reached. As a short term workaround to enable new public flags to be added, this CL moves flags which are not public API into a separate new field privateFlags and renames the affected flags constants accordingly (e.g., FLAG_PRIVILEGED is now PRIVATE_FLAG_PRIVILEGED). The new privateFlags field is not public API and should not be used for flags that are public API. The flags that are moved out of ApplicationInfo.flags are: * FLAG_HIDDEN, * FLAG_CANT_SAVE_STATE, * FLAG_FORWARD_LOCK, and * FLAG_PRIVILEGED. NOTE: This changes the format of packages.xml. Prior to this CL flags were stored in the "flags" attribute. With this CL, the public flags are stored in a new "publicFlags" attribute and private flags are stored in a new "privateFlags" attribute. The old "flags" attribute is interpreted by using the old values of hidden/private flags. Change-Id: Ie23eb8ddd5129de3c6e008c5261b639e22182ee5
* | Don't unload the sound model on stopRecognitionSandeep Siddhartha2014-11-121-0/+59
|/ | | | | | | | This helps us in majority of the scenarios where the sound model doesn't change across start/stop calls. Bug: 17954633 Change-Id: Ibff817bb69bc69d2bb3a2603460fed596688b892
* SoundTrigger: fix KeyphraseRecognitionEvent parcelingEric Laurent2014-09-121-2/+3
| | | | | | | | Always include the Audioformat in the parcel if not null. Bug: 17489186. Change-Id: I8bea031942b55078e5637959d5bf70961d134733
* SoundTrigger: fix capture format in recognition eventEric Laurent2014-09-051-2/+3
| | | | | | | | | | Also include capture format in recognition event if capture is available for streaming. It was only included if trigger was contained in event. Bug: 17409062 Bug: 16731718 Change-Id: I5bf566e6bda57f23c870b4a1293e9b6d15d51e5a
* Fix an issue with locale for managing intentSandeep Siddhartha2014-08-221-1/+2
| | | | | Bug: 17187528 Change-Id: I254d838b6b37934ce81dd1fcd5a047b50d593887
* Fix the Locale story in the hotword APISandeep Siddhartha2014-08-222-37/+72
| | | | | | | | | | | | | | Tighten the API by taking in a locale rather than a string tag. Tighten the checks when reading the enrollment metadata, bail out if any attribute is missing or invalid. Add missing recycle call for a TypedArray Stop recognition when sound model(s) change. This is needed during un-enrollment/re-enrollment. Bug: 17187528 Bug: 17205230 Change-Id: Idb00b51ef8c4ea0a8f8993decea582223181fa3d
* Add debugging info to VIS via dump()Sandeep Siddhartha2014-08-111-0/+8
| | | | Change-Id: I9e8f4536de309256db835b30d94765bfc27d4e80
* Handle microphone contention/Phone calls while recognition is activeSandeep Siddhartha2014-08-071-0/+8
| | | | | | | | | | | | | | | | Internally we pause the recognition when: - a phone call is active/off-hook/ringing - or some other application grabs the microphone we auto-resume when the condition that caused us to pause reverses. Both these events are notified to the client via callbacks so that they can choose to display on their UI, that the recognition is paused for some reason. Bug: 16515468 Bug: 16740806 Bug: 16514535 Change-Id: Ib274d68522c8cf37d42402c875b16159957657f0
* SoundTrigger API update.Eric Laurent2014-08-042-33/+261
| | | | | | | | | | | | Add sound model update callback. Add native service state change callback. Add vendor UUID in sound model description. Add coarse confidence level in recognition event. Add capture format in recognition event. Bug: 12378680. Change-Id: Id63437819ec7b9a4a69e1ff6185b747e20cad95e
* Add a flag for multiple triggers with same recognition sessionSandeep Siddhartha2014-08-011-5/+13
| | | | | | | | | | | | | | Also annotate the flags with @IntDef to make things clearer and safer Add more debug logging Revert to start/stop being synchronous since telephony and microphone will need to be handled internally. Bug: 16731586 Bug: 16514535 Bug: 16549061 Change-Id: I83695d52e9547269c95d443e4d921c9238b7401e
* Make startRecognition asyncSandeep Siddhartha2014-07-301-2/+4
| | | | | | | | | | | | | | - This is needed for telephony and audio integration which should happen via async callbacks that'll end up starting/stopping recognition. e.g. if a startRecognition happens when in a phone call - the onDetectionStarted will get called once the phone call ends. For now the transient stoppages due to internal reasons will not be propagated back to the client. Bug: 16514535 Bug: 16515468 Change-Id: I1b2b8edd28f5c5e67c453f66c23e1a67a626114e
* Read the keyphrase ID from the recognition eventSandeep Siddhartha2014-07-293-10/+163
| | | | | Bug: 16516658 Change-Id: Ibeee81c9543aa1091bb075066cfc2269107f13c0
* Use blob (shared memory) for large data in sound model/recognition event/configSandeep Siddhartha2014-07-283-28/+90
| | | | | | | Also add a missing null check in writeBlob Bug: 16516353 Change-Id: Ie702f8daae541cab7c2cee6e13d49e7fc84c84e1
* Fix synchronization issues in AlwaysOnHotwordDetectorSandeep Siddhartha2014-07-202-10/+18
| | | | | | | | | | | | | | | | | | | - Remove unnecessary recognition status from AlwaysOnHotwordDetector - Remove unnecessary recognition started callback from IRecognitionStatusCallback - Fix a bug around the fact that we weren't picking up enrollment at runtime because we were storing the availability at instantiation time. - Handle 0-length arrays in SoundTrigger classes while parceling/unparceling - Fix issue in SoundTrigger helper where we were not comparing binders for start/stop calls - Unload the previous model when starting a new recognition - Add more debug logging Change-Id: Icc56d7f3dd1ffa49a8cfeea49080e3ab4d342c32
* Move sound trigger calls to VoiceInteractionManagerServiceSandeep Siddhartha2014-07-209-535/+366
| | | | | | - This ensures that any data being loaded on the DSP comes from the framework Change-Id: Ie15f0994850ba8f298ca07c49fe0b89e066d9e2b
* Add recognition modes to the enrollment metadataSandeep Siddhartha2014-07-163-12/+24
| | | | | | | | | | | | | | This will be used by the Voice interaction service to determine what type of recognition may be run on the DSP. e.g. If the DSP supports voice trigger only for the given keyphrase, the voice interaction service may want to perform user identification at its end. Also support keyphrase metadata for all keyphrases and locales. In case the enrollment app supports open-ended keyphrases, it can leave the keyphrase text to be empty similarly, if the enrollment app supports all locales, it can leave the supported locales attribute to be empty, Change-Id: I782a17a877fc79ed569fa7c3a81697641182590b
* Add code for isKeyphraseActive and some logging to help debug issuesSandeep Siddhartha2014-07-161-3/+6
| | | | Change-Id: I89f2090be5a5fe5f7c0da1648a0d46a093893fe2
* Hook in startRecogniton callSandeep Siddhartha2014-07-154-53/+123
| | | | | | Add required info to the sound model database: users & recognition modes Change-Id: I6e12cbc6342a2767c0e3d8328c0a3be899ac9952
* Always on hotword changesSandeep2014-07-109-1/+772
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add model management API skeleton to VoiceInteractionManagerService Add an "interactor" for all always-on APIs - The VoiceInteractionService will get an interactor for the given keyphrase and locale. - It can then check the availability and call methods to start and stop recognition on this interactor. - Add a common class to deal with SoundTrigger APIs - Cleanup the keyphrase representation: We now have separate representations for the keyphrase metadata and a keyphrase being used for recognition. This'll also help us to handle custom keyphrases in the future easily. This also ensures that for use within the framework, we rely on the ID of the KeyphraseInfo rather than comparing the text everytime. Add a callback for the AlwaysOnHotwordDetector This callback should be passed in by the VoiceInteractionService and is used to notify it of recognition events. Change-Id: I26252298773024f53a10cdd2af4404a4e6d74aae
* SoundTrigger: update APIEric Laurent2014-07-082-14/+67
| | | | | | | | | | | | | class Keyphrase: replaced number of users by list of user IDs. class RecognitionEvent: added capture preamble duration. class KeyphraseRecognitionEvent: add keyphrase ID and explicit list of user ID/confidence level pairs. startRecognition(): takes a RecognitionConfig specifying the list of keyphrases to listen to as well as for each keyphrase the recognition mode, users and min confidence levels for each user. Bug: 12378680. Change-Id: I57036cc83b5d9e90512b8bb3f951af3a4a74c0ce
* Initial code for listing/storing sound modelsSandeep Siddhartha2014-07-081-28/+34
| | | | | | | | | | | | | | - We use a DB to store and persist the sound models. - This'll be used by SoundTriggerModelManager, a service that lists, deletes and registers new models. This'll be used by the enrollment client to enroll and unenroll users. - This needs the unique identifiers for sound model & keyphrases to be present in the respective data structures This is very early stage so please point out any concerns. Change-Id: I82962895bf326167458f20e6ba995295551de025
* Add SoundTrigger native service interfaceEric Laurent2014-06-042-0/+502
Add JAVA framework interface for native sound trigger service. The interface allows for: - enumeration of sound trigger hardware modules and their properties - load/unload sound models - start, stop and receive recognition events on sound models. Change-Id: I51542f38f5359ffbbf79d2cbd7c9ea1ee10c9c18