OSDN Git Service

android-x86/sdk.git
14 years agoADT GLE2: drag'n'drop for LinearLayout
Raphael Moll [Fri, 18 Jun 2010 05:34:20 +0000 (22:34 -0700)]
ADT GLE2: drag'n'drop for LinearLayout

Change-Id: I64959e27f2c08c459e15323d7c8d2cdb041ba9dd

14 years agoMove Apkbuilder into sdklib.
Xavier Ducrohet [Wed, 16 Jun 2010 22:02:35 +0000 (15:02 -0700)]
Move Apkbuilder into sdklib.

Change-Id: I88f7e6101b8c03157a320a6c9d9b7424ffbdc7f5

14 years agoRemove more mentions of jarutils.
Xavier Ducrohet [Wed, 16 Jun 2010 22:06:40 +0000 (15:06 -0700)]
Remove more mentions of jarutils.

Change-Id: I1075f4e5f61128991aef8368ec0595ec0b8116b0

14 years agoFix build. Jarutils was referenced by the eclipse pluging build script.
Raphael Moll [Wed, 16 Jun 2010 21:25:32 +0000 (14:25 -0700)]
Fix build. Jarutils was referenced by the eclipse pluging build script.

Change-Id: I2b1d5475ddcddf1f54260b688bf9b8236c2bf5cf

14 years agoMerge "Refactoring of ApkBuilder to prepare for its integration into sdklib."
Xavier Ducrohet [Wed, 16 Jun 2010 19:01:36 +0000 (12:01 -0700)]
Merge "Refactoring of ApkBuilder to prepare for its integration into sdklib."

14 years agoRefactoring of ApkBuilder to prepare for its integration into sdklib.
Xavier Ducrohet [Tue, 15 Jun 2010 23:20:59 +0000 (16:20 -0700)]
Refactoring of ApkBuilder to prepare for its integration into sdklib.

Change-Id: If75b9262126813769537435546be0ad4e4648ac2

14 years agoMerge "SdkManager: don't user versionName for new platform packages."
Raphael Moll [Tue, 15 Jun 2010 23:01:33 +0000 (16:01 -0700)]
Merge "SdkManager: don't user versionName for new platform packages."

14 years agoMove jarutils into sdklib.
Xavier Ducrohet [Tue, 15 Jun 2010 19:39:43 +0000 (12:39 -0700)]
Move jarutils into sdklib.

Change-Id: Ic99564a7671e588bbf6bc9ee08f7ae1f02a6dcb2

14 years agoSdkManager: don't user versionName for new platform packages.
Raphael Moll [Tue, 15 Jun 2010 22:26:44 +0000 (15:26 -0700)]
SdkManager: don't user versionName for new platform packages.

Change-Id: I56f0a619a5b050c65843730a4fe86a50b3c127ae

14 years agoADT: Multi-apk export action.
Xavier Ducrohet [Mon, 14 Jun 2010 21:45:35 +0000 (14:45 -0700)]
ADT: Multi-apk export action.

This is a first step with no UI.

Still needed:
- handling signing
- add control to how ApkBuilderHelper handles errors to prevent
  output to the console during export.

Change-Id: Id44d708c2b0f5bb52508c33a241bbe921b4297e1

14 years agoMerge "ADT: Editor for export.properties in export-projects."
Raphael Moll [Tue, 15 Jun 2010 04:07:16 +0000 (21:07 -0700)]
Merge "ADT: Editor for export.properties in export-projects."

14 years agoMerge "Saving ProjectProperties now keeps existing file and replaces values."
Xavier Ducrohet [Tue, 15 Jun 2010 00:10:56 +0000 (17:10 -0700)]
Merge "Saving ProjectProperties now keeps existing file and replaces values."

14 years agoADT: Editor for export.properties in export-projects.
Raphael Moll [Mon, 14 Jun 2010 22:31:21 +0000 (15:31 -0700)]
ADT: Editor for export.properties in export-projects.

This is an initial framework that needs to be refined.

Change-Id: I2cd8a7708c30826075de076d2b5826ed8af77eb9

14 years agoSaving ProjectProperties now keeps existing file and replaces values.
Xavier Ducrohet [Mon, 14 Jun 2010 17:29:49 +0000 (10:29 -0700)]
Saving ProjectProperties now keeps existing file and replaces values.

Change-Id: I15663980f931e0d15998f0430ee7154446036fca

14 years agoMerge "Remove debug printfs"
Xavier Ducrohet [Mon, 14 Jun 2010 19:39:15 +0000 (12:39 -0700)]
Merge "Remove debug printfs"

14 years agoMerge "Fix adt-tests (broken by last ADT GLE2 AttributeDescriptor change)"
Raphael Moll [Fri, 11 Jun 2010 23:23:02 +0000 (16:23 -0700)]
Merge "Fix adt-tests (broken by last ADT GLE2 AttributeDescriptor change)"

14 years agoMerge "ADT: Refactor AndroidEditor into AndroidXmlEditor."
Raphael Moll [Fri, 11 Jun 2010 23:20:40 +0000 (16:20 -0700)]
Merge "ADT: Refactor AndroidEditor into AndroidXmlEditor."

14 years agoFix adt-tests (broken by last ADT GLE2 AttributeDescriptor change)
Raphael Moll [Fri, 11 Jun 2010 23:14:49 +0000 (16:14 -0700)]
Fix adt-tests (broken by last ADT GLE2 AttributeDescriptor change)

Change-Id: I7b494743c2b7e8c2bfd6a89cc031f7eb3989ea6c

14 years agoRemove debug printfs
Xavier Ducrohet [Fri, 11 Jun 2010 21:48:37 +0000 (14:48 -0700)]
Remove debug printfs

Change-Id: I34f2aa0d35c904a421654e320c9bdfc229583fab

14 years agoADT: Refactor AndroidEditor into AndroidXmlEditor.
Raphael Moll [Fri, 11 Jun 2010 20:32:20 +0000 (13:32 -0700)]
ADT: Refactor AndroidEditor into AndroidXmlEditor.

Next we'll introduce a new AndroidTextEditor base class.

Change-Id: I2cdf4c7cb7a2eec03f7c523294a14f98bfd072f8

14 years agoMerge "Refactor most of the ApkBuilder into a separate helper class."
Xavier Ducrohet [Fri, 11 Jun 2010 20:30:21 +0000 (13:30 -0700)]
Merge "Refactor most of the ApkBuilder into a separate helper class."

14 years agoMerge "ADT GLE2: Access AttributeInfo from groovy scripts."
Raphael Moll [Fri, 11 Jun 2010 01:32:57 +0000 (18:32 -0700)]
Merge "ADT GLE2: Access AttributeInfo from groovy scripts."

14 years agoMerge "Add a 'removeInstrumentationArg' method to ddms testrunner."
Brett Chabot [Fri, 11 Jun 2010 01:29:57 +0000 (18:29 -0700)]
Merge "Add a 'removeInstrumentationArg' method to ddms testrunner."

14 years agoAdd a 'removeInstrumentationArg' method to ddms testrunner.
Brett Chabot [Fri, 11 Jun 2010 01:08:50 +0000 (18:08 -0700)]
Add a 'removeInstrumentationArg' method to ddms testrunner.

Change-Id: I85ba17eefbc5550dc2712b28b5d870e233c85058

14 years agoRefactor most of the ApkBuilder into a separate helper class.
Xavier Ducrohet [Thu, 10 Jun 2010 22:57:17 +0000 (15:57 -0700)]
Refactor most of the ApkBuilder into a separate helper class.

The Eclipse incremental builder will call the helper, as will
the multi-apk export code (that is not an Eclipse builder).

Change-Id: Ibac9aff4557232a3fa0033336c5d4d4327ae3883

14 years agoMerge "Add icon to export project."
Xavier Ducrohet [Thu, 10 Jun 2010 23:18:39 +0000 (16:18 -0700)]
Merge "Add icon to export project."

14 years agoMerge "Fix library-project link for library whose name isn't a valid path var."
Xavier Ducrohet [Thu, 10 Jun 2010 20:49:38 +0000 (13:49 -0700)]
Merge "Fix library-project link for library whose name isn't a valid path var."

14 years agoFix NPE when comparing project export properties with api split = false.
Xavier Ducrohet [Wed, 9 Jun 2010 23:52:53 +0000 (16:52 -0700)]
Fix NPE when comparing project export properties with api split = false.

Change-Id: I1d3135737e7c13503e0fe4e0559c62959014cd83

14 years agoAdd icon to export project.
Xavier Ducrohet [Wed, 9 Jun 2010 18:08:06 +0000 (11:08 -0700)]
Add icon to export project.

Change-Id: Ie858c3d956cc94f2e463c8f461d10697531225bd

14 years agoMerge "Add new Android Nature for export projects."
Xavier Ducrohet [Wed, 9 Jun 2010 18:26:47 +0000 (11:26 -0700)]
Merge "Add new Android Nature for export projects."

14 years agoFix library-project link for library whose name isn't a valid path var.
Xavier Ducrohet [Wed, 9 Jun 2010 18:23:57 +0000 (11:23 -0700)]
Fix library-project link for library whose name isn't a valid path var.

Change-Id: I42414bc8d560b57dbd58302a7a00203472a0d937

14 years agoMerge "Fix some handling of decimal values in the UI to handle non-en locales."
Xavier Ducrohet [Wed, 9 Jun 2010 17:40:42 +0000 (10:40 -0700)]
Merge "Fix some handling of decimal values in the UI to handle non-en locales."

14 years agoFix some handling of decimal values in the UI to handle non-en locales.
Xavier Ducrohet [Wed, 9 Jun 2010 00:16:19 +0000 (02:16 +0200)]
Fix some handling of decimal values in the UI to handle non-en locales.

Change-Id: I3f0a7e1152b8c29d02b57c41a80d431ff99e6c2b

14 years agoMerge "Add proper comment to multi-apk export build.xml template."
Xavier Ducrohet [Wed, 9 Jun 2010 17:20:28 +0000 (10:20 -0700)]
Merge "Add proper comment to multi-apk export build.xml template."

14 years agoAdd new Android Nature for export projects.
Xavier Ducrohet [Wed, 9 Jun 2010 15:53:15 +0000 (08:53 -0700)]
Add new Android Nature for export projects.

Also, renamed NATURE constant to NATURE_DEFAULT to make
the distinction between the two natures.

Change-Id: I13e83159f7f695822ed94fb2e84e1b760f00f28b

14 years agoAdd proper comment to multi-apk export build.xml template.
Xavier Ducrohet [Wed, 9 Jun 2010 01:16:36 +0000 (18:16 -0700)]
Add proper comment to multi-apk export build.xml template.

Change-Id: I5a237582fd77be24c032af61d52e26976583fcb9

14 years agoADT GLE2: Access AttributeInfo from groovy scripts.
Raphael Moll [Wed, 9 Jun 2010 04:38:19 +0000 (21:38 -0700)]
ADT GLE2: Access AttributeInfo from groovy scripts.

This CL extracts IAttributeInfo from DeclareStyleable -- this used
to be the metadata extracted from an attribute declared in attrs.xml.

The interface that is now available to groovy scripts lets them
check whether an attribute is a reference, a string, etc. For an
enum or flag that means having access to the defined values too.

In the case of the AbsoluteLayout drop, we use this info to check if
an attribute is a reference. For example when duplicating a
RelativeLayout dropped in an AbsoluteLayout, we need to create new
ids and the RelativeLayout is prone to have inner self-references
that can be automatically adjusted that way.

A large part of the CL is about refactoring the various manually-created
attributes in the Descriptors for resources, XML, and such. In this
case the IAttributeInfo that is made available via the AttributeDescriptor
is not used, but it made sense to keep this consistent in case we want
to expose it later and to avoid having to care about special cases.

Change-Id: Ic02f69bc16f0e549fcac3956ae93b86651c5be3c

14 years agoProperly handle float/double in loc control when locale is not en.
Xavier Ducrohet [Tue, 8 Jun 2010 23:34:19 +0000 (01:34 +0200)]
Properly handle float/double in loc control when locale is not en.

String.format uses the decimal point of the current locale which
we don't want since we pass the result to the emulator which expects
decimal point to be '.'

Double.parseDouble does not use the current locale and therefore
failed to read values put in the UI that used a decimal point
that is not '.'

Also simplified the GPS command to use geo fix instead of geo nmea

Change-Id: I275018e6a967c3d4fa37f25a149a840350e40bb8

14 years agoMerge "Enforce english formatting for the geo string sent to the emulator."
Xavier Ducrohet [Tue, 8 Jun 2010 21:43:07 +0000 (14:43 -0700)]
Merge "Enforce english formatting for the geo string sent to the emulator."

14 years agoEnforce english formatting for the geo string sent to the emulator.
Xavier Ducrohet [Tue, 8 Jun 2010 18:44:11 +0000 (20:44 +0200)]
Enforce english formatting for the geo string sent to the emulator.

Change-Id: I1fc90e332fff41e40d2fce740bce8e07d88586ce

14 years agoExport project creation.
Xavier Ducrohet [Fri, 4 Jun 2010 19:53:07 +0000 (12:53 -0700)]
Export project creation.

Change-Id: I22b5a1c7225425b387e1fd5b6769b5e9249b7c88

14 years agoMerge "qemu-props: Signal end of property list."
David Turner [Mon, 7 Jun 2010 22:32:03 +0000 (15:32 -0700)]
Merge "qemu-props: Signal end of property list."

14 years agoMerge "Stop using java.ext.dirs to modify classpath for android.bat"
Xavier Ducrohet [Mon, 7 Jun 2010 21:55:00 +0000 (14:55 -0700)]
Merge "Stop using java.ext.dirs to modify classpath for android.bat"

14 years agoqemu-props: Signal end of property list.
Dries Harnie [Mon, 7 Jun 2010 21:41:00 +0000 (23:41 +0200)]
qemu-props: Signal end of property list.

Change-Id: I16f8c8b370f42c6229b3deabd66d2aaabd0b7937

14 years agoStop using java.ext.dirs to modify classpath for android.bat
Xavier Ducrohet [Mon, 7 Jun 2010 20:36:51 +0000 (13:36 -0700)]
Stop using java.ext.dirs to modify classpath for android.bat

If the original value of java.ext.dirs contains space, then the
value is lost and we lose access to optional crypto packages.

The new mechanism uses a mix of -classpath (for main package
and swt whose path is computed automatically). For other
dependencies, we use the Class-Path attribute in the manifest
of sdkmanager.jar.

Change-Id: I06c46eb1abcd9b5bab6360d1430c0dcbc97f73ce

14 years agoADT GLE2: Restore relative position of elements in AbsoluteLayout drop.
Raphael Moll [Sat, 5 Jun 2010 05:44:38 +0000 (22:44 -0700)]
ADT GLE2: Restore relative position of elements in AbsoluteLayout drop.

Change the IDragElement to not carry the original INode, since
this is not available when crossing Eclipse instances. Instead
encode the info we need in the transfer.

Change-Id: I90a1e71171af61e51e8aaded31e05300fa85c014

14 years agoADT GLE2: remove source elements after a drag'n'drop MOVE operation.
Raphael Moll [Fri, 4 Jun 2010 22:34:24 +0000 (15:34 -0700)]
ADT GLE2: remove source elements after a drag'n'drop MOVE operation.

Change-Id: Ic0560466a3ccfb3a5eeb077b1eae508828870629

14 years agoMerge "ADT GLE2: Tests for SimpleElement/Attribute"
Raphael Moll [Fri, 4 Jun 2010 21:41:09 +0000 (14:41 -0700)]
Merge "ADT GLE2: Tests for SimpleElement/Attribute"

14 years agoADT GLE2: Tests for SimpleElement/Attribute
Raphael Moll [Fri, 4 Jun 2010 20:44:07 +0000 (13:44 -0700)]
ADT GLE2: Tests for SimpleElement/Attribute

Change-Id: Ica08b71b4d3280fefad2388780849d307a515d5a

14 years agoDetect conflict due to change in number/list of ABI being exported.
Xavier Ducrohet [Fri, 4 Jun 2010 20:24:35 +0000 (13:24 -0700)]
Detect conflict due to change in number/list of ABI being exported.

A change in ABI (number, or one replacing another) in the ABIs of a project
would trigger a change in the generated build info, so we force
increment of versionCode in this case.

Also now display the actual project property that changed and is
causing a conflict for better troubleshooting.

Change-Id: Ibb654022f1bed0e81fa0c6e649dc69dd98f2f9e0

14 years agoMerge "Rework the multi-apk log file(s)."
Xavier Ducrohet [Fri, 4 Jun 2010 18:11:28 +0000 (11:11 -0700)]
Merge "Rework the multi-apk log file(s)."

14 years agoRework the multi-apk log file(s).
Xavier Ducrohet [Fri, 4 Jun 2010 02:50:37 +0000 (19:50 -0700)]
Rework the multi-apk log file(s).

Move away from a single log file used for:
- tell the dev what file was created with that properties
- used to increment minor versionCode for specific apks
- used to detect config change from what export to another.

There are now three files for each case, with the last two
using a never changing filename. Only a new build log file
is created at each export.

Change-Id: Ia9b464e6ffefe24463a537ee48d0a20a7a004af7

14 years agoMerge "ADT GLE2: Generate items on drop in AbsoluteLayout."
Raphael Moll [Fri, 4 Jun 2010 15:59:43 +0000 (08:59 -0700)]
Merge "ADT GLE2: Generate items on drop in AbsoluteLayout."

14 years agoADT GLE2: Generate items on drop in AbsoluteLayout.
Raphael Moll [Thu, 3 Jun 2010 23:59:10 +0000 (16:59 -0700)]
ADT GLE2: Generate items on drop in AbsoluteLayout.

Change-Id: Iaf943b476db553cd39f5c3ee4f9c47ad3cdc6246

14 years agoAdd support for locale filters in multi-apk export.
Xavier Ducrohet [Wed, 2 Jun 2010 22:51:19 +0000 (15:51 -0700)]
Add support for locale filters in multi-apk export.

Change-Id: Ia3faf7a6818de0e579cf491b139a41f4d379935e

14 years agoMerge "Fix ABI ordering for the multi-apk build info."
Xavier Ducrohet [Wed, 2 Jun 2010 22:36:47 +0000 (15:36 -0700)]
Merge "Fix ABI ordering for the multi-apk build info."

14 years agoMerge "Add support for soft properties in multi-apk export."
Xavier Ducrohet [Wed, 2 Jun 2010 22:36:42 +0000 (15:36 -0700)]
Merge "Add support for soft properties in multi-apk export."

14 years agoMerge "Implement mechanics for supports-screens in the multi-apk export."
Xavier Ducrohet [Wed, 2 Jun 2010 21:46:22 +0000 (14:46 -0700)]
Merge "Implement mechanics for supports-screens in the multi-apk export."

14 years agoFix ABI ordering for the multi-apk build info.
Xavier Ducrohet [Wed, 2 Jun 2010 20:18:49 +0000 (13:18 -0700)]
Fix ABI ordering for the multi-apk build info.

Change-Id: I3241ec881549218f4cb21ce723c257ee69b9f8a5

14 years agoAdd support for soft properties in multi-apk export.
Xavier Ducrohet [Wed, 2 Jun 2010 00:00:00 +0000 (17:00 -0700)]
Add support for soft properties in multi-apk export.

First property is split by density.

Change-Id: If68bc520ba4014bbd4b144e71d54bc1161a56e2d

14 years agoADT GLE2: Script for AbsoluteLayout for new canvas drag API.
Raphael Moll [Tue, 1 Jun 2010 17:25:38 +0000 (10:25 -0700)]
ADT GLE2: Script for AbsoluteLayout for new canvas drag API.

Most of the changes concern the supporting API (INode and co)
to be able to recreate and mofiy the XML elements.

Change-Id: I9ab62b3fe125faed1b647f1735f8ff0afd33a5d9

14 years agoImplement mechanics for supports-screens in the multi-apk export.
Xavier Ducrohet [Fri, 28 May 2010 22:07:52 +0000 (15:07 -0700)]
Implement mechanics for supports-screens in the multi-apk export.

- detect overlap (apk1 is small, large; apk2 is normal)
- detect non-strictly different supports-screens
- compareTo orders based on support for higher size.

Change-Id: I76251e10c83f1508c9a5b83b638a47b1c0922693

14 years agoMerge "Fix test symlinks script for windows"
Raphael Moll [Fri, 28 May 2010 21:59:44 +0000 (14:59 -0700)]
Merge "Fix test symlinks script for windows"

14 years agoMerge "Uses some constants for default values for minSdkVersion and glEsVersion"
Xavier Ducrohet [Fri, 28 May 2010 21:39:08 +0000 (14:39 -0700)]
Merge "Uses some constants for default values for minSdkVersion and glEsVersion"

14 years agoMerge "ADT GLE2: Drag from canvas"
Raphael [Fri, 28 May 2010 21:37:34 +0000 (14:37 -0700)]
Merge "ADT GLE2: Drag from canvas"

14 years agoUses some constants for default values for minSdkVersion and glEsVersion
Xavier Ducrohet [Fri, 28 May 2010 19:29:45 +0000 (12:29 -0700)]
Uses some constants for default values for minSdkVersion and glEsVersion

Change-Id: Ieaf86ae56c7458e2bde90960c0262329ba77bad5

14 years agoMerge "New log format for multi-apk export."
Xavier Ducrohet [Fri, 28 May 2010 20:19:25 +0000 (13:19 -0700)]
Merge "New log format for multi-apk export."

14 years agoMerge "Properly compare supports-screens."
Xavier Ducrohet [Fri, 28 May 2010 19:23:49 +0000 (12:23 -0700)]
Merge "Properly compare supports-screens."

14 years agoMerge "Add Manifest checks for multi-apk export."
Xavier Ducrohet [Fri, 28 May 2010 19:22:48 +0000 (12:22 -0700)]
Merge "Add Manifest checks for multi-apk export."

14 years agoADT GLE2: Drag from canvas
Raphael [Thu, 25 Mar 2010 20:35:54 +0000 (13:35 -0700)]
ADT GLE2: Drag from canvas

The groovy scripts need to be changed and will be
part of the next CL (only the base view one has been
adapted here.)

Change-Id: If91602b36a3b147f6a18c9c9538d6d9bec5ecea0

14 years agoNew log format for multi-apk export.
Xavier Ducrohet [Fri, 28 May 2010 02:20:14 +0000 (19:20 -0700)]
New log format for multi-apk export.

Also added support for supports-screens in the log,
and fixed supports-screens parsing.

Change-Id: I702fb511eb4da0094917d7c0d9fe792f582adeb2

14 years agoMerge "Add support for adb.device.arg to the test Ant rules."
Xavier Ducrohet [Fri, 28 May 2010 18:04:53 +0000 (11:04 -0700)]
Merge "Add support for adb.device.arg to the test Ant rules."

14 years agoAdd support for adb.device.arg to the test Ant rules.
Xavier Ducrohet [Fri, 28 May 2010 17:49:52 +0000 (10:49 -0700)]
Add support for adb.device.arg to the test Ant rules.

Change-Id: Idfc39bcdd79f17700952bb66ed1b67a840495011

14 years agoProperly compare supports-screens.
Xavier Ducrohet [Fri, 28 May 2010 00:10:18 +0000 (17:10 -0700)]
Properly compare supports-screens.

Comparing the content of the manifest is not working. It is
important to compare the value the platform is seeing when
runnign the app, which means knowing the default values and
overriding them with what is present in the manifest.

This requires parsing targetSdkVersion as minSdkVersion is
not enough.

Change-Id: I703a8093670709e633f47170b02dec033ae29ea9

14 years agoFix test symlinks script for windows
Raphael Moll [Thu, 27 May 2010 23:44:17 +0000 (16:44 -0700)]
Fix test symlinks script for windows

Change-Id: I5d9073c0c31d93005744f4309dab7c137cbeb3a0

14 years agoAdd Manifest checks for multi-apk export.
Xavier Ducrohet [Thu, 27 May 2010 22:25:00 +0000 (15:25 -0700)]
Add Manifest checks for multi-apk export.

Change-Id: Ifd0bb892582888b7b6ef6ceb634871c1fb24d6e5

14 years agoRefactored most of the multi-apk export out of the ant task into sdklib.
Xavier Ducrohet [Thu, 27 May 2010 19:17:50 +0000 (12:17 -0700)]
Refactored most of the multi-apk export out of the ant task into sdklib.

This common code will be used by ADT when processing multi-apk export.

I also had to improve the API for IAbstractFile/Folder.

Change-Id: Ied76f0a9f068223ceaba36124e841f804febfaf8

14 years agoMove ApkData into sdklib.
Xavier Ducrohet [Thu, 27 May 2010 00:13:03 +0000 (17:13 -0700)]
Move ApkData into sdklib.

This is the first step of refactoring common code from MultiApkExportTask
into sdklib.

Change-Id: Ie82eafa961a80fac7c24d3a65e75648da8af525c

14 years agoMerge "Fix SD Card size check to prevent int overflow."
Xavier Ducrohet [Tue, 25 May 2010 00:46:43 +0000 (17:46 -0700)]
Merge "Fix SD Card size check to prevent int overflow."

14 years agoFix SD Card size check to prevent int overflow.
Xavier Ducrohet [Tue, 25 May 2010 00:27:55 +0000 (17:27 -0700)]
Fix SD Card size check to prevent int overflow.

Also added a check for sd card that are too big (>999GB) to prevent
long overflow.

Change-Id: Ie3ae57e679151dacf0e1fbbec23b29ccfdad3b6a

14 years agoAdd proper support for <uses-library> and <uses-feature> in the manifest parsing.
Xavier Ducrohet [Wed, 19 May 2010 02:12:21 +0000 (19:12 -0700)]
Add proper support for <uses-library> and <uses-feature> in the manifest parsing.

Change-Id: I80d5fd57f66005fcb4157cb6acc3f9473dd19701

14 years agoFix error detection for invalid command line arguments.
Raphael Moll [Wed, 19 May 2010 05:37:12 +0000 (07:37 +0200)]
Fix error detection for invalid command line arguments.

This fixes 2 edge cases:
- when an unknown extra parameter is given (it was simply
  ignored before)

  e.g.: "android update sdk foo" => foo is extra.

- when a 1-argument parameter is used and no argument is actually
  given but instead the next dash-parameter is found.

  e.g.: "android update sdk --filter (missing value) --somearg"

Change-Id: Idc34f61728411aceaf1cf33f070ac275b3798019

14 years agoAdd parsing of <uses-configuration> in the manifest.
Xavier Ducrohet [Wed, 19 May 2010 00:30:46 +0000 (17:30 -0700)]
Add parsing of <uses-configuration> in the manifest.

Change-Id: Id6f4b58c5a811b0b7e32b40162c8bd6680f2fc67

14 years agoMerge "Console-based "android update sdk""
Raphael Moll [Tue, 18 May 2010 19:36:13 +0000 (12:36 -0700)]
Merge "Console-based "android update sdk""

14 years agoConsole-based "android update sdk"
Raphael Moll [Tue, 18 May 2010 19:02:31 +0000 (21:02 +0200)]
Console-based "android update sdk"

Known limitations:
- This simulate exactly what the "update sdk" GUI does,
  namely it suggests the latest platform to install and
  updates older packages.
- It respects the default source URLs (e.g. the getenv stuff)
- there are a few options to configure behavior such as
  selecting obsolete packages and a dry-mode.
- As such, this is mostly a one-shot update step and probably
  lacks configuration that a script-based updater would want.

Non-goals:
- No way to specifically request a given package to be installed.
- No way to configure the output (e.g. the install progress might
  be annoying if the output is piped for a script)

SDK Bug 2404640

Change-Id: If0512558f048e88f2b216e34ed33aa550ff2610c

14 years agoUpdate changes.txt for the SDK tools rev 7
Xavier Ducrohet [Tue, 18 May 2010 19:23:39 +0000 (12:23 -0700)]
Update changes.txt for the SDK tools rev 7

Change-Id: I8ed3028a75011cc8218c21673308d072614baa41

14 years agoMerge "move the resource enums from the qualifier classes to sdklib."
Xavier Ducrohet [Tue, 18 May 2010 19:03:26 +0000 (12:03 -0700)]
Merge "move the resource enums from the qualifier classes to sdklib."

14 years agomove the resource enums from the qualifier classes to sdklib.
Xavier Ducrohet [Tue, 18 May 2010 00:04:26 +0000 (17:04 -0700)]
move the resource enums from the qualifier classes to sdklib.

This is so that other code (like the manifest parser) can use them.

Change-Id: I53be59bbe752e77752e90cedb528f25cf3b3792f

14 years agoFix missing @override.
Raphael Moll [Tue, 18 May 2010 06:44:56 +0000 (08:44 +0200)]
Fix missing @override.

Also fixes some javadocs.

Change-Id: Ic2bc0ae1c822f184bde63b29fdc15d897661c623

14 years agoAdd a reboot command to IDevice to allow ddmlib users to reboot devices.
Bill Napier [Mon, 17 May 2010 23:59:29 +0000 (16:59 -0700)]
Add a reboot command to IDevice to allow ddmlib users to reboot devices.

Change-Id: I8f8b792c68ec869980805c06aecf249558c6dc3f

14 years agoRefactor the manifest parser test in the correct package.
Xavier Ducrohet [Mon, 17 May 2010 21:35:48 +0000 (14:35 -0700)]
Refactor the manifest parser test in the correct package.

And don't make it use the Parser Helper that's eclipse specific.

Also fixed the versionCode parsing (bug introduced in previous CL)

Change-Id: Ie472d7d6c4847e3fae660873cca7d71e801a2a34

14 years agoMerge "Fix collect_sources_for_sdk to collect dalvik core lib sources"
Raphael Moll [Mon, 17 May 2010 12:25:57 +0000 (05:25 -0700)]
Merge "Fix collect_sources_for_sdk to collect dalvik core lib sources"

14 years agoMerge "Fix a typo."
Xavier Ducrohet [Fri, 14 May 2010 22:12:35 +0000 (15:12 -0700)]
Merge "Fix a typo."

14 years agoFix a typo.
Xavier Ducrohet [Fri, 14 May 2010 22:08:13 +0000 (15:08 -0700)]
Fix a typo.

Change-Id: I699ee939436964e0c88b7b8423b5ed6fef84add1

14 years agoMinor refactor, moving ManifestData out of the parser class.
Xavier Ducrohet [Thu, 13 May 2010 01:12:52 +0000 (18:12 -0700)]
Minor refactor, moving ManifestData out of the parser class.

Also started added new data parsing (screen support)

Change-Id: I783e973fa16598a777eec4536746e6e5b9cb3e74

14 years agoMerge "Disable --library for 'update lib-project'"
Xavier Ducrohet [Thu, 13 May 2010 23:07:21 +0000 (16:07 -0700)]
Merge "Disable --library for 'update lib-project'"

14 years agoDisable --library for 'update lib-project'
Xavier Ducrohet [Thu, 13 May 2010 23:06:32 +0000 (16:06 -0700)]
Disable --library for 'update lib-project'

Change-Id: I44f612595750ff0b0248f0206456dcf2f53bcf47

14 years agoAdd all new source folders in a single pass in new project wizard.
Xavier Ducrohet [Thu, 13 May 2010 20:59:45 +0000 (13:59 -0700)]
Add all new source folders in a single pass in new project wizard.

Change-Id: Id54bc449a64373b4ad1cb63ec48b72076c387414

14 years agoFix the library project filter to not NPE on broken projects.
Xavier Ducrohet [Thu, 13 May 2010 01:13:36 +0000 (18:13 -0700)]
Fix the library project filter to not NPE on broken projects.

Change-Id: I51ec8f699b631171fcfa92ce8cc658ba1f50e017

14 years agoRefactored the Android Manifest into sdklib.
Xavier Ducrohet [Wed, 12 May 2010 01:05:56 +0000 (18:05 -0700)]
Refactored the Android Manifest into sdklib.

API change to make it use IFileWrapper instead of IFile.

Old AndroidManifestParser changed to AndroidManifestHelper which
is now mostly wrapper methods to add Eclipse specific parameters.

Also moved ADT...AndroidConstants.CLASS_* to sdklib...SdkConstants
(needed by the parser) and removed AndroidConstants.FN_ANDROID_MANIFEST
since SdkConstants.FN_ANDROID_MANIFEST_XML existed too.

Moved the Eclipse implementation of IAbstractFile/Folder

Change-Id: I59bdbe90ba9a4c0b5bb2c4c68945b8877d4eed3d