summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | am 0964bb20: am 338b1884: Merge "Improve/flesh-out shared library version ↵Dianne Hackborn2013-03-182-35/+102
|\ \ | |/ | | | | | | | | | | check." into jb-mr2-dev * commit '0964bb20f4798c9b25334dccbf2c5a14b33e6564': Improve/flesh-out shared library version check.
| * Merge "Improve/flesh-out shared library version check." into jb-mr2-devDianne Hackborn2013-03-182-35/+102
| |\
| | * Improve/flesh-out shared library version check.Dianne Hackborn2013-03-152-35/+102
| | | | | | | | | | | | Change-Id: I3d6eb19c8aeaae07a6d17de81ac707c7741608fb
* | | am cf60cc9a: am 261f82ca: Merge "Revert "Clean Paint.mBidiFlags as it is no ↵Fabrice Di Meglio2013-03-154-0/+320
|\ \ \ | |/ / | | | | | | | | | | | | | | | longer used"" into jb-mr2-dev * commit 'cf60cc9adedf032c6c97cd2cbb9ff211deaaf3ae': Revert "Clean Paint.mBidiFlags as it is no longer used"
| * | Revert "Clean Paint.mBidiFlags as it is no longer used"Fabrice Di Meglio2013-03-154-0/+320
| | | | | | | | | | | | This reverts commit 6d9fe5bd22b531bfce69b146254a4791c76acddc.
* | | am 558030ee: am 555fddb0: Merge "change how app launch is tested" into ↵Guang Zhu2013-03-141-38/+99
|\ \ \ | |/ / | | | | | | | | | | | | | | | jb-mr2-dev * commit '558030ee12d1688b892079270a65dc1744040938': change how app launch is tested
| * | change how app launch is testedGuang Zhu2013-03-131-38/+99
| |/ | | | | | | | | | | | | | | | | | | | | new approach: * for each app * initial launch * sleep 7.5s * do 10 iterations: launch app with force stop + sleep in between * report average of 10 launches Change-Id: I9e68975325aa83af35620d727823f5c072aac488
* | am 0c42b580: am 53149acf: Merge "Implement limited shared libraries in ↵Dianne Hackborn2013-03-129-0/+275
|\ \ | |/ | | | | | | | | | | apks." into jb-mr2-dev * commit '0c42b58041dc0ede9865335fa48637fb6b677cd3': Implement limited shared libraries in apks.
| * Merge "Implement limited shared libraries in apks." into jb-mr2-devDianne Hackborn2013-03-129-0/+275
| |\
| | * Implement limited shared libraries in apks.Dianne Hackborn2013-03-129-0/+275
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can now declare shared libraries in apks that are on the system image. This is like the existing mechanism of using raw jar files as shared libraries, but since they are contained in an apk the library can actually be updated from the Play Store. And this even (mostly) works. There are some deliberate limitations on this feature. A new shared library *must* be declared by an apk on the system image. Installing an update to a system image apk does not allow you to add new shared libraries; they must be defined by everything on the base system image. This allows us to get rid of a lot of ugly edge cases (shared libraries that were there disappearing after an update is uninstalled for example) and give some brakes on apps that happen to be pre-installed on devices from being able to throw in new shared libraries after the fact. In working on this, I ran into a recently introduced bug where uninstalling updated to system apps would fail. This was done to allow for the new restricted users that don't have all system apps, but conflicts with the existing semantics for uninstalling system apps. To fix this I added a new uninstall flag that lets you switch on the new mode if desired. Also to implement the desired logic for limitations on declaring new shared libraries in app updates, I needed to slightly tweak the initial boot to keep the Package object for hidden system packages associated with their PackageSetting, so we can look at it to determine which shared libraries are allowed. I think this is probably more right than it was before -- we already need to parse the package anyway, so we have it, and when you install an update to a system app we are in this same state until you reboot anyway. And having this fixed also allowed me to fix another bug where we wouldn't grant a new permission to an updated app if its system image version is updated to request the permission but its version is still older than whatever is currently installed as an update. So that's good. Also add new sample code showing the implementation of an apk shared library and a client app using it. Change-Id: I8ccca8f3c3bffd036c5968e22bd7f8a73e69be22
* | | am daafaff8: am baea5269: Merge "Add TaskManager API" into jb-mr2-devRomain Guy2013-03-121-0/+17
|\ \ \ | |/ / | | | | | | | | | * commit 'daafaff83965acbda157669e7c48a2caa55d37bc': Add TaskManager API
| * | Add TaskManager APIRomain Guy2013-03-121-0/+17
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This API can be used to run arbitrary tasks on a pool of worker threads. The number of threads is calculated based on the number of CPU cores available. The API is made of 3 classes: TaskManager Creates and manages the worker threads. Task Describes the work to be done and the type of the output. A task contains a future used to wait for the worker thread to be done computing the result of the task. TaskProcessor The processor dispatches tasks to the TaskManager and is responsible for performing the computation required by each task. A processor will only be asked to process tasks sent to the manager through the processor. A typical use case: class MyTask: Task<MyType> class MyProcessor: TaskProcessor<MyType> TaskManager m = new TaskManager(); MyProcessor p = new MyProcessor(m); MyTask t = new MyTask(); p.add(t); // Waits until the result is available MyType result = t->getResult(); Change-Id: I1fe845ba4c49bb0e1b0627ab147f9a861c8e0749
* | am 968a63ea: am 9f6421a3: Merge "Update RSTest_v14 for stride changes." into ↵Stephen Hines2013-03-124-25/+29
|\ \ | |/ | | | | | | | | | | jb-mr2-dev * commit '968a63ea133982e3acd1ba79ecd61e9e245eaa43': Update RSTest_v14 for stride changes.
| * Merge "Update RSTest_v14 for stride changes." into jb-mr2-devStephen Hines2013-03-124-25/+29
| |\
| | * Update RSTest_v14 for stride changes.Stephen Hines2013-03-074-25/+29
| | | | | | | | | | | | Change-Id: I8c5d392ba62050781f27c3a1745dbd1a2321b556
* | | am 342afc2a: am 2a2ead93: Merge "Precache paths from a worker thread" into ↵Romain Guy2013-03-121-2/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | jb-mr2-dev * commit '342afc2a4cc69bf8a54ac31482ef2cb08bafabcd': Precache paths from a worker thread
| * | Merge "Precache paths from a worker thread" into jb-mr2-devRomain Guy2013-03-121-2/+2
| |\ \
| | * | Precache paths from a worker threadRomain Guy2013-03-111-2/+2
| | |/ | | | | | | | | | Change-Id: I3e7b53d67e0e03e403beaf55c39350ead7f1e309