summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Switch everything to scheduled jobsChristopher Tate2014-06-176-246/+0
| | | | | | | | | | | | Everything that used the IdleMaintenance APIs/broadcasts gets to use the spiffy new JobScheduler instead. Hooray! On top of that, the now-obsolete "idle maintenance" APIs are now gone entirely. Double hooray! Bug 14993295 Change-Id: I5fb67c296ca8cd0ba8a2c8760a0f0d9d962d813b
* Merge "Expose "default tts locale" to the TTS V2 API."Przemyslaw Szczepaniak2014-06-111-0/+64
|\
| * Expose "default tts locale" to the TTS V2 API.Przemyslaw Szczepaniak2014-06-111-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows TTS V2 API client applications to honor the "default TTS locale" set by the user in the TTS settings. Note that the TTS V1 API uses 3 character country/language codes for locale encoding. It's the only system component that does that. TTS V2 uses the standard, valid Locale objects. The default TTS locale setting was stored as a 3 character locale string with "-" as the separator. This change switches the TTS locale setting format to the output of Locale.toString() call (on a valid Locale object). Methods used for reading this value can interpret both forms and try to return a valid Locale object as an output. Change-Id: Ice2e6c25a43eb9dd6e17d371ee582c2dae3329c9
* | Add AnimatedVectorDrawableztenghui2014-06-129-12/+271
| | | | | | | | | | | | | | | | | | | | | | Currently as a hidden class. It can support many the animations now as far as ObjectAnimator and hierarchical group can support. And we don't have path morphing yet. Also support the Animator / Interpolator inflation from Context and Resources. Change-Id: I948bbdf7373ad291171eed0b497959dce8c2edf3
* | Merge "Add CameraToo, a sample point-and-shoot camera app"Sol Boucher2014-06-117-0/+759
|\ \
| * | Add CameraToo, a sample point-and-shoot camera appSol Boucher2014-06-117-0/+759
| | | | | | | | | | | | | | | | | | It demonstrates basic use of the features of the new Camera2 API. Change-Id: I593bc682e5c6203754e9a3ee9a78efbd1b208513
* | | Merge "Activity for enrollment"Sandeep Siddhartha2014-06-115-0/+79
|\ \ \ | |/ / |/| |
| * | Activity for enrollmentSandeep Siddhartha2014-06-115-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Make the enrollment attrs public - Add a dummy activity for enrollment - Manually tested that the meta-data is correctly read by the VoiceInteractionService when the enrollment application is under /system/priv-app Change-Id: I36676ed8ffc919109031c26bac047d0c51a77e13
* | | am d8f71d34: Merge "Out with the old; in with the new" into lmp-preview-devChristopher Tate2014-06-113-41/+34
|\ \ \ | | | | | | | | | | | | | | | | * commit 'd8f71d34c3c7fb161a1586de8edb52161c32d672': Out with the old; in with the new
| * | | Out with the old; in with the newChristopher Tate2014-06-103-41/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch to the official "JobScheduler" etc naming. Bug 14997851 Change-Id: I73a61aaa9af0740c114d08188bd97c52f3ac86b7
* | | | am a06fce7d: Merge "Add test app for JobScheduler" into lmp-preview-devMatthew Williams2014-06-1015-0/+615
|\ \ \ \ | |/ / / | | / / | |/ / |/| | * commit 'a06fce7dea359571877ae8d9cd9cf720934083f5': Add test app for JobScheduler
| * | Add test app for JobSchedulerMatthew Williams2014-06-0715-0/+615
| | | | | | | | | | | | | | | | | | Schedule either a delay/deadline task, or a task with connectivity constraints Change-Id: Ie7ea731d0f6673b680cef79f894cb609a61b795d
| * | DO NOT MERGE Material themeAlan Viverette2014-06-061-2/+2
| | | | | | | | | | | | | | | BUG: 15467097 Change-Id: I15191362e104a902895418fc615892c21db64c35