aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Emugen : A tool to generate wire protocol codeJacky Romano2011-02-2514-0/+2145
| | | | | | | | | | | Emugen is a tool that can be used to generate code that deals with marshaling/unmarshaling request to/from a wire-protocol. Its input is an API defintion files and its output is C++ source code for the client (caller) and the server (callee) sides. See README file for more details. Change-Id: I45beea6657fae0887d2b4d92933213ecc20d2525
* Merge "Add unit test to SdkUiLib UpdaterData.installArchives."Raphael Moll2011-02-0811-39/+337
|\
| * Add unit test to SdkUiLib UpdaterData.installArchives.Raphael Moll2011-02-0811-39/+337
| | | | | | | | | | | | | | | | This adds or changes no functionality. It just exhibits the bug from issue 14393 which will be fixed in the next CL. Change-Id: Icff2023120014b422c002efde8f20175ff52e266
* | Merge "Fix Extract as Include"Xavier Ducrohet2011-02-081-0/+9
|\ \ | |/ |/|
| * Fix Extract as IncludeTor Norbye2011-02-081-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two fixes for Extract as Include: (1) After extracting the view fragments from the source layout, save the layout file. This is necessary in order to make the "Show Included In" functionality work on the newly extracted fragment, since the include-finder which identifies candidates for inclusion is triggered by file saves, not buffer edits, and secondly even the Show Included In facility itself requires the outer buffer to be a saved file, not an edited buffer since the parser reads from disk. (2) Insert a space after the closing quote in the include string; this could lead to broken XML in some instances. Change-Id: I10ede72ef40dc0afaa93322637397245ac9a54ee
* | Merge "Make layout editor margins compress when necessary"Tor Norbye2011-02-086-81/+64
|\ \
| * | Make layout editor margins compress when necessaryTor Norbye2011-02-086-81/+64
| |/ | | | | | | | | | | | | | | If there isn't enough room to show the margins, make the margins smaller. This gives more useful layout room when you are dealing with large screens. Change-Id: I6f967dbe6b18ca5ee85cc04db88d903cb976e851
* | Merge "Ant tasks and dependency clean up."Xavier Ducrohet2011-02-085-15/+26
|\ \ | |/ |/|
| * Ant tasks and dependency clean up.Xavier Ducrohet2011-02-085-15/+26
| | | | | | | | | | | | | | | | | | | | | | Give anttasks.jar a proper manifest with jar dependencies. Update the manifest of sdklib.jar with the common.jar dependency. The pre-setup section of build.xml has changed over time and really we should be able to control it so move it in $SDK/tools/ant/pre_setup.xml and import it into build.xml Change-Id: Iab707deccc0cdbe8d1a9db052ee6fb0762853394
* | Merge "Layout Actions bar fixes"Tor Norbye2011-02-087-26/+64
|\ \
| * | Layout Actions bar fixesTor Norbye2011-02-087-26/+64
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset fixes a couple of layout actions bar issues: (1) Refresh the actions bar after running one of the layout actions. This for example fixes the issue that if you click to toggle the layout orientation then the baseline button will appear for horizontal layouts. (2) Fix an issue with the lazy-initialization of dropdown menus; they weren't actually initialized lazily because the code to determine whether a choice list should be a dropdown or a radio group would cause initialization. (3) Fix layout gravity on RelativeLayouts; it was reading/writing the attribute "layout_gravity" instead of "gravity". Change-Id: Ic41158257b3938a2e6daa8714dcd15d6bf21fa2f
* | Merge "Leave scrollbars visible"Tor Norbye2011-02-081-2/+0
|\ \
| * | Leave scrollbars visibleTor Norbye2011-02-081-2/+0
|/ / | | | | | | | | | | | | | | | | | | Remove the code I added recently which hides the scrollbars when they are not enabled. While I want to restore it later, I need to guard against a possible scenario where showing the scrollbars causes the viewport size to change which can in turn cause the scrollbars to be hidden recursively. For R10 let's play it safe. Change-Id: I3fa30035ecbede55fd6e0063f222efc6fead386f
* | Merge "Make zoom level persistent"Tor Norbye2011-02-084-33/+72
|\ \
| * | Make zoom level persistentTor Norbye2011-02-084-33/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the zoom level of the layout editor persistent across IDE sessions. This is particularly useful now that we are dealing with larger screens, such as WXGA, where you typically need to zoom out (zoom to fit) in order to see the whole layout, and it's annoying to have to do this every time you open the IDE. Change-Id: Ib062a6a9f9291445978b3cfae03c120e4f2bf386
* | | Merge "ADT builder clean up."Xavier Ducrohet2011-02-087-70/+65
|\ \ \ | |_|/ |/| |
| * | ADT builder clean up.Xavier Ducrohet2011-02-087-70/+65
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - SourceProcessor didn't empty is toCompile/removed file list when doing a full build, meaning some files were compiled several times. - renderscript processor would always indicate that it generated resources even if that wasn't the case (no file or broken files) triggering a res compilation even if needed. Res compilation typically trigger a post compile refresh that triggers another build (which normally has no impact) but this new build also triggered a res compilation through the same issue ending with a build loop if a rs file was broken. The SourceProcessors now don't return a static compilation type but a true value based on what they did (or failed to do). - the post compiler build now properly stops executing if there are problem markers from previous builders, including the JDT one. Change-Id: Ida610dbe793f0df40b586572c52d33e4c93adff2
* | Merge "Add common.jar to the SDK build."Xavier Ducrohet2011-02-081-0/+1
|\ \ | |/ |/|
| * Add common.jar to the SDK build.Xavier Ducrohet2011-02-081-0/+1
| | | | | | | | Change-Id: Idf2ce283466dcc92ba8877d4e8166f2d64b319f4
* | Merge "Fix selection hint painting on honeycomb"Tor Norbye2011-02-072-31/+36
|\ \ | |/ |/|
| * Fix selection hint painting on honeycombTor Norbye2011-02-072-31/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The selection hints, which for example display the constraints when you are in a RelativeLayout, are painted below or to the right of the canvas. The positioning of this text was based on walking up the ViewInfo hierarchy and taking the root element's bounds as the bounds of the canvas image. The text was then placed below or to the right of this image. This no longer works with honeycomb since we now paint an action bar and a system bar, and the bounds of these are not included in the root ViewInfo, so as a result the selection hints were painted on top of the system bar. This changes the algorithm to use the image bounds itself rather than the view info bounds. Change-Id: I0e6e04608fb55af476c58a33785d5a7d5ac511c1
* | Merge "Tools r10 require ADT 10.0"Xavier Ducrohet2011-02-071-1/+1
|\ \
| * | Tools r10 require ADT 10.0Xavier Ducrohet2011-02-071-1/+1
| | | | | | | | | | | | Change-Id: Ide739f4e3edddb3ab04519262eee34d28e18bd16
* | | Merge "Make sure to quote command line paths on windows."Xavier Ducrohet2011-02-073-12/+26
|\ \ \ | |_|/ |/| |
| * | Make sure to quote command line paths on windows.Xavier Ducrohet2011-02-073-12/+26
| |/ | | | | | | | | | | | | | | | | | | | | The path of the executable should not be quoted. Linux/MacOS actually don't work if anything is quoted so only quote on windows. Strangely aapt is not affected by this so don't touch it for now Change-Id: I148f229d941baf722542ff72ee683fda212ec327
* | Merge "Default the render target to Android 3.0 for newly opened layouts"Tor Norbye2011-02-072-3/+32
|\ \
| * | Default the render target to Android 3.0 for newly opened layoutsTor Norbye2011-02-072-3/+32
|/ / | | | | | | | | | | | | | | | | When opening new layouts, or opening layouts saved with older versions of ADT, pick a render target that supports layoutlib 5. Many features (such as layout rendering, palette previews etc) work much better with layoutlib 5. Change-Id: I0c577e76a2447985be0ab9bd2603618e8f152873
* | Merge "Add Layout Actions toolbar"Tor Norbye2011-02-0735-531/+1518
|\ \ | |/ |/|
| * Add Layout Actions toolbarTor Norbye2011-02-0735-531/+1518
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new toolbar above the layout canvas (and to the right of the palette). This toolbar shows various layout-related actions on its left, and the canvas zoom controls on the right. The zoom controls have been moved from the configuration panel, which has also been reorganized a little with three of the dropdowns moved up to make more horizontal width and take the place of the old zoom controls. The toolbar items vary based on which layout is "active". The active layout is the parent layout of the selection, or the root layout in the canvas if there is no selection. Some examples: - In a LinearLayout, there are radio-button icons for switching between horizontal and vertical orientation, and for toggling baseline alignment - There are toggle buttons for toggling between wrap_content and match_parent (or fill_parent) for the layout_width and layout_height properties - There is a dropdown menu in LinearLayout and RelativeLayout which lets you set the layout_gravity to one of the dozen gravity settings - There is an action button which brings up a margin chooser dialog where you can configure the margin settings for the currently selected elements for layouts that support margins There will be additional actions here in the future. This changeset also adds a few new MenuAction subclasses and factories to make it possible to do ordered lists of choices. It also adds sorting keys to make it easier for parents and children to interleave their actions with simple sorting keys rather than having to append, prepend or merge their respective result lists. In a follow-up changeset I will replace the context menu code to use these, as well as attempt to make all actions stateless such that they can be cached and reapplied for different targets. Some misc cleanup. Change-Id: I6a87144fcfd1d359e5561829bd5d63c852f16970
* merge from tools_r9The Android Open Source Project2011-02-070-0/+0
|\ | | | | | | Change-Id: Iae5b1e83937acecc7b31c00d949afb5eee150b19
| * Merge "Package the plug-ins with debug info." into tools_r9Xavier Ducrohet2011-02-071-1/+1
| |\
| | * Package the plug-ins with debug info.Xavier Ducrohet2011-02-071-1/+1
| |/ | | | | | | | | | | This allows us to get useful stack trace from external users. Change-Id: I290a255b7bb28d6d32eee9d62cb176414d833a1c
* | Merge "Minor layoutlib API fix: rename a Capability"Xavier Ducrohet2011-02-073-5/+6
|\ \
| * | Minor layoutlib API fix: rename a CapabilityXavier Ducrohet2011-02-073-5/+6
|/ / | | | | | | | | | | TRANSPARENT -> CUSTOM_BACKGROUND_COLOR Change-Id: Iaa521231983de4d1008a7bb86b923f295d295a65
* | Merge "Added "Save As..." option for .trace files."Xavier Ducrohet2011-02-072-3/+161
|\ \
| * | Added "Save As..." option for .trace files.Pierre Zurek2011-02-072-3/+161
| | | | | | | | | | | | Change-Id: I852a3d68299629addf53890a8b42d5c0e72579f3
* | | Merge "Guard against NPE"Tor Norbye2011-02-071-3/+4
|\ \ \
| * | | Guard against NPETor Norbye2011-02-061-3/+4
| | | | | | | | | | | | | | | | Change-Id: I081c057fd7c87239cdd5b4b6ddccf949a9cb2832
* | | | Merge "Only allow palette previews when layoutlib 5 is used"Tor Norbye2011-02-071-1/+20
|\ \ \ \
| * | | | Only allow palette previews when layoutlib 5 is usedTor Norbye2011-02-061-1/+20
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disable palette previews when the target SDK does not have layoutlib 5 (or more accurately, the custom background support required by the palette, which will be backported to earlier SDKs.) Change-Id: Ib572fd070eae995541a680eaccd58411d35066b2
* | | | Merge "Package the plug-ins with debug info."Xavier Ducrohet2011-02-071-1/+1
|\ \ \ \ | |_|/ / |/| | |
| * | | Package the plug-ins with debug info.Xavier Ducrohet2011-02-071-1/+1
|/ / / | | | | | | | | | | | | | | | This allows us to get useful stack trace from external users. Change-Id: I588ba6284f7f62cb7a7b73405e805171f350adab
* | | Merge "Improve handling for GestureOverlayView"Tor Norbye2011-02-066-8/+72
|\ \ \ | |/ / |/| |
| * | Improve handling for GestureOverlayViewTor Norbye2011-02-066-8/+72
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The layout editor has special handling for the "root" element, which for example suppresses hover-highlighting for the root and a click will initiate a marquee selection rather than a drag. Some layouts wrap the layout inside a GestoreOverlayView. This does not work well since the "real" root is its child, which will not be treated as a proper root. This changeset fixes this situation by handling this scenario such that both the gesture overlay and its child is treated as the root. Also make fix such that the icon in the outline also works for the gesture overlay. Change-Id: Ia96d2bc402958b44f9f82646ff0fc4552ab0cf14
* | Merge "Palette previews with custom themes and other palette fixes"Tor Norbye2011-02-066-67/+328
|\ \
| * | Palette previews with custom themes and other palette fixesTor Norbye2011-02-066-67/+328
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Palette previews are rendered on top of the default theme background. For certain custom themes, where a gradient or image is used, this can look terrible, since the preview images will include portions of the gradient or image. This changeset improves this situation by taking advantage of layoutlib 5's ability to override the background. It now uses theme resolution to find the background color, and paints the previews with the custom background override to force this color. In addition, if the theme background is not a color (but a gradient etc), it uses layoutlib5's new render-drawable support to generate the background, and it extracts a suitable color from it (currently, the center pixel.) This fix also ensures that the foreground color (used to paint labels for the widgets that cannot be rendered, such as layouts) has a suitable contrast with the background. After computing the background, it computes the brightness, and if the foreground and background differ less than 25% in brightness, then the foreground color is forced to white or black depending on whether the background is light or dark. This changeset also contains a bugfix for a palette initialization problem where in some cases the palette could come up empty (because the code which attempts to avoid doing extra work when reloadPalette is called repeatedly could be tricked by a scenario where the SDK target does not change but its "have target data" status did.) The open palette category is now preserved across palette refreshes (which occur when you change palette modes or category/sorting options, along with theme and render target changes). Finally, the changeset also turns off the new window decorations (system bar, action bar, etc) when generating preview images for both palette previews and for drag & drop. Change-Id: I8b8766ad45f2cb6a4a6b79a24c31ed0f08d1e826
* | Merge "Add support for adding non-String value resources"Tor Norbye2011-02-066-33/+284
|\ \
| * | Add support for adding non-String value resourcesTor Norbye2011-02-066-33/+284
|/ / | | | | | | | | | | | | | | | | | | | | | | The ResourceChooser only supported adding new Strings. This changeset lets you add other types of value resources -- dimensions, integers, etc. It will create a new file in res/values/ if necessary, based on the plural form of the resource name (e.g. for "string" resources it will create "strings.xml", etc). For existing files, it will add a new entry to the existing file, using the same indentation as the last top-level element in the file. Change-Id: I09272ff52af38a8a7a059d455f398befbe0d1abc
* | Merge "Fix possible NPE in legacy callback support."Xavier Ducrohet2011-02-061-1/+5
|\ \
| * | Fix possible NPE in legacy callback support.Xavier Ducrohet2011-02-061-1/+5
|/ / | | | | | | Change-Id: I5faa155393466e1bc4b2fc1e9417cde91a8be456