aboutsummaryrefslogtreecommitdiffstats
path: root/android/avd/hw-config-defs.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2009-06-19 00:36:12 +0200
committerDavid 'Digit' Turner <digit@google.com>2009-06-19 00:36:12 +0200
commitc5b127050f2dbed015d6b01703a33062d6910d4a (patch)
tree03c81fd16aae63ceca713515a565c702aee35d60 /android/avd/hw-config-defs.h
parent5998b8947d8c2788b62d38afdd571ddff78648a5 (diff)
downloadexternal_qemu-c5b127050f2dbed015d6b01703a33062d6910d4a.zip
external_qemu-c5b127050f2dbed015d6b01703a33062d6910d4a.tar.gz
external_qemu-c5b127050f2dbed015d6b01703a33062d6910d4a.tar.bz2
Add a new hw.lcd.density hardware property to AVD configuration files.
This value can be overriden with the already existing -dpi-device <value> option. The value is mapped to one of 120,160 and 240, then set to the boot-time property named qemu.sf.lcd_density used by the framework to properly select assets and/or resize them at runtime. This means that "emulator -dpi-device 130" will select 120 lcd_density, or "emulator -dpi-device 220" will select a 240 one.
Diffstat (limited to 'android/avd/hw-config-defs.h')
-rw-r--r--android/avd/hw-config-defs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/android/avd/hw-config-defs.h b/android/avd/hw-config-defs.h
index 3e7cec6..7fcf732 100644
--- a/android/avd/hw-config-defs.h
+++ b/android/avd/hw-config-defs.h
@@ -136,6 +136,13 @@ HWCFG_DISKSIZE(
"Cache partition size",
"")
+HWCFG_INT(
+ hw_lcd_density,
+ "hw.lcd.density",
+ 160,
+ "Abstracted LCD density",
+ "Must be one of 120, 160 or 240. A value used to roughly describe the density of the LCD screen for automatic resource/asset selection.")
+
#undef HWCFG_INT
#undef HWCFG_BOOL
#undef HWCFG_DISKSIZE