Commit Graph

2182 Commits

Author SHA1 Message Date
Xavier Ducrohet
8677a1704e Replace icon template with new style and multiple densities.
The icon in the templates of ADT was medium density only.
I added new densities (high and low), as well as updated to
the new Eclair style. Also added a version for Ant project.

Updated ADT and sdklib to deal with creating new projects
with all 3 icons.

In case of Ant project, this is done only if the icons
are present in the target platforms.

For ADT, this is done only if the project target donut
or later. Older project still have only one icon located
in drawable/

Change-Id: I77069a1e4902ef395d490526aabc40a26e33d4ca
2009-09-30 20:46:00 -07:00
Xavier Ducrohet
cc004309b4 Add a copy button to the screenshot dialog.
This adds the screenshot to the clipboard.

Change-Id: I3509f2e5471588d749d67b70dd4d674cd0cd2057
2009-09-30 18:21:52 -07:00
Android (Google) Code Review
363c023be1 Merge change Ie905f9b5 into eclair
* changes:
  Add support for xdpi and ydpi in the device config for the GLE.
2009-09-30 16:17:34 -04:00
Xavier Ducrohet
f0303d8d5c Add support for xdpi and ydpi in the device config for the GLE.
Change-Id: Ie905f9b586ac5f58e40e86232fbafeaacf6a0c51
2009-09-30 11:57:36 -07:00
Android (Google) Code Review
aa3eaa7057 Merge change I343737c9 into eclair
* changes:
  Remove GAIA string
2009-09-30 01:43:32 -04:00
Chung-yih Wang
84dcb451c2 Add unit test for new keystore.
+ change the package path.
+ add continuous flag.
2009-09-30 12:14:48 +08:00
Costin Manolache
6c9579e709 Remove GAIA string 2009-09-29 19:28:45 -07:00
Xavier Ducrohet
3b5cbc5472 am fff9ff69: (-s ours) Merge the new Ant script rules and template from Eclair (do not merge)
Merge commit 'fff9ff696709e17ad73ae654e511907282bfc0fd' into eclair

* commit 'fff9ff696709e17ad73ae654e511907282bfc0fd':
  Merge the new Ant script rules and template from Eclair (do not merge)
2009-09-29 18:25:27 -07:00
Xavier Ducrohet
fff9ff6967 Merge the new Ant script rules and template from Eclair (do not merge) 2009-09-29 18:06:01 -07:00
Android (Google) Code Review
603899e5a9 Merge change I95a34d28 into eclair
* changes:
  ADT XML String Refactoring: fix refusing to edit @+id/blah.
2009-09-29 21:05:44 -04:00
Xavier Ducrohet
1fed48849d am 559f26b0: (-s ours) Move to 1.6_r2 (DO NOT MERGE)
Merge commit '559f26b0a5e80da467d97d42280c22e5044d7f30' into eclair

* commit '559f26b0a5e80da467d97d42280c22e5044d7f30':
  Move to 1.6_r2 (DO NOT MERGE)
2009-09-29 18:04:57 -07:00
Android (Google) Code Review
6f53211d6d Merge change Ie022d478 into eclair
* changes:
  hdpi artwork for development/{apps,samples}.
2009-09-29 20:51:06 -04:00
Daniel Sandler
75ab82e25f hdpi artwork for development/{apps,samples}.
(drop dated 29-Sep-2009)

Change-Id: Ie022d478ed4eafc641e475dad94f507a6c358595
2009-09-29 20:41:24 -04:00
Android (Google) Code Review
fa4fb90587 Merge change I96ff4429 into eclair
* changes:
  Add support for 'android update test-project'.
2009-09-29 19:46:01 -04:00
Raphael
c737e421e9 ADT XML String Refactoring: fix refusing to edit @+id/blah.
It correctly only refuses to edit @string/blah now.

This CL also does a bit of refactoring; I extracted some methods
and a class to make it a bit easier to read.

BUG 2066460

Change-Id: I95a34d28d6390ab0cc075f05ea83ceec04993ae9
2009-09-29 16:43:53 -07:00
Xavier Ducrohet
559f26b0a5 Move to 1.6_r2 (DO NOT MERGE) 2009-09-29 15:42:46 -07:00
Android (Google) Code Review
7571d11b70 Merge change I2cdb052a into eclair
* changes:
  Import testrunner changes from puppetmaster to keep them in sync.
2009-09-29 18:35:53 -04:00
Brett Chabot
1d9928aaf7 Import testrunner changes from puppetmaster to keep them in sync. 2009-09-29 15:34:20 -07:00
Android (Google) Code Review
e377fa60d1 Merge change I17a9df5a into eclair
* changes:
  Add contacts tests to the continuous test cycle
2009-09-29 18:30:34 -04:00
Android (Google) Code Review
5ea7700ffa Merge change Id5af7cf2 into eclair
* changes:
  Add xdpi and ydpi to layout-configs XML Schema.
2009-09-29 18:05:10 -04:00
Raphael
9b8a8056d1 Add xdpi and ydpi to layout-configs XML Schema.
Also validate that whitespace around tokens is accepted.

BUG 2138329

Change-Id: Id5af7cf2b0689f05327a0cf0b17a525ceba78a12
2009-09-29 14:41:45 -07:00
David 'Digit' Turner
b6d2a4990a am 3c8d2e27: Fix the skins to do proper dpad rotation in landscape mode.
Merge commit '3c8d2e272b71cca814dd694c3ba548f4a2a3a0a0' into eclair

* commit '3c8d2e272b71cca814dd694c3ba548f4a2a3a0a0':
  Fix the skins to do proper dpad rotation in landscape mode.
2009-09-29 14:28:08 -07:00
Omari Stephens
17a9df5a1d Add contacts tests to the continuous test cycle 2009-09-29 14:17:34 -07:00
David 'Digit' Turner
3c8d2e272b Fix the skins to do proper dpad rotation in landscape mode. 2009-09-29 13:19:40 -07:00
Android (Google) Code Review
1028accb55 Merge change Ic86de6e9 into eclair
* changes:
  Fix NPE when opening new layout file.
2009-09-29 13:09:41 -04:00
Dianne Hackborn
5bc6141cb2 Add development setting for compatibility mode.
Also some cleanup here and there.

Change-Id: Iebf563cf6ec2d0b1671a54bd534336e8fef4b9c0
2009-09-29 00:03:59 -07:00
Xavier Ducrohet
596f3b8d91 Fix NPE when opening new layout file.
When adding the parsing of the device XML files, I mostly tested with a
layout file already opened when Eclipse launched.

Well it turns out there's a slightly different code path when opening a file
*after* Eclipse has launched. The load of the device UI in the config
selected caused a rendering before the XML model was loaded which ended
up in an NPE in the recomputeLayout method.

Additionnally, I hadn't finalized the code for the GLE2, so this brings it
in line with the GLE1.

Change-Id: Ic86de6e91ca13793aceecb5706bc963edddb9241
2009-09-28 17:59:25 -07:00
Xavier Ducrohet
cc02b85ba6 Add support for 'android update test-project'.
This is only to be used to update the location of the main project.
To update other properties, 'update project' can be used.

Change-Id: I96ff44295460c7e331953263abccea17108d5a70
2009-09-28 16:30:13 -07:00
Android (Google) Code Review
8c77415ede Merge change Ic94b435b into eclair
* changes:
  Fix bug 2142296 where the user couldn't back out of the JetBoy demo. The application was trapping the key up event on the back key. It worked on Donut because the framework implemented the "back" behavior on the key down. The fix consists in sending the key up event on the back button to the Activity class.
2009-09-28 18:14:51 -04:00
Jean-Michel Trivi
c94b435b86 Fix bug 2142296 where the user couldn't back out of the JetBoy demo.
The application was trapping the key up event on the back key. It
worked on Donut because the framework implemented the "back" behavior
on the key down. The fix consists in sending the key up event on the
back button to the Activity class.
2009-09-28 15:06:25 -07:00
Xavier Ducrohet
9e4715e6d9 Fix ADT to use the new sdklib API
ManifestConstants got renamed AndroidManifest but I
forgot to update ADT.

Change-Id: I60d40c63a67968c31789e91f14020c61114907ca
2009-09-28 14:32:34 -07:00
Android (Google) Code Review
7d76200234 Merge change I097b444e into eclair
* changes:
  Fix ApiDemo Layout rendering test
2009-09-28 16:49:09 -04:00
Xavier Ducrohet
8d33f4a821 Fix ApiDemo Layout rendering test
The issue came from a lack of device configuration and
missing default versions of some resources. We know use
an ADP1 configuration to choose the resources used by
the rendering.

Change-Id: I097b444e4fdc5572cfc53293a3215f1382f5d49c
2009-09-28 13:47:49 -07:00
Android (Google) Code Review
eafb009baf Merge change I663d4cb7 into eclair
* changes:
  Update the project creation (from the command line):
2009-09-28 16:33:57 -04:00
Android (Google) Code Review
c124b2ab7b Merge change Ib1b01007 into eclair
* changes:
  Parse add-on supplied layout devices.
2009-09-28 16:29:25 -04:00
Android (Google) Code Review
fce2633d14 Merge change I1dbeeca5 into eclair
* changes:
  Fix NDK usage of libgcc.a when building shared libraries
2009-09-28 15:53:19 -04:00
Xavier Ducrohet
e6ca35d4b0 Fix ResourceQualifier tests.
Change-Id: Ib6109c1bb76dadddeef24aec3af16e178a931651
2009-09-28 12:16:16 -07:00
David 'Digit' Turner
1dbeeca5c4 Fix NDK usage of libgcc.a when building shared libraries
The main idea is that libgcc.a should appear after object files and
static libraries but before depending shared libraries. This willl
force the linker to copy the libgcc.a functions required by the
generated library into the target binary, instead of relying on
what's available in libc.so and others.

This ensures maximum portability, and prevent problems in the future
when we change the toolchain, which translates to different libgcc.a
functions embedded in libc.so and other exposed native libraries.

However, this will make also generated shared libraries bigger, because
the compiler insists on generating code that depends on a bunch of C++
support functions (even when building from C sources). An increase of
about 8KB per shared library is expected.
2009-09-28 10:41:32 -07:00
Xavier Ducrohet
98b9c10e63 Parse add-on supplied layout devices.
Add-ons are expected to provide a file called devices.xml in their root
folder. The XML schema for this file is
	eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/layout-configs.xsd

I slightly fixed the schema so that normal screen size use the token
"normal" instead of "medium" to match the resource qualifier.

To round up the feature, the following changes are included:
- getEnum in the resource qualifier enum has been made public. There's no
sense in keeping it private and it'll help with people possibly using
valueOf which behaves differently (case sensitive so
ScreenSize.valueOf("normal") fails, while getEnum on the same string succeed.
- Updated the device configuration UI to deal with missing list of
devices while the SDK loads.

Change-Id: Ib1b01007d2ae7fd6398172c3549b2686c33d48be
2009-09-27 21:54:09 -07:00
Xavier Ducrohet
c51d184216 Update the project creation (from the command line):
- Make the distinction between the activity class name, manifest entry,
  fully-qualified name, and tested activity for the template place-holders.
  Test activity names now directly contain the full name (including the
  "Test" prefix) instead of the template adding it.
  This is required by the new 'create test-project'

- New action: create test-project
  This requires a path to the main project. It reads the package, activity
  name and target from the main project.
  The activity is read from the manifest and can be in a more complex form
  than previously expected (for instance .subpackage.MyClass, instead of
  simply MyClass). This is what required the re-work the activity related
  template place holders.
  Options:
   -m --main Location path of the project to test, relative to the new
             project [required]
   -n --name Project name
   -p --path Location path of the new project [required]

   Example: for 2 projects MyProject and MyTests located in the same folder,
            calling from their parent folder.

     android create test-project -p MyTests -m ../MyProject

- build.properties now only gets application.package for older targets
  as the new one get it directly from XPath

- Remove AndroidXPathFactory from the anttasks project as it was already
  in sdklib which is a dependency.

- Removed IntelliJ templates for the SDK. We haven't supported them for
  a while, and now that IntelliJ has built-in support for Android, it's
  not that useful anymore.

While there is the command line parameters for 'update test-project'
it's not yet implemented.

Change-Id: I663d4cb7f439bb2abfe866f893e58f4d13aff975
2009-09-27 18:08:00 -07:00
Android (Google) Code Review
3a68366197 Merge change 27217 into eclair
* changes:
  XML Schema for layout configurations.
2009-09-27 20:22:59 -04:00
Raphael
48f27946d5 XML Schema for layout configurations.
The only changes to the original XML sample:
- the root element is called "layout-configs" (plural for container).

- the <default> and <config> elements must be defined in that order:
 - 0..1 of <default>
   folowed by
 - 1..n of <config>
It's invalid for the <device> node to be empty.

default/config are defined by a <xsd:sequence>, which imposes the
strict ordering. At first I used an <xsd:choice> which does not
impose any ordering but then it becomes possible to define an
empty <device> element. I'd rather live with the strict ordering
(which also makes sense anyway) and enforce non-empty <device>
elements in the schema.

BUG 2138329

Change-Id: I581afb1d72825ae79df00d81c74c80a2a18680ad
2009-09-27 16:44:45 -07:00
Android (Google) Code Review
31727ecbd9 Merge change 27167 into eclair
* changes:
  Added a target to run the Contacts tests using runtest.
2009-09-27 16:56:53 -04:00
mike ritter
82034fdf17 Remove unnecessary preprocessing of monkey commands, fix bug where it didn't recognize '@', '+', '.', etc.
Bug #2121341
2009-09-27 12:17:26 -07:00
Nicolas Catania
f8f452c52d Added a target to run the Contacts tests using runtest. 2009-09-25 16:30:09 -07:00
Android (Google) Code Review
bad9ac7f37 Merge change 27163 into eclair
* changes:
  Add transition animation sample, log to service sample.
2009-09-25 19:12:39 -04:00
Dianne Hackborn
cfc90dc1aa Add transition animation sample, log to service sample.
Change-Id: I7021a7fbbe26d9c52699d7c2216452a5bd51452b
2009-09-25 16:10:42 -07:00
Xavier Ducrohet
0f61aa6470 Sync DDMS/Traceview/Android version on the repository source.
All apps now read source.properties located in SDK/tools
to know which version they. This is used in about box display
and in ping usage.

Change-Id: I6620c3eb703c32bfcdfd96e6a27bffc7a123b974
2009-09-25 15:18:37 -07:00
Android (Google) Code Review
4af6620aa0 Merge change 26982 into eclair
* changes:
  Add info about location of the coverage report
2009-09-25 15:49:48 -04:00
Android (Google) Code Review
f519910b56 Merge change 26983 into eclair
* changes:
  Fix colSpan for screenshot display from 3 to 4 in DDMS.
2009-09-25 13:49:47 -04:00