aboutsummaryrefslogtreecommitdiffstats
path: root/emulator/sensors
Commit message (Collapse)AuthorAgeFilesLines
* remove HAL_MODULE_INFO_SYM constNick Kralevich2012-03-011-1/+1
| | | | | | | | | | HAL_MODULE_INFO_SYM was declared as read-only, but the struct is written to by libhardware. This causes a segfault when -Wl,-z,relro is enabled. Fixed. Change-Id: I5324418b217abbfe95e7b39825d52cc8d6e26732
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-2/+2
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: I3543198b483c91a3bf7c3f17e174969af3dfb8c5
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-031-2/+2
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I9736fcbb62da749c049178b03ddaccda30dcebf5
* Fix magnetic field sensor string.Adam Zalcman2011-07-171-2/+2
| | | | | | | | The emulator's sensor module sends "magnetic-field:<x>:<y>:<z>" rather than "magnetic:<x>:<y>:<z>", see external/qemu/android/hw-sensors.c. Change-Id: I858f4f88a4af47504bbf204340db238cf2ac2d66 Signed-off-by: Adam Zalcman <viathor@google.com>
* Revert 183675b74e5a58211e5d9a90a9ca86546ed3e245David 'Digit' Turner2011-04-142-0/+675
| | | | | | | | | | | | | | | | Unfortunately, we need to keep the duplicate libraries here to prevent breaking a few internal branches for now. Remove obsolete emulator modules The corresponding modules have all been moved to development/tools/emulator/system/ already. Note that we use a global variable Make trick to prevent the same module from being built twice, so removing these files doesn't break the builds. Another patch should remove the global variable Make trick from development/tools/emulator/system after this patch. Change-Id: I97332216b311608de61919cb75f4b760b249c0d9
* Remove obsolete emulator modulesDavid 'Digit' Turner2011-04-072-675/+0
| | | | | | | | | | | The corresponding modules have all been moved to development/tools/emulator/system/ already. Note that we use a global variable Make trick to prevent the same module from being built twice, so removing these files doesn't break the builds. Another patch should remove the global variable Make trick from development/tools/emulator/system after this patch. Change-Id: I547d2a0173ddf58c1870784920ce795f6a0d7bcf
* Prepare for moving platform-specific emulator modules to development.gitDavid 'Digit' Turner2011-03-111-0/+9
| | | | | | | | | | | | | We need to move the platform-specific modules to development.git to avoid some clashes. This patch uses a guard Make variable to ensure that each module is only built once. The plan is to simply copy these modules to development.git, then remove the current ones from sdk.git. The guard variable is here to ensure that the transition happens smoothly, i.e. if a build contains modules in both directories, only one of them will be built. Change-Id: I4bc58741a18488f18a4b17e8a1edc4a4a5a93cbc
* Update the sensor emulation to use the new HALBertil Lynner2011-02-101-96/+111
| | | | | | | The sensor HAL in libhardware was recently updated, this change updates the sensor emulation to match the new HAL. Change-Id: I1cf60665ec3cc59a14859de487a65b399ff9e343
* Add handling of proximity sensorOla Albertsson2010-12-171-2/+23
| | | | | | | A proximity sensor is added to the sensors, the proximity sensor has resolution 1 and maxRange 1. This means that it can be either 0 or 1. Change-Id: I60e27ebe673d493124be19158e56a19b0e4813de
* Fix sensor emulation.David 'Digit' Turner2010-03-051-6/+8
| | | | | | | This gets rid of a bug where the control fd would be closed when the data channel is opened, making the later activation of sensors impossible. Also add more debugging messages.
* fix [2418333] SensorManager hogs CPU on emulatorMathias Agopian2010-02-261-5/+7
| | | | | The emulator sensor code could enter a busy loop on certain failure cases in poll.
* Sensors: Use a native_handle for the data channel instead of a single file ↵Mike Lockwood2009-05-221-4/+10
| | | | | | | | | descriptor. This eliminates the requirement that all sensors share a single file descriptor. This, along with concurrent changes in other projects, fixes bugs b/1614524 and b/1614481 Signed-off-by: Mike Lockwood <lockwood@android.com>
* AI 143204: am: CL 142988 Remove emulator support from user builds.Mike Lockwood2009-03-271-0/+1
| | | | | | | | | Saves us 52K in /system partition. BUG=1739507 Original author: lockwood Merged from: //branches/cupcake/... Automated import of CL 143204
* auto import from //branches/cupcake_rel/...@140373The Android Open Source Project2009-03-182-0/+619