summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | update image processing to fix ScriptGroup names.Jason Sams2012-09-041-2/+2
| |/ / | | | | | | | | | Change-Id: Id3be5142ad740af65f3ce19b9d8047926bb55a85
* | | Add new hw acceleration testRomain Guy2012-09-042-0/+76
| | | | | | | | | | | | Change-Id: Id2b94286cf62ab77d8c843cffaba09b3070a6332
* | | Remove Binder.getOrigCallingUid().Dianne Hackborn2012-08-311-3/+7
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced all remaining places that used it with explicit user specification. While doing this, I ran into stuff that was creating PendingIntent objects (that now need to specify the explicit user they are for), which are also posting notifications... but have no way to specify the user for the notification. So the notification manager in the system process now also gets a formal concept of a user associated with the notification, which is passed in to all the necessary aidl calls. I also removed the old deprecated aidl interface for posting/cancelling notifications, since we now always need a user supplied. There is more work that needs to be done here, though. For example I think we need to be able to specify USER_ALL for a notification that should be shown to all users (such as low storage or low battery). Along with that, the PendingIntent creation needs to be tweaked to be able to handle USER_CURRENT by evaluating the user at the point the pending intent is sent. That's for another change, however. Change-Id: I468e14dce8def0e13e0870571e7c31ed32b6310c
* | Merge "Improve multi-user broadcasts." into jb-mr1-devDianne Hackborn2012-08-301-1/+2
|\ \
| * | Improve multi-user broadcasts.Dianne Hackborn2012-08-301-1/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can now use ALL and CURRENT when sending broadcasts, to specify where the broadcast goes. Sticky broadcasts are now correctly separated per user, and registered receivers are filtered based on the requested target user. New Context APIs for more kinds of sending broadcasts as users. Updating a bunch of system code that sends broadcasts to explicitly specify which user the broadcast goes to. Made a single version of the code for interpreting the requested target user ID that all entries to activity manager (start activity, send broadcast, start service) use. Change-Id: Ie29f02dd5242ef8c8fa56c54593a315cd2574e1c
* | Fixed MemoryUsage issue with reporting results.Maxim Siniavine2012-08-301-17/+17
|/ | | | | | | | | When the memory of the application did not stabilize within the time limit, the test would report that using the application name, instead of the result key. Fixed the test to always use the result key. Change-Id: Ie16969e831bd3d89ee0496b992568f52bf1989cb
* Merge "Fix bug in grain." into jb-mr1-devJason Sams2012-08-211-4/+4
|\
| * Fix bug in grain.Jason Sams2012-08-211-4/+4
| | | | | | | | | | | | | | Compare with 0 was done against unsigned which did not correctly clamp. Change-Id: I6dbff36190c279961017e57db3aaba51c60a0ad3
* | Merge "Move the kernel launch to specific intrinsic class." into jb-mr1-devJason Sams2012-08-211-2/+3
|\ \ | |/
| * Move the kernel launch to specific intrinsic class.Jason Sams2012-08-211-2/+3
| | | | | | | | | | | | | | This allows support of both input types. Kernel source and global source. Change-Id: Iea60bebd79c786795eae81c14cbec352b470a9c0
* | Merge "Switch to v8 (and appropriate llvm-rs-cc stuff)." into jb-mr1-devStephen Hines2012-08-212-3/+6
|\ \
| * | Switch to v8 (and appropriate llvm-rs-cc stuff).Stephen Hines2012-08-162-3/+6
| |/ | | | | | | Change-Id: Ib3f71442af4aa06a55d5a9f819b52082e23dddd6
* | am 34d85746: am b8da225f: Merge "Tests/RS: Add RS context check for RsBalls ↵Jean-Baptiste Queru2012-08-211-1/+1
|\ \ | | | | | | | | | | | | | | | | | | setAccel()" * commit '34d8574665caaef52f7c595b57f45f1c9efd7e39': Tests/RS: Add RS context check for RsBalls setAccel()
| * \ am b8da225f: Merge "Tests/RS: Add RS context check for RsBalls setAccel()"Jean-Baptiste Queru2012-08-211-1/+1
| |\ \ | | | | | | | | | | | | | | | | * commit 'b8da225f26b689288710ff0eafefa906b4f5700f': Tests/RS: Add RS context check for RsBalls setAccel()
| | * | Tests/RS: Add RS context check for RsBalls setAccel()Yong Chen2012-08-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mRS could be null when lock and unlock screen by pressing power key several times, it causes RsBalls crash. Add null pointer check to fix. Change-Id: If37dee8609420daaff17772d5194cad5531f98e6 Author: Yong Chen <yong.a.chen@intel.com> Signed-off-by: Yong Chen <yong.a.chen@intel.com> Singed-off-by: Shuo Gao <shuo.gao@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Author-tracking-BZ: 31271
| | * | Create telephony-common and mms-common - DO NOT MERGEWink Saville2012-07-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These have been created to reduce the size and complexity of frameworks/base. mms-common was created by moving all of frameworks/base/core/java/com/google/android/mms to: frameworks/opt/mms telephony-common was created by moving some of frameworks/base/telephony to: frameworks/opt/telephony Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
* | | | Added a test to measure memory usage of apps.Maxim Siniavine2012-08-214-0/+301
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Each app uses a certain amount of memory when running in the foreground. This test takes a list of app on the command line starts them one at a time and reports the total PSS of the app's process. The test allows to monitor memory usage over time. Change-Id: I3411bd96cf7c7af10acbb8deeb9936469b810ea2
* | | | Switch public APIs to use new UserHandle class for identifying users.Dianne Hackborn2012-08-174-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | Gets rid of "yet another integer" confusion. Change-Id: Id07ea7307aea7c62f0087c6663a1f1c08e2e5dee
* | | | Merge "Initial version of Renderscript Compute Benchmark" into jb-mr1-devStephen Hines2012-08-166-0/+572
|\ \ \ \
| * | | | Initial version of Renderscript Compute BenchmarkRajeev Sharma2012-08-156-0/+572
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests all library functions with all input types and outputs timing data via rsDebug. Also tests all basic numerical operations and type conversions. Change-Id: I39038606776bbf7361d5fc7a9a3ec3b05b8e6ae0
* | | | | Merge "Fisheye filter: approx version, general performance improvements" ↵Stephen Hines2012-08-166-50/+186
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | into jb-mr1-dev
| * | | | Fisheye filter: approx version, general performance improvementsRajeev Sharma2012-08-156-50/+186
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Lightly refactor original filter and rework math for performance. Add approx version which uses approx_rsqrt, approx_sqrt, and the new approx_atan function. Change-Id: I796d50da05c1684167696ea4da37d7d75fc78626
* | | | Merge "Testing java compat lib for RS." into jb-mr1-devJason Sams2012-08-1632-0/+2037
|\ \ \ \ | |/ / / |/| | |
| * | | Testing java compat lib for RS.Jason Sams2012-08-1532-0/+2037
| | | | | | | | | | | | | | | | Change-Id: I77a19dea9f6b9513b79ae6b686dfe1803bb4cd98
* | | | Power manager rewrite.Jeff Brown2012-08-151-17/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The major goal of this rewrite is to make it easier to implement power management policies correctly. According, the new implementation primarily uses state-based rather than event-based triggers for applying changes to the current power state. For example, when an application requests that the proximity sensor be used to manage the screen state (by way of a wake lock), the power manager makes note of the fact that the set of wake locks changed. Then it executes a common update function that recalculates the entire state, first looking at wake locks, then considering user activity, and eventually determining whether the screen should be turned on or off. At this point it may make a request to a component called the DisplayPowerController to asynchronously update the display's powe state. Likewise, DisplayPowerController makes note of the updated power request and schedules its own update function to figure out what needs to be changed. The big benefit of this approach is that it's easy to mutate multiple properties of the power state simultaneously then apply their joint effects together all at once. Transitions between states are detected and resolved by the update in a consistent manner. The new power manager service has is implemented as a set of loosely coupled components. For the most part, information only flows one way through these components (by issuing a request to that component) although some components support sending a message back to indicate when the work has been completed. For example, the DisplayPowerController posts a callback runnable asynchronously to tell the PowerManagerService when the display is ready. An important feature of this approach is that each component neatly encapsulates its state and maintains its own invariants. Moreover, we do not need to worry about deadlocks or awkward mutual exclusion semantics because most of the requests are asynchronous. The benefits of this design are especially apparent in the implementation of the screen on / off and brightness control animations which are able to take advantage of framework features like properties, ObjectAnimator and Choreographer. The screen on / off animation is now the responsibility of the power manager (instead of surface flinger). This change makes it much easier to ensure that the animation is properly coordinated with other power state changes and eliminates the cause of race conditions in the older implementation. The because of the userActivity() function has been changed so that it never wakes the device from sleep. This change removes ambiguity around forcing or disabling user activity for various purposes. To wake the device, use wakeUp(). To put it to sleep, use goToSleep(). Simple. The power manager service interface and API has been significantly simplified and consolidated. Also fixed some inconsistencies related to how the minimum and maximum screen brightness setting was presented in brightness control widgets and enforced behind the scenes. At present the following features are implemented: - Wake locks. - User activity. - Wake up / go to sleep. - Power state broadcasts. - Battery stats and event log notifications. - Dreams. - Proximity screen off. - Animated screen on / off transitions. - Auto-dimming. - Auto-brightness control for the screen backlight with different timeouts for ramping up versus ramping down. - Auto-on when plugged or unplugged. - Stay on when plugged. - Device administration maximum user activity timeout. - Application controlled brightness via window manager. The following features are not yet implemented: - Reduced user activity timeout for the key guard. - Reduced user activity timeout for the phone application. - Coordinating screen on barriers with the window manager. - Preventing auto-rotation during power state changes. - Auto-brightness adjustment setting (feature was disabled in previous version of the power manager service pending an improved UI design so leaving it out for now). - Interpolated brightness control (a proposed new scheme for more compactly specifying auto-brightness levels in config.xml). - Button / keyboard backlight control. - Change window manager to associated WorkSource with KEEP_SCREEN_ON_FLAG wake lock instead of talking directly to the battery stats service. - Optionally support animating screen brightness when turning on/off instead of playing electron beam animation (config_animateScreenLights). Change-Id: I1d7a52e98f0449f76d70bf421f6a7f245957d1d7
* | | | Merge "Add API to create new contexts with custom configurations." into ↵Dianne Hackborn2012-08-141-0/+33
|\ \ \ \ | |/ / / |/| | | | | | | jb-mr1-dev
| * | | Add API to create new contexts with custom configurations.Dianne Hackborn2012-08-141-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows you to, say, make a Context whose configuration is set to a different density than the actual density of the device. The main API is Context.createConfigurationContext(). There is also a new API on ContextThemeWrapper that allows you to apply an override context before its resources are retrieved, which addresses some feature requests from developers to be able to customize the context their app is running in. Change-Id: I88364986660088521e24b567e2fda22fb7042819
* | | | Intrinsics testJason Sams2012-08-142-1/+67
| | | | | | | | | | | | | | | | Change-Id: I1847ad0c9190100eb84f7e052dd9f3bff81dc447
* | | | Optimize interactions with glyph cacheChet Haase2012-08-142-0/+84
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two fixes here: - precaching: instead of caching-then-drawing whenever there is a new glyph, we cache at DisplayList record time. Then when we finally draw that DisplayList, we just upload the affected texture(s) once, instead of once per change. This is a huge savings in upload time, especially when there are larger glyphs being used by the app. - packing: Previously, glyphs would line up horizontally on each cache line, leaving potentially tons of space vertically, especially when smaller glyphs got put into cache lines intended for large glyphs (which can happen when an app uses lots of unique glyphs, a common case with, for example, chinese/japanese/korean languages). The new approach packs glyphs vertically as well as horizontally to use the space more efficiently and provide space for more glyphs in these situations. Change-Id: I84338aa25db208c7bf13f3f92b4d05ed40c33527
* | | Fix build issue with new error checks.Jason Sams2012-08-101-6/+1
| | | | | | | | | | | | Change-Id: Iccb9c12e0427622964a52806652eaddfb5834240
* | | Implement ScriptGroup and add test.Jason Sams2012-08-104-1/+213
| | | | | | | | | | | | Change-Id: I6ce0479c20f425d501c759c15717aa8b418c3f5f
* | | Reduce gradients textures size whenever possibleRomain Guy2012-08-082-0/+86
| | | | | | | | | | | | Change-Id: Ifd58625ee62edac3b5d20b77553cb98b6fa2b46e
* | | Merge "More mult-user API work." into jb-mr1-devDianne Hackborn2012-08-085-1/+153
|\ \ \
| * | | More mult-user API work.Dianne Hackborn2012-08-075-1/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - You can now use android:singleUser with receivers and providers. - New API to send ordered broadcasts as a user. - New Process.myUserHandle() API. For now I am trying out "user handle" as the name for the numbers representing users. Change-Id: I754c713ab172494bb4251bc7a37a17324a2e235e
* | | | Merge "Draw an empty border around glyphs to avoid sampling issues Bug ↵Romain Guy2012-08-071-0/+6
|\ \ \ \ | | | | | | | | | | | | | | | #6942209" into jb-mr1-dev
| * | | | Draw an empty border around glyphs to avoid sampling issuesRomain Guy2012-08-071-0/+6
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #6942209 The font renderer was preserving a 1 px border around each glyph to ensure bilinear filtering would work nicely. Unfortunately, this border was not set to 0 when glyphs were added in the cache to replace old evicted glyphs. Change-Id: Ib85afca7ebad5cb63f960dc0e87ae162333dbfe8
* | | | Add case for NEON min to RSTestRajeev Sharma2012-08-073-0/+61
|/ / / | | | | | | | | | | | | | | | Regression test for bug 6841495. Change-Id: If98380f402a711592dcddba5438e3cce5b008131
* | | Add approximate version of Vignette filter to Image Processing testRajeev Sharma2012-08-065-11/+152
| | | | | | | | | | | | | | | | | | | | | Currently uses approx_recip and approx_length (thus approx_sqrt). Will use approx_exp once this is implemented. Change-Id: I9f01023105e82a82262100d8ed831e9250a05ed8
* | | Merge "Add dithering to gradients" into jb-mr1-devRomain Guy2012-08-031-0/+9
|\ \ \
| * | | Add dithering to gradientsRomain Guy2012-08-011-0/+9
| | | | | | | | | | | | | | | | Change-Id: Ic1208855bde3a254eca2fd7cef43e0f1318ce419
* | | | Add APIs for interacting across users.Dianne Hackborn2012-08-024-12/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Expose the existing Context.sendBroadcast() as Context.sendBroadcastAsUser(). - Add new android:singleUser attribute for services. - Add new INTERACT_ACROSS_USERS_FULL permission for full system-level access to cross-user interface (allows sendBroadcastAsUser() to send to any receiver). - Add new INTERACT_ACROSS_USERS_FULL permission for more restricted cross-user interaction: this is required for android:singleUser, and allows you to use sendBroadcastAsUser() but only to send to your own receivers. Change-Id: I0de88f6718e9505f4de72e3f45d29c0f503b76e9
* | | | Vignette filter: precompute more values, simplify math, cleanup codeRajeev Sharma2012-08-011-28/+23
|/ / / | | | | | | | | | Change-Id: I29cfc313a5173fd393944dd9af58d0111a3d726a
* | | Improve gradientsRomain Guy2012-07-312-0/+125
| | | | | | | | | | | | | | | | | | Avoid using textures for common gradients (two stops from 0.0 to 1.0) Change-Id: Iff55d21b126c8cfc4cfb701669f2339c8f6b131a
* | | save 2ms replace div with mul.Jason Sams2012-07-301-5/+7
| | | | | | | | | | | | Change-Id: I13d80b074b70cd2edd71f33e2881aa367b7652c7
* | | Add vignette filter to Image Processing testRajeev Sharma2012-07-275-1/+238
| | | | | | | | | | | | | | | | | | | | | Add a vignette filter, mostly based on the GLSL version in android.filterpacks.imageproc.VignetteFilter but with more input options. Change-Id: I6f38a0ca09d35566104ec8e8523548399b8704a0
* | | Add fisheye filter to Image Processing benchmarkRajeev Sharma2012-07-275-1/+221
| | | | | | | | | | | | | | | | | | | | | | | | Add a fisheye filter, mostly based on the GLSL version in android.filterpacks.imageproc.FisheyeFilter but with the configurable center functionality from the JNI version in the original PhotoEditor. Change-Id: I6be7d82bf2ad564919f9e675ac9a445fae6c440a
* | | am ddd88726: am 71930dd7: am a45746ef: Fix several cases of broken droiddoc ↵Jeff Smith2012-07-251-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | syntax external issue 35214 * commit 'ddd88726a247e4100cb62b3dc9d0887ca2ae2ec4': Fix several cases of broken droiddoc syntax external issue 35214
| * \ \ am 71930dd7: am a45746ef: Fix several cases of broken droiddoc syntax ↵Jeff Smith2012-07-251-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | external issue 35214 * commit '71930dd77e4dc6f6be5c648019d2ab0da5f0584c': Fix several cases of broken droiddoc syntax external issue 35214
| | * | am a45746ef: Fix several cases of broken droiddoc syntax external issue 35214Jeff Smith2012-07-251-1/+1
| | |\ \ | | | | | | | | | | | | | | | | | | | | * commit 'a45746efadd11bb7dfab026fb3c81a25fae74ca4': Fix several cases of broken droiddoc syntax external issue 35214
| | | * | Fix several cases of broken droiddoc syntaxJeff Smith2012-07-251-1/+1
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | external issue 35214 patch contributed by Jeff Smith <whydoubt@yahoo.com> Change-Id: I70dcee88a140699bf3e1ab369bed6dcd2fdd3d83