bc561eb06e0ac0f99f0a0589163bf8affc3516ae |
|
12-May-2017 |
Felipe Leme <felipeal@google.com> |
Don't print sensitive data on AssistStructure.dump() Test: manual verification Bug: 38205945 Change-Id: Ic184ee6da313a2c0f8e0dd11979f6985d8023140
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/AssistVisualizer.java
|
331ebfa7751a99a9e740d125c5ac4381a0151090 |
|
13-Apr-2016 |
Dianne Hackborn <hackbod@google.com> |
(Test only) A little more debug output for voice interaction test Seeing the font size and stuff is useful. Change-Id: I6fac69db97c0b81c09546be644d0784650b6f8ca
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/AssistVisualizer.java
|
6f0fdc4167ad906fc7409856e86cd0cc601c3b53 |
|
07-Jul-2015 |
Dianne Hackborn <hackbod@google.com> |
Implement better handling of text in assist. TextView is now much smarter about the text it reports, limiting it to what is visible (plus a bit more). Also add a facility for it to report where the lines of text are, both as offsets in the text string and their baselines on screen. Part of fixing issue #22328792: Fix scalability issues in AssistStructure Change-Id: Idddb8c3a3331355f381e2d4af06d520fe7c7ce8e
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/AssistVisualizer.java
|
70d8be7616a450e9b7ef09c8bda5a8b25936a29a |
|
23-Jun-2015 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #22013372: Assist should take translationX and friends... ...into account when calculating the position information Actually what we need here is the full transformation matrix, if it is available. And that means actually computing the location of views on the screen requires doing this all through transformations, so the AssistVisualizer has been changed to do this (while still also keeping the old mechanism for comparison to verify that things are working correctly). Also added new properties for elevation and alpha. And optimized the parcelling of AssistStructure to not write things that aren't needed; this reduces the parcelled size by about half. Change-Id: I50b0dd2e6599c74701a5d188617a3eff64b07d03
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/AssistVisualizer.java
|
16036f26847f3f1a88a093fb776bf081008ff8d8 |
|
22-Jun-2015 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #20654534: API Review: android.app.assist Remove the old classes. Change-Id: I949350cadc5fc304e2651d7db0ffd38e45db9b6e
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/AssistVisualizer.java
|
5688b03f7f4fafd671451ff73103be0f2388b32e |
|
03-Apr-2015 |
Dianne Hackborn <hackbod@google.com> |
Add quick and dirty async AssistStructure building. 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
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/AssistVisualizer.java
|
6251f0d42be7da54d7f1bc8f570a44883b7d9052 |
|
02-Apr-2015 |
Dianne Hackborn <hackbod@google.com> |
Rework assist to walk down the view hierarchy. Instead of collecting all of the data directly in AssistStructure, we now have a dispatch mechanism down the hierarchy to do so. While doing this, also added the ability to automatically collect assist data from AccessibilityNodeProviders attached to views (so now we see all of the data in for example Calendar). This is a first step needed towards being able to asynchronously populate assist data. Change-Id: I59ee1ea104ca8207bad8df7a38195d93da1adea7
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/AssistVisualizer.java
|
0b071a08d8dec3e68937590938199273f3b123cc |
|
20-Mar-2015 |
Dianne Hackborn <hackbod@google.com> |
Add view ID, rework assist API. Add view ID information to the assist structure. Also rework the API to simplify how it works by removing the ViewNode wrapper around ViewNodeImpl -- these are now just the same thing. And then add complexity by introducing a formal WindowNode object that contains the top-level window information (so I can add in some more window-specific info in the future). Change-Id: I5d525cf61ab6a73193e5cceb4c09d2d21cc27bae
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/AssistVisualizer.java
|
27eac1d58fe0b7ca3a2e27f5ed64eff232745f45 |
|
17-Mar-2015 |
Dianne Hackborn <hackbod@google.com> |
Add ability to get a screenshot for assist. New flag you pass in to startSession() to say you want it, new callback on VoiceInteractionSession to receive it. Change-Id: I61fdcfdee41a60d46036a2ef16681a9b4181115a
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/AssistVisualizer.java
|
a83ce1dd2ad3a6b71e90ff4845afc1299fe17b9d |
|
11-Mar-2015 |
Dianne Hackborn <hackbod@google.com> |
More work on collecting assist data. 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
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/AssistVisualizer.java
|
ffeecb1bfb9b71f4b62c9ef1fbf7b58a7a63f655 |
|
25-Feb-2015 |
Dianne Hackborn <hackbod@google.com> |
Rework voice interaction session lifecycle. 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
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/AssistVisualizer.java
|
ae6688b09649447e57468b3e7935691bc09ec9b9 |
|
12-Feb-2015 |
Dianne Hackborn <hackbod@google.com> |
Update voice interaction layer for new UI design. 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
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/AssistVisualizer.java
|