Commit Graph

75 Commits

Author SHA1 Message Date
Xavier Ducrohet
ba9c8dcdf0 Add save/load for the user-made Layout Devices.
Also added support for mcc/mnc in the schema.

Change-Id: I8a2d23797ec57eec69dc1d7218b01cd679634068
2009-10-15 13:06:35 -07:00
Xavier Ducrohet
126a19500c Add missing override.
Change-Id: Id9608b8ac9f05c3e0db92668797b2d80f0690397
2009-10-09 15:36:52 -07:00
Brett Chabot
126bc43dee Fix ADT tests failures:
- Separate functional tests into ones which load their own Sdk, vs ones which
need to use the same one as Adt.
 - Make all base test classes abstract with protected constructors.

BUG 2173382, 2173847
2009-10-09 12:33:22 -07:00
Raphael
e3ae0fe73a Add SdkUiLib tests to adt-tests.
Also fixes the create_tests_symlink for Windows.

SDK BUG 2040986

Change-Id: I7d549c265efb9dbb5936ed7c9a7798eefee52d9b
2009-10-07 21:57:50 -07:00
Xavier Ducrohet
3f71486cbd Moved the test data to their own package.
This allows us to select the whole package for binary inclusion
in adt-test (which doesn't automatically take any non java file for
packaging)

Change-Id: Idc3d3b2f27623de1b0fccd7e01dd88948923081c
2009-10-06 12:06:46 -07:00
Xavier Ducrohet
cce979fcf5 Put kxml back in adt-test
Since adt doesn't export the package, it's just easier that way.

Change-Id: Iddb7f4660ccc0bc51374128a544975596cb051aa
2009-10-06 10:45:18 -07:00
Xavier Ducrohet
4aab78e0b9 Add layoutlib.jar to the classpath of adt-tests
Change-Id: Iab62c8e9849873e91640484c70110660aabd4b8e
2009-10-05 20:08:31 -07:00
Xavier Ducrohet
24bf2fa3e4 Add tests from layoutlib to adt-tests
Change-Id: Ia7bac7fad90b77fe34fb4a4371d6d5945993efe9
2009-10-05 15:57:17 -07:00
Android (Google) Code Review
b6e85c0548 Merge change Ieb4e722b into eclair
* changes:
  Add sdklib tests to the adt-tests Unit tests.
2009-10-05 17:45:04 -04:00
Brett Chabot
071276efbd Fix Eclipse sample tests. 2009-10-05 13:39:38 -07:00
Xavier Ducrohet
b7d28abce3 Add sdklib tests to the adt-tests Unit tests.
Change-Id: Ieb4e722b1b5a29cef250e2cb5575a71e09f956c3
2009-10-05 13:01:11 -07: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
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
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
c124b2ab7b Merge change Ib1b01007 into eclair
* changes:
  Parse add-on supplied layout devices.
2009-09-28 16:29:25 -04:00
Xavier Ducrohet
e6ca35d4b0 Fix ResourceQualifier tests.
Change-Id: Ib6109c1bb76dadddeef24aec3af16e178a931651
2009-09-28 12:16:16 -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
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
Brett Chabot
60c6de766d ADT: change continuous test ant script to run both functional and unit tests. 2009-09-01 01:06:47 -07:00
Xavier Ducrohet
a4876df288 Update some version number for Eclair SDK. 2009-08-18 17:34:01 -07:00
Xavier Ducrohet
6d88a98af4 am 0cef5c46: Merge change 21056 into donut
Merge commit '0cef5c4666b9c77161421c8a52b7dddff42f12da' into eclair

* commit '0cef5c4666b9c77161421c8a52b7dddff42f12da':
  Add a functional test that renders all the layouts of ApiDemos
2009-08-13 18:43:57 -07:00
Android (Google) Code Review
0cef5c4666 Merge change 21056 into donut
* changes:
  Add a functional test that renders all the layouts of ApiDemos
2009-08-13 11:48:53 -07:00
Xavier Ducrohet
6bc7ad58df Add a functional test that renders all the layouts of ApiDemos 2009-08-13 11:47:54 -07:00
Brett Chabot
6aaaec7dc8 am 838b1ea6: Merge change 21052 into donut
Merge commit '838b1ea6c541f2ab7e149ba7f617424dd80e9f11'

* commit '838b1ea6c541f2ab7e149ba7f617424dd80e9f11':
  Update ADT tests README
2009-08-12 21:36:22 -07:00
Android (Google) Code Review
838b1ea6c5 Merge change 21052 into donut
* changes:
  Update ADT tests README
2009-08-12 20:21:19 -07:00
Brett Chabot
851e6b2d3d Update ADT tests README
BUG 2051310
2009-08-12 19:49:03 -07:00
Xavier Ducrohet
7117bac6de am 0edddddd: Merge change 20877 into donut
Merge commit '0edddddd14708ccf1c98081edd09d3b9783ba08b'

* commit '0edddddd14708ccf1c98081edd09d3b9783ba08b':
  Add internal support for screen size/ratio, and version qualifiers.
2009-08-12 12:05:25 -07:00
Xavier Ducrohet
184886072e am 19f8d10d: Merge change 20866 into donut
Merge commit '19f8d10daba4108833550c934f97a7ba2d21cd5a'

* commit '19f8d10daba4108833550c934f97a7ba2d21cd5a':
  Make the res qualifiers aware of the project target to handle differnt behavior.
2009-08-12 12:05:23 -07:00
Xavier Ducrohet
d4ab2e1bae am ca82ce16: Merge change 20831 into donut
Merge commit 'ca82ce16d271bc3b5f43dec043cfb0156ff70b47'

* commit 'ca82ce16d271bc3b5f43dec043cfb0156ff70b47':
  Change ADT/DDMS plug-ins version to 0.9.3
2009-08-12 12:04:47 -07:00
Android (Google) Code Review
0edddddd14 Merge change 20877 into donut
* changes:
  Add internal support for screen size/ratio, and version qualifiers.
2009-08-11 19:25:59 -07:00
Xavier Ducrohet
64bd2d5f3a Add internal support for screen size/ratio, and version qualifiers.
UI will come later.
BUG: 2048256, 2048264
2009-08-11 19:18:48 -07:00
Android (Google) Code Review
19f8d10dab Merge change 20866 into donut
* changes:
  Make the res qualifiers aware of the project target to handle differnt behavior.
2009-08-11 18:44:08 -07:00
Xavier Ducrohet
ae60bdab15 Make the res qualifiers aware of the project target to handle differnt behavior.
First behavior change: \d{3}dpi replaced with hdpi/mdpi/ldpi/nodpi
2009-08-11 18:04:39 -07:00
Xavier Ducrohet
8a5a7dab37 Change ADT/DDMS plug-ins version to 0.9.3 2009-08-11 15:34:04 -07:00
Xavier Ducrohet
24c6fbcd9c am a8721e70: Move ADT/DDMS plug-ins to 0.9.2
Merge commit 'a8721e70401212af0277a5d90921798014fc4bd5'

* commit 'a8721e70401212af0277a5d90921798014fc4bd5':
  Move ADT/DDMS plug-ins to 0.9.2
2009-07-23 13:29:49 -07:00
Xavier Ducrohet
a8721e7040 Move ADT/DDMS plug-ins to 0.9.2 2009-07-22 18:37:33 -07:00
Xavier Ducrohet
f6d154a2b7 am 770dfc5: ADT: Refactoring classes dealing with android resources out
Merge commit '770dfc5ed43089228af1892eef3a73a0e7220bc7'

* commit '770dfc5ed43089228af1892eef3a73a0e7220bc7':
  ADT: Refactoring classes dealing with android resources out of the editor.
2009-05-13 17:46:49 -07:00
Xavier Ducrohet
770dfc5ed4 ADT: Refactoring classes dealing with android resources out of the editor.
Basically:
editors.resources.manager -> resources.manager
editors.resources.configurations -> resources.configurations

This is to make it less confusing between the "Resources editors" and the
class parsing/handling Android resources (either in a project or in the
framework).
Also moved the ResourceExplorerView out of the resources editors, and clean
up a few other misc classes.
2009-05-13 17:36:25 -07:00
Xavier Ducrohet
30e2507154 am 5bb7e1e: ADT: Move more packages into internal:
Merge commit '5bb7e1e0cdb1b135968b279f7e4350769160ba11'

* commit '5bb7e1e0cdb1b135968b279f7e4350769160ba11':
  ADT: Move more packages into internal:
2009-05-13 17:27:15 -07:00
Xavier Ducrohet
5bb7e1e0cd ADT: Move more packages into internal:
editors -> adt.internal.editors.

This also marks the final refactoring of combining previous editors/common
plugin under the adt package.
2009-05-13 17:23:00 -07:00
Xavier Ducrohet
cb975e4579 am 9ed226a: ADT: Move more packages into internal.
Merge commit '9ed226af6a2946146a989f3c066150a8a98e4a1d'

* commit '9ed226af6a2946146a989f3c066150a8a98e4a1d':
  ADT: Move more packages into internal.
2009-05-13 17:19:08 -07:00
Xavier Ducrohet
9ed226af6a ADT: Move more packages into internal.
common.project -> adt.internal.project
adt.resources -> adt.internal.resources
adt.wizards.* -> adt.internal.wizards
adt.ui -> adt.internal.ui
2009-05-13 17:13:15 -07:00
Xavier Ducrohet
272de4c149 am 4cc22e5: ADT: Move more packages into internal
Merge commit '4cc22e5ebf7c69e06a6cbf893a97d2ade46c0d54'

* commit '4cc22e5ebf7c69e06a6cbf893a97d2ade46c0d54':
  ADT: Move more packages into internal
2009-05-13 17:07:08 -07:00
Xavier Ducrohet
4cc22e5ebf ADT: Move more packages into internal
project.*
refactorings.*

Also: moved the export wizard from project.export to wizards.export, moved some
actions out of project into the new internal package actions.
2009-05-13 17:03:26 -07:00
Xavier Ducrohet
d91a37c3ee am 9eedccd: Moved more ADT packages into internal.
Merge commit '9eedccd52c6a6c579edf240afd397439691057d6'

* commit '9eedccd52c6a6c579edf240afd397439691057d6':
  Moved more ADT packages into internal.
2009-05-13 16:45:46 -07:00
Xavier Ducrohet
9eedccd52c Moved more ADT packages into internal.
adt.build
adt.launch.*
adt.preferences

Also started combining adt and common.
2009-05-13 16:37:55 -07:00
Android (Google) Code Review
26245919e5 am 9f6a426: Merge change 1237 into donut
Merge commit '9f6a4264531682d2911ace24aa5f7ef751bb2b6b'

* commit '9f6a4264531682d2911ace24aa5f7ef751bb2b6b':
  ADT #1715616: "New Android Test Project" wizard.
2009-05-08 22:49:30 -07:00
Raphael
0b62151cda ADT #1715616: "New Android Test Project" wizard.
Also updates eclipse/changes.txt
2009-05-08 14:06:44 -07:00
Raphael
9ad2ed9773 am 1bb52f2: Fix ADT junit test for AndroidManifestParser following API c
Merge commit '1bb52f25870a0f183b9c5a24362c2468fb316435'

* commit '1bb52f25870a0f183b9c5a24362c2468fb316435':
  Fix ADT junit test for AndroidManifestParser following API change.
2009-05-05 13:59:21 -07:00