summaryrefslogtreecommitdiffstats
path: root/core/java/android/service/wallpaper/WallpaperService.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix typoMarco Nelissen2009-09-171-1/+1
|
* Some optizations to wallpaper drawing/scrolling.Dianne Hackborn2009-09-141-2/+41
| | | | | | | | | | | | | | | | | | | | | First, fix some issues with the final wallpaper bitmap we use: ensure it is always 16bpp, and make sure dithering of its bitmap is turned off. We take of dithering when loading, to make sure we don't use it when drawing. Also add new APIs to return the wallpaper with the equivalent of Launcher's old FastBitmapDrawable. As doing this, also load the default wallpaper the same way as custom ones, taking care to resize it as needed at load time. Finally implement a mechanism for the window manager to wait for the wallpaper to redraw at its new position before returning from the application's call to change the offset. This ensures that the wallpaper better tracks the application. Note that there is a timeout in this wait that is relatively short, and if it expires we will run for a while without waiting. Change-Id: Ife449437746da85958bd447e0a6cf3d2223b398c
* Wallpapers, animations, pending intent.Dianne Hackborn2009-09-101-5/+38
| | | | | | | | | | | Some more tweaks and fixes to wallpapers. Make sure wallpapers are told they are not visible when the screen is off. Add some new animations for transitions across tasks, and fiddle with many of the existing animations. Clean up the relationship between translucent activities and animations. Add new API to start a PendingIntent from an activity. Change-Id: Ie0bf45fe44081bb6982c75361257a55d9cd9d863
* Implement all of the infrastructure for configuring wallpapers.Dianne Hackborn2009-09-071-0/+8
| | | | | | | | | | Actually being able to configure a wallpaper relies on additional work in the launcher and wallpapers that will be in another change. Also note that this breaks all existing wallpapers, since they now need to include a meta-data item about themselves. This also will be fixed in another change. Change-Id: I97d2c2bd07237abc32f92b9147c32530a2f73c71
* Fix issue #2095422: Some fades from opaque to transparent don't workDianne Hackborn2009-09-071-1/+2
| | | | | | | | | | | | | | | | ViewRoot was using Surface.clear(), which has different behavior in different processes -- in the system process it would kill the surface, causing all windows in that process to immediately disappear instead of animating away. This change makes Surface.release() public and uses that instead. It also renames Surface.clear() to Surface.destroy(). Also fixed some issues in the window manager that were causing the wallpaper to not get immediately resized when the orientation changes and its target window is removed and re-added. Change-Id: I2a992e365cf5747511f0bf1193db32dc2525b218
* More work on wallpapers: animations, lifecycle, scaling, etc.Dianne Hackborn2009-08-301-32/+130
| | | | | | | | | | | | Yet more work on improving the behavior of wallpapers. This fixes a few problems in their lifecycle (corresponding change in the picker also required for this), makes their animations better for hardware that supports alpha fades, adds animations for the wallpapers themselves, eliminates fixed size wallpapers, and adjusts the API for retrieving a wallpaper bitmap to take care of scaling the raw wallpaper image to match the current desired width and height. Change-Id: If1c0aaceba4ea4e175dcb7a8416ca7ddbb9bfa6f
* Infrastructure for supporting wallpaper previews.Dianne Hackborn2009-08-201-6/+19
| | | | | Various things that will allow us to show previews of wallpapers. Also some fixes to animations across wallpapers.
* Don't call onSurfaceChanged() if nothing interesting has changed.Dianne Hackborn2009-08-181-8/+16
|
* Allow wallpapers to get touch events.Dianne Hackborn2009-08-171-9/+73
|
* More work on wallpapers.Dianne Hackborn2009-08-171-4/+30
| | | | | | | - Do better about figuring out when to stop them and other related window management. - Fix problem where we were not redrawing the surface when the orientation changed. This was the cause of the device hang.
* Report wallpaper offset to the wallpaper, use this in the image wallpaper.Dianne Hackborn2009-08-121-7/+63
| | | | | Wallpapers can now be just the size of the screen, and get told when their scroll position should change to do the updating on their own.
* Live wallpapers become a little more real.Dianne Hackborn2009-08-091-6/+72
| | | | | | | | | | This adds a new theme for having a wallpaper, and fixes up the window manager to do the right thing when transitioning between a windows with and without wallpapers (between two windows with wallpapers is not yet addressed). The wallpaper API now has callbacks to tell you when to start/stop animating. Also fiddle the image wallpaper to be a little more interesting.
* Very primitive wallpapers in a surface.Dianne Hackborn2009-08-081-26/+310
| | | | | | | | | | | | | | This is all of the basic pieces: - The WallpaperService now creates a surface with the window manager for its contents. - There is a simple service that displays a bitmap. - The wallpaper manager takes care of starting and stopping the service. - The window manager knows about wallpaper windows and how to layer them with the windows that want to be shown on top of wallpaper. Lots and lots of issues remain, but at this point you can actually write a wallpaper service, select it in the UI, and see it behind an activity.
* First bit of wallpaper work.Dianne Hackborn2009-08-051-0/+83
This is mostly refactoring, adding a new WallpaperManager class that takes care of the old wallpaper APIs on Context, so we don't need to pollute Context with various new wallpaper APIs as they are needed. Also adds the first little definition of a wallpaper service, which is not yet used or useful.