diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-11-01 17:35:07 -0700 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-11-09 18:13:02 -0800 |
commit | db611d57e0da9acd7ecf2a4a9b2a63e7620fe54d (patch) | |
tree | 66f81dbd4ae02a000478036b0d7210050929d564 /android/avd | |
parent | 6f3bc59f5099cdce5a939a5ab9ba33f3d7f2273e (diff) | |
download | external_qemu-db611d57e0da9acd7ecf2a4a9b2a63e7620fe54d.zip external_qemu-db611d57e0da9acd7ecf2a4a9b2a63e7620fe54d.tar.gz external_qemu-db611d57e0da9acd7ecf2a4a9b2a63e7620fe54d.tar.bz2 |
Implements sensors emulation using a connected Android device
There are three major things in this CL:
1. Abstract a connection with an Android device that is connected to the host via
USB, and there is a TCP port forwarding to this device via 'adb forward' command.
This abstraction is implemented in android/android-device.*
2. A client for android device API that talks to an app on the connected device that
provides values for sensors available on the device. This is implemented in
android/sensors-port.*
3. Changes to the sensor emulation code in android/hw-sensors.c to use sensors port
(when available) for sensors emulation.
Change-Id: I12901e8db6b6a6262fc1703ed96a9f714335d666
Diffstat (limited to 'android/avd')
-rw-r--r-- | android/avd/hardware-properties.ini | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/android/avd/hardware-properties.ini b/android/avd/hardware-properties.ini index a2b05df..83a9300 100644 --- a/android/avd/hardware-properties.ini +++ b/android/avd/hardware-properties.ini @@ -367,6 +367,27 @@ default = yes abstract = Proximity support description = Whether there is an proximity in the device. +# Magnetic field sensor +name = hw.sensors.magnetic_field +type = boolean +default = yes +abstract = Magnetic field support +description = Provides magnetic field senosr values. + +# Orientation sensor +name = hw.sensors.orientation +type = boolean +default = yes +abstract = Orientation support +description = Provides orientation sensor values. + +# Temperature sensor +name = hw.sensors.temperature +type = boolean +default = yes +abstract = Temperature support +description = Provides temperatore sensor values. + # Kernel image. # # kernel.path specified the path to the kernel image |