summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix one typo and add linear progress bar in the test.ztenghui2014-08-047-1/+188
| | | | Change-Id: Ib516fd4a27000d8e69a6640386332140ff0d6fdd
* Add a flag for multiple triggers with same recognition sessionSandeep Siddhartha2014-08-011-13/+8
| | | | | | | | | | | | | | Also annotate the flags with @IntDef to make things clearer and safer Add more debug logging Revert to start/stop being synchronous since telephony and microphone will need to be handled internally. Bug: 16731586 Bug: 16514535 Bug: 16549061 Change-Id: I83695d52e9547269c95d443e4d921c9238b7401e
* Tighten the checks around a detector being invalidatedSandeep Siddhartha2014-07-311-5/+0
| | | | | | | | | | | | | | | | | | | Don't call back for a detector being marked invalid because that happens when someone else obtains a detector or VIS shuts down, in either case we don't want a loop where two entities keep creating new detectors and being invalidated. Don't call back on an invalid detector for availability change/detected/started and stopped only propagate errors. This helps us with cases where a callback for the previous VIS may get called and then crash because it tries to make calls without being the current VIS. In the new scheme of things, if the VIS changes, or the current VIS obtains a new AlwaysOnHotwordDetector, the previous one is shutdown and internally marked as invalid and all calls to it fail with an IllegalStateException. Bug: 16629417 Change-Id: I74417bf76ba80916ebc21b042c18b3467857733e
* Add shared library support to aapt dumpAdam Lesinski2014-07-302-1/+2
| | | | | | | | AAPT dump should be able to handle dynamic references that often come with shared library resources. Bug:16678251 Change-Id: I6c8cd943145aab20ca9db9694c8c433b3c64279b
* Make startRecognition asyncSandeep Siddhartha2014-07-301-3/+12
| | | | | | | | | | | | | | - This is needed for telephony and audio integration which should happen via async callbacks that'll end up starting/stopping recognition. e.g. if a startRecognition happens when in a phone call - the onDetectionStarted will get called once the phone call ends. For now the transient stoppages due to internal reasons will not be propagated back to the client. Bug: 16514535 Bug: 16515468 Change-Id: I1b2b8edd28f5c5e67c453f66c23e1a67a626114e
* Read the keyphrase ID from the recognition eventSandeep Siddhartha2014-07-291-0/+77
| | | | | Bug: 16516658 Change-Id: Ibeee81c9543aa1091bb075066cfc2269107f13c0
* remove possible JobScheduler race in cancel()Matthew Williams2014-07-291-9/+51
| | | | | | | | | | | | | | Client can jobFinished() before getting a cancel msg. 1) Do better clean up of JobServiceContext after client jobFinished() to remove superfluous MSG_CANCELs 2) When processing MSG_CANCEL check whether the context is still active 3) Do JobServiceContext cleanup before calling back to JobSchedulerService Client can get a cancel msg even after calling jobFinished() (opposite to above) 1) explicitly check whether there are any MSG_CALLBACKs in the queue before processing a MSG_CANCEL. If there are we can throw away the cancel. Bug: 16547638 Change-Id: I90644586c7895a9ce97de752a5d657faf7f74b78
* Merge "Have AEP GL feature depend on GLES 3.1 in badging" into lmp-devAdam Lesinski2014-07-281-0/+1
|\
| * Have AEP GL feature depend on GLES 3.1 in badgingAdam Lesinski2014-07-251-0/+1
| | | | | | | | | | | | | | | | AAPT dump badging should output the uses-gl-es tag with a version of 3.1 when android.hardware.opengles.aep is declared as a feature. Change-Id: I8affc6dad574c8303c6ba9810ad8e6e205ea9506
* | Fix checkbuildRoboErik2014-07-291-1/+1
| | | | | | | | Change-Id: I66321c6da4f921cee2db6f9f05312a6a8edc66d3
* | Merge "s/thumbnail/icon in the browsing api." into lmp-devYao Chen2014-07-241-1/+1
|\ \
| * | s/thumbnail/icon in the browsing api.Yao Chen2014-07-281-1/+1
| | | | | | | | | | | | Change-Id: I73bf76ed9628872094db74aef48a8e68864d6b4d
* | | Use blob (shared memory) for large data in sound model/recognition event/configSandeep Siddhartha2014-07-283-0/+308
|/ / | | | | | | | | | | | | Also add a missing null check in writeBlob Bug: 16516353 Change-Id: Ie702f8daae541cab7c2cee6e13d49e7fc84c84e1
* | Remove DozeHardware since it will not be used.Jeff Brown2014-07-261-17/+1
| | | | | | | | | | Bug: 16516536 Change-Id: I14597d3c9470c94e3bc5b8cff500d2fe6b2fd977
* | API REVIEW: VectorDrawableztenghui2014-07-2535-362/+209
|/ | | | | | | | | | | | | | | | | | | | - Merge <size> and <viewport> attributes all in to top-level <vector> tag - Indent attributes under <group> in java doc. - Updata android:stroke to be android:strokeColor, likewise android:fill - Instead of android:clipToPath, make this a different clip-path tag. - Document units of the various attributes - Add example code for defining a VectorDrawable resource More than that: = Refactor the code to better support clipPath as a sub-class. = Update all the xml files to use the new attributes and clip-path tag. TODO: -- Remove clipToPath, since that should happen on build break Friday. bug:16488254 Change-Id: I6db5680ef83cb26c8f064a60fc7d6e7142974b0f
* Fix buildYao Chen2014-07-251-3/+3
| | | | Change-Id: Ia2a09417451dd9cdca0a6351b8ddd00f9195f361
* Merge "Add memory tracking for persistent proccesses and launcher" into lmp-devwsmlby2014-07-241-19/+48
|\
| * Add memory tracking for persistent proccesses and launcherwsmlby2014-07-241-19/+48
| | | | | | | | Change-Id: I5228bd67884dc8b77207a597f279fd4032c7f9d9
* | Merge "Add <feature-group> tag and change aapt badging" into lmp-devAdam Lesinski2014-07-243-0/+89
|\ \ | |/ |/|
| * Add <feature-group> tag and change aapt badgingAdam Lesinski2014-07-233-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A <feature-group> represents a set of features required for an app to be compatible with a device. Multiple <feature-group> elements represent a logical 'or' of required features. Features defined in the old way with <uses-feature> tags under the <manifest> tag are automatically added to each feature-group defined. Defining a <feature-group> means that any default features are not included (such as android.hardware.touchscreen) and declared permissions do not imply any features. Change-Id: I45626f0fdc546e47bcf2aead7ef05ebcca12b023
* | Allow apps to be slow at loading children and thumbnails by making those ↵Joe Onorato2014-07-231-14/+20
| | | | | | | | | | | | functions allowed to be asynchronous. Change-Id: Ibcaee3f0f8d9ba14f1b002df9c6d4594c6278045
* | s/MediaBrowseService/MediaBrowserService/Joe Onorato2014-07-241-1/+1
| | | | | | | | Change-Id: Ie07308739cdf94796a900e15527616608e02a3d4
* | Add negative sign separation support in the pathDataztenghui2014-07-239-54/+54
| | | | | | | | | | | | bug:14585171 Change-Id: I61dec27856be09c44bb1d32ff61b3c3cd458cc34
* | Merge "Add test UsageStats App" into lmp-devAdam Lesinski2014-07-224-0/+176
|\ \
| * | Add test UsageStats AppAdam Lesinski2014-07-224-0/+176
| |/ | | | | | | | | | | | | Also fixed UsageStatsService to do the right thing when AppOps returns MODE_DEFAULT. Change-Id: I0bdb28350fb2528daf2859cdcbbf9ca48d96dde9
* | Make hotword availability a callbackSandeep Siddhartha2014-07-221-13/+9
| | | | | | | | | | | | | | | | | | | | | | | | This helps us make the list sound models operation an async one, it also helps us with the case where a detector is invalidated, so the client doesn't have to keep checking the state. Synchronize DatabaseHelper methods on its instance so that other VoiceInteractionManagerService calls aren't blocked on db writes/reads. It's still possible for the list operation to be blocked on update and vice-versa Change-Id: Ib8ec4ac5056b62d443038560ce31d0641b4627b0
* | 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
|\