summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib
Commit message (Collapse)AuthorAgeFilesLines
...
* layout lib tests cleanupXavier Ducrohet2009-10-065-320/+17
| | | | | | | | - Move test files to their own package for easy binary inclusion in adt-test - fix some tests and remove obsolete ones. Change-Id: I5b967f29074fdad74073f9b37d903eabe8dc29e6
* Add a test to make sure the replaced classes in layoutlib are correct.Xavier Ducrohet2009-10-062-6/+146
| | | | Change-Id: I9641635153c12e2c0a23583f7d094767533fc683
* Reimplement all the method of Paint for layoutlibXavier Ducrohet2009-10-051-69/+294
| | | | | | | | | | There were a few missing methods that should have been reimplmented (because they were native). Others have been added just to be sure so that we can test whether methods are missing or not (test coming soon). Change-Id: I24895c353e38545e9b1abe28d41224fdc78cadb1
* Fix the layoutlib test to run from adt-tests.Xavier Ducrohet2009-10-056-67/+53
| | | | Change-Id: I34f513429593dce9f781ed8a08c4664a5d6f9aa8
* Refactor class/method names used by layoutlib_create.Xavier Ducrohet2009-10-053-38/+86
| | | | | | | Information about classes and methods that are replaced, renamed, removed into CreateInfo, so that it can be used by the tests. Change-Id: I8874a40503249416621aa90b2ca02dcaf30ecd57
* Fix a warning output.Xavier Ducrohet2009-09-281-1/+2
| | | | | | This was introduced by the dpi work. Change-Id: I7c7b1596085f70532b8279139c287a2a58f57046
* Fix issue #2133206: dialogs/menus should auto-dismiss when screen turns offDianne Hackborn2009-09-231-1/+11
| | | | | | | Lot of infrastructure for more things to go away when "clear system dialogs" happens, and now do this when we turn on the lock screen. Change-Id: I567130296fe47ce82df065ed58ef21b37416ceaf
* Add density support to layoutlib so that bitmap are scaled if needed.Xavier Ducrohet2009-09-234-47/+78
| | | | Change-Id: I00204bb136ccaa44deeafbe0ea8746fea9903341
* Fix issue #2125720 Weather Forecast Widget - graphics do not scaleDianne Hackborn2009-09-231-2/+2
| | | | | | I forgot to add the new density field to the Bitmaps' parcelable data. Change-Id: I77cf3e93e356297e0caed6fc71b62b5cd8f79124
* Add density value to density enum.Xavier Ducrohet2009-09-221-1/+14
| | | | | | | This is going to be used as constant to both ADT classes and the layoutlib. Change-Id: Id9befe83c5c2be3fbc5f045c7ed21aa8ee0108cc
* Add a new IResourceValue that knows about the density.Xavier Ducrohet2009-09-221-0/+31
| | | | | | | This will allow the layoutlib to resize bitmaps that are not in the native density of the rendering. Change-Id: If9dca6d51cd93a2083c96fce3ac64335ec6ad801
* Add API to send an ordered sticky broadcast.Dianne Hackborn2009-09-191-0/+7
| | | | Change-Id: Ida7081204e226db0cd07ff618c08e308a909ec0c
* Fix issue #2093608: Calendar widget takes a few seconds to launchDianne Hackborn2009-09-171-0/+8
| | | | | | | | | | | Avert your eyes! The key change here is that RemoteViews can now call a Context API to start its pending intent, which inside of the activity manager we can use to determine to cancel the timeout delay for external entities to disrupt the home screen. Change-Id: If097cf7478cbed7a3c04a304050bd7fd5703d197
* Merge change 24829 into eclairAndroid (Google) Code Review2009-09-141-1/+8
|\ | | | | | | | | * changes: Some optizations to wallpaper drawing/scrolling.
| * Some optizations to wallpaper drawing/scrolling.Dianne Hackborn2009-09-141-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Fix some LayoutBridge javadoc.Raphael2009-09-142-13/+17
|/ | | | Change-Id: I255d1d58d3537403ac9a8a5c7adece30ae989ce0
* Replace fullHeight support by fullSize (height and width)Xavier Ducrohet2009-08-212-11/+16
| | | | This is useful for linearlayout in horizontal mode.
* Support full length rendering.Xavier Ducrohet2009-08-202-14/+94
| | | | | | New rendering method in ILayoutBridge to specify whether the rendering height should be the specified height or if it should be the height required by the layout (specified height is always the minimum).
* am ad4bc607: Merge change 21772 into donutXavier Ducrohet2009-08-181-0/+18
|\ | | | | | | | | | | | | Merge commit 'ad4bc607bd236dd9b06df9cf89dc5e14541ff66c' into eclair * commit 'ad4bc607bd236dd9b06df9cf89dc5e14541ff66c': Fix Resources#opeRawResource(int, TypedValue) in layoutlib.
| * Fix Resources#opeRawResource(int, TypedValue) in layoutlib.Xavier Ducrohet2009-08-181-0/+18
| |
* | am ace6a5cf: Merge change 21408 into donutXavier Ducrohet2009-08-186-156/+275
|\ \ | |/ | | | | | | | | | | Merge commit 'ace6a5cfc0d14a909b4b95bdfe16609188125baf' into eclair * commit 'ace6a5cfc0d14a909b4b95bdfe16609188125baf': Improved drawing/matrix support in layoutlib
| * Improved drawing/matrix support in layoutlibXavier Ducrohet2009-08-176-156/+275
| | | | | | | | | | | | | | - Make the custom Canvas actually replace the original one so that it's used even by parts of the framework that allocate their own temp Canvas object. - Better support for Matrix: added support for mapPoint() and mapRect(), and invert() - Implemented drawBitmap() with a Matrix, and made the paint object not NPE when null.
* | am c1c432f5: Merge change 21241 into donutXavier Ducrohet2009-08-182-11/+36
|\ \ | |/ | | | | | | | | | | Merge commit 'c1c432f57b782ed9d8d65be7ea1bee1e1d7d7839' into eclair * commit 'c1c432f57b782ed9d8d65be7ea1bee1e1d7d7839': Layoutlib now uses the dimen status_bar_height instead of hard-coded value
| * Layoutlib now uses the dimen status_bar_height instead of hard-coded valueXavier Ducrohet2009-08-132-11/+36
| | | | | | | | BUG: 2053956
* | Allow wallpapers to get touch events.Dianne Hackborn2009-08-171-2/+2
| |
* | am 94ff3f1f: Merge change 21063 into donutXavier Ducrohet2009-08-133-46/+82
|\ \ | |/ | | | | | | | | | | Merge commit '94ff3f1f08805b68c5524b39024968aebcdc83ee' into eclair * commit '94ff3f1f08805b68c5524b39024968aebcdc83ee': Fix handling of reference XML file in layout files
| * Fix handling of reference XML file in layout filesXavier Ducrohet2009-08-133-46/+82
| | | | | | | | | | This allows layout that references animation to properly load in the layout editor in ADT
* | am e1b63d22: Merge change 21033 into donutXavier Ducrohet2009-08-134-118/+283
|\ \ | |/ | | | | | | | | | | Merge commit 'e1b63d224a0a68191f087186c470cde317e3fa76' into eclair * commit 'e1b63d224a0a68191f087186c470cde317e3fa76': Mock ServiceManager and AccesibilityManager to make the view renders in ADT
| * Mock ServiceManager and AccesibilityManager to make the view renders in ADTXavier Ducrohet2009-08-124-118/+283
| | | | | | | | BUG: 2049348
* | remove GearsAndrei Popescu2009-08-131-7/+0
| |
* | Report wallpaper offset to the wallpaper, use this in the image wallpaper.Dianne Hackborn2009-08-121-0/+5
| | | | | | | | | | 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.
* | Implement support for scrolling a wallpaper.Dianne Hackborn2009-08-111-0/+4
|/ | | | | | This currently only works for a wallpaper that is larger than the screen. Set the scroll position with the new wallpaper API. Right now only does jump scrolls.
* Reimplement TypedArray.getLayoutDimension(int, int) for the layout bridge.Xavier Ducrohet2009-07-221-109/+114
|
* Add "nodpi" density, and expose a bunch of density-related APIs.Dianne Hackborn2009-07-171-5/+5
| | | | | Also update the DpiTest app to use nodpi images, and try to have a mode where it turns off compatibility though it's not quite working.
* Expand support for different screen sizes.Dianne Hackborn2009-06-261-1/+2
| | | | | | | | | Applications can now declare that they support small, normal, or large screens. Resource selection can also be done based on these sizes. By default, pre-Donut apps are false for small and large, and Donut or later apps are assumed to support all sizes. In either case they can use <supports-screens> in their manifest to declare what they actually support.
* Merge change 4696 into donutAndroid (Google) Code Review2009-06-181-0/+7
|\ | | | | | | | | * changes: Fix targetSdkVersion, make resize mode a flag, delayed dexopt, easy ApplicationInfo.
| * Fix targetSdkVersion, make resize mode a flag, delayed dexopt, easy ↵Dianne Hackborn2009-06-181-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ApplicationInfo. - Fix a bug where targetSdkVersion could not be set if minSdkVersion. Stupid, stupid. Also make sure to fail if minSdkVersion is for a code name. Really stupid. - Change the API for resize compatibility mode to be a bit in the flags field, instead of a separate boolean. - Implement delayed dexopting, to avoid the looong full dexopt during boot. This is only enabled for "eng" builds. When in this mode, the activity manager will make sure that a dexopt has been done before loading an .apk into a process, and will try to avoid displaying ANRs if they are due to the dexopt causing some operation to take longer than it normally would (though I make no guarantees about this totally working). - Add API to Context to get the ApplicationInfo for its package, for easy access to things like targetSdkVersion.
* | Connect TabHost/TabWidget/FrameLayout in the layout editor.Xavier Ducrohet2009-06-181-74/+180
|/ | | | | | Basically this does automatically what the developer has to do in his/her activity so that the TabHost gets tabs that connects the TabWidgets and the content of the FrameLayout.
* Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.Joe Onorato2009-06-111-0/+6
| | | | This took quite a bit of refactoring.
* Fix external bug 2875: Matrix#mValues[7] assigned twice in place of mValues[8]Xavier Ducrohet2009-06-051-66/+66
|
* * Moved supports-density tag under manifestMitsuru Oshima2009-06-031-8/+0
| | | | | | | | | | | * Refactored Compatibility code * Added CompatibilityInfo class * Removed getApplicationScale from Context * Added Resources#getCompatibilityInfo so that RootView can get the compatibility info w/o going through Context * Expandable support * Added expandable tag under manifest * Old application w/o expandable is given the default screen size ([320, 480] x density). * The non-expandable window is centered.
* Rewrite SyncStorageEngine to use flat files and in-memory data structures.Dianne Hackborn2009-05-051-16/+0
| | | | | | | | | | | | | | | | | | | | | | The previous implementation used a database for storing all of its state, which could cause a significant amount of IO activity as its tables were updated through the stages of a sync. This new implementation replaces that in-memory data structures, with hand-written code for writing them to persistent storage. There are now 4 files associated with this class, holding various pieces of its state that should be consistent. These are everything from a main XML file of account information that must always be retained, to a binary file of per-day statistics that can be thrown away at any time. Writes of these files as scheduled at various times based on their importance of the frequency at which they change. Because the database no longer exists, there needs to be a new explicit interface for interacting with the sync manager database. This is provided by new APIs on IContentService, with a hidden method on ContentResolver to retrieve the IContentService so that various system entities can use it. Other changes in other projects are required to update to the new API. The goal here is to have as little an impact on the code and functionality outside of SyncStorageEngine, though due to the necessary change in API it is still somewhat extensive.
* Ignore layout bin directories in git.Raphael2009-05-052-1/+3
|
* Merge branch 'readonly-p4-donut' into donutMitsuru Oshima2009-04-281-0/+8
|\
| * AI 147976: Compatibility mode support. Part 2.Mitsuru Oshima2009-04-281-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Introduced ApplicationScale (may not be good name. CompatibilityScale? CanvasScale? Pls let me know if you have better idea) * Changes to RootView / SurfaceView - Makes the app believe it's running in the supported density/resolution. - Makes the window manager believe it's running at the right density/resolution. * Added methods to Rect/Event for scaling up/down. Known issues: * certain kind of images (such as nine patch for buttons) seesm to be loaded not by app, thus does not take the scale into account, which, in turn, is causing layout issue. * ZoomButton in MapView is rendered in wrong place * Transparent region on Surface is not correct * Specifying different densities in one process is not working. BUG=1770627 Automated import of CL 147976
* | Add file to ignore the content of the layoutlib/Bridge Eclipe bin folder.Xavier Ducrohet2009-04-241-0/+1
|/
* AI 146485: am: CL 146411 Fix BridgeCanvas#drawRoundRectXavier Ducrohet2009-04-161-2/+2
| | | | | | | Original author: xav Merged from: //branches/cupcake/... Automated import of CL 146485
* auto import from //branches/cupcake_rel/...@140373The Android Open Source Project2009-03-181-5/+6
|
* auto import from //depot/cupcake/@136594The Android Open Source Project2009-03-051-30/+44
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0382-0/+15216
|