summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Update VoiceInteractionService from API review.Dianne Hackborn2015-06-013-6/+4
| | | | | | | | | | | | | | | | | | | | | This may even manage to retain compatibility with existing binaries! (For now.) Change-Id: I3b1386287a6b9b20b57ac2e2444fd6f458837277
* | | Change colors of AVD testAndrew Flynn2015-06-011-2/+2
| |/ |/| | | | | | | | | | | so you can actually see the animation rather than animating between the same color. Change-Id: Id32f6f5a22c000093fb9cbc1e9274eacbd183373
* | Merge "Use path intersection instead of saveLayer+mesh to mask projected ↵Chris Craik2015-05-281-11/+7
|\ \ | |/ |/| | | ripples" into mnc-dev
| * Use path intersection instead of saveLayer+mesh to mask projected ripplesChris Craik2015-05-261-11/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:14297149 SaveLayer's performance cost is high, and proportional to the surface being projected onto. Since ripples (even unbounded ones) are now always projected to the arbitrary background content behind them, this cost is especially important to avoid. This removes the last semi-secret, saveLayer from the projected ripple implementation. Also fixes the HW test app to correctly demonstrate this projection masking behavior. Additionaly, alters PathTessellator to gracefully handle counter-clockwise paths, and simplifies the work done by ShadowTessellator to ensure all of its paths are counterclockwise. Change-Id: Ibe9e12812bd10a774e20b1d444a140c368cbba8c
* | Merge "Add new API to set URI on AssistContent." into mnc-devDianne Hackborn2015-05-281-28/+10
|\ \
| * | Add new API to set URI on AssistContent.Dianne Hackborn2015-05-281-28/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | lock device orientation during app compatibility testGuang Zhu2015-05-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Devices on test benches are usually held sideways, which leads to app rotation during launch. While it's useful to identify such issue from an app perspective, the app compatibility test should be isolated from such noise for the purpose of the testing for basic level of compatibility. Change-Id: I403f96e5d8512ca6a17b05a83d69f4b02f760a32
* | | Merge "AnimatedVectorDrawable Attr proof of concept" into mnc-devTenghui Zhu2015-05-279-1/+261
|\ \ \
| * | | AnimatedVectorDrawable Attr proof of conceptAndrew Flynn2015-05-119-1/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This crashes while trying to run due to the '?attr/color1' reference inside res/anim/blink.xml Bug: 20817800 Change-Id: Ie3ea24ac9b22e69af152d6ffe87c8c953929299c
* | | | don't report missing launch intent as failureGuang Zhu2015-05-261-13/+24
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | Some apks includes widgets and does not have a launchable activity. The inclusion of such apk for launching is an issue with test configuration, not test failure. Also logging intent used for app package for debugging purpose. Change-Id: Ibca05757a401ea036e9910d8580d7cafd356567c
* | | update app compatibility post launch detectionGuang Zhu2015-05-252-38/+9
| | | | | | | | | | | | | | | | | | | | | | | | decide if the app is still running after launch by checking running tasks and look for a task with base activity belonging to the package launched. Change-Id: Ibb3894e765ccbca62f803decc3c1c1f36dc2d454
* | | Improve reporting to apps of transaction too large failures.Dianne Hackborn2015-05-211-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the app tried to do various things with too much data -- starting an activity, starting a service, sending a broadcast -- this would fairly silently fail with little indication of what was going on. Fix this in two ways: - Now when the native code generates a TransactionTooLargeException, it may include an additional message in it telling you how much data was in the parcel being sent, to help you understand why this happening. - In all the framework code paths where we call to the system and may fail, convert these failures into a a runtime exception and rethrow them back to the app so that it will clearly get the above message. Change-Id: I745159b97d3edb6fca86aa09cbc40c1f15a7d128
* | | Add API to track usage time of apps.Dianne Hackborn2015-05-213-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new ActivityOption for the caller to ask the system to track the time the user is in the app it launches, delivering the result when they are done. The time interval tracked is from when the app launches the activity until the user leaves that app's flow. They are considered to stay in the flow as long as new activities are being launched or returned to from the original flow, even if they cross package or task boundaries. For example, if the originator starts an activity to view an image, and while there the user selects to share, which launches gmail in a new task, and they complete the share, the time during that entire operation will be included. The user is considered to complete the operation once they switch to another activity that is not part of the tracked flow. For example, use the notification shade, launcher, or recents to launch or switch to another app. Simply going in to these navigation elements does not break the flow (although the launcher and recents stops time tracking of the session), it is the act of going somewhere else that completes the tracking. The data is delivered to the app through a PendingIntent, which includes the total time the app was in the flow along with a time break-down by app package. Change-Id: If1cf8892d422c52ec5042eba0e15a8e7e8f83abf
* | | Clean RenderScript warningsJean-Luc Brouillet2015-05-2012-30/+16
| |/ |/| | | | | Change-Id: Ia7a98c1c977c839c74ae8081e70b5deb4b60c25d
* | Merge "Tests for Notification object construction and parceling." into mnc-devDan Sandler2015-05-1228-0/+595
|\ \
| * | Tests for Notification object construction and parceling.Dan Sandler2015-05-1128-0/+595
| | | | | | | | | | | | | | | | | | | | | | | | | | | The tests use the new hidden Parcel APIs (if available on the running platform) to emit statistics about ashmem usage. Bug: 20153922 Bug: 20079551 Change-Id: I400d2a932f297e582c335389570f93c0d4a19fc9
* | | Change attribute values per API council.Craig Mautner2015-05-123-13/+38
|/ / | | | | | | | | | | | | | | | | | | | | lockTaskModeDefault => default lockTaskModeNever => never lockTaskModeIfWhitelisted => if_whitelisted lockTaskModeAlways => always Fixes bug 20642190. Change-Id: I29cc546e12c330df9ec9af3cc91faf0d0f3df3b4
* | 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