| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
Fix http://code.google.com/p/android/issues/detail?id=33912
Change-Id: Ieaeb9a4db641efa6591bd9777b3c7731d74952fb
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Plus a few other minor tweaks/bug fixes
Change-Id: Ic02db9123674ebfbc8977a94d1da4826ec13fb9b
|
|/ /
| |
| |
| |
| |
| |
| | |
Make incremental lint in source files use the Eclipse context
to find super classes.
Change-Id: I31af7a146c259875857026bc7721294205482a91
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The resource chooser was only showing resources from the current
project. This changeset fixes this such that it will merge in
resources from library projects as well.
It also cleans up the ResourceChooser class such that it has a couple
of convenience factory methods, and simplified various call sites to
use the factory instead.
Finally, it similarly fixes the Go To Declaration hyperlink resolver
to also look at library projects when resolving source locations.
Change-Id: Id20d14e4d9c6d9133b827ef3a3854e47c65b73fb
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: Iaf796934e4c3afa7334fb023607e1d8eff73dc4c
|
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
First, this changeset improves the device labels in the device menu to
not only list the screensize and screen type (e.g. "FWVGA"), but the
screen resolution and density category as well.
Second, the device menu by default will show one submenu for every
device manufacturer, with the corresponding devices listed within each
of those sub menus. Out of the box the default file only lists Nexus
devices, and this ends up with a bit of a suboptimal menu.
This changeset handles this scenario better by inlining all the
generic devices together in the top menu, and sorting them in reverse
order. It also places the Nexus devices in this menu, ordered by
reverse release date.
Change-Id: I5015430e2dc48306e848ce7691810349415470e0
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: Ifb95d96ee67acb0e4853c3c68d3a447a8409bd1b
|
|/ / /
| | |
| | |
| | | |
Change-Id: I4fa69bac844ebb0561382c8639b571b425306fd3
|
| | |
| | |
| | |
| | | |
Change-Id: I09062e0d9982d4a42580693dc8cf0941d65597b5
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | | |
Change-Id: I3b79bef6981d880fe6a545429754e03bd384645c
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | | |
Change-Id: I5aabcf3d7acaa9573c991860db3fcc8ea34bc866
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | | |
Change-Id: Ia6f5c55e07c7f60712472c8e850b7c4595c46671
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Around ADT 15 or so we introduced a bunch of optimizations to run AAPT
much less frequently, since with large projects it can take a long
time, and end up blocking the UI if you try to save twice.
Unfortunately, one side effect of this change is that if you edit only
the *value* of an attribute, we will not re-run aapt, which means
that if you set the value to a bogus value, you will get no error
message until the next time AAPT runs (usually when you try to run).
This changeset fixes this. We already have the attribute metadata
which aapt uses, so now, when an XML file is changed and saved, we
process it with an XML pull parser, and validate all the Android
namespace attributes. If any are found to not be correct, then we
request a full AAPT process, which will then display errors as
appropriate.
Change-Id: I374c19648e29c27c6d82616b3ee602cb2343cd3a
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
If the user enters an activity title like "Android's Tools" in the new
template wizard, an invalid strings.xml file is generated, since the
apostrophe is not properly escaped.
To fix this, there's a new string conversion method in the template
engine, "escapeXmlString", which will perform all the necessary
conversions.
It also adds two other XML escaping functions: one to escape text to
be suitable for XML attribute values, and one to be suitable for XML
text values.
Finally, when verifying this, I discovered that if I inserted
ampersands in the MasterDetail template, I ended up with errors in
various places there a filename was derived from the input string. To
help make this work better, there's also a new "extractLetters" method
which pulls all the characters out of a string (effectively stripping
whitespace and punctuation).
In addition to the above 4 new string conversion methods, the
templates have been updated to use them, and the template format
documentation updated.
Change-Id: I4d4e854ab78d63bc86b8eb0fb9d92246534615e7
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We recently added the ability for the IDE to remember whether you last
edited an XML file in text mode or in graphical mode (see issue
31340). However, this was tracked with a single boolean flag, which
meant that it was an "all or nothing" flag.
However, you may want to always edit string resource files with the
XML editor, but you want to always use the graphical editor for the
manifest file.
In this changeset, the state is kept in a bitmask instead, which
allows us to track the broad editor types separately. With this, new
editors are opened according to the last mode you used for that type
of editor. (Note that it tracks "categories" of editors, not
individual resource types, so for example the editor for color
resources and the editor for state list drawables share the same last
mode as the string resource editor. This is because these editors
share roughly the same graphical editing capabilities.)
(The CL also contains some minor code cleanup.)
Change-Id: I4624dffa2349230684c0558a33081adda8d799b2
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Using the new --output-text-symbols from aapt the build
system now generates the R class for libraries manually
based on the symbols exported by the libraries and the
final values computed by aapt when using all the resource
folders.
Because only R.java is concerned, the Manifest class is
now included in the library jar file.
Also added a new test apps that uses instrumentation to
verify the build system.
Change-Id: Ic436ea8eb070844e9db8b3b2620fbf665839d40b
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | | |
Change-Id: I42426009df581ff51389f0641eab053ac706d723
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This changeset improves the SourceRevealer for certain types of
stacktraces:
(1) Constructors. If your class initializes fields using code, these
are logically grouped into the constructor, but the linenumbers do
not fit the constructor source range. Before this CL, this would
cause the revealer to show the constructor method rather than the
field initialization line.
(2) Class initializers. If you clicked on a class initializer method,
the IDE would throw an NPE. There's now some special handling to
deal with these.
Change-Id: Ibb3b7dcf13a69018f75fd12648d1f6b5c45625cc
|
|/ / /
| | |
| | |
| | | |
Change-Id: I1fd07245e68b39af16a38bcec8a711867e87e5c6
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
<application android:backupAgent> needs a class selector
that accepts classes deriving from BackupAgent.
Change-Id: Id2e72e85967bc31a67d1eff2c342bcf7acc2cb3c
|
| | |
| | |
| | |
| | |
| | |
| | | |
Eclipse 4.x requires it.
Change-Id: Iababca14d8edc8d62bce42f23ee26633dc49cf8c
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Replace "this.mFoo = foo" with just "mFoo = foo".
Change-Id: I44d537ebb62cd7e5c8493a0b50dcb527cd20f91c
|
|\ \ \ \
| |/ / /
| | / /
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This changeset changes the "reuse" behavior of the layout editor to no
longer reuse the same layout editor when you are switching between
alternate layout files for the same layout resource, such as
layout/foo.xml and layout-land/foo.xml. This lets you more quickly
switch back and forth and inspect differences between the layouts,
etc. There is also an option in the Android > Editors panel to turn on
single editor sharing again.
The biggest part of the changeset, by far, is a cleanup of the
ConfigurationComposite class and associated code. This was necessary
not just to support the above feature (where we need to "back out" UI
changes when you've made a configuration edit which results in a
different file getting opened), but it's also an important preparation
for multi configuration editing, where we need to be able to switch
configuration settings in and out of a single configuration editor,
etc.
The configuration data itself is now in a separate Configuration
class; the UI is in ConfigurationChooser, and the configuration
matching code is in ConfigurationMatcher. There's also a new Locale
class to track language/region pairs instead of using 2-element
ResourceQualifier arrays. The various menu listeners are also in
separate UI classes now. While there are new classes, most of the
configuration matching algorithm is unchanged, just moved to a new
class and the UI syncing and configuration data lookup replaced.
Bitmasks are used to handle configuration changes, such that updating
multiple related attributes (e.g. a rendering target change also
causes a theme change if say Holo isn't available) can now be processed
just once with a single change call.
(Various other cleanup too.)
Change-Id: I04ac969f46824321be3db0c487ef077c03cc6012
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
The change is that the manifest merger will only accept a codename
if it's invoked in a context that can resolve that codename to an
API level. This allows to produce an error on bogus codenames and
to properly check that the API levels match appropriately.
Change-Id: Ic70c0c3690b13d94dba81bb78cc09386016b2ef1
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The widget listeners which update the wizard state when you change the
min sdk version, or the target sdk version, went missing in changeset
4ef523b33a392e6c9ca40, probably because a cut & paste operation of a
widget in WindowBuilder (to move it in the hierarchy) also sometimes
removes associated event handler code in other methods (!).
This CL restores this code.
Change-Id: I2501d5e223bec88ebbe74d6fafcc7d7588d6204e
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This changeset moves most constants into the SdkConstants
class, and gets rid of AndroidConstants and LintConstants.
It also migrates all non-ADT specific constants from
AdtConstants into SdkConstants. It furthermore moves various
other constants (such as those in XmlUtils and ValuesDescriptors)
into the constants class. It also fixes the modifier order
to be the canonical modifier order (JLS 8.x).
Finally, it removes redundancy and combines various constant
aliases such that we don't have both NAME_ATTR and ATTR_NAME
pointing to "name", etc.
Change-Id: Ifd1755016f62ce2dd80e5c76130d6de4b0e32161
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This CL performs two changes:
- Refactors the predicate to decide whether an AVD can run
an application into a separate class.
- Fix the AUTO launch mode to properly check compatibility using
this new class as opposed to just checking against the project
build target.
Change-Id: I9e0056e7fb855a18e7a14fe61af11682538dcc51
|
|/ /
| |
| |
| |
| |
| |
| | |
While initially setting up the target launch mode (auto/manual/etc),
make sure that mode change listener is called.
Change-Id: Ib2fa9128909b31275efc1487fe0d192cc8dc3b1e
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
This is to support a template name update in issue 36890.
Change-Id: I47458c094c8dd601e086da0cb1c6fafb7680b58c
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Similar issue fixed by patch d1daeae66a0ebdf53076038dc4a1fe099c4141fb
but this time for the AvdManager.
Change-Id: I10af39d364e427d593078f8bfa23bba3ba7e1558
|
|\ \ \ |
|