summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix in transition canceling logicChet Haase2013-06-045-7/+40
| | | | | | | | The logic that canceled underlying animations caused a problem when there were more than one animation in the list (due to removing items from a list that was currently being processed elsewhere). Change-Id: Ie207f340b5d7de4ffcf56a26c05ec394abb80224
* Various fixes/cleanup in Scenes and TransitionsChet Haase2013-06-039-2/+182
| | | | | | | | | | | | | | | | setDuration() wasn't handled correctly for TransitionGroup; it should propagate the value to its children. Also, videos with no ids were not being handled correctly. The transition code was using the default id on those views (-1) to store start/end data about the view, causing multiple non-id views to clobber values in the hashmaps. The correct approach should be to ignore default id values - only store information about the view instances, not about the unset ids. Also, added a new test InterruptTest to be used to fix the current behavior of not handling situations where new transitions start while old ones are still taking place. Change-Id: I4e880bdbb33cc26d487bceb0d56e463e72f7621f
* Fix build; update framework tests for WindowManager API changeAdam Powell2013-05-311-1/+1
| | | | Change-Id: I801c455184f2a6771f50e29dc147402db48f9fb7
* Fix ambiguous clamp.Jason Sams2013-05-291-2/+2
| | | | Change-Id: I75a55bbfe6b8ef68242c8ecd0f70ef218829d110
* New ArrayMap class.Dianne Hackborn2013-05-243-1/+518
| | | | | | | | | | | | | | | | | | | | | | | | | This is a new kind of key/value mapping that stores its data as an array, so it doesn't need to create an extra Entry object for every mapping placed in to it. It is also optimized to reduce memory overhead in other ways, by keeping the base object small, being fairly aggressive about keeping the array data structures small, etc. There are some unit and performance tests dropped in to some random places; they will need to be put somewhere else once I decided what we are going to do with this for the next release (for example if we make it public the unit tests should go in to CTS). Switch IntentResolver to using ArrayMap instead of HashMap. Also get rid of a bunch of duplicate implementations of binarySearch, and add an optimization to the various sparse arrays where you can supply an explicit 0 capacity to prevent it from doing an initial array allocation; use this new optimization in a few places where it makes sense. Change-Id: I01ef2764680f8ae49938e2a2ed40dc01606a056b
* Add tessellation path for pointsChris Craik2013-05-143-2/+49
| | | | | | | | | | | | | | | | | | bug:4351353 bug:8185479 Point tessellation is similar to line special case, except that we only tessellate one point (as a circle or rect) and duplicate it across other instances. Additionally: Fixes square caps for AA=false lines Cleanup in CanvasCompare, disabling interpolation on zoomed-in comparison view Change-Id: I0756fcc4b20f77878fed0d8057297c80e82ed9dc
* Merge "Switch Fountain(Fbo) to use RSSurfaceView instead of RSTextureView."Stephen Hines2013-05-082-14/+11
|\
| * Switch Fountain(Fbo) to use RSSurfaceView instead of RSTextureView.Stephen Hines2013-05-062-14/+11
| | | | | | | | Change-Id: Ifb036e83d76270075de1e7de3b67bb00c645bff2
* | Pack preloaded framework assets in a texture atlasRomain Guy2013-05-022-0/+76
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the Android runtime starts, the system preloads a series of assets in the Zygote process. These assets are shared across all processes. Unfortunately, each one of these assets is later uploaded in its own OpenGL texture, once per process. This wastes memory and generates unnecessary OpenGL state changes. This CL introduces an asset server that provides an atlas to all processes. Note: bitmaps used by skia shaders are *not* sampled from the atlas. It's an uncommon use case and would require extra texture transforms in the GL shaders. WHAT IS THE ASSETS ATLAS The "assets atlas" is a single, shareable graphic buffer that contains all the system's preloaded bitmap drawables (this includes 9-patches.) The atlas is made of two distinct objects: the graphic buffer that contains the actual pixels and the map which indicates where each preloaded bitmap can be found in the atlas (essentially a pair of x and y coordinates.) HOW IS THE ASSETS ATLAS GENERATED Because we need to support a wide variety of devices and because it is easy to change the list of preloaded drawables, the atlas is generated at runtime, during the startup phase of the system process. There are several steps that lead to the atlas generation: 1. If the device is booting for the first time, or if the device was updated, we need to find the best atlas configuration. To do so, the atlas service tries a number of width, height and algorithm variations that allows us to pack as many assets as possible while using as little memory as possible. Once a best configuration is found, it gets written to disk in /data/system/framework_atlas 2. Given a best configuration (algorithm variant, dimensions and number of bitmaps that can be packed in the atlas), the atlas service packs all the preloaded bitmaps into a single graphic buffer object. 3. The packing is done using Skia in a temporary native bitmap. The Skia bitmap is then copied into the graphic buffer using OpenGL ES to benefit from texture swizzling. HOW PROCESSES USE THE ATLAS Whenever a process' hardware renderer initializes its EGL context, it queries the atlas service for the graphic buffer and the map. It is important to remember that both the context and the map will be valid for the lifetime of the hardware renderer (if the system process goes down, all apps get killed as well.) Every time the hardware renderer needs to render a bitmap, it first checks whether the bitmap can be found in the assets atlas. When the bitmap is part of the atlas, texture coordinates are remapped appropriately before rendering. Change-Id: I8eaecf53e7f6a33d90da3d0047c5ceec89ea3af0
* am e325f13c: am 4e0ae8d6: Merge "Make sure the app is still app after ↵Tsu Chiang Chuang2013-05-011-14/+61
|\ | | | | | | | | | | | | launching. Bug:8755950" into jb-mr2-dev * commit 'e325f13cf0a06b98e2a638784cd75c0c04f90956': Make sure the app is still app after launching. Bug:8755950
| * am 4e0ae8d6: Merge "Make sure the app is still app after launching. ↵Tsu Chiang Chuang2013-05-011-14/+61
| |\ | | | | | | | | | | | | | | | | | | Bug:8755950" into jb-mr2-dev * commit '4e0ae8d6fdc4646a90949ddf95fd8d1f7a22055a': Make sure the app is still app after launching. Bug:8755950
| | * Make sure the app is still app after launching.Tsu Chiang Chuang2013-05-011-14/+61
| | | | | | | | | | | | | | | | | | Bug:8755950 Change-Id: Ie30d84cb94787d8b2e7bdc65e329a311581f4a3f
* | | am e9ae6822: resolved conflicts for merge of 1f6e789b to jb-mr2-dev-plus-aospKenny Root2013-04-302-4/+4
|\ \ \ | |/ / | | | | | | | | | * commit 'e9ae6822a80cb1f3bd13c785f1727c03d35da52e': Track change to JSSE provider
| * | resolved conflicts for merge of 1f6e789b to jb-mr2-dev-plus-aospKenny Root2013-04-292-4/+4
| |\ \ | | |/ | |/| | | | Change-Id: I06c05d637613215b6d83df3e29cd495f6a5a0176
| | * Track change to JSSE providerKenny Root2013-04-292-4/+4
| | | | | | | | | | | | Change-Id: I35e824e47ad758ab6408e91e2ba5dcda053a82f5
| | * am cfa979b2: am b88564d2: am 12798957: am d1a18011: Merge "Fix image ↵Xia Wang2013-01-143-129/+363
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | processing test to include all benchmark tests -- each test case can be excuted separately -- add a test case to run all benchmarks." into jb-mr1-dev * commit 'cfa979b200a016dd24e851e0da0ce956aa932e2e': Fix image processing test to include all benchmark tests -- each test case can be excuted separately -- add a test case to run all benchmarks.
| | | * am d1a18011: Merge "Fix image processing test to include all benchmark tests ↵Xia Wang2013-01-143-129/+363
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -- each test case can be excuted separately -- add a test case to run all benchmarks." into jb-mr1-dev * commit 'd1a18011a68b2cac907d080d9044d527fd4c5853': Fix image processing test to include all benchmark tests -- each test case can be excuted separately -- add a test case to run all benchmarks.
| | | | * Fix image processing test to include all benchmark testsXia Wang2013-01-143-129/+363
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -- each test case can be excuted separately -- add a test case to run all benchmarks. DO NOT MERGE Change-Id: I3c61dfe50267a6db11bc1895a4f37ed618a9103b
* | | | | Fix build due to transition test errorsChet Haase2013-04-1828-28/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | erroneous inclusion of R file for test files is causing build breakage on the server. Remove the offending lines. Change-Id: I1948facc1b5e3f8b7415e0e6c4290b53a54f12af
* | | | | First draft of Scenes & Transitions featureChet Haase2013-04-1888-0/+3764
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This checkin has preliminary API (in flux, definitely changes still to be made) and implementation for a new "Scenes & Transitions" feature. The current implementation allows you to define different Scenes (via layout resource IDs or callbacks) and Transitions to be used when changing to those scenes. By default, scene changes will use AutoTransition, which generally does the right thing. There are no overview docs or tutorials yet. The best way to learn how things work is to see the code for the various tests in frameworks/base/tests/TransitionTests. Expect the API to change. Expect the implementation to change (mostly to add more functionality). Expect bugs, but tell me if things do not work as expected. Change-Id: Ib025a9f565678b225afa4759325cf6d496cc7215
* | | | | am 9b9fe68e: am 18455c30: Merge "Add input/output JSON data for baseline ↵Chris Craik2013-04-173-38/+213
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | comparison" into jb-mr2-dev * commit '9b9fe68ea3117041e570ca158d61201acefb0d8f': Add input/output JSON data for baseline comparison
| * | | | Merge "Add input/output JSON data for baseline comparison" into jb-mr2-devChris Craik2013-04-183-38/+213
| |\ \ \ \
| | * | | | Add input/output JSON data for baseline comparisonChris Craik2013-04-103-38/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CanvasCompare will output a JSON file with test results, and can take such files as input for baseline comparison. The new logcat output breaks down results into per-test and per-modifier improvement and regressions. Change-Id: I4da0251db0637841173ac95e9f431a7ff52c8b61
* | | | | | am f7c6475d: am 85478b59: Skip apps without launch intent.Maxim Siniavine2013-04-101-0/+4
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit 'f7c6475d0a89d057b60ca63e138c8fbb5a47f1a8': Skip apps without launch intent.
| * | | | | Skip apps without launch intent.Maxim Siniavine2013-04-101-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an app from the apk cannot be launched then skip it in compatibility test, rather than generate a null pointer exception. Change-Id: I252031f249bfe25282b10394889ab8c5506cabcf
* | | | | | am 800d99f6: am 9fa49cc3: Merge "Fix [-] buttons in the notification builder ↵Daniel Sandler2013-04-091-10/+14
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test." into jb-mr2-dev * commit '800d99f6b557b8684fbdbfc882bc9789ccd3d21f': Fix [-] buttons in the notification builder test.
| * | | | | Merge "Fix [-] buttons in the notification builder test." into jb-mr2-devDaniel Sandler2013-04-091-10/+14
| |\ \ \ \ \
| | * | | | | Fix [-] buttons in the notification builder test.Daniel Sandler2013-04-091-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Broken by change I9fae5a4a). Bug: 8564511 Change-Id: I0d5b65e6678018630c812c5616e9b3f068029e66
* | | | | | | am d9574cb1: am cf5ccb8f: Fix tests build.Ying Wang2013-04-082-2/+2
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | * commit 'd9574cb12896ed639f1c220f646c2dc5e8017841': Fix tests build.
| * | | | | | Fix tests build.Ying Wang2013-04-082-2/+2
| |/ / / / / | | | | | | | | | | | | | | | | | | Change-Id: I24d65c18018a8d6df6fa3414306fc0d586d4cfa2
* | | | | | am fe2902b4: am 0e78de6c: Add tag "foo" to builder test\'s notifications.Daniel Sandler2013-04-081-1/+3
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit 'fe2902b48b0b3538e8de7b3d64064c244ca5b193': Add tag "foo" to builder test's notifications.
| * | | | | Add tag "foo" to builder test's notifications.Daniel Sandler2013-04-081-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows them to be conveniently cleared via adb: $ adb shell service call notification 5 \ s16 com.android.statusbartest \ s16 foo \ i32 <NOTIFICATIONID> \ i32 <USERID> Bug: 8564511 Change-Id: I9fae5a4a0be64d6707cc06ca938adeb8b3c0b735
* | | | | | am 5c3123d1: am 36b859a6: Merge "Specify SDK version for RS graphics tests." ↵Tim Murray2013-04-058-4/+13
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into jb-mr2-dev * commit '5c3123d1ab9103469eddcf739da1b98d3d36c978': Specify SDK version for RS graphics tests.
| * | | | | Merge "Specify SDK version for RS graphics tests." into jb-mr2-devTim Murray2013-04-058-4/+13
| |\ \ \ \ \ | | |/ / / / | |/| | | |
| | * | | | Specify SDK version for RS graphics tests.Tim Murray2013-04-058-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ia61c753392432b91f91260a9b8769dfd396c259f
* | | | | | resolved conflicts for merge of 29211d3a to masterJohn Spurlock2013-04-051-3/+0
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | Change-Id: I9691f41b12fbf52d0ef35a9bf5223edef7afdfd2
| * | | | | New NotificationListenerService.Daniel Sandler2013-04-051-3/+0
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the best and only way for apps to listen for notifications: create a NotificationListenerService, wait for the NoMan to bind to you (as a result of the user checking a box somewhere in Settings and agreeing to a scary dialog box), and you'll start receiving notification posted and dismissed callbacks. Your service, while enabled, will also be able to clear one or all notifications. Use this power wisely. This change moves StatusBarNotification out of com.android.internal into android.service.notification. [Internal customers, including System UI and early users of the system-only listener binder API, will need to be updated.] Bug: 8199624 Change-Id: I1be46f823d4b3ddc901109ec1e085cd6deb740c2
* | | | | am 4a7fae49: am eb93cc6a: Merge "add account checks to app launch test" into ↵Guang Zhu2013-03-221-0/+47
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | jb-mr2-dev * commit '4a7fae4953e4d50af9b2bf65059cfe8ea3799383': add account checks to app launch test
| * | | | add account checks to app launch testGuang Zhu2013-03-221-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This optional parameter ensures that, before test starts, device has the listed account types configured already. e.g. to test app launch time of Gmail, a valid Google account must present on device Change-Id: Idba11beff754fd1d201a9c44a562809d4a9495e2
* | | | | am 0bcec06b: am 19eceaad: Merge "Fix bug #8437358 Clean any ICU related code ↵Fabrice Di Meglio2013-03-204-320/+0
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | from TextLayout / Paint and their dependencies" into jb-mr2-dev * commit '0bcec06b24e7bc67ab4922f6bb18e6bc7737ba69': Fix bug #8437358 Clean any ICU related code from TextLayout / Paint and their dependencies
| * | | | Merge "Fix bug #8437358 Clean any ICU related code from TextLayout / Paint ↵Fabrice Di Meglio2013-03-204-320/+0
| |\ \ \ \ | | | | | | | | | | | | | | | | | | and their dependencies" into jb-mr2-dev
| | * | | | Fix bug #8437358 Clean any ICU related code from TextLayout / Paint and ↵Fabrice Di Meglio2013-03-204-320/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | their dependencies - remove the ICU related methods and update the methods using the "reserved" argument - update to CTS in another CL too Change-Id: I5509736568c342d9d17bfeafc17951117ab5d3cc
* | | | | | am 26c46054: am 4e43d76e: Merge "Move compute tests from frameworks/base to ↵Jason Sams2013-03-19455-34915/+0
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | frameworks/rs" into jb-mr2-dev * commit '26c46054a8543b529efa733a7c13483c481e861e': Move compute tests from frameworks/base to frameworks/rs
| * | | | | Merge "Move compute tests from frameworks/base to frameworks/rs" into jb-mr2-devJason Sams2013-03-19455-34915/+0
| |\ \ \ \ \
| | * | | | | Move compute tests from frameworks/base to frameworks/rsJason Sams2013-03-19455-34915/+0
| | |/ / / / | | | | | | | | | | | | | | | | | | Change-Id: I670027782f5ba6df0713dbdc3c99ae7c1eef7d22
* | | | | | am 595b5bdf: am 603ce559: Merge "Apply ComposeShader\'s local matrix to ↵Romain Guy2013-03-191-2/+11
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | children" into jb-mr2-dev * commit '595b5bdf08ab315898b4af0c5c7033a912e004f7': Apply ComposeShader's local matrix to children
| * | | | | Apply ComposeShader's local matrix to childrenRomain Guy2013-03-181-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Idf9b8e7d7b30f8fcd8ba1fd4bfe8991e9ca148e2
* | | | | | am 3c385b3f: am 16b7dc9c: Merge "Merge all shapes/paths caches to PathCache" ↵Romain Guy2013-03-191-6/+25
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into jb-mr2-dev * commit '3c385b3fc08ae2fc5325d0dd4f64d462edf3aad8': Merge all shapes/paths caches to PathCache
| * | | | | Merge all shapes/paths caches to PathCacheRomain Guy2013-03-181-6/+25
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change will greatly simplify the multi-threading of all shape types. This change also uses PathTessellator to render convex paths. Change-Id: I4e65bc95c9d24ecae2183b72204de5c2dfb6ada4
* | | | | Fix test that uses new APICraig Mautner2013-03-181-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: Ib463dbece44ef1ec9842e3766c2c133b46ca63a5