summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add setStartValue to RNAJohn Reck2014-06-021-6/+12
| | | | | | | | Bug: 15198607 Should be good-enough for Ripples to use for pseudo-chaining support. Change-Id: Ia8666928ccb69ae401cb583751632a52bd928b63
* Merge "Clean up voice API." into lmp-preview-devDianne Hackborn2014-05-305-36/+130
|\
| * Clean up voice API.Dianne Hackborn2014-05-305-36/+130
| | | | | | | | | | | | | | | | | | | | | | | | Add various java docs. Switch to CharSequence where appropriate. Add new request for canceling voice interaction. Also update test app to follow API changes and be more better. Change-Id: If27eeba53cf6444660adb7d37ea2ce0557c6c91f
* | Merge changes I16ad392e,Ie26a7d01 into lmp-preview-devRoboErik2014-05-305-54/+44
|\ \ | |/ |/| | | | | | | * changes: Refactor transport controls APIs API changes to sessions
| * Refactor transport controls APIsRoboErik2014-05-302-20/+10
| | | | | | | | | | | | | | | | | | | | This merges TransportPerformer into MediaSession + a TransportControlsCallback and makes TransportController into an inner class on MediaController called TransportControls. Also makes the PlaybackState and Metadata part of the session APIs instead of transport controls. Change-Id: I16ad392e6d318abe3119ad5d89656d253af25e16
| * API changes to sessionsRoboErik2014-05-294-36/+36
| | | | | | | | | | | | | | Changes requested by API Council review. A second CL will refactor TransportController and TransportPerformer based on feedback. Change-Id: Ie26a7d01d7021232a66c2edf1eb58120437fdfde
* | More work on voice interaction visuals.Dianne Hackborn2014-05-302-1/+9
|/ | | | | | | | | | | | | | | | | There is now a special theme for voice interaction activities to use, so they can be a panel that is better intergrated with the rest of the voice interaction experience. This is still not completely working, I have some hacks in the demo app to get it right; I'll fix that in a future change. Also improve VoiceInteractor to be retained across activity instances, for things like rotation. And bump up the number of concurrent broadcasts that are allowed on non-svelte devices, since they can handle more and this makes the boot experience better when dispatching BOOT_COMPLETED. Change-Id: Ie86b5fd09b928da20d645ec2200577dee3e6889d
* Merge "Add system layer for voice interaction services." into lmp-preview-devDianne Hackborn2014-05-293-2/+4
|\
| * Add system layer for voice interaction services.Dianne Hackborn2014-05-283-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New window layer that voice interaction service windows go in to. Includes a new voice-specific content rectangle that voice activities are placed in to. Add specific animations for this layer, sliding down from the top (though this can be customized by the voice interaction service). Also add the concept of activities running for voice interaction services for purposes of adjusting the animation used for them, again sliding from the top, but not (yet?) customizable by the voice interaction service. Change-Id: Ic9e0e8c843c2e2972d6abb4087dce0019326155d
* | Merge "Respect Z ordering in touch dispatch, software drawing" into ↵Chris Craik2014-05-284-11/+68
|\ \ | |/ |/| | | lmp-preview-dev
| * Respect Z ordering in touch dispatch, software drawingChris Craik2014-05-284-11/+68
| | | | | | | | | | bug:14390526 Change-Id: I617a6ea7dbac1facae246491a247cf307452fc0e
* | camera2: Add partial results to the capture listener (API change)Igor Murashkin2014-05-271-1/+2
|/ | | | | | | * Also adds capture sequence aborted callback Bug: 12492876 Change-Id: I56ec8edbcda8b64c2262ff7472961ac78042c7f4
* DO NOT MERGE Inspect SkShader to determine hw shader.Leon Scroggins III2014-05-232-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cherry-pick of Iaa7189178bda1c55f96da044d2a9fa602ba36034 Instead of duplicating internal info about SkShader, inspect the SkShader installed on the SkPaint. core/java/android/view/GLES20Canvas.java: Remove setupModifiers, nResetModifiers, and nSetupShader. core/jni/android/graphics/Shader.cpp: Remove calls to create/destroy the (previously) attached SkiaShader. core/jni/android_view_GLES20Canvas.cpp: Remove native code for setupShader and resetModifiers. graphics/java/android/graphics/BitmapShader.java: graphics/java/android/graphics/ComposeShader.java: graphics/java/android/graphics/LinearGradient.java: graphics/java/android/graphics/RadialGradient.java: graphics/java/android/graphics/Shader.java: graphics/java/android/graphics/SweepGradient.java: Remove code keeping track of native SkiaShader. libs/hwui/Caches.h: Include Extensions.h. libs/hwui/DeferredDisplayList.cpp: Compare shaders on the paint, instead of on DrawModifiers. libs/hwui/DisplayList.cpp: libs/hwui/DisplayList.h: Remove vector of SkiaShaders. libs/hwui/DisplayListOp.h: Access the SkShader on mPaint. Remove SetupShaderOp and ResetShaderOp. libs/hwui/DisplayListRenderer.cpp: libs/hwui/DisplayListRenderer.h: Remove resetShader, setupShader, refShader, and mShaderMap. libs/hwui/FontRenderer.cpp: Pass SkShader to setupDrawShader and setupDrawShaderUniforms. libs/hwui/OpenGLRenderer.cpp: libs/hwui/OpenGLRenderer.h: Add LayerShader, a class inheriting from SkShader, to mimic the behavior of SkiaLayerShader. Unlike SkiaLayerShader, it can be set on the SkPaint so it can be inspected later. Set a LayerShader instead of a SkiaLayerShader. setupDrawShader and setupDrawShaderUniforms now inspect an SkShader passed in. Inspect SkShader instead of mDrawModifiers.mShader. Remove resetShader and setupShader. setupDrawColorUniforms now takes a boolean indicating whether there is a shader. Add an inline function for accessing the SkShader on an SkPaint. In setupDrawBlending(Layer*, bool), do not check the shader (which will never be set), but do check whether the color filter may change the alpha (newly fixed behavior). In setupDrawBlending(SkPaint, ...), check the SkShader and whether the color filter affects alpha (the latter is new behavior). libs/hwui/Renderer.h: Remove pure virtual functions setupShader and resetShader. libs/hwui/ResourceCache.cpp: libs/hwui/ResourceCache.h: Remove functions for refing/unrefing shaders. libs/hwui/SkiaShader.cpp: libs/hwui/SkiaShader.h: Much of this code was redundant and has been removed. Convert structs into class with nothing but static functions for calling describe/setupProgram. libs/hwui/TextureCache.cpp: libs/hwui/TextureCache.h: Use the SkPixelRef as the key to the bitmap Lru cache, since shader inspection will provide a different SkBitmap pointer (though it will hold the correct SkPixelRef with the correct generation ID). tests/CanvasCompare/src/com/android/test/hwuicompare/DisplayModifier.java: tests/CanvasCompare/src/com/android/test/hwuicompare/ResourceModifiers.java: Update manual test to have more shaders: radial, sweep, compose, invalid compose. BUG:10650594 Change-Id: I2e7182b3fc28268e7ca82fac6780540b6b45365c
* Merge "Baby steps"John Reck2014-05-202-5/+1
|\
| * Baby stepsJohn Reck2014-05-192-5/+1
| | | | | | | | | | | | Run ViewPropertyAnimators with no listeners on the RenderThread Change-Id: I7ff5300db96c7f4b59b09e3fff8a0df173f132dd
* | Merge "Cleaned up CanvasCompare tests."Chris Craik2014-05-192-19/+13
|\ \
| * | Cleaned up CanvasCompare tests.Antonio Calabrese2014-05-192-19/+13
| | | | | | | | | | | | Change-Id: I93b2f73283e3ab2b8679bf36f29c7bd6cb74c6bf
* | | Merge "Rename session classes to have media prefix, hide routes"RoboErik2014-05-196-24/+24
|\ \ \ | |_|/ |/| |
| * | Rename session classes to have media prefix, hide routesRoboErik2014-05-166-24/+24
| | | | | | | | | | | | | | | | | | | | | This renames several of the core session classes to be prefixed with Media. It also adds @hide to all route references for now. Change-Id: Idb42897d490cf24626e4e93ca975b2cb93ec054c
* | | Fix buildJi-Hwan Lee2014-05-172-4/+4
| | | | | | | | | | | | Change-Id: If0e46d6fa0f5b176c3b5294eab58d25935b3b4f8
* | | Fix buildChris Craik2014-05-161-1/+2
|/ / | | | | | | Change-Id: Ic0b36cd0f6525c4bc1ad365cd089e9a9fac9dc17
* | Merge "Round rect outline clipping"Chris Craik2014-05-162-0/+96
|\ \
| * | Round rect outline clippingChris Craik2014-05-152-0/+96
| |/ | | | | | | Change-Id: Iee9cf4f719f6f1917507b69189ad114fa365917b
* | Animator start value...John Reck2014-05-152-6/+14
|/ | | | Change-Id: Ifd35ed95a28c625086d7fa97764fe63ab4a997f1
* Merge "Remove the group tag."ztenghui2014-05-1227-364/+322
|\
| * Remove the group tag.ztenghui2014-05-1227-364/+322
| | | | | | | | | | | | | | | | | | Since we don't support animation, it is better not to expose the group tag for now, which will only lead to confusion. Internally, we keep the group class to represent multiple paths. But we don't allow multiple groups. Change-Id: I041ba32dff05ef6b1cd9d5ab1a1717e55a356145
* | Merge "Add TimeInterpolator support to RNA"John Reck2014-05-121-1/+7
|\ \
| * | Add TimeInterpolator support to RNAJohn Reck2014-05-121-1/+7
| |/ | | | | | | | | | | Bug: 14678626 Change-Id: I6554e7fcd42c49fac3618ca792083bb68e358f55
* | Merge "Add support for building split APKs"Adam Lesinski2014-05-1211-0/+258
|\ \ | |/ |/|
| * Add support for building split APKsAdam Lesinski2014-05-1111-0/+258
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Build multiple APKs, each containing a disjoint subset of configurations. These can then be loaded into the device AssetManager and should operate as if they were never split. Use the idea of building multiple sets of files, where each set represents an APK. An ApkBuilder can place files in a set based on its configuration, but you can actually add directly to a set, in the case of the resources.arsc and generated AndroidManifest.xml for splits. Change-Id: Ic65d3f0ac1bbd290185695b9971d425c85ab1de3
* | Further cleaning on animated part of VectorDrawable.ztenghui2014-05-0819-557/+6
| | | | | | | | | | | | | | | | | | State changed support is gone. Rename VAnimatedPath. Remove the obsolete documents. Update the tests to reflect the API changes. Change-Id: Icdc19c6519a4e29975877c1d167e61c8fa14a371
* | Merge "Allow all loopers to be RT-accelerated"John Reck2014-05-072-0/+105
|\ \
| * | Allow all loopers to be RT-acceleratedJohn Reck2014-05-072-0/+105
| | | | | | | | | | | | | | | | | | Bug: 14445956 Change-Id: I03e92642aa118db5c7fefa1f09c3a5bde6ea671d
* | | Add a class for managing Session priorityRoboErik2014-05-061-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Priority is given first to the system priorty session, then to active local sessions, then to active remote sessions, then to the rest of the sessions. Ordering within categories is by whoever last performed an action we associate with the user. The stack has methods for getting filtered sets of this priority. This also: -Changes publish to setActive(boolean) -Adds a flag for handling media buttons. -Adds a flag for transport controls instead of enabling once. -Unhides the setFlags API. -Updates the legacy helper to use the flags. Change-Id: I6ebeb27410de1b24149fd6e1785613ac444f0774
* | | Merge "First step on API cleaning on the VectorDrawable to disable animation ↵ztenghui2014-05-062-27/+2
|\ \ \ | |/ / |/| | | | | support"
| * | First step on API cleaning on the VectorDrawable to disable animation supportztenghui2014-05-052-27/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Cleaning on the API level, and related tests. The animated icon will be only showing the initial state. TODO: Deep clean on the functionality part and attributes. Change-Id: I5723bc5b64f796c3a273d74bde02095751160a88
* | | Make RenderNodeAnimator and WebView play niceJohn Reck2014-05-051-0/+9
| | | | | | | | | | | | Change-Id: Ifaefcf510b2d377663fc86f60608d6ec9be8329a
* | | Further work on voice interaction services.Dianne Hackborn2014-05-054-9/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes VoiceInteractionSession a more first-class concept. Now the flow is that a VoiceInteractionService calls startSession() when it wants to begin a session. This will result in a new VoiceInteractionSession via the VoiceInteractionSessionService containing it, and the session at that point an decide what to do. It can now show UI, and it is what has access to the startVoiceActivity API. Change-Id: Ie2b85b3020ef1206d3f44b335b128d064e8f9935
* | | Add CanvasProperty for drawCircleJohn Reck2014-05-024-4/+148
| |/ |/| | | | | Change-Id: Icbcc030f5033d2094e567d7c519b9d672f2aac1c
* | Merge "Add Session API calls to RCC and AudioManager"RoboErik2014-05-012-24/+28
|\ \ | |/ |/|
| * Add Session API calls to RCC and AudioManagerRoboErik2014-05-012-24/+28
| | | | | | | | | | This makes RCC and MediaButtonReceiver (via AudioManager) also use the new Session APIs in parallel to their existing code. This will allow us to bring up the Session compatibility pieces without disrupting the old behavior and then switch everything over to just using the new APIs when ready. Change-Id: I33ce0a044dea3ec763f2302b91a5e415be27d4a4
* | RenderThread animator supportJohn Reck2014-04-291-70/+7
| | | | | | | | Change-Id: Icf29098edfdaf7ed550bbe9d49e9eaefb4167084
* | Add elevation, Z properties to ViewChris Craik2014-04-281-1/+1
| | | | | | | | Change-Id: I3dd3b683a66e248a0fdf2ca69d1e962615b0daf9
* | Rework some of the voice interaction APIs.Dianne Hackborn2014-04-286-14/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | On the app side, requests are now composed by subclassing from various types of Request objects. On the service side, starting a voice interaction session involves starting another service that will then manage the session. This leads the service design much more to what we want, where the long-running main service is very tiny and all the heavy-weight transient session work is elsewhere in another process. Change-Id: I46c074c6fe27b6c1cf2583c6d216aed1de2f1143
* | Merge "Support Oval GradientDrawable outlines, and ShapeDrawable"Chris Craik2014-04-261-3/+0
|\ \
| * | Support Oval GradientDrawable outlines, and ShapeDrawableChris Craik2014-04-251-3/+0
| | | | | | | | | | | | Change-Id: Ifc9e55757d3325cb28a1a812ec696512d4a18b39
* | | Initial implementation of new voice interaction API.Dianne Hackborn2014-04-249-0/+334
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This gives a basic working implementation of a persist running service that can start a voice interaction when it wants, with the target activity(s) able to go through the protocol to interact with it. It may even work when the screen is off by putting the activity manager in the correct state to act like the screen is on. Includes a sample app that is a voice interation service and also has an activity it can launch. Now that I have this initial implementation, I think I want to rework some aspects of the API. Change-Id: I7646d0af8fb4ac768c63a18fe3de43f8091f60e9
* | Merge "Format the xml files for the VectorDrawableTest"ztenghui2014-04-2419-465/+471
|\ \
| * | Format the xml files for the VectorDrawableTestztenghui2014-04-2419-465/+471
| |/ | | | | | | | | | | | | All automatically done by the tool. No real changes. Change-Id: I8a98be9441d7cb0b3636c2a850d1e7de9e79394f
* | Clip TouchFeedbackDrawable effect to receiver OutlineChris Craik2014-04-234-0/+70
|/ | | | | | | | Projected RenderNodes are now wrapped with a ClipRect or masked SaveLayer, so that they are clipped to the outline of the projection receiver surface. Change-Id: I1d4afc1bb5d638d650bc0b1dac51a498f216773e