summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add thumbnail related api.Yao Chen2014-07-221-6/+10
|/ | | | Change-Id: Ifcb06bbaf8f37df367f130124cbcef065fa25766
* AlwaysOnHotwordDetector needs to reflect enrollment changesSandeep Siddhartha2014-07-221-18/+34
| | | | | | | | | Add a callback for when any sound model change happens. This helps the VIS to re-check the availability and either enroll the user, or start/stop recognition. Also shut down any active recognition when VIS dies, or a different hotword detector instance is obtained from VIS. Change-Id: I03f94e78c6ee307afe822a84aebc7e74c64de7b4
* Merge "Add permissions associated with app ops." into lmp-devDianne Hackborn2014-07-191-0/+2
|\
| * Add permissions associated with app ops.Dianne Hackborn2014-07-211-0/+2
| | | | | | | | Change-Id: I575ad7a3ceea59486ca601f69760b14f6269511d
* | Updated media browsing API & tests.Yao Chen2014-07-2132-0/+1739
|/ | | | Change-Id: I3a1e3eead99a98b1890e05843dd90203cee517b7
* Allow dreams to control screen state and brightness.Jeff Brown2014-07-223-3/+37
| | | | | | | | | | | | | | | | Added setDozeScreenState() and setDozeScreenBrightness() methods to DreamService. The values specified here only take effect once startDozing is called and can be changed while dozing. This required some significant rework of the display power controller but the result seems quite nice and better represents the policy we want to apply. Changed the test dream a little bit to make it flash the screen every minute using the new functions. Bug: 15903322 Change-Id: I83bcc34503f1b87727d2b2b3c0ef08507f9f0808
* Fix synchronization issues in AlwaysOnHotwordDetectorSandeep Siddhartha2014-07-201-5/+0
| | | | | | | | | | | | | | | | | | | - Remove unnecessary recognition status from AlwaysOnHotwordDetector - Remove unnecessary recognition started callback from IRecognitionStatusCallback - Fix a bug around the fact that we weren't picking up enrollment at runtime because we were storing the availability at instantiation time. - Handle 0-length arrays in SoundTrigger classes while parceling/unparceling - Fix issue in SoundTrigger helper where we were not comparing binders for start/stop calls - Unload the previous model when starting a new recognition - Add more debug logging Change-Id: Icc56d7f3dd1ffa49a8cfeea49080e3ab4d342c32
* Return Animator instead of ValueAnimatorJohn Reck2014-07-191-2/+2
| | | | Change-Id: I29a7cfdc7ffbb3a4d33f9e64f9d7ca791f5c947c
* Tweaks to outline APIChris Craik2014-07-191-9/+16
| | | | | | | | | | b/15283203 b/16142564 Remove boolean return value chaining, as it's redundant with the data in the Outline itself. Change-Id: I3116e57cd1b35c98b74e95195117edd7e39fb2df
* Add RT-enabled reveal animatorJohn Reck2014-07-182-9/+110
| | | | | | | | | Bug: 16161431 Also re-writes RevealAnimator to avoid using any listeners internally, removing the logic around shadowing the update listeners. Change-Id: I6ed8126398eed971a87f20bccb7584c9acafbb6c
* Fix FIT_XY scaleType issue on VectorDrawableztenghui2014-07-181-28/+9
| | | | | | bug:16019658 Change-Id: I8b6ac23bf14de5427d3029436acf76bd1161f0ea
* Test hotword flowSandeep Siddhartha2014-07-171-0/+46
| | | | | | - Also fix a few StrictMode violations in DatabaseHelper Change-Id: I93f27407dae34cc0dca5e9f891d4ca718d6010a5
* Add the RTL support to VectorDrawable.ztenghui2014-07-174-4/+8
| | | | | | bug:15905631 Change-Id: Ieb3dcac2dd446ba89f307716411688dcd6ec5279
* Implement issue #16330060: Inform ActivityManager about WebView...Dianne Hackborn2014-07-161-2/+2
| | | | | | | | | | | | | | | | | | | | ...state changes. Add a new API to tell the activity manager about a new dependency one process has on another package. Start using it already for when apps is Context.createPackageContext() to load code from another app. Also do some work on getting the monitoring of proc/uid states in shape so it can be used by unundled code, along with an AppImportanceMonitor class for doing so. Some small fixes and additions to VoiceInteractionService. Improve handling of unaccounted/overcounted battery use so that they aren't shown to the user unless they are significant. Change-Id: I22dd79a73f4e70103d3f8964494aebc8a31f971c
* Add recognition modes to the enrollment metadataSandeep Siddhartha2014-07-161-1/+2
| | | | | | | | | | | | | | This will be used by the Voice interaction service to determine what type of recognition may be run on the DSP. e.g. If the DSP supports voice trigger only for the given keyphrase, the voice interaction service may want to perform user identification at its end. Also support keyphrase metadata for all keyphrases and locales. In case the enrollment app supports open-ended keyphrases, it can leave the keyphrase text to be empty similarly, if the enrollment app supports all locales, it can leave the supported locales attribute to be empty, Change-Id: I782a17a877fc79ed569fa7c3a81697641182590b
* Merge "Add more reverse support to AnimatedVD" into lmp-devztenghui2014-07-164-3/+57
|\
| * Add more reverse support to AnimatedVDztenghui2014-07-164-3/+57
| | | | | | | | | | | | bug:16162242 Change-Id: Ie0b7618beeb65ebeb65db41600165837524bcee4
* | Make MediaSession and MediaController constructors publicRoboErik2014-07-162-2/+3
|/ | | | | | | | | | This makes the MediaSession/Controller constructors public and registers with the system behind the scenes. This also adds a bit about needing to call setActive(true) to start receiving commands in MediaSession's docs. Change-Id: If882d229b54c36bf0831aca0255052dda667a2bc
* Fix buildCraig Mautner2014-07-151-1/+1
| | | | | | | | Add parameter to WindowManagerPermissionTests. Fixes build. Change-Id: Iecf064ee0be612e59aa1b7f0a42807be1bc59e78
* Make PlaybackState immutable with a builderRoboErik2014-07-142-32/+55
| | | | | bug:15862252 Change-Id: I51f2e466bd2c41bbe80d20aa9785126a7ac6ab3f
* Add API to set a default session in ActivityRoboErik2014-07-141-3/+9
| | | | | | | | | | We may have multiple remote sessions at once so an app needs a way to specify a default session to route media and volume commands to when its activity is in the foreground. This adds an api that works in parallel with the default stream api on Activity. bug:15727927 Change-Id: I5b67cb3e20647f9437d90aa65be63efe8c7865cf
* Update media session test application for new media router.Jeff Brown2014-07-149-151/+227
| | | | Change-Id: I3c19e008d211099b4d7320e3f195850cfb4dd927
* Add VoiceInteraction request type for successful actions.Barnaby James2014-07-115-0/+51
| | | | | | Add CompleteVoiceRequest to VoiceInteractor to allow apps to indicate when a voice interaction was successfully completed. Change-Id: I1481cfe96e9e2495d88a7a4fb62263bdd1e03c54
* Merge "Simplify Shader.setLocalMatrix."Leon Scroggins III2014-07-101-4/+5
|\
| * Simplify Shader.setLocalMatrix.Leon Scroggins III2014-07-101-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, calling setLocalMatrix updated any Paint that had the Shader attached. This depended on deprecated behavior in Skia. Use new Skia APIs, and do not modify any Paints that use the Shader. In addition, update callers to call setShader (again) after modifying the Shader. Sample app at ag/499573 for testing. Depends on I673801444f0a8fd4f192b5b7effdde1aa83e702b in external/skia. BUG:14315916 Change-Id: I3c3316377874e89fccc85afb864bc038b0ef3890
* | Always on hotword changesSandeep2014-07-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add model management API skeleton to VoiceInteractionManagerService Add an "interactor" for all always-on APIs - The VoiceInteractionService will get an interactor for the given keyphrase and locale. - It can then check the availability and call methods to start and stop recognition on this interactor. - Add a common class to deal with SoundTrigger APIs - Cleanup the keyphrase representation: We now have separate representations for the keyphrase metadata and a keyphrase being used for recognition. This'll also help us to handle custom keyphrases in the future easily. This also ensures that for use within the framework, we rely on the ID of the KeyphraseInfo rather than comparing the text everytime. Add a callback for the AlwaysOnHotwordDetector This callback should be passed in by the VoiceInteractionService and is used to notify it of recognition events. Change-Id: I26252298773024f53a10cdd2af4404a4e6d74aae
* | Revert "Make PlaybackState immutable with a builder"Erik Pasternak2014-07-102-53/+32
| | | | | | | | | | | | | | | | Will resubmit tomorrow for Build Breakage Friday as this change needs new SDK prebuilts for unbundled app branches. This reverts commit aa746b27610680a2c0fbdf7d81a6455c4597f05e. Change-Id: I28ba7e1b09234a5eb1b725aed043b9de98e1bc16
* | Make PlaybackState immutable with a builderRoboErik2014-07-102-32/+53
| | | | | | | | | | bug:15862252 Change-Id: I8944b7753cd6a36a74b0091f71a386f77040c4ab
* | Fix the render order to follow the XML file order.ztenghui2014-07-103-1/+95
|/ | | | | | | | | So we put path and group into a big list, then use reflectiont to handle them differently. bug:16162141 Change-Id: I4c84dc952d5d9b49412301dcd6459395e21d3b31
* Merge "Remove Markup and Utterance classes."Niels Egberts2014-07-096-1246/+0
|\
| * Remove Markup and Utterance classes.Niels Egberts2014-07-086-1246/+0
| | | | | | | | | | | | | | Markup is replaced by TtsSpan, and the Utterance class will be replaced by TtsSpanBuilder. Change-Id: I443786681f065ad8458fc05825de3ef182db8062
* | Merge "Camera2: Hide all the deprecated methods and interfaces"Eino-Ville Talvala2014-07-082-6/+16
|\ \ | |/ |/|
| * Camera2: Hide all the deprecated methods and interfacesEino-Ville Talvala2014-07-062-6/+16
| | | | | | | | | | | | Leave them in for now until bundled clients complete updating Change-Id: Ibd0fc971258ce6b649000c48dd7a6716f1ab91d4
* | Merge "Update AnimatedStateListDrawable to work with Animatable drawables"Alan Viverette2014-07-073-0/+108
|\ \
| * | Update AnimatedStateListDrawable to work with Animatable drawablesAlan Viverette2014-07-033-0/+108
| | | | | | | | | | | | | | | BUG: 16016730 Change-Id: I6d02a1235c0aecd7e62f12226f3689372d043ddd
* | | Add support for voices in TTS API.Przemyslaw Szczepaniak2014-07-041-0/+13
|/ / | | | | | | | | | | | | | | Voices allow to expose multiple backends/voice packs for a single Locale. This is an attempt to port this feature from V2 API. Bug: 15834470 Change-Id: I0117de238cfcf028bcec5344b8d65c960b96b98c
* | Use cached thumbnails in Recent tasks.Craig Mautner2014-07-021-14/+4
|/ | | | | | | | | | | | | | | | The thumbnail returned from ActivityManager.getTaskThumbnail() now contains either a Bitmap or a ParcelFileDescriptor that points to a file containing a compressed Bitmap. The Recent tasks list is now responsible for all thumbnail Bitmap caching as the activity manager keeps only the most recent 5. This also permits low memory devices to have many more tasks in the Recent tasks list. As part of this CL the concept of subtasks is removed eliminating code supporting the TaskAccessInfo and IThumbnailRetriever classes. Fixes bug 15828934. Change-Id: I0fd0320a1a04e3c78d79357899b83a2fff97abf2
* Test scaleType for both bitmap and vector drawables.ztenghui2014-07-012-1/+107
| | | | Change-Id: I3c75963a624cd87a47a9eff68f9e113b8c147210
* Merge "Draw overlapping rectangles with color modulated."ztenghui2014-07-011-38/+87
|\
| * Draw overlapping rectangles with color modulated.ztenghui2014-06-301-38/+87
| | | | | | | | | | | | | | | | Touch the screen to turn on / off depth test. Disalbe the vsync to get the real performance. Drawing 10 rectangles on N10 show almost 3x perf gain, in this setup. Change-Id: I97bb84f744e90c35febad8cb853ed877cda5e64f
* | Make MediaSessionToken an inner class of MediaSession.Jeff Brown2014-06-304-10/+9
|/ | | | | | | Also add some missing AIDLs to the framework makefile to ensure they are included in the SDK. Change-Id: If85a3091c7591e0b3bbe6cc4bb74aba2284b4f42
* Preparing the new GL depth test.ztenghui2014-06-303-2/+329
| | | | | | Right now, the code is just copied from ApiDemos for the initial setup. Change-Id: I531f95faca744c7e91fadae189818af3d04a85ee
* Use AnimatedVectorDrawable for progress bar.ztenghui2014-06-302-2/+2
| | | | Change-Id: I419197ef38a611757f27ca3192350ad4bd403875
* Add string support for valueFrom/valueToztenghui2014-06-271-2/+2
| | | | | | b/15910407 Change-Id: I557e855f7d16e2eb0452d43ca6a672acdcae2071
* Update the tests to show more animations from UX teamztenghui2014-06-2718-24/+446
| | | | Change-Id: I16d2ed29f40c85ec48c87b5a0355e2a262ed3af7
* AVD now support path morphing.ztenghui2014-06-204-11/+51
| | | | | | | | Basically extended the ValueAnimator to support a new type: pathType. Add the PathDataEvaluator internally to interpolate path data. Update test to show the path morphing. Change-Id: I89db0199cbc12e3041790a6115f3f50b80213cdb
* Add path support into xml files for PathInterpolator and ObjectAnimator.ztenghui2014-06-194-6/+11
| | | | | | | The test case is showing that AnimatedVectorDrawable is able to use path to define time interpolator and object movement now. Change-Id: If3c0418265d0fd762c8f5f0bb8c39cce3ad34ef3
* Merge "Flesh out job scheduler test app"Matthew Williams2014-06-183-39/+97
|\
| * Flesh out job scheduler test appMatthew Williams2014-06-183-39/+97
| | | | | | | | | | | | adds the rest of the constraints - charging, idle, and allows you to cancel all. Change-Id: I43b7cac94446f6860ca0387440b3c8f995a2c0f3
* | Improve constant state for VectorDrawableztenghui2014-06-183-0/+88
|/ | | | | | | Now inflation will not cause duplicated constant states. And update tests. Change-Id: I66861e5451c4c10d18756e8522546ea1cb938a55