summaryrefslogtreecommitdiffstats
path: root/core/java/android/service/voice
Commit message (Collapse)AuthorAgeFilesLines
* NullPointerException when starting VoiceInteractionManagerServiceEdward Savage-Jones2016-03-271-0/+4
| | | | | | | | | | | If an end user disables the package that implements support for Voice Assist (Google App) and reboots, an NPE is thrown during boot, which results in the device getting stuck at the boot animation. Recovery is not possible without USB debugging enabled, leaving factory reset/user data wipe as the only other option. Change-Id: I9c161fff7f096deee13bf8e37d951e20898ae3ff
* Work on issue #21516866: Implement voice interaction in ResolverActivityDianne Hackborn2015-07-282-0/+130
| | | | | | | | | | | | | | | The main change here is to not allow the dialog to go in to its "focus on the last app the user selected" when running in voice interaction mode, instead just always giving a simple list. This also fixes some problems with cleaning up active commands when an activity finishes and not forcing the current session to go away when the screen is turned off. Also added some debug help, having activity print the state of the voice interactor. Change-Id: Ifebee9c74d78398a730a280bb4970f47789dadf5
* Merge "Add callback to voice interaction session for lockscreen shown" into ↵Jorim Jaggi2015-07-212-0/+18
|\ | | | | | | mnc-dev
| * Add callback to voice interaction session for lockscreen shownJorim Jaggi2015-07-212-0/+18
| | | | | | | | | | Bug: 22402726 Change-Id: Iaf83e2f2b0389d74b6ecf480aa91a34443803f7b
* | Fix issue #22564918: Request is inactiveDianne Hackborn2015-07-201-2/+32
|/ | | | | | | | | Add Request.isActive() API. Also improve documentation to tell people what things cause it to become inactive. And fix a race where we were modifying the active list from outside the main thread without locking it. Change-Id: I9248e014126cb121612edbe595108ace753456e2
* Fix issue #22531747: Assist info should declare if user has disabled...Dianne Hackborn2015-07-201-5/+38
| | | | | | | | | | | | | | | ...context and/or screenshot Added new API to find out what contextual data has been globally disabled. Also updated various documentation to make it clear what kind of contextual data you will get (and when it will be null). Also added a new Activity.showAssist() API because... well, I was already in there, it was easy to do, it is safe, and maybe people will build cool things with it. Change-Id: Ia553d6bcdd098dc0fce4b9237fbfaca9652fc74b
* Merge "Implement issue #22403908: Enable assistant to refuse context ↵Dianne Hackborn2015-07-152-3/+56
|\ | | | | | | sharing" into mnc-dev
| * Implement issue #22403908: Enable assistant to refuse context sharingDianne Hackborn2015-07-152-3/+56
| | | | | | | | | | | | | | New APIs allow the voice interaction service to set/retrieve a filter for which of the show flags are allowed. Change-Id: I588cbe55afee0548ad3afa22d3a7d3bc43cb54a6
* | Fix issue #22124996: VI: Command Request not ActiveDianne Hackborn2015-07-151-1/+6
|/ | | | | | | This stupid thing wasn't even completely implemented in HandlerCaller! D'oh! Change-Id: I0dac42c208fa0f08a6e20a6cb17b072f51efcaa7
* Fix issue #22328792: Fix scalability issues in AssistStructureDianne Hackborn2015-07-091-11/+61
| | | | | | | | | | | | | | | We can now stream the AssistStructure across processes, avoiding IPC size limitations for large structures. There is also a new API that gets called on the VoiceInteractionSession if there is a failure retrieving the assist data. Also fix issue #22351981: Runtime restart due to ANR in system server, getting rid of a deadlock. And also tweak object lifecycles to try to avoid keeping around in an app the previous AssistStructure after we request a new one. Change-Id: Ifb136a0d31a14e56a8db6b90768d9fc65557a17f
* Fix issue #20672970: Notifications are not dismissed on hot word detectionDianne Hackborn2015-07-011-0/+15
| | | | | | | Add new VoiceInteractionSession.closeSystemDialogs() API that closes everything except the session itself. Change-Id: If45f1e120d8ca095b6c8055b6485acb5e710820e
* Fix issue #22124996: VI: Command Request not ActiveDianne Hackborn2015-06-303-150/+56
| | | | | | | | | | | Just forgot to add the request to the active set. Also eradicate a bunch of old cruft that has been replaced by the final APIs, and improve voice interaction test to sit fully on top of the final APIs and have a test for command request. Change-Id: Ieff7a6165ebf2a4c5fb80c1ebd020511a2ae63ee
* Fix issue #20654534: API Review: android.app.assistDianne Hackborn2015-06-221-13/+0
| | | | | | Remove the old classes. Change-Id: I949350cadc5fc304e2651d7db0ffd38e45db9b6e
* Merge "Fixing voice panel centering issues in landscape on phone" into mnc-devStefan Kuhne2015-06-181-1/+2
|\
| * Fixing voice panel centering issues in landscape on phoneStefan Kuhne2015-06-181-1/+2
| | | | | | | | | | | | | | | | | | The new assist panel (long press on home) was not centered in landscape mode on phones. This was caused by ignoring the stable insets in the PhoneWindowManager. bug: 21708971 Change-Id: I97a968a41c2966b09eba496fbe57c840affdf9ec
* | Merge "Request application of WindowInsets when setting a content view" into ↵Adam Powell2015-06-171-1/+1
|\ \ | | | | | | | | | mnc-dev
| * | Request application of WindowInsets when setting a content viewAdam Powell2015-06-171-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | For both PhoneWindow and VoiceInteractionSession, call requestApplyInsets when the content view(s) change. This is generally what the developer expects if the new view tree responds to insets in any way. Bug 21620924 Change-Id: I60a88af55bf85217c3587aa37f03fdc3fdce686d
* | Bring back screenshot API.Dianne Hackborn2015-06-161-2/+0
|/ | | | Change-Id: Ia6bdfa300398d39119239f6a88c9992673edb3e0
* Allow different visual and voice assist promptsJames Cook2015-06-051-19/+66
| | | | | | | | | | | | * Introduce VoiceInteractor.Prompt, holding multiple voice prompts ("What genre?", "What genre of music?", "What genre of music, for example classical?") as well as a different visual prompt to show on screen ("Choose genre"). * Migrate framework voice interactor code from a CharSequence prompt to Prompt. Bug: 21024958 Change-Id: Ib595fbdb2801cc558085e9b8366d619ff1d4d656
* More API changes.Dianne Hackborn2015-06-022-11/+36
| | | | | | | | | | | | | Start moving Assist* stuff to android.app.assist. Clean up some more of the VoiceInteractionSession APIs. Clearly document that finish() is not the same as hide(), always call hide() instead, and fix the finish() path to also always do a hide to make sure everything is cleaned up correctly. Change-Id: I962d4069fcb34fe89547a95d395ae1b9fa3b4148
* Update VoiceInteractionService from API review.Dianne Hackborn2015-06-012-142/+391
| | | | | | | This may even manage to retain compatibility with existing binaries! (For now.) Change-Id: I3b1386287a6b9b20b57ac2e2444fd6f458837277
* Add new API to set URI on AssistContent.Dianne Hackborn2015-05-282-14/+28
| | | | | | | | | Also rework how we transfer AssistContent and AssistStructure to the assistant, so they are delivered as completely separate objects rather than the kludgy bundling them in the assist data thing. Change-Id: Ib40cc3b152bafeb358fd3adec564a7dda3a0dd1d
* Remove screenshot APIs.Dianne Hackborn2015-05-182-0/+2
| | | | Change-Id: I1efdb7945bd52f5f43c7103480be3d7dac60018b
* The voice assist may now be launched above the lockscreenSelim Cinek2015-05-053-0/+30
| | | | | | | A possibility was introduced to launch voice assist over the lockscreen using the left keyguard affordance. Change-Id: Ic4618d24256b65441a50d77d0ef59b0ec99b6ead
* Rename supportsAssistGesture to supportsAssistJorim Jaggi2015-05-011-5/+5
| | | | | Bug: 20642759 Change-Id: Idddc786980244cc94570d04fd414540bbad60448
* Fixes to idle alarm scheduling, package importance.Dianne Hackborn2015-04-142-1/+41
| | | | | | | | | | | - Add new API to ask the activity manager what the current importance of a particular package name is (along with a few new useful importance levels). - Fix my last alarm manager change to actually execute the alarms we have now decided should run even while we are idle. Change-Id: I1f14712b4e390770d53b185c96a1b36f6aadd687
* Various fixes and improvements...Dianne Hackborn2015-04-041-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #19912529: VI: VoiceInteractor callback ClassCastException Fix to use correct argument. Issue #19912636: VI: Documentation for VoiceInteractionSession.onBackPressed Added documentation. Issue #19912703: VI: VoiceInteractionSession NPE on Abort Request Maybe fix this -- don't crash if there is no active session. Issue #19953731: VI: Add value index to... ...android.app.VoiceInteractor.PickOptionRequest.Option There is now an optional index integer that can be associated with every Option object. Issue #19912635: VI: Behavior of startActivity when in voice... ...interaction is unexpected We now forcibly finish the current voice interaction task whenever another activity takes focus from it. Issue #20066569: Add API to request heap dumps New ActivityManager API to set the pss limit to generate heap dumps. Also added app ops for assist receiving structure and screenshot data, so that we can track when it does these things. Change-Id: I688d4ff8f0bd0b8b9e3390a32375b4bb7875c1a1
* Merge changes from topic 'assist'Jorim Jaggi2015-04-034-15/+50
|\ | | | | | | | | | | | | | | | | * changes: Add test assist to implement motion study Implement new assist gesture and motion Add flag to voice interactor for supporting assist gesture Add more internal API's for assist Add ability to start voice interaction session directly
| * Add flag to voice interactor for supporting assist gestureJorim Jaggi2015-04-032-7/+10
| | | | | | | | | | | | | | | | | | Add an additional flag to the voice-interaction-service declaration so it can indicate whether it is able to handle the assist gesture. Use that information in SystemUI so it only starts the voice interaction session if the service is able to support it. Change-Id: I62b035ce4f4cf06ee6e7eb0ddc4bf5edbc0e6737
| * Add more internal API's for assistJorim Jaggi2015-04-032-10/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | - When starting a voice interaction session from SysUI, a callback can be passed to know when voice interaction has successfully started - Add a new window type for the voice interaction starting window, which resides behind the voice interaction layer. - SystemUI now also inspects the voice interaction service to get the logo asset for the starting window. - Make VoiceInteractionSession window fullscreen, to accomodate for the visuals. Change-Id: If8c3c445e8b39841f48e8d153e6d1ba81e447286
| * Add ability to start voice interaction session directlyJorim Jaggi2015-04-031-0/+6
| | | | | | | | | | | | | | | | | | Add internal API's for SystemUI to start a voice interaction session directly, without using an intent. Make the assist gesture use that ability, if available. Change-Id: I88ce3c7514714eb45666884847193585a07417a9
* | Add quick and dirty async AssistStructure building.Dianne Hackborn2015-04-021-0/+13
|/ | | | | | | | | | | | | | New APIs on ViewAssistStructure all the app to request to build a sub-tree asynchronously and indicate when it is done with that. The overall AssistStructure is now only flattened and transfered on-demand, when the app receiving it requests its data -- and at that point we can wait for any asynchronous building to complete. New AsyncStructure view is a very simple example of using this to asynchronously build a child view. Change-Id: I14f9199bee64915ad3dc80b2190916ec874308af
* am 1bca3532: am 0e6b4da5: am 5a15bf69: Merge "Frameworks/base: Fix request ↵Andreas Gampe2015-03-281-5/+1
|\ | | | | | | | | | | | | removal in VoiceInteractionSession" * commit '1bca3532687675d81dea805b12577a6c3a00b4c3': Frameworks/base: Fix request removal in VoiceInteractionSession
| * Frameworks/base: Fix request removal in VoiceInteractionSessionAndreas Gampe2015-03-171-5/+1
| | | | | | | | | | | | | | Fix and simplify removeRequest. Bug: 19797138 Change-Id: I0eca877e3109c9f39cebd4c888f166ce334fcc0e
* | Add ability to get a screenshot for assist.Dianne Hackborn2015-03-173-4/+27
| | | | | | | | | | | | | | New flag you pass in to startSession() to say you want it, new callback on VoiceInteractionSession to receive it. Change-Id: I61fdcfdee41a60d46036a2ef16681a9b4181115a
* | Add new voice request for picking from a list.Dianne Hackborn2015-03-161-8/+82
| | | | | | | | | | | | | | | | | | | | | | | | Also add API for voice interaction service to control whether the system should hold a wake lock while it is working with an activity (and actually *do* hold a wake lock while doing so, duh!). And while in there, clean up the launching wake lock to correctly give blame to the app that is launching. Change-Id: I7cc4d566b80f59fe0a9ac51ae9bbb7188a01f433
* | Rework voice interaction session lifecycle.Dianne Hackborn2015-02-253-47/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now have a formal concept of the session being shown and hidden, with it being able to continue running while hidden as long as there is enough RAM. This changes the flow that a VoiceInteractionSession will see: onCreate() is when it is first created, onCreateContentView() is when its UI first needs to be built, onShow() is called each time it needs to be shown and has the arguments given when the show request was made (which has been renamed from startSession to showSession), and then onHide() will be called when the UI is no longer shown. The methods show() and hide() now allow a VoiceInteractionSession subclass to control when it is shown and hidden, working with the shown state being maintained by the system. Change-Id: Ic4a430ec7e8bf76a5441fd0425e2932806170fcc
* | Update voice interaction layer for new UI design.Dianne Hackborn2015-02-136-31/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Can switch from a pure overlay at the top of the screen, to interactive mode with the voice UI drawing at the bottom and pushing its target activity up like an IME. Add mechanism to get assist data to the voice interaction UI. Add some basic visualization of the assist data, outlining where on the screen we have text. Add a test ACTION_ASSIST handler, which can propagate the assist data it gets to the voice interaction session so you can see what kind of data we are getting from different apps. Change-Id: I18312fe1601d7926d1fb96a817638d60f6263771
* | Bring back voice interaction APIs.Dianne Hackborn2015-01-212-72/+14
|/ | | | Change-Id: I6039d7c0b188ac342441c56f7d19994b9a80ba17
* Fix issues with multiple languages and multi-usersSandeep Siddhartha2014-09-151-6/+5
| | | | | | | | | | | | | | | | | | | | | For multi-user the issue was looking into the user ID of the current process instead of the active user. The current process was the system process and the call to UserManager was returning a user handle that wasn't of any use while trying to map sound models to a user. For language, the issue was that we were incorrectly just looking up the model based on the keyphrase id, however we should have also taken the enrolled model's locale into account. Explicitly document that for model management the string representation of locales is a BCP47 language tag. Remove debug logging. Bug: 16798166 Bug: 17462570 Bug: 17463511 Change-Id: Ieffb3e218de63f6e7f40af9705dced481a35b0ad
* Remove old methods : AlwaysOnHotwordDetectorDharmesh Mokani2014-09-081-39/+0
| | | | | Bug: 17389896 Change-Id: I47d0ae3ecad0ce8a74ed65a73309faa541b74a06
* Address API review comment:AlwaysOnHotwordDetectorDharmesh Mokani2014-09-041-1/+40
| | | | | | | - Methods creating an Intent should be named createFooIntent Bug: 17389896 Change-Id: Icb9c9f9ca3a41fca09f79ff22b99988a1ded331f
* Hide the interaction part of VoiceInteractionService.Dianne Hackborn2014-09-022-14/+72
| | | | | | | | Also the ability to start voice activities is turned off, though for testing purposes it can be turned back on with a system property. Change-Id: I867704d32c53beeb851ceea9b45c28bf5c01ef61
* Address API review commentsSandeep Siddhartha2014-08-271-29/+82
| | | | | | | | | - Make Callback an abstract class - Split manage intents into 3 different methods - Remove RECOGNITION_FLAGS_NONE Bug: 17255602 Change-Id: I1329f889bb2ab35938f42d2ecfe755d2b17ec542
* Remove the old API for creating hotword detectorSandeep Siddhartha2014-08-251-11/+0
| | | | | | To be submitted only when the prebuilts have been updated Change-Id: I7136b6a492610e4673f005b2d1682ce90ddb43a5
* Fix conversion of locale from BCP47 language tagSandeep Siddhartha2014-08-231-1/+1
| | | | | Bug: 17187528 Change-Id: Ifcf707c9be736885f3fc79f3c36087ecf9092971
* Fix the Locale story in the hotword APISandeep Siddhartha2014-08-222-8/+24
| | | | | | | | | | | | | | 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
* Turn off voice interaction service restrction for nowDianne Hackborn2014-08-121-1/+2
| | | | | | Need to wait for the prebuilt to update. Change-Id: I5501c2ba23e6e18379aa0859b248446c82de6cdc
* Add 560dpi, and some other stuff.Dianne Hackborn2014-08-121-0/+4
| | | | | | | | | | Like new settings actions for some of the new settings panels. And fix voice interaction services so they require a recognizer. And tweak array map doc to be correct. Blah blah blah. Change-Id: Ib5e66b574b10e7b3fa39723b21046a74e6ead204
* Fix VoiceInteractionService.isActiveService().Barnaby James2014-08-111-1/+1
| | | | Change-Id: Ifda467bfae0d15fe4ea0fd15ffc0e9612401b218