Commit Graph

2151 Commits

Author SHA1 Message Date
Android (Google) Code Review
1061c0c7dc Merge change I69afafa4 into eclair
* changes:
  ADT: Create project from existing sample in New Project Wizard
2009-10-02 22:52:31 -04:00
Raphael
badc593c5e ADT: Create project from existing sample in New Project Wizard
The UI workflow:
- user selects the new "Create project from existingsample" radio button
- user selects an SDK target in the NPW
- a popup is filled with all available samples

This also fixes 2 edge cases:
- when the selected sample contains a build|default.propertie that is
  a base of the currently selected SDK target, don't reset it.
- when the user manually changes the project name or the app name for
  the sample, simply empty the fields and the next selected sample
  will recompute the adequate names. Any non-empty user input is never
  overridden.

SDK BUG 2121819

Change-Id: I69afafa460b86942046ef6baca3d4c7ee7dbe97d
2009-10-02 19:47:26 -07:00
Xavier Ducrohet
90ee703e94 Fix resource resolution in the graphical layout editor.
Resource with qualifiers take precedence over the ones without
even if the qualifiers are not present on the requested configuration.

Change-Id: I0d19889064e8031179ea6ee13c93a4198fe971fd
2009-10-02 19:07:09 -07:00
Xavier Ducrohet
d280d2363e Monintor resolution/size chooser dialog
This simple dialog lets the user choose a screen size (from a fixed list) and
a resolution (as returned by SWT's Display class).

This is used by the AVD start options dialog to help users figure out
the pixel density of their monitor.

Change-Id: I3eec0e7fac850c82e836d2bc0291a491f29f516e
2009-10-02 15:16:06 -07:00
Xavier Ducrohet
d13d440d43 Emulator launch options dialog.
This is displayed when clicking the Start button in the AVD manager.

The dialog allows to easily scale the emulator to match an arbitrary screen size
and to wipe the user data if needed.

The required monitor dpi is computed using java.awt.Toolkit, but (at least
on MacOS) it doesn't return the correct value, so it can be user supplied.
It's stored at least while the app is running and if possible in the settings
of the ADV/SDK Manager/Updater.

The wipe-data and scale flags are stored and reused while the app keeps
running as well.

Change-Id: Ia2f3ff5f4de285a3d505c6914d6b89cc663be284
2009-10-02 12:35:10 -07:00
Raphael
ef1337876b SDK: Fix CustomLocale to properly setup Language+Country
SDK BUG 2154263

Change-Id: I74db5bc237921ff6a6fd55664a2a3c62f544081b
2009-10-02 11:18:10 -07:00
Jeff Sharkey
480332f6c5 Revise template to match spec per jham. 2009-10-01 22:14:45 -07:00
David 'Digit' Turner
cc230ba07c Ensure the version of 'awk' detected by host-setup.sh is used during the build 2009-10-01 21:27:19 -07:00
Android (Google) Code Review
79adc9fc90 Merge change Ia78a7753 into eclair
* changes:
  Remove bash-specific operator from build/host-setup.sh.
2009-10-01 23:26:50 -04:00
Xavier Ducrohet
f073703057 Fix Android Manifest parser.
While the test is in the java package as the parser, it's in a different
plug-in and this prevents accessing package-protected methods.

Change-Id: Ib17765095e4da518d62ee65cb9e1987d0e22be6e
2009-10-01 17:23:25 -07:00
David 'Digit' Turner
a78a775332 Remove bash-specific operator from build/host-setup.sh. 2009-10-01 16:38:44 -07:00
Raphael
2ace885b29 ADT Manifest Editor: Fix for uses-sdk dup that won't go away.
It was a display issue only, meaning the actual XML node was
being deleted but the Ui model was not updated properly. The
actual cause is that this is a mandatory node, and mandatory
nodes must stay as "fake nodes" in the Ui model. However
only one such node needs to stay in the hierarchy.

SDK BUG 2147112

Change-Id: I68e3d343bb95169865ad8dcad77004cbd51fafc3
2009-10-01 14:17:02 -07:00
Android (Google) Code Review
657bdd7d28 Merge change I8a575e49 into eclair
* changes:
  Fix CustomLocale to work with soft keyboard.
2009-10-01 16:54:48 -04:00
Raphael
0bd70bcf5b Fix CustomLocale to work with soft keyboard.
SDK BUG 2154263

Change-Id: I8a575e49089ef2e6829e10749d796f6179330928
2009-10-01 13:28:21 -07:00
Xavier Ducrohet
2cdd16b77f fix the build
Change-Id: Ica519f7e0adbc9fd48792198221c01da3e27fab8
2009-10-01 12:54:02 -07:00
Android (Google) Code Review
1233e408f7 Merge change Ie3124796 into eclair
* changes:
  Ignore adt/eclipse project files in CustomLocale
2009-10-01 15:32:41 -04:00
Raphael
4a062018fd Ignore adt/eclipse project files in CustomLocale
SDK BUG 2154263

Change-Id: Ie31247964058f8140f2bd5184a8b7deac4ad0381
2009-10-01 11:40:13 -07:00
Xavier Ducrohet
227b8768fa Load default GLE device profiles from the SDK.
Change-Id: Ife64397692912f892ec81af8237ac31914830be9
2009-09-30 23:01:19 -07:00
Android (Google) Code Review
69940e9bab Merge change I77069a1e into eclair
* changes:
  Replace icon template with new style and multiple densities.
2009-10-01 00:23:41 -04:00
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