OSDN Git Service

android-x86/sdk.git
13 years agoChange logging API used by ITaskMonitor.
Raphael Moll [Fri, 15 Apr 2011 23:34:28 +0000 (16:34 -0700)]
Change logging API used by ITaskMonitor.

ITaskMonitor is used by the SDK Manager to display
status information and progress bar for asynchronous
tasks (e.g. fetching sources, downloading and installing
packages).

This changes the way text is logged by the monitor.
There used to be one setResult() method which historically
was designed to report 1 final message (e.g. "Install
completed") but then this was actually used to add
ongoing logging. So in this change the monitor has
3 replacement methods: log, logError and logVerbose,
which gives us more flexibility in controlling what
gets displayed.

As a side effect, this fixes unit-tests from SdkLib
that relied on previous output that changed in a
recent CL.

Change-Id: I0fa41d59db8f5eea478b88208695ef07e246ba30

13 years agoMerge "Use swtmenubar in SDK Manager 2."
Raphael Moll [Fri, 15 Apr 2011 21:42:17 +0000 (14:42 -0700)]
Merge "Use swtmenubar in SDK Manager 2."

13 years agoMerge "swtmenubar library for the SDK."
Raphael Moll [Fri, 15 Apr 2011 21:41:51 +0000 (14:41 -0700)]
Merge "swtmenubar library for the SDK."

13 years agoMerge "SDK Manager command line install improvements."
Raphael Moll [Fri, 15 Apr 2011 20:06:41 +0000 (13:06 -0700)]
Merge "SDK Manager command line install improvements."

13 years agoUse swtmenubar in SDK Manager 2.
Raphael Moll [Thu, 14 Apr 2011 06:55:32 +0000 (23:55 -0700)]
Use swtmenubar in SDK Manager 2.

This is experimental and not completely hooked up.

Change-Id: I4f4892be64f5592d909496e3c9e69c76002397d0

13 years agoswtmenubar library for the SDK.
Raphael Moll [Thu, 14 Apr 2011 06:51:39 +0000 (23:51 -0700)]
swtmenubar library for the SDK.

This little EPL library provides a way for the SDK apps to integrate
with the Mac menu bar -- that is correctly hook into the About and
Preferences menu items.

On other platforms (Windows, Linux), corresponding items are
added to the provided menu.

The library provides both a Carbon and a Cocoa implementation.
However the Cocoa implemented is currently commented out since
we only link with a Carbon-aware version of SWT.jar.

Added a README that explain how to use this.

Change-Id: I4b8457f0269946df056b5dd597c7263da1c4e784

13 years agoMerge "Throw SyncException if local file is not found instead of FileNotFoundException."
Brett Chabot [Fri, 15 Apr 2011 17:25:27 +0000 (10:25 -0700)]
Merge "Throw SyncException if local file is not found instead of FileNotFoundException."

13 years agoThrow SyncException if local file is not found instead of FileNotFoundException.
Brett Chabot [Fri, 15 Apr 2011 01:23:31 +0000 (18:23 -0700)]
Throw SyncException if local file is not found instead of FileNotFoundException.

Bug 16159

Change-Id: I13903487786b61398553a69ad09220defa78d588

13 years agoMerge "Add Baseline utility method to layoutlib's bridge."
Xavier Ducrohet [Fri, 15 Apr 2011 01:21:14 +0000 (18:21 -0700)]
Merge "Add Baseline utility method to layoutlib's bridge."

13 years agoAdd Baseline utility method to layoutlib's bridge.
Xavier Ducrohet [Fri, 15 Apr 2011 00:39:02 +0000 (17:39 -0700)]
Add Baseline utility method to layoutlib's bridge.

Change-Id: I580dad3b15de028b299a0c75e206bb31b5d6d062

13 years agoMerge "Separate MonkeyRunner core logic"
Bill Napier [Thu, 14 Apr 2011 16:56:36 +0000 (09:56 -0700)]
Merge "Separate MonkeyRunner core logic"

13 years agoMerge "Revert 183675b74e5a58211e5d9a90a9ca86546ed3e245"
David 'Digit' Turner [Thu, 14 Apr 2011 14:19:37 +0000 (07:19 -0700)]
Merge "Revert 183675b74e5a58211e5d9a90a9ca86546ed3e245"

13 years agoRevert 183675b74e5a58211e5d9a90a9ca86546ed3e245
David 'Digit' Turner [Thu, 14 Apr 2011 12:13:44 +0000 (14:13 +0200)]
Revert 183675b74e5a58211e5d9a90a9ca86546ed3e245

Unfortunately, we need to keep the duplicate libraries here to prevent
breaking a few internal branches for now.

   Remove obsolete emulator modules

   The corresponding modules have all been moved to development/tools/emulator/system/
   already. Note that we use a global variable Make trick to prevent the same module
   from being built twice, so removing these files doesn't break the builds.

   Another patch should remove the global variable Make trick from
   development/tools/emulator/system after this patch.

Change-Id: I97332216b311608de61919cb75f4b760b249c0d9

13 years agoSeparate MonkeyRunner core logic
Adrian Zakrzewski [Mon, 11 Apr 2011 11:10:53 +0000 (13:10 +0200)]
Separate MonkeyRunner core logic

    Refactored the MonkeyRunner code to separate core logic
    from the jython wrapper. The core logic is now usable
    directly from Java w/o the pollution from jython.
    The existing MonkeyRunner classes are now just a thin
    and dumb wrapper atop the core.

Change-Id: I6ef18ea92e0e9284c1fde949b4efb0e2e7170e57

13 years agoMerge "Bundle ninepatch tests resources in jar."
Brett Chabot [Wed, 13 Apr 2011 22:46:21 +0000 (15:46 -0700)]
Merge "Bundle ninepatch tests resources in jar."

13 years agoMerge "Update monkeyrunner script to find SWT."
Bill Napier [Wed, 13 Apr 2011 15:38:53 +0000 (08:38 -0700)]
Merge "Update monkeyrunner script to find SWT."

13 years agoUpdate monkeyrunner script to find SWT.
Terence Haddock [Mon, 11 Apr 2011 09:12:11 +0000 (11:12 +0200)]
Update monkeyrunner script to find SWT.

Change-Id: I75fca4620dc70ffa71d2255aff989e655be8bc16

13 years agoBundle ninepatch tests resources in jar.
Brett Chabot [Wed, 13 Apr 2011 02:41:25 +0000 (19:41 -0700)]
Bundle ninepatch tests resources in jar.

Change-Id: Ie3efc7f35908b77e6dd9fcffcea3a5d24a8fd45b

13 years agoMerge "Highlight current drop target in the outline"
Tor Norbye [Wed, 13 Apr 2011 01:13:31 +0000 (18:13 -0700)]
Merge "Highlight current drop target in the outline"

13 years agoMerge "Make drop recipient rectangle slightly thicker"
Tor Norbye [Wed, 13 Apr 2011 01:13:03 +0000 (18:13 -0700)]
Merge "Make drop recipient rectangle slightly thicker"

13 years agoMake drop recipient rectangle slightly thicker
Tor Norbye [Tue, 12 Apr 2011 16:29:55 +0000 (09:29 -0700)]
Make drop recipient rectangle slightly thicker

Change-Id: Ieab4b1c3635c64972522eb3d7cea3eafbdbaaf66

13 years agoHighlight current drop target in the outline
Tor Norbye [Tue, 12 Apr 2011 15:52:07 +0000 (08:52 -0700)]
Highlight current drop target in the outline

During a canvas drag & drop operation, highlight the current target
node in the outline. This helps make it obvious which target you are
hitting in cases where it's ambiguous, such as when you have a
hierarchy of parents with mostly overlapping bounds, such as a
TableLayout with TableRows inside.

Change-Id: I7fc4aa23afccb7da4ab5eba14730c7a2c8064782

13 years agoMerge "Add list view preview"
Tor Norbye [Tue, 12 Apr 2011 00:04:04 +0000 (17:04 -0700)]
Merge "Add list view preview"

13 years agoAdd list view preview
Tor Norbye [Wed, 6 Apr 2011 14:52:13 +0000 (07:52 -0700)]
Add list view preview

Use the new layoutlib facility to specify adapter view bindings to
assign default listview item layouts to ListViews and
ExpandableListViews. This is also used to provide a preview of
ListViews in the palette.

Note that the list preview is always showing the default list view
items. A later changeset will add the ability to pick a custom layout
to be used for listview rendering.

This changeset also contains a refactoring which pulls the cyclic
dependency validator out into a standalone class; this validator will
be used not just for include drop support but also for the layout
selector when picking layouts to preview in a listview.

Finally, the CalendarView has a new IViewRule which sets its default
width and height to fill parent.

Change-Id: If4fdec8d5439af69a34b029cb36a940fac953f86

13 years agoMerge "Usability fix for the layout actions bar"
Tor Norbye [Mon, 11 Apr 2011 23:47:31 +0000 (16:47 -0700)]
Merge "Usability fix for the layout actions bar"

13 years agoMerge "Add Table layout actions"
Tor Norbye [Mon, 11 Apr 2011 23:47:21 +0000 (16:47 -0700)]
Merge "Add Table layout actions"

13 years agoMerge "Make theme selection take rendering target into account"
Tor Norbye [Mon, 11 Apr 2011 23:47:00 +0000 (16:47 -0700)]
Merge "Make theme selection take rendering target into account"

13 years agoMerge "SDK Manager: Fix detection of emulator in tools local folder."
Raphael Moll [Mon, 11 Apr 2011 19:56:58 +0000 (12:56 -0700)]
Merge "SDK Manager: Fix detection of emulator in tools local folder."

13 years agoSDK Manager: Fix detection of emulator in tools local folder.
Raphael Moll [Mon, 11 Apr 2011 19:31:01 +0000 (12:31 -0700)]
SDK Manager: Fix detection of emulator in tools local folder.

That's because the constant used did not have
the extension anymore.

Note: this was only an issue on Windows since mac/linux
don't need the .exe extension in emulator.

Also this doesn't fix the missing "emulator.exe" in AOSP,
but digit has the CL for that. So in AOSP one need to manually
copy tools/emulator-arm to tools/emulator for the local tools
package to be correctly recognized.

Change-Id: I9ab254eec5c28c4d006ba4132d6b0c6d87c01e15

13 years agoMerge "Initial version of "easy monkeyrunner"."
Bill Napier [Mon, 11 Apr 2011 16:47:07 +0000 (09:47 -0700)]
Merge "Initial version of "easy monkeyrunner"."

13 years agoInitial version of "easy monkeyrunner".
Terence Haddock [Wed, 30 Mar 2011 11:02:28 +0000 (13:02 +0200)]
Initial version of "easy monkeyrunner".

Change-Id: I4fce0fb00eac1ed59d0b8a3bd4ac8d168b36b4e0

13 years agoUsability fix for the layout actions bar
Tor Norbye [Mon, 11 Apr 2011 01:33:46 +0000 (18:33 -0700)]
Usability fix for the layout actions bar

The layout actions bar shows actions of two types:

* Actions which edit attriubutes of the "current layout"; typically
  the parent of the currently selected views.  For example, the
  "orientation" or "baseline" attributes of a LinearLayout.

* Actions which edit the layout parameters of the selected views. For
  example, the "weight" attribute of children in a LinearLayout.

One thing which was missing is adding in layout actions for views that
are children. For example, the TableView now has an "Insert Row"
action.  If you select the table itself, rather than a child within
the table, you would not see the Insert Row action. Similarly, if you
drop a new LinearLayout, you cannot toggle its orientation attribute;
it won't be shown, or if it is within another LinearLayout, you will
see an orientation toggle but it controls the parent, not the newly
selected LinearLayout.

This changeset addresses this by adding a new section of actions on
the right hand side of the actions bar, which contains the layout
actions which apply to the selection, regardless of the parent type.

For example, if you have a LinearLayout containing a TableLayout, and
you have selected the TableLayout, you will first see the LinearLayout
actions, then the LinearLayout layoutparams actions (which will be
applied to the TableLayout), and finally the TableLayout layout
actions (insert and remove row).

This changeset also improves the TableLayout insert row action to
insert the row before the current selected row (if any) rather than
unconditionally appending it to the end. It also selects the table
after creation to make it more obvious where it was added.  The new
ability to select nodes from layout rules is also used in a couple of
other places.

Change-Id: I7cd8f75e61fc916bc75ed5ad156440f0f8cbd786

13 years agoSDK Manager command line install improvements.
Raphael Moll [Fri, 8 Apr 2011 23:33:34 +0000 (16:33 -0700)]
SDK Manager command line install improvements.

1- In no-ui mode, the "update sdk" command was missing
the add-on filter type, e.g.:
$ android update sdk --no-ui --filter add-on

This restores it and adds a unit-test to make sure
the cmd line check is in sync with the array definitions.

2- Adds a new command line option "list sdk" to list
all possible packages that can be found and updated from
the remote sites. The list has indexes which can then
be used with the "update sdk --filter" option to pick
specific packages to install.

Example:

$ android list sdk
Packages available for install: 7
   1- Android SDK Tools, revision 10
   2- Documentation for Android SDK, API 11, revision 1
...
$ android update sdk --no-ui --filter doc,3,7

This will install "all doc packages" as well as the
packages 3 and 7 mentioned in the "list sdk" output.

3- Changed the "--obsolete" flag to list not only obsolete
packages but actually *all* packages. This works around the
issue that the SDK Manager tries, by default, to only show
unknown platforms that are higher than whatever is currently
installed, so there was no way with the UI to install an
older platform (e.g. if you had API 11 installed, it would
not list APIS 3-10 for new installation.)
I'll revisit this behavior later.

SDK Issue: http://code.google.com/p/android/issues/detail?id=15933

Change-Id: I7626257c39602908058eb7359b4c98cc3f54eef3

13 years agoMake theme selection take rendering target into account
Tor Norbye [Thu, 7 Apr 2011 00:55:13 +0000 (17:55 -0700)]
Make theme selection take rendering target into account

If the current rendering target is less than API level 11, then don't
use the Holo theme even if the project itself has >= 11 as an SDK
target.

Change-Id: I23c8a4865fa4af3c46fbfa34f0a83b18e7ed9b63

13 years agoAdd Table layout actions
Tor Norbye [Sat, 9 Apr 2011 00:55:25 +0000 (17:55 -0700)]
Add Table layout actions

Add "add row" and "remove row" layout actions to the TableLayout and
to the TableRow view rules.

Also, add 4 rows into TableView created through the palette.

When https://review.source.android.com//#change,22077 is integrated
I'll also make it add these TableRows when creating a TableLayout
through the New XML File Wizard.

Change-Id: I906eb6ab479c3781d3d8eb0a536cec67459ddec2

13 years agoMerge "Fix phone sort in configuration chooser."
Xavier Ducrohet [Sat, 9 Apr 2011 00:48:00 +0000 (17:48 -0700)]
Merge "Fix phone sort in configuration chooser."

13 years agoFix phone sort in configuration chooser.
Xavier Ducrohet [Fri, 8 Apr 2011 22:33:00 +0000 (15:33 -0700)]
Fix phone sort in configuration chooser.

When trying to figure out the best device to use to render a given
layout, we sort all the potential candidates. The sort would
favor lower densities before higher ones.

This new sort gives us flexibility in which density are higher
priority.
The current order is: high, med, xhigh, low.

Change-Id: Ie0d5a583bb850d0a2888e973a9e93cfac27bc4d3

13 years agoMerge "Drop-Down list for example projects looks strange on Linux (Project Wizard)"
Raphaël Moll [Fri, 8 Apr 2011 20:49:18 +0000 (13:49 -0700)]
Merge "Drop-Down list for example projects looks strange on Linux (Project Wizard)"

13 years agoDrop-Down list for example projects looks strange on Linux (Project Wizard)
Haris Peco [Thu, 7 Apr 2011 16:09:58 +0000 (18:09 +0200)]
Drop-Down list for example projects looks strange on Linux (Project Wizard)

See http://code.google.com/p/android/issues/detail?id=15529

Change-Id: If69ae23c3949a6c871c4d6dd451011e7c0ba1656

13 years agoMerge "Java editor save actions for SdkUiLib"
Raphael Moll [Fri, 8 Apr 2011 18:02:19 +0000 (11:02 -0700)]
Merge "Java editor save actions for SdkUiLib"

13 years agoMerge "SDK Manager 2: details vs obsolete, better sort by API."
Raphael Moll [Fri, 8 Apr 2011 18:01:15 +0000 (11:01 -0700)]
Merge "SDK Manager 2: details vs obsolete, better sort by API."

13 years agoMerge "Turn off palette previews during unit tests"
Tor Norbye [Fri, 8 Apr 2011 17:59:51 +0000 (10:59 -0700)]
Merge "Turn off palette previews during unit tests"

13 years agoJava editor save actions for SdkUiLib
Raphael Moll [Fri, 8 Apr 2011 17:51:32 +0000 (10:51 -0700)]
Java editor save actions for SdkUiLib

- remove trailing white space
- remove unused NON-NLS tags

Change-Id: I5c02f7b1c46453badbb8d0ad5c8160f579097849

13 years agoSDK Manager 2: details vs obsolete, better sort by API.
Raphael Moll [Thu, 7 Apr 2011 18:10:03 +0000 (11:10 -0700)]
SDK Manager 2: details vs obsolete, better sort by API.

- Remove "details" and go back to the "obsolete" filter.

- Refactor: constants for all icons names.

- Rework sortByAPI to refresh in-place. This allows the table
  to preserve its state (expanded, selected, checked) when
  being refreshed. In-place not done for the sortBySource mode
  yet.

Change-Id: I81560091253f5a3250b7472d050ffa7e8b86fb88

13 years agoMerge "Put some new icons."
Xavier Ducrohet [Fri, 8 Apr 2011 17:28:40 +0000 (10:28 -0700)]
Merge "Put some new icons."

13 years agoTurn off palette previews during unit tests
Tor Norbye [Fri, 8 Apr 2011 16:19:57 +0000 (09:19 -0700)]
Turn off palette previews during unit tests

Set the default palette mode to icon+text rather than preview during
unit test runs. Since each test run will create a blank workspace, the
previews have to be recomputed each time, which adds a couple of
seconds. Also, there are some problems on Windows when the previewing
code runs under unit tests, which this will work around.

Change-Id: Ic6a7bdaee731a219ff6042075977e12b0eeda111

13 years agoPut some new icons.
Xavier Ducrohet [Fri, 8 Apr 2011 01:31:27 +0000 (18:31 -0700)]
Put some new icons.

- ddms and (one of) hierarchy viewer perspective.
- feature about for traceview/hierarchyviewer
- use the draw9patch icon for the resource view in ADT
- use the emulator icon for the emulator control view in DDMS
- use the new android icon for the ADT wizard.

Also standardized on <toolsname>-<size>.png for the icon names.
ADT uses android-##.png

Change-Id: I1ce2a0dae5d256049b381552bd89aef717f51da6

13 years agoMerge "Reset sInitialized when calling AndroidDebugBridge.terminate()."
Xavier Ducrohet [Thu, 7 Apr 2011 20:13:04 +0000 (13:13 -0700)]
Merge "Reset sInitialized when calling AndroidDebugBridge.terminate()."

13 years agoMerge "Sort elements alphabetically in code completion"
Tor Norbye [Thu, 7 Apr 2011 19:30:58 +0000 (12:30 -0700)]
Merge "Sort elements alphabetically in code completion"

13 years agoMerge "SDK Manager 2: Refactor window implementation."
Raphael Moll [Thu, 7 Apr 2011 17:59:20 +0000 (10:59 -0700)]
Merge "SDK Manager 2: Refactor window implementation."

13 years agoMerge "Continuing UI for new SDK Manager Packages Page."
Raphael Moll [Thu, 7 Apr 2011 17:59:11 +0000 (10:59 -0700)]
Merge "Continuing UI for new SDK Manager Packages Page."

13 years agoMerge "Remove obsolete emulator modules"
David 'Digit' Turner [Thu, 7 Apr 2011 09:00:28 +0000 (02:00 -0700)]
Merge "Remove obsolete emulator modules"

13 years agoRemove obsolete emulator modules
David 'Digit' Turner [Thu, 7 Apr 2011 08:16:15 +0000 (10:16 +0200)]
Remove obsolete emulator modules

The corresponding modules have all been moved to development/tools/emulator/system/
already. Note that we use a global variable Make trick to prevent the same module
from being built twice, so removing these files doesn't break the builds.

Another patch should remove the global variable Make trick from
development/tools/emulator/system after this patch.

Change-Id: I547d2a0173ddf58c1870784920ce795f6a0d7bcf

13 years agoReset sInitialized when calling AndroidDebugBridge.terminate().
Xavier Ducrohet [Thu, 7 Apr 2011 01:50:35 +0000 (18:50 -0700)]
Reset sInitialized when calling AndroidDebugBridge.terminate().

This will allow calling init() again after a terminate().

Change-Id: Icdda999624f13485f419ae53bc2139a5ceaa3229

13 years agoSort elements alphabetically in code completion
Tor Norbye [Thu, 7 Apr 2011 00:12:56 +0000 (17:12 -0700)]
Sort elements alphabetically in code completion

Attributes were sorted, but not elements. Layout descriptors were
mostly sorted already, but with all views before viewgroups. The
manifest elements were in the order they must appear in the manifest
files.

Change-Id: I03e3fce032949f9df6ffc0ef96386b7458754270

13 years agoMerge "Minor layoutlib api change for the data binding project callback."
Xavier Ducrohet [Wed, 6 Apr 2011 22:37:34 +0000 (15:37 -0700)]
Merge "Minor layoutlib api change for the data binding project callback."

13 years agoMerge "Move getViewParent/Index from RenderSession to Bridge."
Xavier Ducrohet [Wed, 6 Apr 2011 22:37:27 +0000 (15:37 -0700)]
Merge "Move getViewParent/Index from RenderSession to Bridge."

13 years agoMerge "Fix hyperlinks plugin unit test on Windows."
Raphael Moll [Wed, 6 Apr 2011 22:29:40 +0000 (15:29 -0700)]
Merge "Fix hyperlinks plugin unit test on Windows."

13 years agoMinor layoutlib api change for the data binding project callback.
Xavier Ducrohet [Wed, 6 Apr 2011 22:18:16 +0000 (15:18 -0700)]
Minor layoutlib api change for the data binding project callback.

Change-Id: Ib1b39938a459627a6ecf70556bdd6a99342ddf93

13 years agoFix hyperlinks plugin unit test on Windows.
Raphael Moll [Wed, 6 Apr 2011 21:36:26 +0000 (14:36 -0700)]
Fix hyperlinks plugin unit test on Windows.

Change-Id: I7c48ffe1beb511b0639ae90a26f1a8ee435fad47

13 years agoMove getViewParent/Index from RenderSession to Bridge.
Xavier Ducrohet [Wed, 6 Apr 2011 19:22:00 +0000 (12:22 -0700)]
Move getViewParent/Index from RenderSession to Bridge.

Also update the IProjectCallback to handle expandableListView.

Change-Id: I36ca8733182bbd9d169fee3e709ebc532fef7b1e

13 years agoMerge "Make debug key expire in 30 years (instead of 1)."
Raphael Moll [Wed, 6 Apr 2011 19:13:22 +0000 (12:13 -0700)]
Merge "Make debug key expire in 30 years (instead of 1)."

13 years agoMerge "New LayoutLib API to handle data binding in ExpandableListView."
Xavier Ducrohet [Wed, 6 Apr 2011 18:19:40 +0000 (11:19 -0700)]
Merge "New LayoutLib API to handle data binding in ExpandableListView."

13 years agoNew LayoutLib API to handle data binding in ExpandableListView.
Xavier Ducrohet [Wed, 6 Apr 2011 02:24:38 +0000 (19:24 -0700)]
New LayoutLib API to handle data binding in ExpandableListView.

Change-Id: Ic59acce7485887b4efde76697a85848e6bf91a97

13 years agoSDK Manager 2: Refactor window implementation.
Raphael Moll [Sat, 2 Apr 2011 01:04:32 +0000 (18:04 -0700)]
SDK Manager 2: Refactor window implementation.

The previous patch based the implementation of the
new window on top of the old UpdaterWindowImpl.
Although that works since there are many things in
common, in practice the goal is to get rid of the
old one eventually so it's easier to not add a
dependency that needs to be removed later.

Change-Id: Ic1eac19dcc7e91d6750b7462eb2d28b447acad3a

13 years agoContinuing UI for new SDK Manager Packages Page.
Raphael Moll [Tue, 22 Mar 2011 17:17:52 +0000 (10:17 -0700)]
Continuing UI for new SDK Manager Packages Page.

- Changed application to not display the "page selector" anymore.
  Instead there's only one page, which is is the available+installed
  packages combined page.

- The app behavior depends on the env var.
  - When set, it becomes the "SDK Manager" to only deal with packages.
  - When unset, it has the previous look & pages to deal with both
    AVD and SDK packages.
  - Eventually we'll also have an AVD separate app and we can
    factor out/cleanup the old window implementation.

- Integrated the progress bar + status in the page.
  - This isn't linked to Eclipse yet.
  - The ProgressTask* classes deal with the old behavior of
    a separate progress dialog.
  - The new ProgresView* classes deal with the new behavior
    of the progress status incorporated in the main page.

Other changes:
- Changed layout of the new package page
- Center add-on sites dialog on top of parent.
- Display "details" in tree view (e.g. includes obsolete
  packages + all archives)
- Plug in logic for install/delete buttons

Change-Id: I84c021cb7104681bb39445bd79ab01e161a22796

13 years agoMerge "Fix layout action bar selection from outline"
Tor Norbye [Tue, 5 Apr 2011 22:08:22 +0000 (15:08 -0700)]
Merge "Fix layout action bar selection from outline"

13 years agoMerge "Update changes.txt for ADT 10 and 10.0.1"
Tor Norbye [Tue, 5 Apr 2011 22:08:05 +0000 (15:08 -0700)]
Merge "Update changes.txt for ADT 10 and 10.0.1"

13 years agoMerge "New application icons for the various SDK tools"
Tor Norbye [Tue, 5 Apr 2011 20:36:47 +0000 (13:36 -0700)]
Merge "New application icons for the various SDK tools"

13 years agoMake debug key expire in 30 years (instead of 1).
Raphael Moll [Tue, 5 Apr 2011 18:16:50 +0000 (11:16 -0700)]
Make debug key expire in 30 years (instead of 1).

The 1 year expiration on the default debug key
is made annoying since we don't regenerate it
automatically when it expires.

Also added a simple unit test to check key creation
and expiration date.

SDK Bug: http://code.google.com/p/android/issues/detail?id=15370

Change-Id: Ie1ee14d8888275c2dae282bfb1235af54753ac0e

13 years agoNew application icons for the various SDK tools
Tor Norbye [Tue, 5 Apr 2011 20:20:12 +0000 (13:20 -0700)]
New application icons for the various SDK tools

This changeset integrates a new set of application icons by Roman
Nurik for the various SDK tools: DDMS, Hierarchyviewer, Traceview, the
SDK manager, and the Eclipse about box icon.

We have new icons with the same visual look for draw9patch and
emulator as well, which are not integrated here. Draw9patch is written
in Swing, so it doesn't have a way to set a dock icon on the Mac
(other than with a startup script modification to pass -Xdock:icon,
which means we also need to bundle the .icns image outside its
.jar). I couldn't find the place the emulator dock image is set so I
will ask around and file a separate CL for that.

Change-Id: Idbb2212b8d0d5f1bd2d41b3576079ff409c7e9c8

13 years agoMerge "Fix crop tests on Windows (RGB endianess issue)."
Raphael Moll [Tue, 5 Apr 2011 19:27:40 +0000 (12:27 -0700)]
Merge "Fix crop tests on Windows (RGB endianess issue)."

13 years agoFix crop tests on Windows (RGB endianess issue).
Raphael Moll [Tue, 5 Apr 2011 16:54:24 +0000 (09:54 -0700)]
Fix crop tests on Windows (RGB endianess issue).

Since endianess can change between an input and output
image in SwtUtils, it's important to not test pixels as
pure int values but instead use the correct RGB palette
mapping.

Change-Id: Icd3aad499a5cc069e8cc804af7511c95849a78a6

13 years agoMerge "Store plugin tests results in a tmp sub folder."
Raphael Moll [Tue, 5 Apr 2011 16:37:25 +0000 (09:37 -0700)]
Merge "Store plugin tests results in a tmp sub folder."

13 years agoMerge "Fix AttrParser tests on Windows."
Raphael Moll [Tue, 5 Apr 2011 16:37:12 +0000 (09:37 -0700)]
Merge "Fix AttrParser tests on Windows."

13 years agoUpdate changes.txt for ADT 10 and 10.0.1
Tor Norbye [Tue, 5 Apr 2011 15:59:12 +0000 (08:59 -0700)]
Update changes.txt for ADT 10 and 10.0.1

Change-Id: I8810fd34dc10c4e73787857b078aeac83f0857b1

13 years agoFix layout action bar selection from outline
Tor Norbye [Tue, 5 Apr 2011 14:31:04 +0000 (07:31 -0700)]
Fix layout action bar selection from outline

The layout action bar needs to update its selection when the selection
origin is the outline rather than the canvas.

Change-Id: Ibe66efc9f071934989dc4bde7bea0c8342c09ae8

13 years agoStore plugin tests results in a tmp sub folder.
Raphael Moll [Tue, 5 Apr 2011 00:19:10 +0000 (17:19 -0700)]
Store plugin tests results in a tmp sub folder.

Change-Id: Ib52b2ae105225f3052cd46690d21a3f81be309d6

13 years agoMerge "Zoom with scrollwheel in Traceview."
Xavier Ducrohet [Mon, 4 Apr 2011 23:57:44 +0000 (16:57 -0700)]
Merge "Zoom with scrollwheel in Traceview."

13 years agoMerge "Added about files for Traceview plugin."
Xavier Ducrohet [Mon, 4 Apr 2011 23:52:40 +0000 (16:52 -0700)]
Merge "Added about files for Traceview plugin."

13 years agoMerge "Changed bundle versions in some manifests."
Xavier Ducrohet [Mon, 4 Apr 2011 23:47:55 +0000 (16:47 -0700)]
Merge "Changed bundle versions in some manifests."

13 years agoMerge "Fix in MethodProfilingHandler."
Xavier Ducrohet [Mon, 4 Apr 2011 23:42:25 +0000 (16:42 -0700)]
Merge "Fix in MethodProfilingHandler."

13 years agoFix AttrParser tests on Windows.
Raphael Moll [Mon, 4 Apr 2011 23:35:04 +0000 (16:35 -0700)]
Fix AttrParser tests on Windows.

Change-Id: I7c73b484db07aa06c6c4812672f88242b34c1e3e

13 years agoMerge "LayoutLib API: update adapter binding callbacks."
Xavier Ducrohet [Mon, 4 Apr 2011 22:57:52 +0000 (15:57 -0700)]
Merge "LayoutLib API: update adapter binding callbacks."

13 years agoLayoutLib API: update adapter binding callbacks.
Xavier Ducrohet [Mon, 4 Apr 2011 20:57:05 +0000 (13:57 -0700)]
LayoutLib API: update adapter binding callbacks.

Change-Id: I85be09fd7541da366c858ea04d7c2c4b53948475

13 years agoMerge "Pick layout themes from manifest registrations and target SDK"
Tor Norbye [Mon, 4 Apr 2011 22:34:16 +0000 (15:34 -0700)]
Merge "Pick layout themes from manifest registrations and target SDK"

13 years agoPick layout themes from manifest registrations and target SDK
Tor Norbye [Thu, 17 Mar 2011 00:37:48 +0000 (17:37 -0700)]
Pick layout themes from manifest registrations and target SDK

This changeset changes the way the layout editor picks themes when a
layout is opened. It used to just pick the first available theme in
the theme chooser.

Now it performs the following checks, in order:

* Does this layout have a persisted theme setting from a previous run
  of the tool? If yes, use it.
* Can the activity for this layout be determined? If so, look at the
  manifest registration for the corresponding activity, and if it
  specifies a theme, use it.
* If not, does the manifest specify a default theme for the project?
  If so, use it.
* If not, is the target SDK version (or the minimum SDK version, if
  the target is not specified) at least API level 11 or higher? If so,
  the default theme is "Theme.Holo"
* If not, the default theme is "Theme".
* If the file to be opened is included from some other layout, use
  the no-decorations versions of the default layouts, e.g.
  Theme.NoTitleBar or Theme.Holo.NoActionBar.
* At the end of this resolution, the computed theme is stored as the
  persisted theme setting for this layout, so the above algorithm will
  only be computed once. We might want to tweak this such that it
  distinguishes between a default computation of a theme and a manual
  user choice of a theme.
* If the file is opened as "Show Included In" (e.g. rendered within an
  outer file) then the theme chosen is the one for the outer file.

During startup, this information will be asked for each and every
layout being reopened, so there is now a "ManifestInfo" class attached
to the project which keeps manifest information around. It checks the
timestamp of the AndroidManifest.xml file and refreshes its
information lazily if necessary.

All themes mentioned in the manifest are listed in a special section
at the top of the theme chooser (below the entry for the default
computed described above).

The code to look up the associated Activity of a layout is using a
simple heuristic: it looks for usages of the corresponding R.layout
field, and prefers references from methods called onCreate or in
classes whose superclass name ends with Activity. I tried a different
approach where I searched for usages of Activity.setContentView(int)
but this failed to identify a number of cases where the activity was
doing some simple logic and didn't pass the layout id directly as a
parameter in setContentView, so I went back to the basic approach.

Change-Id: Ibd3c0f089fefe38e6e6c607d65524990699c86d3

13 years agoMerge "Make code completion skip the layout_ prefix if necessary"
Tor Norbye [Mon, 4 Apr 2011 22:27:16 +0000 (15:27 -0700)]
Merge "Make code completion skip the layout_ prefix if necessary"

13 years agoMerge "Add frequency count to Extract Style refactoring wizard"
Tor Norbye [Mon, 4 Apr 2011 22:27:05 +0000 (15:27 -0700)]
Merge "Add frequency count to Extract Style refactoring wizard"

13 years agoAdd frequency count to Extract Style refactoring wizard
Tor Norbye [Mon, 4 Apr 2011 22:17:30 +0000 (15:17 -0700)]
Add frequency count to Extract Style refactoring wizard

The frequency count lists the number of attributes with a given value
out of the total number of elements, to help make it obvious if an
attribute is *not* specified for one or more elements. Without this,
only the elements with a value would be shown or counted.

Change-Id: I7866ea069090a766ab1f1cb4d7004d2763c59c5e

13 years agoMerge "Dynamically generated resources id were not used in id resolution."
Xavier Ducrohet [Mon, 4 Apr 2011 21:01:08 +0000 (14:01 -0700)]
Merge "Dynamically generated resources id were not used in id resolution."

13 years agoMerge "Add toString to ResourceReference"
Xavier Ducrohet [Mon, 4 Apr 2011 21:01:05 +0000 (14:01 -0700)]
Merge "Add toString to ResourceReference"

13 years agoMerge "Fix value of dynamic resource IDs used when rendering."
Xavier Ducrohet [Mon, 4 Apr 2011 21:01:01 +0000 (14:01 -0700)]
Merge "Fix value of dynamic resource IDs used when rendering."

13 years agoDynamically generated resources id were not used in id resolution.
Xavier Ducrohet [Mon, 4 Apr 2011 20:39:54 +0000 (13:39 -0700)]
Dynamically generated resources id were not used in id resolution.

Dynamic IDs are generated when requesting an int value from a
(type,name) pair where type==ResourceType.ID and the name doesn't
reference any existing ID (This is possible when IDs are declared inline
and the layout file has not been saved, for instance, so the R class
has not been regenerated yet).

There is a reverse method querying for a (type,name) pair based on
an integer. This methods was not looking for generated id and would
return null instead of the name associated with the generated ID.

Change-Id: I0bc4bc76a5157d56d06c5f4538c4fcc38f1bded7

13 years agoAdd toString to ResourceReference
Xavier Ducrohet [Mon, 4 Apr 2011 20:24:54 +0000 (13:24 -0700)]
Add toString to ResourceReference

Change-Id: I9ea9625a839a4dc2c9d03baa5b0d56ddc7f198ee

13 years agoFix value of dynamic resource IDs used when rendering.
Xavier Ducrohet [Mon, 4 Apr 2011 20:24:09 +0000 (13:24 -0700)]
Fix value of dynamic resource IDs used when rendering.

Change-Id: Ic6c0fad53d06e48dcd8ab59c5aa0c2a530e36767

13 years agoMake code completion skip the layout_ prefix if necessary
Tor Norbye [Mon, 4 Apr 2011 18:24:51 +0000 (11:24 -0700)]
Make code completion skip the layout_ prefix if necessary

The code completion prefix matcher already lets you skip the
namespace, so you can type "width" and it will expand to
"android:width".

This changeset adds "layout_" to this scheme, so you can type
"margin", and this will match "layout_margin" as well.

Change-Id: I8bf71e91ac8ac71bd2cb0308c6f1d39a9dfaa66a

13 years agoMerge "Improve painting of combined selection and hover"
Tor Norbye [Mon, 4 Apr 2011 19:11:29 +0000 (12:11 -0700)]
Merge "Improve painting of combined selection and hover"

13 years agoMerge "Bundle ninepatch.jar inside ninepatch-tests.jar"
Brett Chabot [Mon, 4 Apr 2011 17:10:33 +0000 (10:10 -0700)]
Merge "Bundle ninepatch.jar inside ninepatch-tests.jar"

13 years agoImprove painting of combined selection and hover
Tor Norbye [Sat, 2 Apr 2011 04:00:24 +0000 (21:00 -0700)]
Improve painting of combined selection and hover

When the mouse is over a rectangle, we highlight this "hover"
rectangle by painting a semitranslucent white rectangle on top of it.

When a view is selected, we highlight it by painting a semitranslucent
blue rectangle over it.

This means that if you move the mouse over the selection, you get both
of these effects added together, which dilutes the underlying selected
widget too much.

This changeset tries to improve this situation by defining a different
visual style to be used for the combination of hover and selection,
where the opacity is much lower for the hover in this case.

This changeset also reduces the existing hover by about 30% opacity.

Change-Id: I63ffe8a9d756dcae29b2009a1a1cd6b9ffb6fbe7