summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue #4502672: Wrong xml resources used for homescreen widgets.Dianne Hackborn2011-05-311-1/+1
| | | | | | | | | | | | | | | There was a race in the system process between applying the initial configuration and executing code in higher-level system services like the app widget service that relies on the config. For some reason it starting showing up more after my code changes; it should now be completely fixed. Also fix the activity starting window to run in compatibility mode if its application is going to be in compatibility mode. And some various cleanup and small fixes. Change-Id: I0566933bf1bbb4259c1d99a60c0a3c19af1542e5
* Add new supports-screens attributes for declaring the compatible screens.Dianne Hackborn2011-05-261-1/+2
| | | | | | Change-Id: I40d57e4354e48accc1027c9f90916ea73eb5190d android:requiresSmallestWidthDp provides the smallest supported width. android:compatibleWidthLimitDp provides the largest compatible width.
* Better compat mode part one: start scaling windows.Dianne Hackborn2011-05-091-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First step of improving app screen size compatibility mode. When running in compat mode, an application's windows are scaled up on the screen rather than being small with 1:1 pixels. Currently we scale the application to fill the entire screen, so don't use an even pixel scaling. Though this may have some negative impact on the appearance (it looks okay to me), it has a big benefit of allowing us to now treat these apps as normal full-screens apps and do the normal transition animations as you move in and out and around in them. This introduces fun stuff in the input system to take care of modifying pointer coordinates to account for the app window surface scaling. The input dispatcher is told about the scale that is being applied to each window and, when there is one, adjusts pointer events appropriately as they are being sent to the transport. Also modified is CompatibilityInfo, which has been greatly simplified to not be so insane and incomprehendible. It is now simple -- when constructed it determines if the given app is compatible with the current screen size and density, and that is that. There are new APIs on ActivityManagerService to put applications that we would traditionally consider compatible with larger screens in compatibility mode. This is the start of a facility to have a UI affordance for a user to switch apps in and out of compatibility. To test switching of modes, there is a new variation of the "am" command to do this: am screen-compat [on|off] [package] This mode switching has the fundamentals of restarting activities when it is changed, though the state still needs to be persisted and the overall mode switch cleaned up. For the few small apps I have tested, things mostly seem to be working well. I know of one problem with the text selection handles being drawn at the wrong position because at some point the window offset is being scaled incorrectly. There are probably other similar issues around the interaction between two windows because the different window coordinate spaces are done in a hacky way instead of being formally integrated into the window manager layout process. Change-Id: Ie038e3746b448135117bd860859d74e360938557
* Merge "Fix rendering artifact in edge fades. Bug #4092053" into honeycomb-mr1Romain Guy2011-03-143-1/+40
|\
| * Fix rendering artifact in edge fades.Romain Guy2011-03-143-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #4092053 The problem always existed but was made visible by partial invalidation. When saving a layer, the renderer would try to postpone glClear() operations until the next drawing command. This however does not work since the clip might have changed. The fix is rather simple and simply gets rid of this "optimization" (that turned out to be usless anyway given how View issues saveLayer() calls.) This change also fixes an issue with gradients (color stops where not properly computed when using a null stops array) and optimizes display lists rendering (quickly rejects larger portions of the tree to avoid executing unnecessary code.) Change-Id: I0f5b5f6e1220d41a09cc2fa84c212b0b4afd9c46
* | Add a test app: quota exceeded doing a backupChristopher Tate2011-03-117-0/+652
|/ | | | | | | | | This is a simple test app (a clone of the Backup/Restore sample code) that deliberately backs up 20 megabytes of data every time it performs a backup pass. This is to trigger the quota-exceeded logic both on the client and on the backend, for testing purposes. Change-Id: I01f04d0f85c827baadf1990c09643d5eb5f88266
* Add support for partial invalidates in WebViewRomain Guy2011-03-071-5/+7
| | | | | | | | | | | | Bug #3461349 This change also fixes two bugs that prevented partial invalidates from working with other views. Both bugs were in our EGL implementation: they were preventing the caller from comparing the current context/surface with another context/surface. This was causing HardwareRenderer to always redraw the entire screen. Change-Id: I33e096b304d4a0b7e6c8f92930f71d2ece9bebf5
* Add a new Camera API to control the camera's locationRomain Guy2011-02-233-0/+61
| | | | Change-Id: Id9a082d2def803eb527e1987875e0d8a22c6e8aa
* Moving renderscript tests away from the library to a dedicated test folder.Alex Sakhartchouk2011-02-2271-0/+5810
| | | | Change-Id: I7d8e20a17513f167eae3681d77463c01f4fa24a7
* Merge "Dirty layers in the area covered by a drawBitmapMesh() call Bug #3410827"Romain Guy2011-02-103-2/+88
|\
| * Dirty layers in the area covered by a drawBitmapMesh() callRomain Guy2011-02-103-2/+88
| | | | | | | | | | | | Bug #3410827 Change-Id: Ic8b4f6201af94497bba86c75819588c78debddc2
* | Merge "Adds CookieManager methods to configure policy for cookies for file ↵Steve Block2011-02-101-0/+2
|\ \ | | | | | | | | | scheme URLs"
| * | Adds CookieManager methods to configure policy for cookies for file scheme URLsKristian Monsen2010-12-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Needs https://android-git.corp.google.com/g/83647 in external/webkit, which disallows such cookies by default and provides configuration methods native side. Also updates TestShellActivity to allow such cookies, as they are required for the page cycler. Bug: 2944150 Change-Id: Idcc7e2812fab33e6a2a8766a2176bc3278e617da
* | | Merge "Remove SSLPerformanceTest and DatabaseSessionCache."Jesse Wilson2011-02-102-744/+0
|\ \ \
| * | | Remove SSLPerformanceTest and DatabaseSessionCache.Jesse Wilson2011-02-102-744/+0
| | |/ | |/| | | | | | | | | | | | | These aren't being run. Change-Id: I9afc617a424c675578185ac66a4f6ac3af9afacf
* | | Merge "Increase DRT timeout while waiting for WebView to dump as text"Steve Block2011-02-101-1/+1
|\ \ \ | |/ / |/| |
| * | Increase DRT timeout while waiting for WebView to dump as textSteve Block2011-02-101-1/+1
| | | | | | | | | | | | | | | | | | | | | This avoids problems with LayoutTests fast/frames/lots-of-iframes.html and fast/frames/lots-of-objects.html Bug: 3440578 Change-Id: Ic045141f986baf779ffc9eec804ba994ce0d0fbe
* | | Remove LayoutTest ↵Steve Block2011-02-091-1/+0
|/ / | | | | | | | | | | | | | | | | http/tests/xmlhttprequest/simple-cross-origin-progress-events.html from skipped list This test no longer crashes, so we should no longer skip it. Bug: 2929261 Change-Id: I808926c3dce2e9a01d6c190a18187d9ca965b662
* | am 80038fbc: am ba27cf75: Merge "Empty the clip rect when intersection is ↵Romain Guy2011-02-074-0/+118
|\ \ | | | | | | | | | | | | | | | | | | empty. Bug #3410035" into honeycomb * commit '80038fbcf629936852afba0054b26939a3a9835a': Empty the clip rect when intersection is empty. Bug #3410035
| * | Empty the clip rect when intersection is empty.Romain Guy2011-02-044-0/+118
| | | | | | | | | | | | | | | | | | Bug #3410035 Change-Id: I5ceb80514d3b20c9ad230478549ad31ced403d53
* | | resolved conflicts for merge of 31796297 to masterDaniel Sandler2011-02-071-0/+37
|\ \ \ | |/ / | | | | | | Change-Id: Ice632b3378f8f67c186245fdb63b022ade864ba1
| * | Ongoing notification for GPS use.Daniel Sandler2011-02-031-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change improves upon the notification priority API introduced in change I9e738cc4, allowing privileged clients to set the priority of a notification when posting it directly to INotificationManager. StatusBarTest is updated to test this new feature. The new LocationController in SystemUI uses this facility to post a high-priority ongoing notification whenever GPS is in use (replacing the functionality of the legacy GPS status bar icon). Also happens to fix http://b/3325472 (adding a log message when notifications are dropped because of a missing icon). Bug: 3412807 Change-Id: I523016ffa53bf979be98ddc4a2deb55a6270c68a
* | | am 109da7df: am 5bfd1aff: Merge "Allocate layers from the layers pool. Bug ↵Romain Guy2011-02-033-1/+201
|\ \ \ | |/ / | | | | | | | | | | | | | | | #3413433" into honeycomb * commit '109da7dfd4c0766274b17467880ee673c731735c': Allocate layers from the layers pool. Bug #3413433
| * | Allocate layers from the layers pool.Romain Guy2011-02-023-1/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #3413433 This change will be beneficial to Launcher to avoid hiccups when swiping pages of icons. When a layer is discarded, it is kept in the layers pool instead of being destroyed right away. This favors memory reuse over allocations. Change-Id: Ifb6944ba83d6ceb67c331527c0827b26ce648eb1
* | | Removing android.security.MessageDigestBrian Carlstrom2011-02-011-1/+1
|/ / | | | | | | | | Bug: 3392028 Change-Id: I6b9732da17d086ba00c846c3ad1c7fb39baf9502
* | New API to let apps draw without layers.Romain Guy2011-02-013-0/+178
| | | | | | | | | | | | | | | | | | Bug #3413433 Launcher now enables layers all the time, but in some cases (for instance, when the workspace is not scrolling,) it is more efficient to draw without the layer. Change-Id: I625fb5b48506acda9ae75356fdbbe812c85f2aab
* | Correctly set the alpha of a hardware layer before drawing it.Romain Guy2011-02-013-0/+172
| | | | | | | | | | | | Bug #3410819 Change-Id: I3ebaca2233f4edf5b59d84ec7706555056a1a4b1
* | Allow the status bar disable flags to be used as View's system ui visibility ↵Joe Onorato2011-01-271-1/+7
| | | | | | | | | | | | | | fields. Bug: 3363046 Change-Id: I50ba06ed9a4d2f5d0e0c807437aea9900f44fee9
* | Merge "Fit and finish on status bar:" into honeycombDaniel Sandler2011-01-252-0/+0
|\ \
| * | Fit and finish on status bar:Daniel Sandler2011-01-252-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Clock color fixed. [3374581] - Clock vertically aligned. [3388224] - Clock uses system font assets now. [3385564] - Solid version of AndroidClock added to build. [3385564] - Extraneous background glow removed from notification panel. - Removed solid black background from notifications. [3388223] - Added background image behind large notification icons and increased large size to 64dip [3388434, 3384355] - Corrected size & leading of notification text [3388577] Bug: 3374581 Bug: 3384355 Bug: 3385564 Bug: 3388223 Bug: 3388224 Bug: 3388434 Bug: 3388577 Change-Id: I8e443da5758deca412d1ce5944f887b35f6265ed
* | | change the way test app waits for gcGuang Zhu2011-01-251-10/+20
|/ / | | | | | | | | | | | | | | gcSoftReferences methods are being obsoleted, so we need a different approach to wait for gc: create a CountDownLatch and release it in a dummy object's finalizer, call gc and await on the CDL. Change-Id: I54d9e6bc05540b16ee1f3959ace9008041ac4903
* | Enable partial invalidates when rendering with OpenGL.Romain Guy2011-01-242-2/+2
| | | | | | | | Change-Id: Ie8be06c4776b815e8737753eb8003b4fd8936130
* | A few small cleanning-ups.Huahui Wu2011-01-242-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | 1. Remove mDeferMultiTouch in WebView, it was for testing only but we don't need it now since we always pass MultiTouch to WebKit. 2. Remove the use of mDeferMultiTouch in DRT tests. 3. Correct the index of getX(Y) for the second touch point in the debug string of MotionEvent. Change-Id: Ib63cfc5935af1a169ed26b2b138f74908492bc18
* | Merge "visibility ("lights out") API." into honeycombJoe Onorato2011-01-231-0/+24
|\ \
| * | visibility ("lights out") API.Joe Onorato2011-01-231-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Views may setSystemUiVisibility() to recommend that the system chrome (status bar or other UI) show or hide itself. (This functionality was previously available only via the FLAG_FULLSCREEN window flag for some SystemUI implementations.) 2. Views may register a OnSystemUiVisibilityChangedListener on a view, and find out when the system UI actually appears or disappears, allowing apps to coordinate the appearance of their own UI if desired. Bug: 3241144 Change-Id: Ia1758d94099182d49a1e3688ea2738ae4995b829
* | | Fix bitmap meshes to work in display lists.Romain Guy2011-01-231-11/+23
| | | | | | | | | | | | Change-Id: Ie226d049840942d9ad9cf58e0c19132f49d62a75
* | | Add support for arcs.Romain Guy2011-01-231-1/+25
| | | | | | | | | | | | Change-Id: I96c057ff4eb1b464b03f132da0b85333777bee4f
* | | Add support for ovals and stroked rectangles.Romain Guy2011-01-231-0/+25
|/ / | | | | | | Change-Id: I1292e241386763c82e6622c8f7ed90b0f5b7bd4f
* | Merge "b/3369602 Using Math.round() to convert float coordinates to ↵Huahui Wu2011-01-212-4/+4
|\ \ | | | | | | | | | integers." into honeycomb
| * | b/3369602 Using Math.round() to convert float coordinates to integers.Huahui Wu2011-01-212-4/+4
| | | | | | | | | | | | Change-Id: If4da01046c909667ce57a849569ae6b1acefb939
* | | Merge "Move URLTest tests to libcore." into honeycombJesse Wilson2011-01-211-228/+0
|\ \ \
| * | | Move URLTest tests to libcore.Jesse Wilson2011-01-211-228/+0
| |/ / | | | | | | | | | | | | | | | These tests were migrated to libcore in change ID I5a6bcdf1c03d0c36b11552ae086d0dece0440f64. Change-Id: Idc2d8fc3681b77c9a4c19a192a202bc556a48d23
* | | Add support for drawBitmapMesh().Romain Guy2011-01-202-0/+76
| | | | | | | | | | | | Change-Id: Ic77f9c534bb90dc7b9458299544bd50b8b6ae6a5
* | | DRT needs to clear cookies between tests.Ben Murdoch2011-01-201-0/+2
| | | | | | | | | | | | | | | | | | Fixes failure seen in fast/cookies/local-file-can-set-cookies.html Change-Id: I08b8a0fcf87003fa4621dce08604bf42e70e4635
* | | Add case-sensitive tests to DRT ignore list.Ben Murdoch2011-01-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /mnt/sdcard forces lowercase, but these tests verify the capitialization of the filename. We will never pass them with DRT1 while storing tests on external storage. DRT2 will fix this as it does not store any files locally (hence DRT2's ignore list is unchanged). Change-Id: Ia062ad77ad312a34db61d606a1d1382ac1d7b70e
* | | Add rounded rects and circles support to OpenGLRenderer.Romain Guy2011-01-192-0/+101
|/ / | | | | | | Change-Id: I6cedf2b495d58de7c0437096809fa9e4518a1b8c
* | Merge "Make embedded hardware layers work. Bug #3369474" into honeycombRomain Guy2011-01-193-0/+165
|\ \
| * | Make embedded hardware layers work.Romain Guy2011-01-193-0/+165
| | | | | | | | | | | | | | | | | | Bug #3369474 Change-Id: Ib6d7fb44eedda9dc2933b5e1b176f307968af91d
* | | further remove calls to runFinalizationGuang Zhu2011-01-181-2/+1
|/ / | | | | | | | | | | apparently these calls may deadlock as well... Change-Id: I83132aa50f4e49a170be2b960f6c3236f14745c9
* | Add support for Paint::setTextSkewX in OpenGLRenderer.Romain Guy2011-01-181-2/+14
| | | | | | | | | | | | Bug #3360888 Change-Id: I42e81a1f10bf7b9ae1c63ca8add1878fd59a1e8a