aboutsummaryrefslogtreecommitdiffstats
path: root/sdkmanager/libs
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2009-09-27 21:39:07 -0700
committerXavier Ducrohet <xav@android.com>2009-09-27 21:54:09 -0700
commit581d5a47537a7e7fde6f347f5478194c04ca4957 (patch)
treeae044bc3806a87324f6d2814833e93f9939f53d8 /sdkmanager/libs
parent0843b7f074f2383e23e2d4ddea75b9e6938a7ba1 (diff)
downloadsdk-581d5a47537a7e7fde6f347f5478194c04ca4957.zip
sdk-581d5a47537a7e7fde6f347f5478194c04ca4957.tar.gz
sdk-581d5a47537a7e7fde6f347f5478194c04ca4957.tar.bz2
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
Diffstat (limited to 'sdkmanager/libs')
-rw-r--r--sdkmanager/libs/sdklib/src/com/android/sdklib/SdkConstants.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sdkmanager/libs/sdklib/src/com/android/sdklib/SdkConstants.java b/sdkmanager/libs/sdklib/src/com/android/sdklib/SdkConstants.java
index 4ef3468..b276ae3 100644
--- a/sdkmanager/libs/sdklib/src/com/android/sdklib/SdkConstants.java
+++ b/sdkmanager/libs/sdklib/src/com/android/sdklib/SdkConstants.java
@@ -78,6 +78,8 @@ public final class SdkConstants {
public final static String FN_PLUGIN_PROP = "plugin.prop";
/** add-on manifest file */
public final static String FN_MANIFEST_INI = "manifest.ini";
+ /** add-on layout device XML file. */
+ public final static String FN_DEVICES_XML = "devices.xml";
/** hardware properties definition file */
public final static String FN_HARDWARE_INI = "hardware-properties.ini";