summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "allow top sleeping state in app process verification" into mnc-devGuang Zhu2015-05-091-1/+2
|\
| * allow top sleeping state in app process verificationGuang Zhu2015-05-081-1/+2
| | | | | | | | | | | | | | This happens when an app is launched but has a dialog shown on top of it. Typical reason is a licensing prompt of sorts. Change-Id: Id73f45f54767b869873c62f13aeeb470c1a5cd81
* | Merge "Fix issue #20655182: API Review: ViewAssistStructure" into mnc-devDianne Hackborn2015-05-082-9/+3
|\ \ | |/ |/|
| * Fix issue #20655182: API Review: ViewAssistStructureDianne Hackborn2015-05-072-9/+3
| | | | | | | | | | | | | | | | | | | | | | Fix the various view assist related APIs. Also remove the blockAssist view attribute, and instead use the window's FLAG_SECURE to drive blocking of the entire hierarchy (which is semantically correct, and will protect existing apps that have already indicated they need it). Change-Id: I6beebc86b202809cba0a356cae9607d8d0fb5e78
* | Use new hierarchy viewer protocol in all View subclassesSiva Velusamy2015-05-071-2/+2
| | | | | | | | | | | | | | | | | | A previous CL introduced a new way of encoding view properties for use by heirarchy viewer. This CL updates all views using the old @ExportedProperty annotation to use this new method. The older mechanism will be removed in a subsequent CL. Change-Id: I6cc23b90cd9da1c6ce89b4caffe54874db203452
* | Improve hierarchy viewer dump hierarchy latencySiva Velusamy2015-05-0712-0/+409
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hierarchy Viewer obtains the properties for each view by using reflection and looking for fields and methods that have the @ExportedProperty annotation. Using reflection made it quite slow for large view hierarchies. This CL adds a new method (encode) to each class that wishes to export data to hiererachy viewer. Inside this method, the object can write a sequence of key, value pairs corresponding to the values it wants exported. With this change, the dump hierarchy operation that used to take more than 10 seconds can be performed in a few hundred milliseconds. Change-Id: I199ac2e7ca3c59ebcfec7e6bd201e134c41fd583
* | Merge "improve app crash detection in compatibility test" into mnc-devGuang Zhu2015-05-071-16/+42
|\ \
| * | improve app crash detection in compatibility testGuang Zhu2015-05-071-16/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | In addition to ensuring that process exists, we also need to check that it's the right state. Because crashed foreground activity can still get started as background service. Bug: 20899208 Change-Id: I101e556ce757af1afb66686827c5851dd6fda620
* | | Remove incomplete media router API.Jeff Brown2015-05-065-412/+0
|/ / | | | | | | | | | | | | | | This time not also accidentally deleting frameworks/base/Android.mk. *sigh* Bug: 20641986 Change-Id: I2e43ab1fdf4201fec4d5a5b73c04f27a4a848630
* | Revert "Remove incomplete media router API."Bart Sears2015-05-075-0/+412
| | | | | | | | | | | | | | | | | | This CL has broken all builds on mnc-dev. Reverting until Jeff can take a look at it. This reverts commit 2e5a2051de54e64612e1357d4534c7ec851aa508. Change-Id: Ib9b3569bfebdc7bbfbcb7aee82733b93736c5bb5
* | Remove incomplete media router API.Jeff Brown2015-05-065-412/+0
|/ | | | | Bug: 20641986 Change-Id: I310fadafb5a6b8190a32e5d87f3e1823c87bcef7
* Merge "Extended test to support launching assist above lock screen" into mnc-devSelim Cinek2015-05-055-2/+118
|\
| * Extended test to support launching assist above lock screenSelim Cinek2015-05-055-2/+118
| | | | | | | | Change-Id: Ic65e638eed214a240cc13666f857e9b297f28168
* | Update permissions on memory usage instrumentationMaxim Siniavine2015-05-051-1/+3
|/ | | | Change-Id: I0c2bbd893252eb1dc3cf8b93b787efd772317216
* Merge "Add body sensors app op - framework base" into mnc-devSvet Ganov2015-05-011-0/+5
|\
| * Add body sensors app op - framework baseSvet Ganov2015-05-011-0/+5
| | | | | | | | Change-Id: Idd5cd573fab3405e5b2a6e51d2d9d115650826e9
* | Revert "Revert "Merge getDisplayList and updateDisplayListIfDirty""Chris Craik2015-05-011-3/+3
| | | | | | | | | | | | | | | | Fixes breakage from HwAccelerationTest This reverts commit b2847afde24aac22c8fb804cdce0c24b8a7c40c4. Change-Id: I762b3c9020fc1d06bac61ffa8b956049147515b1
* | Rename supportsAssistGesture to supportsAssistJorim Jaggi2015-05-012-2/+2
|/ | | | | Bug: 20642759 Change-Id: Idddc786980244cc94570d04fd414540bbad60448
* Respect the record audio app op - frameworkSvet Ganov2015-04-281-0/+5
| | | | Change-Id: I5696d2ef22738ccffaf8bd7a0ee68cbc3dea3bf1
* Add "assist block" API.Dianne Hackborn2015-04-222-1/+8
| | | | | | To prevent assist structure traversal down the view hierarchy. Change-Id: I50ce5f8de6f2eca3cb862de8eacd6422c40a2f7c
* Add API for putting up locktask pinning toast.Craig Mautner2015-04-214-26/+44
| | | | | | Fixes bug 18993662. Change-Id: Ic1753285044857f8ea897784485fd1a9580acf25
* Add tests for android:lockTaskMode.Craig Mautner2015-04-1520-0/+435
| | | | | | | | Android app to exercise the new attribute. For bug 19995702. Change-Id: I0794301a6b677ec6367dd3ad99a40b5d3f9f1d7c
* Merge "Add permission for AppCompatibilityTest."wsmlby2015-04-092-2/+2
|\
| * Add permission for AppCompatibilityTest.wsmlby2015-04-092-2/+2
| | | | | | | | | | Bug: 20134812 Change-Id: Iaf9a9963a16af1e2bb157159648db70666a33c48
* | Merge "Add Camera prewarm intent."Jorim Jaggi2015-04-077-0/+216
|\ \
| * | Add Camera prewarm intent.Jorim Jaggi2015-04-077-0/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also adds a test app for testing this intent. In addition, the secure camera gets launched in the background to fix jank while sending the intent. Bug: 20016619 Change-Id: I7bb7e22ddaf5dc67fc09b9e63e5f3d10fe8e3ee4
* | | Various fixes and improvements...Dianne Hackborn2015-04-044-18/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "Add group scaling factor into stroke width."ztenghui2015-04-035-0/+223
|\ \ \
| * | | Add group scaling factor into stroke width.ztenghui2015-04-025-0/+223
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Originally, stroke width is independent of group scaling. But that is a bug and causing animation trouble. b/19501782 Change-Id: I33d5e44f2f8b2a82fee1a5a326223a39aaffa86c
* | | | Merge changes from topic 'assist'Jorim Jaggi2015-04-0326-4/+581
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | * 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 test assist to implement motion studyJorim Jaggi2015-04-0326-4/+581
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces another test VoiceInteractionService, Assist, to test the full SystemUI -> assist layer motion when invoking assist. The old assist test project was renamed to LegacyAssist. Change-Id: Iddf8a36a76083625f8aa4faecef1930e9952d05b
* | | Add quick and dirty async AssistStructure building.Dianne Hackborn2015-04-024-1/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Rework assist to walk down the view hierarchy.Dianne Hackborn2015-04-012-4/+7
|/ / | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Add listener support in AVDztenghui2015-03-241-0/+23
| | | | | | | | | | | | | | | | Internally, switch to use AnimatorSet instead of an array of Animators b/19825918 Change-Id: Ia67d2cc7dd89362e6b0019c916d3f2a0d0f3e39e
* | Merge "Add view ID, rework assist API."Dianne Hackborn2015-03-241-6/+5
|\ \
| * | Add view ID, rework assist API.Dianne Hackborn2015-03-231-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Output modified bcp47 tag in ResTable_config::toString()"Adam Lesinski2015-03-202-0/+8
|\ \ \ | |/ / |/| |
| * | Output modified bcp47 tag in ResTable_config::toString()Adam Lesinski2015-03-162-0/+8
| | | | | | | | | | | | | | | | | | | | | We expect to be able to parse the output of ResTable_config::toString(), so it should use modified bcp47 (b+en+Latn+US). Change-Id: I597a1779a1fa5cff171c473e6a0368d93b9c7722
* | | Replace usages of deprecated Resources.getColor() and getColorStateList()Alan Viverette2015-03-181-3/+3
| | | | | | | | | | | | Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
* | | Merge "Remove HardwareCanvas"Chris Craik2015-03-181-3/+3
|\ \ \
| * | | Remove HardwareCanvasChris Craik2015-03-101-3/+3
| | |/ | |/| | | | | | | Change-Id: I239646a7f00f09d3f76fe6b6162eed86bc0d6e77
* | | Add ability to get a screenshot for assist.Dianne Hackborn2015-03-174-5/+24
| |/ |/| | | | | | | | | | | 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-164-10/+121
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | More work on collecting assist data.Dianne Hackborn2015-03-124-27/+30
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add generic "INTERACTION" event type to UsageStatsManagerAdam Lesinski2015-03-021-0/+3
| | | | | | | | This will allow for updating a package's last time used property for packages that are interacted in ways other than launching their activities (interacting with notifications, etc.) Change-Id: Ic6f9519f46fa04abd37ea6fc9475bcd9ea721003
* Rework voice interaction session lifecycle.Dianne Hackborn2015-02-257-20/+61
| | | | | | | | | | | | | | | | | | | | 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
* Fix layer shader to store layer pointerChris Craik2015-02-181-3/+3
| | | | | | bug:19419672 Change-Id: I4277348ceab41fbf45a107a8b21f64e2b4af23e0
* Update voice interaction layer for new UI design.Dianne Hackborn2015-02-138-27/+238
| | | | | | | | | | | | | | | | | | 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
* Move apache specific portions of android.net.http to external/apache-http.Narayan Kamath2015-02-124-1/+6
| | | | | | | | | | | | | | | | | | | We continue to compile external/apache-http into ext.jar. This contains a few changes apart fom the classes moving around : - Makefile changes to build docs and api-stubs for now. A future change will revert these changes and remove these classes from stubs and docs. - Hardcode event IDs in legacyerrorstrings to avoid a dependency between the frameworks and apache. These strings are on their way out and will never change anyway. - Remove imports due to {@link} tags and use {@code} instead. - Remove an accidental(?) dependency on apache commons code that's a part of apache-http. bug: 18027885 Change-Id: I51cd038d846ec7d02c283a4541b10a6a9cf62ecf
* Eliminate groupId and add task to AppWindowTokenCraig Mautner2015-01-271-1/+1
| | | | | | | | Simplifies access by eliminating indirect referencing. Fixes bug 18088522 item #15. Change-Id: I9049192a7f3e1028d60c4f2d4d4a0d4aad590aa4