public class AnyMotionDetector extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AnyMotionDetector.Vector3
A timestamped three dimensional vector and some vector operations.
|
Modifier and Type | Field and Description |
---|---|
static int |
RESULT_MOVED
Device has been moved.
|
static int |
RESULT_STATIONARY
Device is stationary, e.g. still on a table.
|
static int |
RESULT_UNKNOWN
Stationary status is unknown due to insufficient orientation measurements.
|
Constructor and Description |
---|
AnyMotionDetector(PowerManager pm,
Handler handler,
SensorManager sm,
com.android.server.AnyMotionDetector.DeviceIdleCallback callback,
float thresholdAngle) |
Modifier and Type | Method and Description |
---|---|
void |
checkForAnyMotion() |
int |
getStationaryStatus() |
void |
stop() |
public static final int RESULT_UNKNOWN
public static final int RESULT_STATIONARY
public static final int RESULT_MOVED
public AnyMotionDetector(PowerManager pm, Handler handler, SensorManager sm, com.android.server.AnyMotionDetector.DeviceIdleCallback callback, float thresholdAngle)