OSDN Git Service

android-x86/sdk.git
12 years agoMerge "Fix XML formatting from outside the editor (Source > Format)"
Tor Norbye [Tue, 4 Oct 2011 16:45:26 +0000 (09:45 -0700)]
Merge "Fix XML formatting from outside the editor (Source > Format)"

12 years agoMerge "SDK: Fix bug that prevents repo XSD upgrades"
Raphael [Tue, 4 Oct 2011 03:39:44 +0000 (20:39 -0700)]
Merge "SDK: Fix bug that prevents repo XSD upgrades"

12 years agoMerge "SDK: change SDK_TEST_URLS behavior"
Raphael [Tue, 4 Oct 2011 03:39:38 +0000 (20:39 -0700)]
Merge "SDK: change SDK_TEST_URLS behavior"

12 years agoSDK: Fix bug that prevents repo XSD upgrades
Raphael [Mon, 3 Oct 2011 22:36:59 +0000 (15:36 -0700)]
SDK: Fix bug that prevents repo XSD upgrades

This fixes the bug in the current code.
We're going to switch to a different upgrade mechanism,
rendering this code useless, but I'd still have this
checked in for the record: the issue is that the
temporary node is mixed up and the attributes use the
element name instead of their attribute names.

Change-Id: I3abcfd476494ee2ddb8b75789b346e86556d8d85

12 years agoam 2c07fc34: (-s ours) XML Comment Formatting Fixes. DO NOT MERGE.
Tor Norbye [Mon, 3 Oct 2011 23:31:41 +0000 (16:31 -0700)]
am 2c07fc34: (-s ours) XML Comment Formatting Fixes. DO NOT MERGE.

* commit '2c07fc348d85836bff4d1f9ca656d96898a0833c':
  XML Comment Formatting Fixes. DO NOT MERGE.

12 years agoam 22b38a19: (-s ours) Ensure that deletion hook is only run on valid parents. DO...
Tor Norbye [Mon, 3 Oct 2011 23:30:29 +0000 (16:30 -0700)]
am 22b38a19: (-s ours) Ensure that deletion hook is only run on valid parents. DO NOT MERGE.

* commit '22b38a190fa658924a665989d99dc508d3e88739':
  Ensure that deletion hook is only run on valid parents. DO NOT MERGE.

12 years agoXML Comment Formatting Fixes. DO NOT MERGE.
Tor Norbye [Mon, 3 Oct 2011 16:15:23 +0000 (09:15 -0700)]
XML Comment Formatting Fixes. DO NOT MERGE.

This changeset fixes issue 20452 related to XML comment
handling. There are several changes.

First it fixes a truncation bug where the last character in a comment
could get erased.

Second it makes sure we don't end up with double blank lines, since
there were cases where the comment formatter would insert a newline
(to preserve newlines after comments in the original document) and a
subsequent element or close tag would also insert a newline (which is
where the normal blank lines are added). Now the code will peek at the
write buffer to make sure we haven't already added a blank line.

Third, it attempts to handle multiline comments a bit better such that
the code which preserves indentation of the first comment line will
dedent down to the minimum indentation level of the block comment.
This means that we will format
   <!-- First
   Second -->
into
   <!--
   First
   Second
   -->
instead of
   <!--
        First
   Second
   -->
as the code did up until now. (The current handling was there to make
    <!-- This is
         a comment -->
format into
    <!--
         This is
         a comment
    -->
)

Unit tests.

Change-Id: I7201b55a2c824c3c0b43287e853bc9b75d74ed7f

12 years agoEnsure that deletion hook is only run on valid parents. DO NOT MERGE.
Tor Norbye [Sat, 1 Oct 2011 04:00:43 +0000 (21:00 -0700)]
Ensure that deletion hook is only run on valid parents. DO NOT MERGE.

There's now a "deletion hook" for ViewRules where they get a chance to
clean up after a set of children have been deleted. This changeset
guards against the case where the parent reference was null.

Change-Id: Ib2cfd0543ff55726ff488b57262267f610373639

12 years agoMerge "XML Comment Formatting Fixes"
Tor Norbye [Mon, 3 Oct 2011 22:37:55 +0000 (15:37 -0700)]
Merge "XML Comment Formatting Fixes"

12 years agoSDK: change SDK_TEST_URLS behavior
Raphael [Mon, 3 Oct 2011 22:34:45 +0000 (15:34 -0700)]
SDK: change SDK_TEST_URLS behavior

When SDK_TEST_URLS is set, it prevents the default
sources from being loaded. This makes it easier to
test just a new site.

Change-Id: I463759ca43c7836e81524c2eac4dad769bc7032c

12 years agoFix XML formatting from outside the editor (Source > Format)
Tor Norbye [Sat, 1 Oct 2011 04:01:06 +0000 (21:01 -0700)]
Fix XML formatting from outside the editor (Source > Format)

This changeset fixes this issue:

20450: Source->Format for XML files in Project Explorer in 14-preview
       applies old XML rules instead of new Android-aware ones

Basically, the Eclipse XML support does not consult the
StructuredTextViewerConfigurationXML configuration when formatting
files.  To work around this, this changeset overrides the format
processor defined for XML files and redirects to the ADT custom
formatter when the option to use a custom formatter is set.

Unfortunately, setting the formatProcessor in the ADT plugin does not
work, because it turns out that the WTP code to process layer
registrations processes plugins in alphabetical order of plugin names
(rather than say plugin dependency order), and as a result, the WTP
registration is processed later than the ADT one (because org.eclipse
> com.android) and it clobbers our registration.

To work around this, this changeset adds a *new* plugin, an overlay
for ADT which is named "overlay.com.android.eclipse.(etc)" which sorts
alphabetically later than org.eclipse. The plugin is basically empty
(it just provides a registration of the ADT format processor), and it
is registered as just a part of the ADT plugin so it should not be
exposed to users directly.

Change-Id: I2af2bc1e61e758c36243e4ac7236f676266cc665

12 years agoMerge "Ensure that deletion hook is only run on valid parents"
Tor Norbye [Mon, 3 Oct 2011 21:20:17 +0000 (14:20 -0700)]
Merge "Ensure that deletion hook is only run on valid parents"

12 years agoXML Comment Formatting Fixes
Tor Norbye [Mon, 3 Oct 2011 16:15:23 +0000 (09:15 -0700)]
XML Comment Formatting Fixes

This changeset fixes issue 20452 related to XML comment
handling. There are several changes.

First it fixes a truncation bug where the last character in a comment
could get erased.

Second it makes sure we don't end up with double blank lines, since
there were cases where the comment formatter would insert a newline
(to preserve newlines after comments in the original document) and a
subsequent element or close tag would also insert a newline (which is
where the normal blank lines are added). Now the code will peek at the
write buffer to make sure we haven't already added a blank line.

Third, it attempts to handle multiline comments a bit better such that
the code which preserves indentation of the first comment line will
dedent down to the minimum indentation level of the block comment.
This means that we will format
   <!-- First
   Second -->
into
   <!--
   First
   Second
   -->
instead of
   <!--
        First
   Second
   -->
as the code did up until now. (The current handling was there to make
    <!-- This is
         a comment -->
format into
    <!--
         This is
         a comment
    -->
)

Unit tests.

Change-Id: Id98faadf3731b82880b37ff852c7c0787bb196f8

12 years agoam 390b825e: (-s ours) Refactoring quick fix adjustments to caret and selection handl...
Tor Norbye [Sat, 1 Oct 2011 04:35:21 +0000 (21:35 -0700)]
am 390b825e: (-s ours) Refactoring quick fix adjustments to caret and selection handling. DO NOT MERGE

* commit '390b825e915b0c37825d2f3941197bd3abe3394b':
  Refactoring quick fix adjustments to caret and selection handling. DO NOT MERGE

12 years agoRefactoring quick fix adjustments to caret and selection handling. DO NOT MERGE
Tor Norbye [Fri, 30 Sep 2011 18:45:26 +0000 (11:45 -0700)]
Refactoring quick fix adjustments to caret and selection handling. DO NOT MERGE

This changeset changes the logic in the refactoring quickfix (which
adds the Android refactorings based on the current caret position,
lexical context and selection).

It now allows some of the refactorings to be run when there is a
selection (this fixes "20393: Extract string functionality in Android
XML files"), and it makes other refactorings work when there is no
selection (it implicitly selects the surrounding element).

It also ensures that the Extract Style refactoring won't be listed at
the top if the attribute under the cursor is not a stylable attribute,
and it makes some other adjustments to the proposal order.

Change-Id: I1ca305d9c66ae4eb6cd9a4f45f6803bb2444abdb

12 years agoEnsure that deletion hook is only run on valid parents
Tor Norbye [Sat, 1 Oct 2011 04:00:43 +0000 (21:00 -0700)]
Ensure that deletion hook is only run on valid parents

There's now a "deletion hook" for ViewRules where they get a chance to
clean up after a set of children have been deleted. This changeset
guards against the case where the parent reference was null.

Change-Id: I3eef328ec5450a15588b29fff1d0d834388c4cde

12 years agoMerge "Refactoring quick fix adjustments to caret and selection handling"
Tor Norbye [Sat, 1 Oct 2011 02:01:42 +0000 (19:01 -0700)]
Merge "Refactoring quick fix adjustments to caret and selection handling"

12 years agoRefactoring quick fix adjustments to caret and selection handling
Tor Norbye [Fri, 30 Sep 2011 18:45:26 +0000 (11:45 -0700)]
Refactoring quick fix adjustments to caret and selection handling

This changeset changes the logic in the refactoring quickfix (which
adds the Android refactorings based on the current caret position,
lexical context and selection).

It now allows some of the refactorings to be run when there is a
selection (this fixes "20393: Extract string functionality in Android
XML files"), and it makes other refactorings work when there is no
selection (it implicitly selects the surrounding element).

It also ensures that the Extract Style refactoring won't be listed at
the top if the attribute under the cursor is not a stylable attribute,
and it makes some other adjustments to the proposal order.
Change-Id: I0714bb652032aa19e6c2502dc1af7bb5e4adf308

12 years agoam 8f2b9fbd: (-s ours) Provide a way to show/hide the filters column. Do not merge.
Siva Velusamy [Fri, 30 Sep 2011 22:42:09 +0000 (15:42 -0700)]
am 8f2b9fbd: (-s ours) Provide a way to show/hide the filters column. Do not merge.

* commit '8f2b9fbd5f8f298a05f09e0b523c4824e5da0e29':
  Provide a way to show/hide the filters column. Do not merge.

12 years agoProvide a way to show/hide the filters column. Do not merge.
Siva Velusamy [Thu, 29 Sep 2011 21:34:39 +0000 (14:34 -0700)]
Provide a way to show/hide the filters column. Do not merge.

(cherry picked from commit c9192e375844e45ccb74ee69150717a31385564f)

Change-Id: Iadfc8be7d20a85c79ff94cf62f14345392cf999b

12 years agoam bd79a007: (-s ours) SDK: fix missing \n in \'android create avd\'. Do not merge.
Raphael [Fri, 30 Sep 2011 22:34:02 +0000 (15:34 -0700)]
am bd79a007: (-s ours) SDK: fix missing \n in \'android create avd\'. Do not merge.

* commit 'bd79a007af08ce3b4e41c6602cf7b8bf945c6fa8':
  SDK: fix missing \n in 'android create avd'. Do not merge.

12 years agoSDK: fix missing \n in 'android create avd'. Do not merge.
Raphael [Fri, 30 Sep 2011 20:03:45 +0000 (13:03 -0700)]
SDK: fix missing \n in 'android create avd'. Do not merge.

SDK Bug: 20430

(cherry picked from commit c649a334d7bc656ea3c00cd9d3d102c88fbf8f80)

Change-Id: I8b4370b0d4ec4b96e9b65c214a9e06506b615a41

12 years agoMerge "SDK: fix missing \n in 'android create avd'"
Raphael [Fri, 30 Sep 2011 22:29:48 +0000 (15:29 -0700)]
Merge "SDK: fix missing \n in 'android create avd'"

12 years agoSDK: fix missing \n in 'android create avd'
Raphael [Fri, 30 Sep 2011 20:03:45 +0000 (13:03 -0700)]
SDK: fix missing \n in 'android create avd'

SDK Bug: 20430

Change-Id: Id427390c799165a1dff07530c6fce48488193055

12 years agoMerge "Create FileListingService#getChildrenSync"
Brett Chabot [Fri, 30 Sep 2011 00:08:53 +0000 (17:08 -0700)]
Merge "Create FileListingService#getChildrenSync"

12 years agoProvide a way to show/hide the filters column.
Siva Velusamy [Thu, 29 Sep 2011 21:34:39 +0000 (14:34 -0700)]
Provide a way to show/hide the filters column.

Change-Id: I7c94daa006987a0983cdb3cee02a35f6e678d86e

12 years agoCreate FileListingService#getChildrenSync
Brett Chabot [Thu, 29 Sep 2011 21:56:11 +0000 (14:56 -0700)]
Create FileListingService#getChildrenSync

Useful for cases where callers want to be informed of adb communication errors
when retrieving child files.

Bug 5392097

Change-Id: I82087d24d08f4e1b2fcda67156835367dc1bb824

12 years agoam 3f05dce5: (-s ours) Cherrypick fcd339 from master. do not merge.
Tor Norbye [Thu, 29 Sep 2011 21:38:12 +0000 (14:38 -0700)]
am 3f05dce5: (-s ours) Cherrypick fcd339 from  do not merge.

* commit '3f05dce571bfedfdabf6b1f7d8f8a1c05c62317e':
  Cherrypick fcd339 from master. do not merge.

12 years agoam 0f2c3056: (-s ours) Cherrypick d7b602 from master. do not merge.
Tor Norbye [Thu, 29 Sep 2011 21:37:07 +0000 (14:37 -0700)]
am 0f2c3056: (-s ours) Cherrypick d7b602 from  do not merge.

* commit '0f2c305640a83b480691dc9002eb2ff5c808dff2':
  Cherrypick d7b602 from master. do not merge.

12 years agoam 8a061633: (-s ours) Cherrypick 4cd282 from master. do not merge.
Tor Norbye [Thu, 29 Sep 2011 21:37:06 +0000 (14:37 -0700)]
am 8a061633: (-s ours) Cherrypick 4cd282 from  do not merge.

* commit '8a06163380b3df70071df08a17f2f8c2aa77513c':
  Cherrypick 4cd282 from master. do not merge.

12 years agoam fdef32c0: (-s ours) Cherrypick e92f81 from master. do not merge.
Tor Norbye [Thu, 29 Sep 2011 21:37:05 +0000 (14:37 -0700)]
am fdef32c0: (-s ours) Cherrypick e92f81 from  do not merge.

* commit 'fdef32c01440dda37650ddf534c2b17093c30531':
  Cherrypick e92f81 from master. do not merge.

12 years agoam 2c64b8c6: (-s ours) Cherrypick f37031 from master. do not merge.
Tor Norbye [Thu, 29 Sep 2011 21:37:05 +0000 (14:37 -0700)]
am 2c64b8c6: (-s ours) Cherrypick f37031 from  do not merge.

* commit '2c64b8c6855a1a4d512ca72abb6f16a9818da29c':
  Cherrypick f37031 from master. do not merge.

12 years agoam d2213597: (-s ours) Cherrypick 025af8 from master. do not merge.
Roman Nurik [Thu, 29 Sep 2011 21:37:04 +0000 (14:37 -0700)]
am d2213597: (-s ours) Cherrypick 025af8 from  do not merge.

* commit 'd2213597a8f6adeb177d9ddf777112788261e527':
  Cherrypick 025af8 from master. do not merge.

12 years agoCherrypick fcd339 from master. do not merge.
Tor Norbye [Wed, 28 Sep 2011 14:42:38 +0000 (07:42 -0700)]
Cherrypick fcd339 from master. do not merge.

Find non-constant expr errors and offer migration explanation

In ADT 14, library projects will generate R fields that are not
constant, which means you cannot use them as case labels in a switch
statement. This means some existing projects may not compile. However,
the reason for this isn't obvious until you know the details of how
library projects work. Also, converting switch statements to if/else
statements is easy in Eclipse but that may not be known to all users.

This changeset adds a quickfix processor which recognizes the specific
compilation error (non-constant expressions cannot be used in case
statements), and if it looks related to Android R fields, then it
creates a fix proposal.

The fix proposal is simple: it just opens a dialog which explains the
problem, and explains how to fix it (along with a hyperlink to more
information on the ADT 14 update process).

The main advantage of this approach is that it shows up as a lightbulb
right in the editor margin (for those users who are affected by this
error only), and even just hovering over the error will show the fix
display string which talks about Migrating Android code and the extra
info states that the fix can be invoked for more info.

Change-Id: Ieb208ac459454310f5a6cce6e933d9115a135322

12 years agoCherrypick d7b602 from master. do not merge.
Tor Norbye [Wed, 28 Sep 2011 23:32:23 +0000 (16:32 -0700)]
Cherrypick d7b602 from master. do not merge.

Remove the Fancy and Glossy icon styles

The generator and stencils for the fancy and glossy launcher icon
styles don't match the icon guidelines, so disable them for now until
we have new stencils for alternate shapes etc that also matches the
recommended style.

Change-Id: I17402309467348738b3582d0501ca93d4fed9673

12 years agoCherrypick 4cd282 from master. do not merge.
Tor Norbye [Wed, 7 Sep 2011 18:28:54 +0000 (11:28 -0700)]
Cherrypick 4cd282 from master. do not merge.

Grid Layout and Convert to Grid Layout improvements

First, some improvements to Grid Layout handling:

(1) When dropping a new widget, look up the sizing metadata and use it
    to determine what fill gravity to set. For example, a button will
    use gravity left, and a text field will use gravity
    fill_horizontal.

(2) Don't warn about reflection problems when failing to find
    GridLayout layout data; this probably means the layout is being
    attempted opened in an unsupporting SDK. There's a fallback case
    to compute the data instead already.

Second, improvements to the conversion to GridLayout handling:

(1) It now looks at the layout_gravity values to see whether each row
    and column is flexible, and if there's no flexible column in each
    of the horizontal and vertical dimensions, it will insert a
    special <Space> element to absorb any available extra space. This
    avoids constraints warnings from GridLayout.

(2) It treats layout_width or layout_height attributes of match_parent
    or fill_parent as the same as a fill gravity (and removes it) and
    uses this in the flexibility computation above.

(3) It removes unsupported layout params for all children (earlier
    this would only remove unsupported layout params on the direct
    children of the layout, which isn't enough when a hierarchy is
    being flattened.)

(4) It's smarter about computing implicit rows and columns, so it
    avoids writing out redundant layout_row and layout_column
    attributes in some cases.

(5) It avoids throwing refactoring errors in cases where an attribute
    is removed twice

(6) Fixes a bug where the root layout was included when computing the
    set of used x and y coordinates, which means you'd often end up
    with a blank row and column 0.

(7) Various refactoring to make the code cleaner.

(8) More unit tests and updates to existing unit tests to reflect the
    new behavior such as an absorbing spacer and removal of redundant
    attributes.

Change-Id: Ifaca43458a4961fa032dfe22dc033b6def3c38d3

12 years agoCherrypick e92f81 from master. do not merge.
Tor Norbye [Tue, 27 Sep 2011 15:59:15 +0000 (08:59 -0700)]
Cherrypick e92f81 from master. do not merge.

Update eclipse/changes.txt

Change-Id: I7870b939c9276e112e0754e2ad18a6fd6f2b1236

12 years agoCherrypick f37031 from master. do not merge.
Tor Norbye [Wed, 28 Sep 2011 17:30:22 +0000 (10:30 -0700)]
Cherrypick f37031 from master. do not merge.

Clarify SDK loading message

When SDKs are still loading there is a "please wait" message in the
status window. It would say "The project target (Android 2.3) ..."
when loading rendering targets, which was a bit confusing. The message
will now say "project target" when loading the target that is the
current project target, and otherwise the "rendering target".

Also change the refresh message to just say "The layout will refresh"
instead of mentioning it by name since when the layout name is
lowercase (as it usually is) the sentence begins with a lowercase
letter which looks a bit wrong (and besides there is no ambiguity
about which layout is going to be reloaded).

Change-Id: I8d6a456c2c8ba5fe539d07eef1f5a017c9b8454a

12 years agoCherrypick 025af8 from master. do not merge.
Roman Nurik [Wed, 28 Sep 2011 23:15:34 +0000 (16:15 -0700)]
Cherrypick 025af8 from master. do not merge.

Update Asset Studio launcher icon stencils per UX spec

Per discussion with the Android UX team, we've decided to update the
spec for launcher icons. In a future update we will change some of
the underlying behavior to provide more shapes and allow freeform
shapes.

Change-Id: I8dcdd5884d093fd4a7713c5796dd2dc83784be83

12 years agoam e8201712: (-s ours) Cherry-Pick 3543c3 from master. do not merge.
Siva Velusamy [Thu, 29 Sep 2011 20:41:45 +0000 (13:41 -0700)]
am e8201712: (-s ours) Cherry-Pick 3543c3 from  do not merge.

* commit 'e8201712bbfd6aaad00c36e41bfd93e7428f47db':
  Cherry-Pick 3543c3 from master. do not merge.

12 years agoam 82b6fbd0: (-s ours) Cherrypick 25f755 from master. do not merge.
Siva Velusamy [Thu, 29 Sep 2011 20:41:35 +0000 (13:41 -0700)]
am 82b6fbd0: (-s ours) Cherrypick 25f755 from  do not merge.

* commit '82b6fbd067b06382da9c69e79c56915e608bf99f':
  Cherrypick 25f755 from master. do not merge.

12 years agoam 048a3637: (-s ours) Cherrypick 88a0c4 from master. do not merge.
Daniel Sandler [Thu, 29 Sep 2011 20:41:34 +0000 (13:41 -0700)]
am 048a3637: (-s ours) Cherrypick 88a0c4 from  do not merge.

* commit '048a363719a6c9020135843036fef4b5ad37356f':
  Cherrypick 88a0c4 from master. do not merge.

12 years agoCherry-Pick 3543c3 from master. do not merge.
Siva Velusamy [Thu, 29 Sep 2011 19:53:45 +0000 (12:53 -0700)]
Cherry-Pick 3543c3 from master. do not merge.

Use a text box instead of a browser in tooltip area.

Change-Id: I8c6969c9efda7aca3b77c3ca739463cd695b6c82

12 years agoCherrypick 25f755 from master. do not merge.
Siva Velusamy [Thu, 29 Sep 2011 19:26:48 +0000 (12:26 -0700)]
Cherrypick 25f755 from master. do not merge.

Display tooltips only for long messages.

Currently, the tooltips are displayed for all logcat messages.
This patch makes them show up only if the logcat messages are longer
than the width of the column in which they are displayed, i.e.,
tooltips will be displayed only for those messages that could be clipped.

Change-Id: Iade7f6628a93a9344b337e45b957ca53e6fa4595

12 years agoCherrypick 88a0c4 from master. do not merge.
Daniel Sandler [Thu, 29 Sep 2011 14:37:08 +0000 (10:37 -0400)]
Cherrypick 88a0c4 from master. do not merge.

Nyandroid icon for the logcat Eclipse view.

Bug: 5390877
Change-Id: I945ed2854e6b405f9f851f5444312d7bfa56f54c

12 years agoMerge "Find non-constant expr errors and offer migration explanation"
Tor Norbye [Thu, 29 Sep 2011 20:27:20 +0000 (13:27 -0700)]
Merge "Find non-constant expr errors and offer migration explanation"

12 years agoMerge "Use a text box instead of a browser in tooltip area."
Siva Velusamy [Thu, 29 Sep 2011 20:01:09 +0000 (13:01 -0700)]
Merge "Use a text box instead of a browser in tooltip area."

12 years agoMerge "Display tooltips only for long messages."
Siva Velusamy [Thu, 29 Sep 2011 19:55:34 +0000 (12:55 -0700)]
Merge "Display tooltips only for long messages."

12 years agoUse a text box instead of a browser in tooltip area.
Siva Velusamy [Thu, 29 Sep 2011 19:53:45 +0000 (12:53 -0700)]
Use a text box instead of a browser in tooltip area.

Change-Id: Ica610ef4cefffaef3b6404a425c8b4551e741676

12 years agoMerge "Nyandroid icon for the logcat Eclipse view."
Daniel Sandler [Thu, 29 Sep 2011 19:53:13 +0000 (12:53 -0700)]
Merge "Nyandroid icon for the logcat Eclipse view."

12 years agoDisplay tooltips only for long messages.
Siva Velusamy [Thu, 29 Sep 2011 19:26:48 +0000 (12:26 -0700)]
Display tooltips only for long messages.

Currently, the tooltips are displayed for all logcat messages.
This patch makes them show up only if the logcat messages are longer
than the width of the column in which they are displayed, i.e.,
tooltips will be displayed only for those messages that could be clipped.

Change-Id: Ib5bbce7d055656d2cc8063efdf5fed5910b24ad0

12 years agoam 2bd58150: (-s ours) Merge 440fea from master. do not merge.
Xavier Ducrohet [Thu, 29 Sep 2011 18:42:10 +0000 (11:42 -0700)]
am 2bd58150: (-s ours) Merge 440fea from  do not merge.

* commit '2bd58150cdac3603552241fe70a73388e7094670':
  Merge 440fea from master. do not merge.

12 years agoam 4348dca9: (-s ours) Cherrypick 78c89f from master. do not merge.
Xavier Ducrohet [Thu, 29 Sep 2011 18:42:09 +0000 (11:42 -0700)]
am 4348dca9: (-s ours) Cherrypick 78c89f from  do not merge.

* commit '4348dca9124f42af3ac3a6372831fcab66e99c52':
  Cherrypick 78c89f from master. do not merge.

12 years agoMerge 440fea from master. do not merge.
Xavier Ducrohet [Thu, 29 Sep 2011 17:59:40 +0000 (10:59 -0700)]
Merge 440fea from master. do not merge.

Don't add Android referenced project to library output.

The jar file output of a library can receive compiled code
from referenced Java projects but if the project is an Android
project then we ignore it. This is probably a bad setup anyway.

Change-Id: Idc1ec531a14c9f91beed26c4084b3956c3999930

12 years agoCherrypick 78c89f from master. do not merge.
Xavier Ducrohet [Thu, 29 Sep 2011 01:26:54 +0000 (18:26 -0700)]
Cherrypick 78c89f from master. do not merge.

Also process and cache the png files in libraries.

The png in the libraries were not processed by the crunch step.
Because aapt never processes png files anymore (relying on the crunch
step to do it), the png files in libraries were never processed.

While this is less a problem for standard png files, this completely
breaks 9-patches that must be processed to actually behaves as 9-patch.

Change-Id: I1d9e32e2c0409ec779150de0ad897e210a9be524

12 years agoFind non-constant expr errors and offer migration explanation
Tor Norbye [Wed, 28 Sep 2011 14:42:38 +0000 (07:42 -0700)]
Find non-constant expr errors and offer migration explanation

In ADT 14, library projects will generate R fields that are not
constant, which means you cannot use them as case labels in a switch
statement. This means some existing projects may not compile. However,
the reason for this isn't obvious until you know the details of how
library projects work. Also, converting switch statements to if/else
statements is easy in Eclipse but that may not be known to all users.

This changeset adds a quickfix processor which recognizes the specific
compilation error (non-constant expressions cannot be used in case
statements), and if it looks related to Android R fields, then it
creates a fix proposal.

The fix proposal is simple: it just opens a dialog which explains the
problem, and explains how to fix it (along with a hyperlink to more
information on the ADT 14 update process).

The main advantage of this approach is that it shows up as a lightbulb
right in the editor margin (for those users who are affected by this
error only), and even just hovering over the error will show the fix
display string which talks about Migrating Android code and the extra
info states that the fix can be invoked for more info.

Change-Id: Ia90cdf308db87d31c1e6a663613d4cfd0bf675dc

12 years agoMerge "Don't add Android referenced project to library output."
Xavier Ducrohet [Thu, 29 Sep 2011 18:31:15 +0000 (11:31 -0700)]
Merge "Don't add Android referenced project to library output."

12 years agoMerge "Also process and cache the png files in libraries."
Xavier Ducrohet [Thu, 29 Sep 2011 18:31:10 +0000 (11:31 -0700)]
Merge "Also process and cache the png files in libraries."

12 years agoMerge "Grid Layout and Convert to Grid Layout improvements"
Tor Norbye [Thu, 29 Sep 2011 18:25:13 +0000 (11:25 -0700)]
Merge "Grid Layout and Convert to Grid Layout improvements"

12 years agoMerge "Remove the Fancy and Glossy icon styles"
Tor Norbye [Thu, 29 Sep 2011 18:25:07 +0000 (11:25 -0700)]
Merge "Remove the Fancy and Glossy icon styles"

12 years agoDon't add Android referenced project to library output.
Xavier Ducrohet [Thu, 29 Sep 2011 17:59:40 +0000 (10:59 -0700)]
Don't add Android referenced project to library output.

The jar file output of a library can receive compiled code
from referenced Java projects but if the project is an Android
project then we ignore it. This is probably a bad setup anyway.

Change-Id: I6432d4704c2357c64e2c9597eea75328695ff822

12 years agoam a4790d7a: (-s ours) Cherrypick 09aefc from master. do not merge.
Siva Velusamy [Thu, 29 Sep 2011 16:42:01 +0000 (09:42 -0700)]
am a4790d7a: (-s ours) Cherrypick 09aefc from  do not merge.

* commit 'a4790d7a523cc7c4eecb1fab2ba0fe9da18a9042':
  Cherrypick 09aefc from master. do not merge.

12 years agoNyandroid icon for the logcat Eclipse view.
Daniel Sandler [Thu, 29 Sep 2011 14:37:08 +0000 (10:37 -0400)]
Nyandroid icon for the logcat Eclipse view.

Bug: 5390877
Change-Id: I81e77cf57a358e6c0583d592d104a93475ab37ae

12 years agoAlso process and cache the png files in libraries.
Xavier Ducrohet [Thu, 29 Sep 2011 01:26:54 +0000 (18:26 -0700)]
Also process and cache the png files in libraries.

The png in the libraries were not processed by the crunch step.
Because aapt never processes png files anymore (relying on the crunch
step to do it), the png files in libraries were never processed.

While this is less a problem for standard png files, this completely
breaks 9-patches that must be processed to actually behaves as 9-patch.

Change-Id: I0a1fe14ea34f6d36a368b456494410945afc3c44

12 years agoCherrypick 09aefc from master. do not merge.
Siva Velusamy [Thu, 29 Sep 2011 01:42:10 +0000 (18:42 -0700)]
Cherrypick 09aefc from master. do not merge.

Check for scrolling before refreshing the table.

Change-Id: I14e596a79120284b0c1b8e4bc23439b10a37c2ff

12 years agoCheck for scrolling before refreshing the table.
Siva Velusamy [Thu, 29 Sep 2011 01:42:10 +0000 (18:42 -0700)]
Check for scrolling before refreshing the table.

Change-Id: Id65b11216a8240e3297072f0af094d69d924a8b3

12 years agoRemove the Fancy and Glossy icon styles
Tor Norbye [Wed, 28 Sep 2011 23:32:23 +0000 (16:32 -0700)]
Remove the Fancy and Glossy icon styles

The generator and stencils for the fancy and glossy launcher icon
styles don't match the icon guidelines, so disable them for now until
we have new stencils for alternate shapes etc that also matches the
recommended style.

Change-Id: I521c3c645dee4bc1766e24cf49ee49f19d66ee6f

12 years agoMerge "Update Asset Studio launcher icon stencils per UX spec"
Roman Nurik [Wed, 28 Sep 2011 23:21:08 +0000 (16:21 -0700)]
Merge "Update Asset Studio launcher icon stencils per UX spec"

12 years agoUpdate Asset Studio launcher icon stencils per UX spec
Roman Nurik [Wed, 28 Sep 2011 23:15:34 +0000 (16:15 -0700)]
Update Asset Studio launcher icon stencils per UX spec

Per discussion with the Android UX team, we've decided to update the
spec for launcher icons. In a future update we will change some of
the underlying behavior to provide more shapes and allow freeform
shapes.

Change-Id: Idf575230c7c649299c7368209dfee5e7a0638fad

12 years agoGrid Layout and Convert to Grid Layout improvements
Tor Norbye [Wed, 7 Sep 2011 18:28:54 +0000 (11:28 -0700)]
Grid Layout and Convert to Grid Layout improvements

First, some improvements to Grid Layout handling:

(1) When dropping a new widget, look up the sizing metadata and use it
    to determine what fill gravity to set. For example, a button will
    use gravity left, and a text field will use gravity
    fill_horizontal.

(2) Don't warn about reflection problems when failing to find
    GridLayout layout data; this probably means the layout is being
    attempted opened in an unsupporting SDK. There's a fallback case
    to compute the data instead already.

Second, improvements to the conversion to GridLayout handling:

(1) It now looks at the layout_gravity values to see whether each row
    and column is flexible, and if there's no flexible column in each
    of the horizontal and vertical dimensions, it will insert a
    special <Space> element to absorb any available extra space. This
    avoids constraints warnings from GridLayout.

(2) It treats layout_width or layout_height attributes of match_parent
    or fill_parent as the same as a fill gravity (and removes it) and
    uses this in the flexibility computation above.

(3) It removes unsupported layout params for all children (earlier
    this would only remove unsupported layout params on the direct
    children of the layout, which isn't enough when a hierarchy is
    being flattened.)

(4) It's smarter about computing implicit rows and columns, so it
    avoids writing out redundant layout_row and layout_column
    attributes in some cases.

(5) It avoids throwing refactoring errors in cases where an attribute
    is removed twice

(6) Fixes a bug where the root layout was included when computing the
    set of used x and y coordinates, which means you'd often end up
    with a blank row and column 0.

(7) Various refactoring to make the code cleaner.

(8) More unit tests and updates to existing unit tests to reflect the
    new behavior such as an absorbing spacer and removal of redundant
    attributes.

Change-Id: Iee44c3ca749eefc107b83545669cc9d7f84615b1

12 years agoam 981fb61d: (-s ours) Cherrypick 0a6192 from master. do not merge.
Xavier Ducrohet [Wed, 28 Sep 2011 21:10:28 +0000 (14:10 -0700)]
am 981fb61d: (-s ours) Cherrypick 0a6192 from  do not merge.

* commit '981fb61d258d58d91a98734ffcfa7242ded90632':
  Cherrypick 0a6192 from master. do not merge.

12 years agoCherrypick 0a6192 from master. do not merge.
Xavier Ducrohet [Thu, 15 Sep 2011 23:14:02 +0000 (16:14 -0700)]
Cherrypick 0a6192 from master. do not merge.

Add support to make identity files from the command line.

Change-Id: Ieb11a6ac46790f244786a20ede930768946abc91

12 years agoMerge "Clarify SDK loading message"
Tor Norbye [Wed, 28 Sep 2011 19:17:57 +0000 (12:17 -0700)]
Merge "Clarify SDK loading message"

12 years agoClarify SDK loading message
Tor Norbye [Wed, 28 Sep 2011 17:30:22 +0000 (10:30 -0700)]
Clarify SDK loading message

When SDKs are still loading there is a "please wait" message in the
status window. It would say "The project target (Android 2.3) ..."
when loading rendering targets, which was a bit confusing. The message
will now say "project target" when loading the target that is the
current project target, and otherwise the "rendering target".

Also change the refresh message to just say "The layout will refresh"
instead of mentioning it by name since when the layout name is
lowercase (as it usually is) the sentence begins with a lowercase
letter which looks a bit wrong (and besides there is no ambiguity
about which layout is going to be reloaded).

Change-Id: I2497ba3a35289e9c3f37021cd8a17983e18146cb

12 years agoam 8760c8e3: (-s ours) Cherrypick 9dd123 from master. do not merge.
Xavier Ducrohet [Wed, 28 Sep 2011 18:11:53 +0000 (11:11 -0700)]
am 8760c8e3: (-s ours) Cherrypick 9dd123 from  do not merge.

* commit '8760c8e3ad680c4bcba25701eea2fd3b403db055':
  Cherrypick 9dd123 from master. do not merge.

12 years agoCherrypick 9dd123 from master. do not merge.
Xavier Ducrohet [Wed, 21 Sep 2011 01:56:26 +0000 (18:56 -0700)]
Cherrypick 9dd123 from master. do not merge.

Fix migration to new library projects.

Also fixed a minor NPE.

Change-Id: Ie76f0120c63b37579b57b32b3b4af005f388a0b0

12 years agoAdd support for exporting heap data.
Siva Velusamy [Wed, 28 Sep 2011 00:29:37 +0000 (17:29 -0700)]
Add support for exporting heap data.

Change-Id: Ica8de494934195f30b75b8295d0908e3aacdefff

12 years agoAdd support for Select All & Copy Paste.
Siva Velusamy [Tue, 27 Sep 2011 23:08:52 +0000 (16:08 -0700)]
Add support for Select All & Copy Paste.

Change-Id: I4b41b6ee5a7a5600ca3b37d3addf1dce7d1e072a

12 years agoConstruct NativeStackCallInfo with full symbol address.
Siva Velusamy [Tue, 27 Sep 2011 21:44:50 +0000 (14:44 -0700)]
Construct NativeStackCallInfo with full symbol address.

Addr2line constructs NativeStackCallInfo for a symbol using its
offset within the library as the address. This patch is a minor change
to make it use the address in the executable instead of the offset
in the library.

Change-Id: I3e3e960f6c5abefac83b670e3ab23a78c57a8e56

12 years agoMerge "Check for relevant stack frame using source library."
Siva Velusamy [Wed, 28 Sep 2011 03:59:22 +0000 (20:59 -0700)]
Merge "Check for relevant stack frame using source library."

12 years agoMerge "Update default addr2line to use."
Siva Velusamy [Wed, 28 Sep 2011 03:56:00 +0000 (20:56 -0700)]
Merge "Update default addr2line to use."

12 years agoMerge "Fix migration to new library projects."
Xavier Ducrohet [Wed, 28 Sep 2011 01:53:38 +0000 (18:53 -0700)]
Merge "Fix migration to new library projects."

12 years agoam 794cb8d0: (-s ours) Merge "SDK repository: support for source packages. Do not...
Raphael [Wed, 28 Sep 2011 01:28:44 +0000 (18:28 -0700)]
am 794cb8d0: (-s ours) Merge "SDK repository: support for source packages. Do not merge." into tools_r14

* commit '794cb8d02a94610dda1ebef5f0d72fef345b3894':
  SDK repository: support for source packages. Do not merge.

12 years agoMerge "SDK repository: support for source packages. Do not merge." into tools_r14
Raphael [Wed, 28 Sep 2011 01:27:32 +0000 (18:27 -0700)]
Merge "SDK repository: support for source packages. Do not merge." into tools_r14

12 years agoFix migration to new library projects.
Xavier Ducrohet [Wed, 21 Sep 2011 01:56:26 +0000 (18:56 -0700)]
Fix migration to new library projects.

Also fixed a minor NPE.

Change-Id: Ide127e3b9a0aeb1b8468d3f4b973f1ee5a27851d

12 years agoSDK repository: support for source packages. Do not merge.
Raphael [Tue, 27 Sep 2011 20:42:27 +0000 (13:42 -0700)]
SDK repository: support for source packages. Do not merge.

(cherry picked from commit d963b52229e2d1a3875698e5d2822f00df3485c9)

Change-Id: I249fafe24795b94294c9f9251713c1028a3d9199

12 years agoMerge "SDK repository: support for source packages."
Raphael [Tue, 27 Sep 2011 23:57:00 +0000 (16:57 -0700)]
Merge "SDK repository: support for source packages."

12 years agoam a1760eb0: Tools r14 require ADT 14.
Xavier Ducrohet [Tue, 27 Sep 2011 23:47:24 +0000 (16:47 -0700)]
am a1760eb0: Tools r14 require ADT 14.

* commit 'a1760eb02098b21f1aa37a293a488a1ab4bdb823':
  Tools r14 require ADT 14.

12 years agoTools r14 require ADT 14.
Xavier Ducrohet [Tue, 27 Sep 2011 23:41:35 +0000 (16:41 -0700)]
Tools r14 require ADT 14.

Change-Id: If07afb667f0b748e859e2e8b70aa1bcc74f0acfe

12 years agoSDK repository: support for source packages.
Raphael [Tue, 27 Sep 2011 20:42:27 +0000 (13:42 -0700)]
SDK repository: support for source packages.

Change-Id: Ib8df984ddbad0bb6f0eb4c2fb0bd4b9c49b334cc

12 years agoCheck for relevant stack frame using source library.
Siva Velusamy [Mon, 26 Sep 2011 20:53:51 +0000 (13:53 -0700)]
Check for relevant stack frame using source library.

In a stack trace, skip all frames from libc and from methods matching
malloc/realloc/calloc etc to identify the source frame where heap memory
is allocated.

Change-Id: Ia8661c7ff58b3db502c92b2f48819c3219861a73

12 years agoUpdate default addr2line to use.
Siva Velusamy [Mon, 26 Sep 2011 18:21:31 +0000 (11:21 -0700)]
Update default addr2line to use.

Change-Id: I17a1b29039e50e0256f37519b3fd8781b88f5e39

12 years agoUpdate eclipse/changes.txt
Tor Norbye [Tue, 27 Sep 2011 15:59:15 +0000 (08:59 -0700)]
Update eclipse/changes.txt

Change-Id: I578e5c6f2197ad445894301fbc8c3780579ae8bc

12 years agoTweak usage panel message
Tor Norbye [Mon, 26 Sep 2011 22:18:25 +0000 (15:18 -0700)]
Tweak usage panel message

Change-Id: I99a2953f11e63f6646133c4727880487fe65f0d8

12 years agoam 3d73f98d: (-s ours) Welcome Wizard tweaks. Do not merge.
Tor Norbye [Mon, 26 Sep 2011 22:06:00 +0000 (15:06 -0700)]
am 3d73f98d: (-s ours) Welcome Wizard tweaks. Do not merge.

* commit '3d73f98d6ac275a01b3b88adf83b825cd70c986b':
  Welcome Wizard tweaks. Do not merge.

12 years agoam 0d48d0b6: (-s ours) Change welcome wizard string. Do not merge.
Raphael [Mon, 26 Sep 2011 22:06:00 +0000 (15:06 -0700)]
am 0d48d0b6: (-s ours) Change welcome wizard string. Do not merge.

* commit '0d48d0b6481cd642d2eb9652c2b8b898e9b0e784':
  Change welcome wizard string. Do not merge.

12 years agoWelcome Wizard tweaks. Do not merge.
Tor Norbye [Mon, 26 Sep 2011 21:11:22 +0000 (14:11 -0700)]
Welcome Wizard tweaks. Do not merge.

Use Yes/No radio buttons in the Usage Statistic page rather than a
checkbox, and validate that one of the options are chosen such that
the Finish button on page 1 is not enabled.

Also add the Android icon to the wizard.

(cherry picked from commit f5368be1b6cd95fd0ff065a1c624d812b8a260dd)

Change-Id: I4950f33921ba99ac4ec657adb477395c1cda0a07

12 years agoChange welcome wizard string. Do not merge.
Raphael [Mon, 26 Sep 2011 20:33:50 +0000 (13:33 -0700)]
Change welcome wizard string. Do not merge.

(cherry picked from commit 1632530362278dd0f0613bb0e7cfc67240cbaf59)

Change-Id: Iabfdc90a6941ffb62adc061af9d4cf5e24505e8e

12 years agoWelcome Wizard tweaks
Tor Norbye [Mon, 26 Sep 2011 21:11:22 +0000 (14:11 -0700)]
Welcome Wizard tweaks

Use Yes/No radio buttons in the Usage Statistic page rather than a
checkbox, and validate that one of the options are chosen such that
the Finish button on page 1 is not enabled.

Also add the Android icon to the wizard.

Change-Id: Ia8a7593883a7a6cb4126e644cc627edae77757ec

12 years agoChange welcome wizard string
Raphael [Mon, 26 Sep 2011 20:33:50 +0000 (13:33 -0700)]
Change welcome wizard string

Change-Id: I4f900bb20f6a55a44a2f61231524b82d9f96c9ee