diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2012-03-16 12:25:23 -0700 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2012-03-19 08:29:19 -0700 |
commit | 863d1010d9c8fa4342b1b0ea860bcfb096806acc (patch) | |
tree | 6e6bb1fa3e508f9633586b2a4b9db73ffb97d647 /android/avd/hw-config.c | |
parent | a342edc996e079f2d1a913ec19d25fd1c118af4e (diff) | |
download | external_qemu-863d1010d9c8fa4342b1b0ea860bcfb096806acc.zip external_qemu-863d1010d9c8fa4342b1b0ea860bcfb096806acc.tar.gz external_qemu-863d1010d9c8fa4342b1b0ea860bcfb096806acc.tar.bz2 |
Cleanup harware properties.
1. Remove unused hw.camera.maxHorizontalPixels, and hw.camera.maxVerticalPixels parameters.
2. Combine hw.touchScreen, and hw.multiTouch under one property: hw.screen
Change-Id: I3cdf64f7d7e46486110cbc0769f9d98a61f0bea5
Diffstat (limited to 'android/avd/hw-config.c')
-rw-r--r-- | android/avd/hw-config.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/android/avd/hw-config.c b/android/avd/hw-config.c index 65796d9..2d50ef7 100644 --- a/android/avd/hw-config.c +++ b/android/avd/hw-config.c @@ -125,3 +125,21 @@ androidHwConfig_done( AndroidHwConfig* config ) #include "android/avd/hw-config-defs.h" } + +int +androidHwConfig_isScreenNoTouch( AndroidHwConfig* config ) +{ + return strcmp(config->hw_screen, "no-touch") == 0; +} + +int +androidHwConfig_isScreenTouch( AndroidHwConfig* config ) +{ + return strcmp(config->hw_screen, "touch") == 0; +} + +int +androidHwConfig_isScreenMultiTouch( AndroidHwConfig* config ) +{ + return strcmp(config->hw_screen, "multi-touch") == 0; +} |