OSDN Git Service

Add sensor HAL test program
authorOctavian Purdila <octavian.purdila@intel.com>
Tue, 22 Jul 2014 10:36:22 +0000 (13:36 +0300)
committerAdriana Reus <adriana.reus@intel.com>
Fri, 25 Jul 2014 13:50:43 +0000 (16:50 +0300)
commit03fee757114f8f883eae170ce5311d58ddb07851
tree2ba95aeeef2d167f88125f1b83af3690b81cf2d2
parente83ffb3a4aff2babc81d1d6dc45379e0ce2247a3
Add sensor HAL test program

This patch adds a HAL test program that can be used to test the sensor
HAL in a console Android environment (e.g. not framework
required). This is useful for faster development for sensor drivers
and HAL features as well as for faster enabling on new platforms.

The test program takes the following commands: start HAL, stop HAL,
list sensors, activate and deactivate sensors, and set delay.

The start command will fork, load the HAL shared object, initialize it
and keep it running in the background. One thread will be used for
polling sensor data and one for accepting commands from the
client. UNIX sockets are used for communication between the client and
server.

Change-Id: I837e1dd9cb48657d4a8fe52f67c751e619b5c244
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Android.mk
sens.c [new file with mode: 0644]