d86b8fea43ebb6e5c31691b44d8ceb0d8d3c9072 |
|
03-Jun-2017 |
Jeff Sharkey <jsharkey@android.com> |
Annotate @SystemApi with required permissions. Most @SystemApi methods should be protected with system (or higher) permissions, so annotate common methods with @RequiresPermission to make automatic verification easier. Verification is really only relevant when calling into system services (where permissions checking can happen on the other side of a Binder call), so annotate managers with the new @SystemService annotation, which is now automatically documented. This is purely a docs change; no logic changes are being made. Test: make -j32 update-api && make -j32 offline-sdk-docs Bug: 62263906 Change-Id: I2554227202d84465676aa4ab0dd336b5c45fc651
/frameworks/base/media/java/android/media/soundtrigger/SoundTriggerDetector.java
|
4ef887457af1bdece916e092a806a448f03e2f3e |
|
12-Jul-2016 |
Chris Thornton <thorntonc@google.com> |
SoundTriggerDetector should look at the return code to honour success The SoundTriggerDetector calls to start/stop recognition should also check what the return code from the SoundTriggerService are saying - otherwise it looks like recognition has started when there's been a problem. Change-Id: Icd6d2ab5ec30a5ffe66082311a77cca376a37148
/frameworks/base/media/java/android/media/soundtrigger/SoundTriggerDetector.java
|
f47f173b06e2972bb376da8ff11db3a83c21d10b |
|
19-Feb-2016 |
Arunesh Mishra <arunesh@google.com> |
Fix AlwaysOnHotwordDetector recognition event bug. Parcelables don't work well with inheritance. So changed the IRecognitionStatusCallback to have onKeyphraseDetected() and onGenericSoundTriggerDetected() for those respective events. Made corresponding changes to AlwaysOnHotwordDetector and SoundTriggerDetector. Bug: 27250528 Change-Id: Ic08a431e7cc4248c688b05c865348170246de576
/frameworks/base/media/java/android/media/soundtrigger/SoundTriggerDetector.java
|
3fff7f5634ca788c1c84b6f1b316819ffd4c7cb2 |
|
09-Feb-2016 |
Arunesh Mishra <arunesh@google.com> |
SoundTriggerHelper changes for GenericSoundModels. - Refactoring SoundTriggerHelper to handle generic sound models. - Ability to store multiple models, callback and state information. - Separate out initialization to be done per voice model, per any model and per generic model. - Minor change to the API exposed -- removing the Handler from the createSoundTriggerDetector call. - Added callback processing for onRecognitionEvent(). - Added logic for stopAll(). - Changes to the SoundTriggerTestApp to start/stop recognition. - Multiple models (3). - Ability to start/stop/load/unload individual models. Bug: 22860713 Bug: 27222043 Change-Id: Ie5d811babb956bead653fb560a43f1e549ed11bd
/frameworks/base/media/java/android/media/soundtrigger/SoundTriggerDetector.java
|
6a8fd7935fdc67b1cd43a11dc65abd4f8e4152ce |
|
28-Jan-2016 |
Arunesh Mishra <arunesh@google.com> |
SoundTrigger system API changes. This CL exposes the SoundTriggerManager and SoundTriggerDetector as a system/privileged API. The API is protected by a system/priv permission and also via SEpolicy rules. Bug: 22860713 Change-Id: I07ee3548ef0d5c584570004645267f5021dfa84c
/frameworks/base/media/java/android/media/soundtrigger/SoundTriggerDetector.java
|
a772e5fc062c8de48cb9c1d61755110f6b2e189b |
|
25-Jan-2016 |
Arunesh Mishra <arunesh@google.com> |
SoundTrigger API improvements. This CL implements the SoundTrigger API improvements as given in b/22860713. Only the java-level parts are implemented in this CL. Key changes include: * Addition of a SoundTriggerManager/SoundTriggerDetector system API to manage the sound-trigger based sound models. * Addition of a SoundTriggerService service that manages all sound models including voice (keyphrase) and sound-trigger based models. * Includes logic to write sound-trigger based models to the database. * VoiceInteractionManager service now uses SoundTriggerService instead of SoundTriggerHelper. Bug: 22860713 Change-Id: I7b5c0ed80702527c4460372efeb5e542d3693a69
/frameworks/base/media/java/android/media/soundtrigger/SoundTriggerDetector.java
|