• R/O
  • HTTP
  • SSH

sdk: List of commits


Rev. Time Author
3c2630a ics-x86 2012-04-05 19:02:28 Chih-Wei Huang

Merge commit 'android-4.0.4_r1.1' into ics-x86

9fa78b3 2012-02-15 07:17:24 The Android Automerger

merge in ics-mr1-release history after reset to ics-mr1

84b0a90 2012-02-01 09:00:49 Xavier Ducrohet

Back port the annotations support lib to mr1. do not merge.

Change-Id: I557354e2f95126680981e75ddebc28764825d02a

82cef7e 2011-12-19 15:11:58 Chih-Wei Huang

exclude unnecessary qemu stuff from android-x86

3e0f396 honeycomb-x86 2011-11-06 02:26:32 Chih-Wei Huang

Merge branch 'aosp/honeycomb-LTE-release' into honeycomb-mr2-x86

fa5aade 2011-10-23 23:03:09 The Android Automerger

merge in ics-release history after reset to master

54cf881 2011-10-22 12:41:08 Raphael

Merge "Prevent NPE in 'android update project'."

addb6b1 2011-10-22 12:10:45 Bill Napier

Fix ClassNotFoundException on MonkeyRunner startup.

Change-Id: Id81b52ade324fde1c7316b522d482bee83ede840

27cb7e4 2011-10-22 11:43:16 Xavier Ducrohet

Merge "Platform now returns the new location of the renderscript includes."

6502dab 2011-10-22 11:40:54 Xavier Ducrohet

Platform now returns the new location of the renderscript includes.

Change-Id: Ice55f026e9d78922bfa359edad62630a8f7fb8ed

fb1f094 2011-10-22 10:34:13 Xavier Ducrohet

Fix ant test, ant installt and ant uninstall (for test projects)


Change-Id: Id861d493c9b73dcfc9e81bdc8fb6c8b7c8ed0e55

3bd440e 2011-10-22 09:19:13 Raphael

Merge "Fix AVD Manager creation for GTV issue."

f22fd47 2011-10-22 09:15:43 Raphael

Merge "SDK Manager: label incompatible packages."

3e6c7d3 2011-10-22 08:48:48 Tor Norbye

Merge "AssetStudio: Preserve asset type, and hide clipart"

f0ea77b 2011-10-22 08:42:04 Raphael

Fix AVD Manager creation for GTV issue.

SDK Bug: 20963

Change-Id: I46b8e808f2eb0c008b60036631a4d061d02085c6

24bf21e 2011-10-22 05:12:52 Raphael

SDK Manager: label incompatible packages.

- Clearly states that a package is not compatible.
- Provides an env var to work around and install anyway:
$ tools/android

Change-Id: I5d94fbe452c72572054b2aecb781acfe3519135c

6a32475 2011-10-21 23:49:47 Tor Norbye

Merge "Fix for Create Android Project from Existing Project"

5438734 2011-10-21 23:49:33 Tor Norbye

Merge "Handle node identity changes"

804558f 2011-10-21 10:31:43 Xavier Ducrohet

Merge "Fix "ant test"."

a7d4886 2011-10-21 10:10:55 Tor Norbye

AssetStudio: Preserve asset type, and hide clipart

First, preserve the asset type across Wizard invocations, such that if
you're (for example) creating a notification icon, after creating the
first one you can invoke the wizard again without having to reselect
notification over and over.

Second, we still don't have clipart contributed. Until we get a full
set of clipart images, disable the clipart option.

Change-Id: I44e90a60974afa537ace36716b26f3c1d9f6610e

bf78416 2011-10-21 09:48:08 Xavier Ducrohet

Fix "ant test".

Change-Id: If7dab5116ec0351f712aa26673c3b3d36026bb96

8027fad 2011-10-21 08:35:49 Tor Norbye

More lint checks: translation, i18n, proguard, gridlayout, "px"

This changeset adds more lint checks:

(1) Translation. It looks at all the string values in the application,
and if there are discrepancies (where a translatable string is not
defined in all provided languages and regions) then these are

(2) Internationalization. It looks for text: and contentDescription:
attributes and ensures that these refer to @string resources, not
hardcoded string values. This lint warning also has an associated
quickfix when shown in Eclipse which invokes the Extract String
refactoring wizard on the right selection context.

(3) Proguard. It looks for the old (broken) patterns we had in older
proguard.cfg files (-keepclasseswithmembernames instead of
-keepclasseswithmembers which implies shrinking.)

(4) GridLayout. It looks at the layout constraints provided on views
in a GridLayout and ensures that they fall within the overall
dimensions of the grid.

(5) "px" usage. It looks for dimensions using "px" as a unit and
recommends switching to dp instead. This lint warning also has a
quickfix in Eclipse which pops up a dialog asking for the screen
density and then converts the px value to the right dp value and
changes the unit.

(6) TextFields. It looks at EditTexts and makes sure they either set
inputType, hint or inputMethod. There's a quickfix in Eclipse for
setting the inputType, which adds the property and automatically
invokes content assist for showing the possible values.

This changeset also adds some quick fixes for a few existing lint

(7) Accessibility: Insert a content description attribute, front the
editor and select the placeholder value.

(8) Useless leaf layout: Remove the leaf layout

(9) Useless middle layout: Invoke the Remove Container visual

10) Inefficient Linear Layout Weights: Change the attribute to 0dp

Plus unit tests.

Change-Id: Iebd7b23224a898bd1851abd578460019aee44df5

a85107f 2011-10-21 08:33:18 Tor Norbye

Static analyzer

This changeset adds a static analyzer, "lint", which looks for various
potential bugs in Android projects. It has 3 parts:

(1) A library which performs the actual static checks.
This library is standalone: it does not depend on Eclipse.
(Technically the library has two halves: an API half, for use
by third party developers to write additional detectors, and
an actual implementation of a bunch of built-in checks.)

(2) A command line driver, "lint", which runs the static checks and
emits any warnings to standard out. This can be thought of as
a replacement for the layoutopt tool.

(3) Eclipse integration. Lint errors are added to the Problems view as
well as shown as editor annotations. There's an options panel for
controlling which detectors are enabled. There's also a quickfix
for disabling errors directly within the editor and a marker
resolution for disabling them via the Problems view.

The static checks are run on an XML file right after it has been
saved. (This is optional via a toggle on the same preference page
as the detector list.)

The static checks are also run when you export an APK, and if any
fatal errors are found the export is abandoned. (This is also
optional via an option).

Finally you can run a full lint through the Android Tools menu,
and there's also an action to clear all the lint markers there.

There's also a new indicator on the layout editor which shows
whether there are lint errors on the associated file, and when
clicked brings up a dialog listing the specific errors.

This changeset also includes a number of checks:

* An accessibility detector which warns about images missing
* A drawable selector detector which warns about state lists where not
all states are reachable (e.g. it is not the case that only the last
item in the list omits a state qualifier)
* A detector finding duplicate ids, not just in the current layout but
across included layouts (transitively) as well
* All the layoutopt ones ported to Java + DOM
* Unit tests for the above.

The focus here is on getting the infrastructure in place, and it
currently focuses on XML resource files and analyzing them
efficiently. See the comment in XmlVisitor for details on that.

Change-Id: Ic5f5f37d92bfb96ff901b959aaac24db33552ff7

f15f425 2011-10-21 06:42:50 Tor Norbye

Fix for Create Android Project from Existing Project

The project location was not updated when just pasting into the text
field; you had to use the file chooser.

In addition, copy out the inferred project name read from the manifest
(unless the user has already defined a project name), and don't
clobber a custom location if the user has manually edited the

Change-Id: I4e70b7fcf49d2d2fb73d4da1f78104e92928b0e9

150f02b 2011-10-21 01:53:34 Tor Norbye

Handle node identity changes

This changeset fixes a bug where sometimes dropping a new widget into
a layout would cause lots of other widget to be selected as well.

The root cause is that Eclipse's DOM *sometimes* decides to throw away
and replace all the children of a node, even when most of the children
just had attribute changes. In particular, this happens in some
GridLayout scenarios where a drop causes many attribute changes on the
children (to update row and column indices etc).

The workaround has two parts:

(1) The old implementation would find out which nodes were added by a
drop handler by storing a list of all the children before the
drop, then getting the list after the drop and removing the ones
that were present before.

This doesn't work when node ids change since *all* the children
would get marked as "new".

To address this, I made tracking created nodes more explicit:
rather than "diffing" the lists, there's a NodeCreationListener
interface you can hook into which (while you're listening) will
tell you about *all* nodes created by any parent. In the drop
handler we add a listener and make a list of all newly added nodes
that have the drop target node as a parent.

(2) Even with an explicit list of which nodes were added, there's the
problem that the nodes that were added have changed their
identities, so we cannot look up a "view rectangle" for them and
select them in the layout editor. To do this we need ot map from
the previous children of a parent node to its new children. We
cannot make the comparison based on equality (since the reason
we're getting into this trouble in the first place is that the
various children are touched by the drop handler when setting
attributes on them) so instead we use the sibling index. Since we
track all the additions and removals of nodes within our drop
target node, we can know exactly that the 4th node before Eclipse
reparses will correspond to the 4th node after, and so on.

Therefore, the "NodeCreationListener" interface passes not just
the nodes that were added and removed, but also the exact *index*
at which the node was added or removed. We then use this in the
code which looks up CanvasViewInfos from nodes to look up nodes
that can't be identified using the normal path.

Change-Id: Ibbf651b27ede7edfa40452de07bf1dbce02cd21e

33f330d 2011-10-20 23:02:25 The Android Automerger

merge in ics-release history after reset to master

b8fa164 2011-10-20 06:51:40 Raphael

Merge "SDK Manager: Fix typos."

4913b95 2011-10-20 06:31:32 Raphael

SDK Manager: fix window resize issue.

SDK Bug: 20939

Incidentally, this also fixes the fact that the window
for the SDK/AVD manager can't be resized at all on Windows
when started from ADT. SWT is quite magical.

Change-Id: I282ebdac3e42e39ee41247de5591cfcb61cd4ac8

14dde1b 2011-10-19 23:45:11 The Android Automerger

merge in ics-release history after reset to master

5d65838 2011-10-19 05:53:32 Raphael

Prevent NPE in 'android update project'.

SDK Bug 20535.
Doesn't seem reproducible, so just defend against
a potential NPE anyway.

Change-Id: Ieb6a0958c7585ea3c5cffbb640943263a14e4c60

Show on old repository browser