HomeSort by relevance Sort by last modified time
    Searched refs:Sensor (Results 1 - 25 of 100) sorted by null

1 2 3 4

  /frameworks/base/core/java/android/hardware/
SensorEventListener.java 21 * sensor values have changed.
26 * Called when sensor values have changed.
28 * for details on possible sensor types.
42 * Called when the accuracy of a sensor has changed.
46 * @param accuracy The new accuracy of this sensor
48 public void onAccuracyChanged(Sensor sensor, int accuracy);
SensorEvent.java 20 * This class represents a {@link android.hardware.Sensor Sensor} event and
21 * holds informations such as the sensor's type, the time-stamp, accuracy and of
22 * course the sensor's {@link SensorEvent#values data}.
52 * @see Sensor
60 * which {@link android.hardware.Sensor sensor} type is being monitored (see
64 * <h4>{@link android.hardware.Sensor#TYPE_ACCELEROMETER
65 * Sensor.TYPE_ACCELEROMETER}:</h4> All values are in SI units (m/s^2)
74 * A sensor of this type measures the acceleration applied to the devic
491 public Sensor sensor; field in class:SensorEvent
    [all...]
TriggerEvent.java 21 * associated with a Trigger Sensor. When the sensor detects a trigger
23 * {@link Sensor#TYPE_SIGNIFICANT_MOTION}, the {@link TriggerEventListener}
24 * is called with the TriggerEvent. The sensor is automatically canceled
27 * This class holds information such as the value of the sensor
29 * information regarding the Sensor itself.
33 * @see android.hardware.Sensor
39 * which {@link android.hardware.Sensor sensor} type is being monitored (see
42 * <h4> {@link Sensor#TYPE_SIGNIFICANT_MOTION} </h4
52 public Sensor sensor; field in class:TriggerEvent
    [all...]
SystemSensorManager.java 34 * Sensor manager implementation that communicates with the built-in
41 private static native int nativeGetNextSensor(Sensor sensor, int next);
45 private static final ArrayList<Sensor> sFullSensorsList = new ArrayList<Sensor>();
46 private static final SparseArray<Sensor> sHandleToSensor = new SparseArray<Sensor>();
68 // initialize the sensor list
69 final ArrayList<Sensor> fullList = sFullSensorsList;
72 Sensor sensor = new Sensor() local
78 sHandleToSensor.append(sensor.getHandle(), sensor); local
247 Sensor sensor = sHandleToSensor.get(handle); local
340 final Sensor sensor = sHandleToSensor.get(handle); local
400 final Sensor sensor = sHandleToSensor.get(handle); local
    [all...]
Sensor.java 23 * Class representing a sensor. Use {@link SensorManager#getSensorList} to get
31 public final class Sensor {
34 * A constant describing an accelerometer sensor type.
41 * A constant describing a magnetic field sensor type.
48 * A constant describing an orientation sensor type.
58 /** A constant describing a gyroscope sensor type.
64 * A constant describing a light sensor type.
70 /** A constant describing a pressure sensor type.
76 * A constant describing a temperature sensor type
79 * {@link android.hardware.Sensor#TYPE_AMBIENT_TEMPERATUR
    [all...]
LegacySensorManager.java 29 * Helper class for implementing the legacy sensor manager API.
71 final List<Sensor> fullList = mSensorManager.getFullSensorList();
72 for (Sensor i : fullList) {
74 case Sensor.TYPE_ACCELEROMETER:
77 case Sensor.TYPE_MAGNETIC_FIELD:
80 case Sensor.TYPE_ORIENTATION:
95 Sensor.TYPE_ACCELEROMETER, listener, sensors, rate) || result;
97 Sensor.TYPE_MAGNETIC_FIELD, listener, sensors, rate) || result;
99 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result;
101 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result
113 Sensor sensor = mSensorManager.getDefaultSensor(type); local
165 Sensor sensor = mSensorManager.getDefaultSensor(type); local
    [all...]
  /cts/tests/tests/hardware/src/android/hardware/cts/
SensorTest.java 25 import android.hardware.Sensor;
49 List<Sensor> sensors = mSensorManager.getSensorList(Sensor.TYPE_ALL);
51 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
54 // accelerometer sensor is optional
56 assertEquals(Sensor.TYPE_ACCELEROMETER, sensor.getType());
57 assertSensorValues(sensor);
89 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
98 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
107 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION); local
117 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
    [all...]
  /frameworks/native/include/gui/
SensorManager.h 41 class Sensor;
54 ssize_t getSensorList(Sensor const* const** list) const;
55 Sensor const* getDefaultSensor(int type);
67 mutable Sensor const** mSensorList;
68 mutable Vector<Sensor> mSensors;
Sensor.h 30 #include <android/sensor.h>
44 class Sensor : public ASensor, public LightFlattenable<Sensor>
55 Sensor();
56 Sensor(struct sensor_t const* hwSensor);
57 ~Sensor();
ISensorServer.h 31 class Sensor;
39 virtual Vector<Sensor> getSensorList() = 0;
SensorEventQueue.h 44 class Sensor;
66 status_t enableSensor(Sensor const* sensor) const;
67 status_t disableSensor(Sensor const* sensor) const;
68 status_t setEventRate(Sensor const* sensor, nsecs_t ns) const;
  /device/generic/goldfish/camera/fake-pipeline2/
Sensor.cpp 30 #include "Sensor.h"
37 const unsigned int Sensor::kResolution[2] = {640, 480};
39 const nsecs_t Sensor::kExposureTimeRange[2] =
41 const nsecs_t Sensor::kFrameDurationRange[2] =
43 const nsecs_t Sensor::kMinVerticalBlank = 10000L;
45 const uint8_t Sensor::kColorFilterArrangement =
49 const uint32_t Sensor::kMaxRawValue = 4000;
50 const uint32_t Sensor::kBlackLevel = 1000;
52 // Sensor sensitivity
53 const float Sensor::kSaturationVoltage = 0.520f
    [all...]
  /frameworks/native/services/sensorservice/
CorrectedGyroSensor.h 23 #include <gui/Sensor.h>
37 Sensor mGyro;
45 virtual Sensor getSensor() const;
GravitySensor.h 23 #include <gui/Sensor.h>
37 Sensor mAccelerometer;
45 virtual Sensor getSensor() const;
SensorInterface.h 23 #include <gui/Sensor.h>
41 virtual Sensor getSensor() const = 0;
51 Sensor mSensor;
54 HardwareSensor(const sensor_t& sensor);
63 virtual Sensor getSensor() const;
LinearAccelerationSensor.h 23 #include <gui/Sensor.h>
45 virtual Sensor getSensor() const;
OrientationSensor.h 23 #include <gui/Sensor.h>
44 virtual Sensor getSensor() const;
RotationVectorSensor.h 23 #include <gui/Sensor.h>
45 virtual Sensor getSensor() const;
59 virtual Sensor getSensor() const;
SensorFusion.h 27 #include <gui/Sensor.h>
42 Sensor mAcc;
43 Sensor mMag;
44 Sensor mGyro;
  /sdk/testapps/testSensors/src/com/android/tests/testsensors/
TestSensorsActivity.java 23 import android.hardware.Sensor;
41 * Encapsulates a sensor.
44 /** Sensor to monitor. */
45 private final Sensor mSensor;
46 /** Check box representing the sensor on the screen. */
48 /** Text view displaying the value of the sensor. */
56 * @param sensor Sensor to monitor.
58 MonitoredSensor(Sensor sensor) {
    [all...]
  /frameworks/native/libs/gui/
Sensor.cpp 26 #include <gui/Sensor.h>
32 Sensor::Sensor()
39 Sensor::Sensor(struct sensor_t const* hwSensor)
53 Sensor::~Sensor()
57 const String8& Sensor::getName() const {
61 const String8& Sensor::getVendor() const {
65 int32_t Sensor::getHandle() const
    [all...]
ISensorServer.cpp 28 #include <gui/Sensor.h>
48 virtual Vector<Sensor> getSensorList()
53 Sensor s;
54 Vector<Sensor> v;
83 Vector<Sensor> v(getSensorList());
  /frameworks/base/native/android/
sensor.cpp 17 #define LOG_TAG "sensor"
21 #include <android/sensor.h>
27 #include <gui/Sensor.h>
34 using android::Sensor;
49 Sensor const* const* l;
86 int ASensorEventQueue_enableSensor(ASensorEventQueue* queue, ASensor const* sensor)
89 static_cast<Sensor const*>(sensor));
92 int ASensorEventQueue_disableSensor(ASensorEventQueue* queue, ASensor const* sensor)
95 static_cast<Sensor const*>(sensor))
    [all...]
  /frameworks/native/services/sensorservice/tests/
sensorservicetest.cpp 17 #include <android/sensor.h>
18 #include <gui/Sensor.h>
46 if (buffer[i].type == Sensor::TYPE_ACCELEROMETER) {
66 Sensor const* const* list;
73 Sensor const* accelerometer = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER);
  /packages/apps/Dialer/src/com/android/dialer/
ProximitySensorManager.java 20 import android.hardware.Sensor;
28 * Manages the proximity sensor and notifies a listener when enabled.
32 * Listener of the state of the proximity sensor.
34 * This interface abstracts two possible states for the proximity sensor, near and far.
36 * The actual meaning of these states depends on the actual sensor.
39 /** Called when the proximity sensor transitions from the far to the near state. */
41 /** Called when the proximity sensor transitions from the near to the far state. */
53 * sensor.
58 * The listener to the state of the sensor.
60 * Contains most of the logic concerning tracking of the sensor
    [all...]

Completed in 292 milliseconds

1 2 3 4