OSDN Git Service

android-x86/sdk.git
12 years agoMerge "Add missing NON-NLS to SdkConstants."
Raphael [Wed, 7 Sep 2011 22:51:38 +0000 (15:51 -0700)]
Merge "Add missing NON-NLS to SdkConstants."

12 years agoMerge "More support for standalone system image packages."
Raphael [Wed, 7 Sep 2011 22:50:53 +0000 (15:50 -0700)]
Merge "More support for standalone system image packages."

12 years agoMerge "Fix SdkManager.UrlOpener to support file:// URLs."
Raphael [Wed, 7 Sep 2011 22:46:19 +0000 (15:46 -0700)]
Merge "Fix SdkManager.UrlOpener to support file:// URLs."

12 years agoAdd missing NON-NLS to SdkConstants.
Raphael [Wed, 7 Sep 2011 18:31:43 +0000 (11:31 -0700)]
Add missing NON-NLS to SdkConstants.

Not stricly needed, but it's nice to uniformize the file.

Change-Id: Ia3930f46d465588ccb1b071679661f567bea8bce

12 years agoFix code completion filtering on Eclipse 3.7
Tor Norbye [Wed, 7 Sep 2011 18:29:10 +0000 (11:29 -0700)]
Fix code completion filtering on Eclipse 3.7

The builtin Eclipse XML code completion provides some bad results. For
example, it will always offer the current value of the attribute,
regardless of whether it is valid. When you are typing in a value and
invoke code completion, this means it will offer you the prefix you've
already typed.

To get rid of this, we add our own "filtering" code completion which
hides these results. We can't just completely replace the XML code
completion providers since we want some results, such as template
completion suggestions. Instead we look for the specific XML code
completion provider and filter it out.

In Eclipse 3.7, the class we're filtering out is no longer used and
there's a new code completion provider. We need to filter that one out
too, and that is what this changeset does. It cannot reference the new
class directly since it does not exist in Eclipse 3.5, so we match by
class name instead.

Change-Id: Id8fae237a43a6b0dad34a148ee4f99729f1cbd63

12 years agoMore support for standalone system image packages.
Raphael [Wed, 7 Sep 2011 05:14:28 +0000 (22:14 -0700)]
More support for standalone system image packages.

Change-Id: I084c3b4916b1ce69ba602ced5be308f0d215eff8

12 years agoFix SdkManager.UrlOpener to support file:// URLs.
Raphael [Wed, 7 Sep 2011 03:53:26 +0000 (20:53 -0700)]
Fix SdkManager.UrlOpener to support file:// URLs.

The new Apache HttpClient code doesn't support local file://
URLs. For any unsupported protocol, retry using the class
java.net.Url.open method.

Change-Id: Ie01499b372a3f5e1a217e0b51fd4a07c216164fb

12 years agoChange default launcher icon name in new Android projects
Tor Norbye [Sat, 27 Aug 2011 02:15:26 +0000 (19:15 -0700)]
Change default launcher icon name in new Android projects

When creating a new project, the default project template includes a
launcher icon named "icon.png". This changeset changes the name of
this default icon to "ic_launcher.png", in accordance with the
recommended naming convention listed in

http://developer.android.com/guide/practices/ui_guidelines/icon_design.html

(The secondary motivation for this is that the Icon Set Wizard will
suggest ic_launcher as a default launcher name, and it would be nice
if going through the wizard with the default settings would replace
the current project's launcher icon. Given the guidelines above I'd
rather not change the wizard default name to "icon")

Change-Id: I9f516c769019c2635edad4e1e6f01a5110d156fe

12 years agoMerge "Only mark downstream projects for build when they are open"
Tor Norbye [Wed, 7 Sep 2011 01:42:23 +0000 (18:42 -0700)]
Merge "Only mark downstream projects for build when they are open"

12 years agoMerge "Misc New Project Wizard fixes"
Tor Norbye [Wed, 7 Sep 2011 01:36:40 +0000 (18:36 -0700)]
Merge "Misc New Project Wizard fixes"

12 years agoMerge "Update New XML File Wizard"
Tor Norbye [Wed, 7 Sep 2011 01:34:37 +0000 (18:34 -0700)]
Merge "Update New XML File Wizard"

12 years agoUpdate New XML File Wizard
Tor Norbye [Tue, 6 Sep 2011 14:18:26 +0000 (07:18 -0700)]
Update New XML File Wizard

This changeset updates the "New XML File" wizard a bit to make the
page smaller, and at the same time make the root element selection
more prominent.

1) The configuration chooser is moved to an optional second page,
   along with the target folder text field.

2) The first page now uses a table with icons instead of a dropdown
   for the "root element" selection. In practice this means that when
   you create a new layout XML file, most of the wizard page is
   showing you a list of available layouts along with their icons.

3) The file type radio button rows have been replaced by a single
   dropdown instead.

4) There are a couple of new "New File Wizard" registrations for
   specific types (layouts, values) that preselect the given type and
   ignores the wizard invocation context. This allows for example
   filtering on "layout" in the New File wizard.

5) The "initialize from context" code now picks up the type of the
   current file and uses that in its initial guess of project, type
   and folder.

6) Fix a bug with the code to format files on creation.

The GUI code is now edited using WindowBuilder. Internally, the wizard
and wizard pages communicate via a wizard value object. Also, the GUI

Change-Id: Ic4301ff45e4ecac5c590ac606fc5f5daa4d1a1a1

12 years agoMisc New Project Wizard fixes
Tor Norbye [Fri, 2 Sep 2011 23:57:35 +0000 (16:57 -0700)]
Misc New Project Wizard fixes

This changeset fixes a couple of bugs in the New Project wizard:

(1) It escapes strings, such as the application name, in the
    strings.xml file.
    http://code.google.com/p/android/issues/detail?id=6725

(2) It fixes package name validation in the activity name
    http://code.google.com/p/android/issues/detail?id=14811

(3) It selects an SDK target by default
    http://code.google.com/p/android/issues/detail?id=17505

Finally it also ensures that the suggested activity name is a valid
Java class name even where the application name is not.

Change-Id: Iba9843dbb2fbb09324122d285e51ad937f6fddfd

12 years agoMerge "Formatting fixes for color lists"
Tor Norbye [Wed, 7 Sep 2011 00:35:19 +0000 (17:35 -0700)]
Merge "Formatting fixes for color lists"

12 years agoOnly mark downstream projects for build when they are open
Tor Norbye [Tue, 6 Sep 2011 23:14:17 +0000 (16:14 -0700)]
Only mark downstream projects for build when they are open

When a resource is modified in a library project, then all downstream
projects which depends on this library project are also marked with a
persistent property which indicates that they need to run aapt as part
of their next build.

However, if a parent project is closed, this would throw an exception
since you can only set properties on open projects.

Change-Id: I20f88bb28dde43b4f8bba427f45449245badbdb5

12 years agoConvert Tabs -> Spaces.
Siva Velusamy [Tue, 6 Sep 2011 20:29:07 +0000 (13:29 -0700)]
Convert Tabs -> Spaces.

Change-Id: Ib2b1311047624f2d31c3806400047b8beb01dcbf

12 years agoAdd gldebugger feature.
Siva Velusamy [Tue, 6 Sep 2011 20:21:23 +0000 (13:21 -0700)]
Add gldebugger feature.

Update build scripts to include gldebugger feature only for internal
builds.

Change-Id: I3ad9422309df6e0befc878f50e147399b1a3b456

12 years agoMove gldebugger tests to separate tests plugin.
Siva Velusamy [Tue, 6 Sep 2011 18:43:16 +0000 (11:43 -0700)]
Move gldebugger tests to separate tests plugin.

Change-Id: I0f1d353c3d5cbd3c21c529472a42d9e8123f909d

12 years agoFormatting fixes for color lists
Tor Norbye [Tue, 6 Sep 2011 21:19:12 +0000 (14:19 -0700)]
Formatting fixes for color lists

Color lists ended up getting formatted using the generic layout style
instead of the resource style (with multiple attributes packed into
the same line).

Furthermore, by convention the "color" attribute always logically
sorts to the end, after the various state flags, so update the
attribute sorting rules to reflect this.

Change-Id: Iaa88106f7eaf7c953b3a97dc203da5833a3bf085

12 years agoRename package to com.android.ide.eclipse.gldebugger.
Siva Velusamy [Tue, 6 Sep 2011 18:13:39 +0000 (11:13 -0700)]
Rename package to com.android.ide.eclipse.gldebugger.

Change-Id: Id9030afeb13eac4fd725c27f19593cd9218fb369

12 years agoRemove @Override's.
Siva Velusamy [Tue, 6 Sep 2011 17:19:49 +0000 (10:19 -0700)]
Remove @Override's.

Update sources to compile with Java 1.5. The plugin should build now,
except for the tests folder.

Change-Id: I07cafdd40056705e9d24f444c054fe85f9e5e152

12 years agoAdd create dependencies script for gldebugger.
Siva Velusamy [Tue, 6 Sep 2011 16:41:06 +0000 (09:41 -0700)]
Add create dependencies script for gldebugger.

Move common code from ddms & hierarchy viewer scripts into
common_setup.sh, and reuse the same code in
create_gldebugger_symlinks.

The script copies/soft-links all required dependencies
into the libs folder. Update gldebugger project meta data
to pick up dependencies from the libs folder.

Change-Id: I0c9ccaf01ee43168f6b94bf85b2f42b5fc08ffec

12 years agoGLES2Dbg: more tests and minor fixes/improvements
David Li [Sat, 23 Apr 2011 01:18:30 +0000 (18:18 -0700)]
GLES2Dbg: more tests and minor fixes/improvements

Change-Id: I24adaad3c96d62a23570d05be66a9e20b7643223
Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: use GL implementation constants sent from server
David Li [Tue, 19 Apr 2011 22:33:41 +0000 (15:33 -0700)]
GLES2Dbg: use GL implementation constants sent from server

Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: initial tests
David Li [Fri, 15 Apr 2011 18:09:16 +0000 (11:09 -0700)]
GLES2Dbg: initial tests

Also remove GLFunction enum, since the enums already exist in
DebuggerMessage.Function

Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: noop - camelCase function names
David Li [Fri, 15 Apr 2011 16:56:38 +0000 (09:56 -0700)]
GLES2Dbg: noop - camelCase function names

Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: generate Android.mk and main function
David Li [Thu, 14 Apr 2011 00:35:11 +0000 (17:35 -0700)]
GLES2Dbg: generate Android.mk and main function

Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: reconstruct vertex attributes to match indices
David Li [Wed, 13 Apr 2011 23:16:38 +0000 (16:16 -0700)]
GLES2Dbg: reconstruct vertex attributes to match indices

Rather than converting glDrawElements into glDrawArrays and
 uploading all attributes each draw call.
Also added CaptureDraw and CaptureSwap options.

Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: cache Messages to RandomAccessFile
David Li [Thu, 7 Apr 2011 18:38:56 +0000 (11:38 -0700)]
GLES2Dbg: cache Messages to RandomAccessFile

-Load and format Message when the frame is selected to save memory.

Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: code gen for frame
David Li [Mon, 11 Apr 2011 18:11:32 +0000 (11:11 -0700)]
GLES2Dbg: code gen for frame

Also loading *.gles2dbg dump files.

Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: organize calls into frames and contexts
David Li [Thu, 7 Apr 2011 01:20:12 +0000 (18:20 -0700)]
GLES2Dbg: organize calls into frames and contexts

Maintain a current state for each context updated by each call.
eglSwapBuffers Begins a new frame; clone current state.
Use clone to compute context for a call within that frame later on,
 in the context tree view.

Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: add more state tracking and snapshot of state per GL call
David Li [Wed, 30 Mar 2011 22:14:36 +0000 (15:14 -0700)]
GLES2Dbg: add more state tracking and snapshot of state per GL call

Use TreeView and Reflection to display the states per GL call.
Need to implement more state cloning and tacking.
Prepare to group calls by frame, and clone the context for each frame.

Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: use mesa glsl_compiler for syntax checking
David Li [Tue, 29 Mar 2011 00:55:56 +0000 (17:55 -0700)]
GLES2Dbg: use mesa glsl_compiler for syntax checking

Also switch to TabFolder for GUI

Signed-off-by: David Li <davidxli@google.com>
12 years agoMerge "GLES2Dbg: improve protocol and error check after shader upload"
Siva Velusamy [Tue, 6 Sep 2011 21:00:44 +0000 (14:00 -0700)]
Merge "GLES2Dbg: improve protocol and error check after shader upload"

12 years agoMerge "GLES2Dbg: implemented shader tracking and editing"
Siva Velusamy [Tue, 6 Sep 2011 21:00:28 +0000 (14:00 -0700)]
Merge "GLES2Dbg: implemented shader tracking and editing"

12 years agoMerge "GLES2Dbg: use 256KB chunks for lzf compression"
Siva Velusamy [Tue, 6 Sep 2011 21:00:18 +0000 (14:00 -0700)]
Merge "GLES2Dbg: use 256KB chunks for lzf compression"

12 years agoMerge "GLES2Dbg: implemented MessageParser"
Siva Velusamy [Tue, 6 Sep 2011 21:00:08 +0000 (14:00 -0700)]
Merge "GLES2Dbg: implemented MessageParser"

12 years agoMerge "GLES2Dbg: added SETPROP expectResponse"
Siva Velusamy [Tue, 6 Sep 2011 20:59:59 +0000 (13:59 -0700)]
Merge "GLES2Dbg: added SETPROP expectResponse"

12 years agoMerge "GLES2Dbg: change TableViewer to ListViewer"
Siva Velusamy [Tue, 6 Sep 2011 20:59:48 +0000 (13:59 -0700)]
Merge "GLES2Dbg: change TableViewer to ListViewer"

12 years agoMerge "GLES2Dbg: added reference frame for glReadPixels"
Siva Velusamy [Tue, 6 Sep 2011 20:59:38 +0000 (13:59 -0700)]
Merge "GLES2Dbg: added reference frame for glReadPixels"

12 years agoMerge "GLES2Dbg: use liblzf for compressing images"
Siva Velusamy [Tue, 6 Sep 2011 20:59:26 +0000 (13:59 -0700)]
Merge "GLES2Dbg: use liblzf for compressing images"

12 years agoMerge "GLES2Dbg: Remove spurious execute file permissions."
Siva Velusamy [Tue, 6 Sep 2011 20:59:15 +0000 (13:59 -0700)]
Merge "GLES2Dbg: Remove spurious execute file permissions."

12 years agoMerge "GLES2Dbg: Make command exchange async to improve performance."
Siva Velusamy [Tue, 6 Sep 2011 20:59:03 +0000 (13:59 -0700)]
Merge "GLES2Dbg: Make command exchange async to improve performance."

12 years agoMerge "GLES2Dbg: Added state tracking and vertex data capturing."
Siva Velusamy [Tue, 6 Sep 2011 20:58:49 +0000 (13:58 -0700)]
Merge "GLES2Dbg: Added state tracking and vertex data capturing."

12 years agoMerge "GLES2Dbg: Initial commit of OpenGL ES 2.0 Debugger Client"
Siva Velusamy [Tue, 6 Sep 2011 20:58:27 +0000 (13:58 -0700)]
Merge "GLES2Dbg: Initial commit of OpenGL ES 2.0 Debugger Client"

12 years agoAdd SystemImagePackage definition to sdkmanager.
Raphael [Sat, 3 Sep 2011 20:53:54 +0000 (13:53 -0700)]
Add SystemImagePackage definition to sdkmanager.

This just adds the type and check we can parse it out
a sample XML. This CL does not yet use the system image
package where needed.

Change-Id: Id2d83c9e216256c329a88dced9e274da0ab651f0

12 years agoSdkManager: support <included-abi> in platform packages.
Raphael Moll [Thu, 1 Sep 2011 06:20:58 +0000 (23:20 -0700)]
SdkManager: support <included-abi> in platform packages.

This is part of a series of CL to add support for
system-image packages separated from platform packages.

In this small CL we just add the <included-abi> element
to platform packages, load/save it and test by loading
a sample XML.

Change-Id: Icbf554ea398bbcfe5cf760f9d25aec3de088937a

12 years agoMerge "Add GridLayout support to the ChangeLayout refactoring"
Tor Norbye [Tue, 6 Sep 2011 14:37:25 +0000 (07:37 -0700)]
Merge "Add GridLayout support to the ChangeLayout refactoring"

12 years agoAdd GridLayout support to the ChangeLayout refactoring
Tor Norbye [Tue, 23 Aug 2011 21:19:26 +0000 (14:19 -0700)]
Add GridLayout support to the ChangeLayout refactoring

This changeset adds a generic-to-GridLayout converter to the "Change
Layout" refactoring. The converter arranges the views into a grid
based on their bounds, uses the sizes to determine row and column
spans, and then writes this out as the resulting grid.

Note that it does not yet consider existing layout knowledge to add
better constraints, such as gravity, or arranging vertically
overlapping views in a horizontal row into a same shared row.

Change-Id: I78e5fdf49d9e2a838a7229e2e31aa62e190032ad

12 years agoMerge "Eliminate GEF dependency"
Tor Norbye [Fri, 2 Sep 2011 22:43:46 +0000 (15:43 -0700)]
Merge "Eliminate GEF dependency"

12 years agoGLES2Dbg: improve protocol and error check after shader upload
David Li [Mon, 28 Mar 2011 17:24:07 +0000 (10:24 -0700)]
GLES2Dbg: improve protocol and error check after shader upload

Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: implemented shader tracking and editing
David Li [Tue, 29 Mar 2011 01:38:38 +0000 (18:38 -0700)]
GLES2Dbg: implemented shader tracking and editing

Next commit is improving the protocol and
 checking errors after shader upload

Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: use 256KB chunks for lzf compression
David Li [Tue, 22 Mar 2011 20:23:14 +0000 (13:23 -0700)]
GLES2Dbg: use 256KB chunks for lzf compression

Data format is u32 totalDecompressedSize, then repeat:
u32 chunkDecompressedSize, u32 chunkCompressedSize, chunk data.
If chunkCompressedSize == 0, then chunk is not compressed.

Also start fixing integer sizes on server.
On client, set endianness to match server.

Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: implemented MessageParser
David Li [Tue, 22 Mar 2011 17:06:00 +0000 (10:06 -0700)]
GLES2Dbg: implemented MessageParser

To allow user to input GL function call

Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: added SETPROP expectResponse
David Li [Tue, 22 Mar 2011 17:05:05 +0000 (10:05 -0700)]
GLES2Dbg: added SETPROP expectResponse

To allow "stepping" in functions.
Also fix bug in reference frame.
Use reference frame for CopyTex(Sub)Image2D.

Change-Id: If5ef32ba97a6cf5bc43162dc41cf62c6494d2093
Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: change TableViewer to ListViewer
David Li [Tue, 22 Mar 2011 21:56:09 +0000 (14:56 -0700)]
GLES2Dbg: change TableViewer to ListViewer

For much faster scrolling

Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: added reference frame for glReadPixels
David Li [Tue, 22 Mar 2011 17:02:51 +0000 (10:02 -0700)]
GLES2Dbg: added reference frame for glReadPixels

Change-Id: I9b74a2eaf3a0e15ff3e7addbca168acc1c9b2f44
Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: use liblzf for compressing images
David Li [Wed, 30 Mar 2011 19:43:55 +0000 (12:43 -0700)]
GLES2Dbg: use liblzf for compressing images

liblzf is in external/liblzf

Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: Remove spurious execute file permissions.
Jamie Gennis [Tue, 22 Mar 2011 22:10:47 +0000 (15:10 -0700)]
GLES2Dbg: Remove spurious execute file permissions.

This change is just a chmod -x of some files that shouldn't aren't
executable.

12 years agoGLES2Dbg: Make command exchange async to improve performance.
David Li [Fri, 11 Mar 2011 19:11:41 +0000 (11:11 -0800)]
GLES2Dbg: Make command exchange async to improve performance.

In message loop, use select to check for available commands from client,
 rather than always expecting commands in eglSwapBuffers.
Client can send commands at any time.

Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: Added state tracking and vertex data capturing.
David Li [Wed, 9 Mar 2011 00:57:24 +0000 (16:57 -0800)]
GLES2Dbg: Added state tracking and vertex data capturing.

Change-Id: Iaf56a52240b84fef5689a03f96d613349a492b43
Signed-off-by: David Li <davidxli@google.com>
12 years agoGLES2Dbg: Initial commit of OpenGL ES 2.0 Debugger Client
David Li [Sat, 5 Mar 2011 01:47:18 +0000 (17:47 -0800)]
GLES2Dbg: Initial commit of OpenGL ES 2.0 Debugger Client

Displays GL call parameters, textures, screen captures and shader source.
Server code is in frameworks/base/opengl/libs/GLES2_dbg.
Protobuf code is generated using generate_debugger_message_proto.py in server code.

Change-Id: Idf86af2b4087497ff723953a3fd0889f79c2e116
Signed-off-by: David Li <davidxli@google.com>
12 years agoCleanup javadoc references in sdklib.
Raphael [Fri, 2 Sep 2011 21:26:12 +0000 (14:26 -0700)]
Cleanup javadoc references in sdklib.

Change-Id: I2173944aeb3f18fc58d19fcf80ec186743dba56a

12 years agoEliminate GEF dependency
Tor Norbye [Fri, 2 Sep 2011 21:13:20 +0000 (14:13 -0700)]
Eliminate GEF dependency

ADT used to depend on GEF (the Graphical Editing Framework in
Eclipse), but with GLE2 it no longer does. However, there were still a
couple of references left to GEF (a javadoc reference, some usages of
its Rectangle class, and a reference in the manifest).

Not all Eclipse distributions ship with GEF, which means some users
get a missing dependency error which is not immediately obvious to
those not familiar with Eclipse libraries.

Since we don't depend on GEF for anything important, eliminate the
last dependencies.

Change-Id: I5d1e11a195da496dc10c10fc7865df7e4d183629

12 years agoMerge changes Ifbb7de6e,Ib3b26595
Raphaël Moll [Fri, 2 Sep 2011 20:58:25 +0000 (13:58 -0700)]
Merge changes Ifbb7de6e,Ib3b26595

* changes:
  Fix example URL used in UTs.
  SDK Manager2: fix large downloads.

12 years agoMerge "Change CRLF to LF and remove execute permissions on source files"
Tor Norbye [Fri, 2 Sep 2011 19:44:16 +0000 (12:44 -0700)]
Merge "Change CRLF to LF and remove execute permissions on source files"

12 years agoEscape string in "extract string" refactoring
Michael Zoech [Tue, 30 Aug 2011 22:36:24 +0000 (00:36 +0200)]
Escape string in "extract string" refactoring

When executing the "extract string" refactoring only single and double
quotes are escaped correctly.

This patch for the bug #19612 improves the method by escaping the
following characters:
* Spaces at beginning or end of string.
* @, ? at beginning of string.
* ', ", \, <, &, \n, \t anywhere in string.

Change-Id: Ia2939213bd5460399dc5e19f5ce413c3f5812ea8

12 years agoAdded icons for toolbar and project folders
Herculano Campos [Tue, 30 Aug 2011 10:40:29 +0000 (11:40 +0100)]
Added icons for toolbar and project folders

12 years agoChange CRLF to LF and remove execute permissions on source files
Tor Norbye [Fri, 2 Sep 2011 03:09:12 +0000 (20:09 -0700)]
Change CRLF to LF and remove execute permissions on source files

Change-Id: I8b2504b116c33100d702f5d910b5625d3a089b0f

12 years agoClean up layout and menu file scanning code
Tor Norbye [Fri, 2 Sep 2011 17:40:57 +0000 (10:40 -0700)]
Clean up layout and menu file scanning code

This changeset fixes some issues around the new lazy scanning of
layout and menu files.

First, it partly fixes "19657: AAPT errors aren't shown when adding an
error to a valid XML file". With the new optimization of not running
aapt on layout files where no ids have changed, we would no longer
pick up changes where an invalid or nonexistent resource is added. We
now perform some basic validation of resources as well as XML parsing
errors.

Second, it fixes a bug in the id before and after comparison used to
determine if aapt needs to run: The code would call map.keySet()
before and after the ids were added, but this resolved to the same
keyset so the equals comparison was always true regardless of the
content.

Third, it fixes an infinite loop issue with library projects, and
avoids doing unnecessary classpath modifications when there are no
changed projects.

Finally, it changes the "needsId" flag. The state of whether aapt
needs to be run was stored per repository, and there is a bug where it
does not get cleared properly which can yield a compilation loop. This
changeset introduces a new "ScanningContext" object which is passed
down to the various resource file updater methods. This context object
now holds the needsId state object (which is renamed to
"needsFullAapt"), and it is also the object where errors can be
registered.

Change-Id: I5632612c2d93e2f10f0803e9223921adb67602be

12 years agoMerge "Always reset the must-compile-res flag when aapt is run."
Xavier Ducrohet [Fri, 2 Sep 2011 19:10:28 +0000 (12:10 -0700)]
Merge "Always reset the must-compile-res flag when aapt is run."

12 years agoMerge "Make the dependency graph use extension restrictions per folder."
Xavier Ducrohet [Fri, 2 Sep 2011 19:10:22 +0000 (12:10 -0700)]
Merge "Make the dependency graph use extension restrictions per folder."

12 years agoMerge "Disable post compiler for normal projects only."
Xavier Ducrohet [Fri, 2 Sep 2011 19:06:58 +0000 (12:06 -0700)]
Merge "Disable post compiler for normal projects only."

12 years agoAlways reset the must-compile-res flag when aapt is run.
Xavier Ducrohet [Fri, 2 Sep 2011 19:05:47 +0000 (12:05 -0700)]
Always reset the must-compile-res flag when aapt is run.

Change-Id: If526a8cf29399b85f98b39c7e7a2acf0ff8c6bbe

12 years agoMerge "Use project selector button in the New XML File wizard"
Tor Norbye [Fri, 2 Sep 2011 17:32:46 +0000 (10:32 -0700)]
Merge "Use project selector button in the New XML File wizard"

12 years agoMerge "Use project minimum SDK to generate fewer icons"
Tor Norbye [Fri, 2 Sep 2011 17:32:19 +0000 (10:32 -0700)]
Merge "Use project minimum SDK to generate fewer icons"

12 years agoMerge "Add support for remaining asset types in Asset Studio Wizard"
Tor Norbye [Fri, 2 Sep 2011 17:31:43 +0000 (10:31 -0700)]
Merge "Add support for remaining asset types in Asset Studio Wizard"

12 years agoMerge "A few warnings fixes"
Tor Norbye [Fri, 2 Sep 2011 17:30:00 +0000 (10:30 -0700)]
Merge "A few warnings fixes"

12 years agoMerge "Fix NPE in ResourceFolder when deleting folders"
Tor Norbye [Fri, 2 Sep 2011 17:29:08 +0000 (10:29 -0700)]
Merge "Fix NPE in ResourceFolder when deleting folders"

12 years agoMerge "Fix junit reported error in SdkManagerTestCase."
Brett Chabot [Fri, 2 Sep 2011 16:05:58 +0000 (09:05 -0700)]
Merge "Fix junit reported error in SdkManagerTestCase."

12 years agoFix example URL used in UTs.
Raphael [Fri, 2 Sep 2011 05:49:19 +0000 (22:49 -0700)]
Fix example URL used in UTs.

Change-Id: Ifbb7de6e94a5be9864c7b033e129d140ada89b70

12 years agoSDK Manager2: fix large downloads.
Raphael Moll [Thu, 1 Sep 2011 07:01:57 +0000 (00:01 -0700)]
SDK Manager2: fix large downloads.

UrlOpener was using a BufferedHtmlEntity reader.
As a consequence its getContent() was loading large packages
in memory and resulting in OutOfMemory exceptions, whilst at
the same time blocking and thus rendering the download
progress report useless. This fixes it by simply passing
through in the underlying stream and freeing resources when
the stream is closed.

Change-Id: Ib3b265953931fecdf202197230ee9f24d8178faa

12 years agoMerge "SDK Manager: allow manual install of incompatible archives."
Raphael Moll [Fri, 2 Sep 2011 04:37:05 +0000 (21:37 -0700)]
Merge "SDK Manager: allow manual install of incompatible archives."

12 years agoMerge "Unit test for XML with <extra old-path> attribute."
Raphael Moll [Fri, 2 Sep 2011 04:36:57 +0000 (21:36 -0700)]
Merge "Unit test for XML with <extra old-path> attribute."

12 years agoMerge "Repository XSD: System Images Packages."
Raphael Moll [Fri, 2 Sep 2011 04:36:46 +0000 (21:36 -0700)]
Merge "Repository XSD: System Images Packages."

12 years agoMerge "Test ExtraPackage old_path in SDK Manager diff"
Raphael Moll [Fri, 2 Sep 2011 04:36:38 +0000 (21:36 -0700)]
Merge "Test ExtraPackage old_path in SDK Manager diff"

12 years agoMerge "SDK Manager: Unit tests for ArchiveInstaller."
Raphael Moll [Fri, 2 Sep 2011 04:36:17 +0000 (21:36 -0700)]
Merge "SDK Manager: Unit tests for ArchiveInstaller."

12 years agoMerge "SDK Manager: remember window positions."
Raphael Moll [Fri, 2 Sep 2011 04:36:05 +0000 (21:36 -0700)]
Merge "SDK Manager: remember window positions."

12 years agoMerge "Move ant project templates files to development.git"
Raphael Moll [Fri, 2 Sep 2011 04:35:57 +0000 (21:35 -0700)]
Merge "Move ant project templates files to development.git"

12 years agoMerge "Repository XSD: New <old_paths> in Extra packages."
Raphael Moll [Fri, 2 Sep 2011 04:35:47 +0000 (21:35 -0700)]
Merge "Repository XSD: New <old_paths> in Extra packages."

12 years agoMerge "Windows: look for Java in %ProgramFiles(x86)%."
Raphael Moll [Fri, 2 Sep 2011 04:35:36 +0000 (21:35 -0700)]
Merge "Windows: look for Java in %ProgramFiles(x86)%."

12 years agoMerge "sdkman2: don't select Win USB driver on Mac/Linux."
Raphael Moll [Fri, 2 Sep 2011 04:35:29 +0000 (21:35 -0700)]
Merge "sdkman2: don't select Win USB driver on Mac/Linux."

12 years agoMake the dependency graph use extension restrictions per folder.
Xavier Ducrohet [Fri, 2 Sep 2011 00:45:06 +0000 (17:45 -0700)]
Make the dependency graph use extension restrictions per folder.

Before there was a way to filter touched file by extension(s) but
this was for all input folders.

Now each input folder can have a different set of extension restrictions.
This will allow apkbuilder to use DependencyGraph and extension restriction
for all its input folders.

Also fixed an issue where aapt would not package the resources if an
xml files was touched. This is because it didn't make a difference
between compiling the resources for IDs and packaging the resource
values.

Change-Id: I797d3a24c6c1f999e9d412c4ff8aa826ed16fc09

12 years agoMerge "Add layoutlib_api.jar to sdk/tests/libtests."
Brett Chabot [Thu, 1 Sep 2011 23:43:33 +0000 (16:43 -0700)]
Merge "Add layoutlib_api.jar to sdk/tests/libtests."

12 years agoAdd layoutlib_api.jar to sdk/tests/libtests.
Brett Chabot [Thu, 1 Sep 2011 23:29:55 +0000 (16:29 -0700)]
Add layoutlib_api.jar to sdk/tests/libtests.

Bug 5249969

Change-Id: I47c8672da6ab40a9ecb9e5e64b42d5f5f8924381

12 years agoFix junit reported error in SdkManagerTestCase.
Brett Chabot [Thu, 1 Sep 2011 23:16:35 +0000 (16:16 -0700)]
Fix junit reported error in SdkManagerTestCase.

Bug 5250175

Change-Id: I101991158231b70e203d701f0db0c6972e305a66

12 years agoMerge "Add proper dependency support in the dex step of the Ant-based build."
Xavier Ducrohet [Thu, 1 Sep 2011 22:44:41 +0000 (15:44 -0700)]
Merge "Add proper dependency support in the dex step of the Ant-based build."

12 years agoMerge "Add support for proper dependency detection in the aidl ant compilation step."
Xavier Ducrohet [Thu, 1 Sep 2011 22:44:31 +0000 (15:44 -0700)]
Merge "Add support for proper dependency detection in the aidl ant compilation step."

12 years agoDisable post compiler for normal projects only.
Xavier Ducrohet [Thu, 1 Sep 2011 22:20:13 +0000 (15:20 -0700)]
Disable post compiler for normal projects only.

The post compiler disabling shouldn't affect library projects.
Those still need to generate their jar file. They don't run dex,
aapt not apkbuilder anyway.

Change-Id: I7c97e5d6a2ff5f3e05c60ee1dc3b5986afde2bd6

12 years agoAdd proper dependency support in the dex step of the Ant-based build.
Xavier Ducrohet [Fri, 26 Aug 2011 01:36:48 +0000 (18:36 -0700)]
Add proper dependency support in the dex step of the Ant-based build.

The dex step now generates a dependency file that is reused during
following builds to check whether dex should occur.

Also optimized the part that figures out if any dependencies have
been modified/have gone missing.

Change-Id: I7f6e915fc7b571ad973260daa506badced3a9c2a