summaryrefslogtreecommitdiff
path: root/core/java/android/app/AssistContent.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue #20654534: API Review: android.app.assistDianne Hackborn2015-06-221-219/+0
| | | | | | Remove the old classes. Change-Id: I949350cadc5fc304e2651d7db0ffd38e45db9b6e
* Allow 3P apps to provide structured data within AssistContent.Chirag Shah2015-06-151-0/+26
| | | | | | | | | | | | | | | | | | For providing structured metadata to the assistant, we've decided to standardize on JSON-LD (met with Paige/Ulas/Fabian), and decided the data to be specified via: AssistContent.setStructuredData(String structuredDataJson) This method can be documented for 3P developers as allowing developers to provide metadata to the assistant with the JSON-LD standard. This would be centered more about content displayed on the screen, rather than actions based, so we added it to the AssistContent class Updated doc: go/setStructuredData Change-Id: I816f69fd6896df822e30d6c71d840bd01f47e544
* Fix APIs.Dianne Hackborn2015-06-111-0/+11
| | | | | | | | | | | Issue #21039494: API Review: android.os.PowerManager.isDeviceIdleMode() Issue #21347000: API Review: android.content.IntentFilter Issue #20654534: API Review: android.app.assist Also allow use of ActivityManager.setWatchHeapLimit on any platform build as long as the calling app is debuggable. Change-Id: Ic597e596fa772fcdf2553b64f444b3d9269e8b92
* Fix NPE.Dianne Hackborn2015-06-091-2/+4
| | | | Change-Id: Iea1faf4b3070ed29884e133e3bab54401bd77bcf
* Don't forget to parcel mIsAppProvidedIntentAdam Skory2015-06-051-0/+2
| | | | | | | If you forget to parcel it like I did, it's not going to do you much good. Change-Id: I85191594e7ffab2c36aeed317932b126da288bdf
* Record provision of custom Intents in AssistContentAdam Skory2015-06-051-9/+31
| | | | | | | | | | | | | Simplifies behavior wrt automatically setting the web URI for ACTION_VIEW Intents, by not doing so for custom Intents. Adds a boolean isAppProvidedIntent() as a signal for recepients of the AssistContent that a custom Intent was provided. Custom Intents are more likely to be relevant. Change-Id: Ibe4bfa040eba904411b9820ab4ddfcf509413829
* More API changes.Dianne Hackborn2015-06-021-24/+12
| | | | | | | | | | | | | 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
* Add new API to set URI on AssistContent.Dianne Hackborn2015-05-281-0/+44
| | | | | | | | | 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
* Add support for schema.org actions in the assist data bundle.Chirag Shah2015-04-021-1/+1
| | | | | | | | | | | | Allow developers to include schema.org metadata to represent an action a user is performing on the screen. This will allow applications to report content a user is viewing (ViewAction), music the user is listening to (ListenAction), etc. Design: http://go/appindexingapi:bundle Change-Id: I34544880ac877ffe44671139585304f0498a64eb
* More work on collecting assist data.Dianne Hackborn2015-03-121-0/+124
Optimize parceling of AssistData (which is now renamed to AssistStructure) by pooling duplicated class name strings. Change text associated with a view node to a CharSequence, so styling information comes along. Include global text attributes -- size, colors, etc. Introduce a new AssistContent structure, which allows us to propagate information about the intent and data the activity is looking at. This further allows us to propagate permission grants, so the assistant can dig in to that data. The default implementation propagates the base intent of an activity, so if for example you bring up the assistant while doing a share the assistant itself has the same information and access that was given to the share activity (so it could for example share it in another way if it wanted to). Did some optimization of loading PersistableBundle from xml, to avoid duplicating hash maps and such. Changed how we dispatch ACTION_ASSIST to no longer include the more detailed AssistStructure (and new AssistContent) data when launching; now the example code that intercepts that needs to be sure to ask for assist data when it starts its session. This is more like it will finally be, and allows us to get to the UI more quickly. Change-Id: I88420a55761bf48d34ce3013e81bd96a0e087637