HomeSort by relevance Sort by last modified time
    Searched refs:Sensor (Results 26 - 50 of 403) sorted by null

12 3 4 5 6 7 8 91011>>

  /cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
JitterVerification.java 23 import android.hardware.Sensor;
36 * A {@link ISensorVerification} which verifies that the sensor jitter is in an acceptable range.
73 * Get the default {@link JitterVerification} for a sensor.
76 * @return the verification or null if the verification does not apply to the sensor.
170 DEFAULTS.put(Sensor.TYPE_ACCELEROMETER, Integer.MAX_VALUE);
171 DEFAULTS.put(Sensor.TYPE_MAGNETIC_FIELD, Integer.MAX_VALUE);
172 DEFAULTS.put(Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED, Integer.MAX_VALUE);
173 DEFAULTS.put(Sensor.TYPE_GYROSCOPE, Integer.MAX_VALUE);
174 DEFAULTS.put(Sensor.TYPE_GYROSCOPE_UNCALIBRATED, Integer.MAX_VALUE);
175 DEFAULTS.put(Sensor.TYPE_ORIENTATION, Integer.MAX_VALUE)
    [all...]
StandardDeviationVerification.java 23 import android.hardware.Sensor;
64 * Get the default {@link StandardDeviationVerification} for a sensor.
67 * @return the verification or null if the verification does not apply to the sensor.
107 DEFAULTS.put(Sensor.TYPE_ACCELEROMETER, new float[]{mAccelNoise, mAccelNoise, mAccelNoise});
109 DEFAULTS.put(Sensor.TYPE_GYROSCOPE,
112 DEFAULTS.put(Sensor.TYPE_MAGNETIC_FIELD, new float[]{mMagNoise, mMagNoise, mMagNoise});
114 DEFAULTS.put(Sensor.TYPE_PRESSURE, new float[]{mPressureNoise});
212 DEFAULTS.put(Sensor.TYPE_ACCELEROMETER, new float[]{1.0f, 1.0f, 1.0f});
213 DEFAULTS.put(Sensor.TYPE_GYROSCOPE, new float[]{0.5f, 0.5f, 0.5f});
215 DEFAULTS.put(Sensor.TYPE_MAGNETIC_FIELD
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DeviceSuspendTestActivity.java 20 import android.hardware.Sensor;
126 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER, true);
128 throw new SensorNotSupportedException(Sensor.TYPE_ACCELEROMETER, true);
134 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE, true);
136 throw new SensorNotSupportedException(Sensor.TYPE_GYROSCOPE, true);
142 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD,true);
144 throw new SensorNotSupportedException(Sensor.TYPE_MAGNETIC_FIELD, true)
    [all...]
EventSanitizationTestActivity.java 19 import android.hardware.Sensor;
60 // Not significant motion sensor, nothing to do.
63 final Sensor sensor = sensorManager.getDefaultSensor( local
64 Sensor.TYPE_SIGNIFICANT_MOTION);
65 if (sensor == null) {
66 throw new SensorNotSupportedException(Sensor.TYPE_SIGNIFICANT_MOTION);
82 sensorManager.requestTriggerSensor(listener, sensor);
93 sensorManager.cancelTriggerSensor(listener, sensor);
104 // Not significant motion sensor, nothing to do
107 final Sensor sensor = sensorManager.getDefaultSensor( local
    [all...]
RotationVectorTestActivity.java 26 import android.hardware.Sensor;
72 private final Sensor[] mSensor = new Sensor[3];
120 * Verifies that a given 'Rotation Vector' sensor does not drift over time.
126 Sensor sensor = mSensor[sensorIndex]; local
127 if (sensor == null) {
150 return verifyVector(ROTATION_VECTOR_INDEX, Sensor.TYPE_ROTATION_VECTOR);
156 Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR);
160 return verifyVector(GAME_ROTATION_VECTOR_INDEX, Sensor.TYPE_GAME_ROTATION_VECTOR)
198 Sensor sensor = mSensor[i]; local
    [all...]
  /device/generic/goldfish/camera/fake-pipeline2/
Sensor.cpp 30 #include "Sensor.h"
37 //const nsecs_t Sensor::kExposureTimeRange[2] =
39 //const nsecs_t Sensor::kFrameDurationRange[2] =
41 const nsecs_t Sensor::kExposureTimeRange[2] =
43 const nsecs_t Sensor::kFrameDurationRange[2] =
46 const nsecs_t Sensor::kMinVerticalBlank = 10000L;
48 const uint8_t Sensor::kColorFilterArrangement =
52 const uint32_t Sensor::kMaxRawValue = 4000;
53 const uint32_t Sensor::kBlackLevel = 1000;
55 // Sensor sensitivit
    [all...]
  /device/google/cuttlefish_common/guest/hals/camera/fake-pipeline2/
Sensor.cpp 32 #include "Sensor.h"
38 // const nsecs_t Sensor::kExposureTimeRange[2] =
40 // const nsecs_t Sensor::kFrameDurationRange[2] =
42 const nsecs_t Sensor::kExposureTimeRange[2] = {1000L,
44 const nsecs_t Sensor::kFrameDurationRange[2] = {
47 const nsecs_t Sensor::kMinVerticalBlank = 10000L;
49 const uint8_t Sensor::kColorFilterArrangement =
53 const uint32_t Sensor::kMaxRawValue = 4000;
54 const uint32_t Sensor::kBlackLevel = 1000;
56 // Sensor sensitivit
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/util/
AsyncSensorManager.java 20 import android.hardware.Sensor;
37 * Wrapper around sensor manager that hides potential sources of latency.
48 private final List<Sensor> mSensorCache;
56 mSensorCache = mInner.getSensorList(Sensor.TYPE_ALL);
60 protected List<Sensor> getFullSensorList() {
65 protected List<Sensor> getFullDynamicSensorList() {
66 return mInner.getDynamicSensorList(Sensor.TYPE_ALL);
70 protected boolean registerListenerImpl(SensorEventListener listener, Sensor sensor, int delayUs,
73 if (!mInner.registerListener(listener, sensor, delayUs, maxReportLatencyUs, handler))
    [all...]
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowSensorManager.java 5 import android.hardware.Sensor;
23 private final Map<Integer, Sensor> sensorMap = new HashMap<>();
29 * Provide a Sensor for the indicated sensor type.
30 * @param sensorType from Sensor constants
31 * @param sensor Sensor instance
33 public void addSensor(int sensorType, Sensor sensor) {
34 sensorMap.put(sensorType, sensor);
    [all...]
  /frameworks/native/libs/sensor/include/sensor/
SensorManager.h 35 #include <sensor/SensorEventQueue.h>
49 class Sensor;
59 ssize_t getSensorList(Sensor const* const** list);
60 ssize_t getDynamicSensorList(Vector<Sensor>& list);
61 Sensor const* getDefaultSensor(int type);
83 Sensor const** mSensorList;
84 Vector<Sensor> mSensors;
SensorEventQueue.h 27 #include <sensor/BitTube.h>
44 class Sensor;
56 * Typical sensor delay (sample period) in microseconds.
64 // Default sensor sample period
81 status_t enableSensor(Sensor const* sensor) const;
82 status_t enableSensor(Sensor const* sensor, int32_t samplingPeriodUs) const;
83 status_t disableSensor(Sensor const* sensor) const
    [all...]
  /frameworks/native/services/sensorservice/hidl/
utils.h 23 #include <sensor/Sensor.h>
30 ::android::hardware::sensors::V1_0::SensorInfo convertSensor(const ::android::Sensor &src);
  /frameworks/native/libs/sensor/
Sensor.cpp 17 #include <sensor/Sensor.h>
29 Sensor::Sensor(const char * name) :
37 Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion) :
38 Sensor(*hwSensor, uuid_t(), halVersion) {
41 Sensor::Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersion) :
42 Sensor("") {
    [all...]
  /frameworks/base/core/java/android/hardware/
LegacySensorManager.java 31 * Helper class for implementing the legacy sensor manager API.
72 final List<Sensor> fullList = mSensorManager.getFullSensorList();
73 for (Sensor i : fullList) {
75 case Sensor.TYPE_ACCELEROMETER:
78 case Sensor.TYPE_MAGNETIC_FIELD:
81 case Sensor.TYPE_ORIENTATION:
96 Sensor.TYPE_ACCELEROMETER, listener, sensors, rate) || result;
98 Sensor.TYPE_MAGNETIC_FIELD, listener, sensors, rate) || result;
100 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result;
102 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result
114 Sensor sensor = mSensorManager.getDefaultSensor(type); local
166 Sensor sensor = mSensorManager.getDefaultSensor(type); local
    [all...]
  /cts/tests/sensor/src/android/hardware/cts/
SensorAdditionalInfoTest.java 20 import android.hardware.Sensor;
33 * Checks Sensor Additional Information feature functionality.
52 List<Sensor> list = mSensorManager.getSensorList(Sensor.TYPE_ALL);
54 for (Sensor s : list) {
55 // skip vendor sensor types and those that do not support additional info
57 if (s.getType() >= Sensor.TYPE_DEVICE_PRIVATE_BASE ||
59 s.getReportingMode() == Sensor.REPORTING_MODE_ONE_SHOT ||
60 s.getReportingMode() == Sensor.REPORTING_MODE_ON_CHANGE) {
66 errors.add("Sensor: " + s.getName() + ", error: " + e.getMessage())
    [all...]
  /frameworks/base/native/android/
sensor.cpp 17 #define LOG_TAG "sensor"
21 #include <android/sensor.h>
24 #include <sensor/Sensor.h>
25 #include <sensor/SensorManager.h>
26 #include <sensor/SensorEventQueue.h>
35 using android::Sensor;
52 if (sensor == nullptr) { \
53 ERROR_INVALID_PARAMETER("sensor cannot be NULL"); \
78 Sensor const* const* l
    [all...]
  /cts/tests/sensor/src/android/hardware/cts/helpers/
TestSensorEvent.java 19 import android.hardware.Sensor;
30 public final Sensor sensor; field in class:TestSensorEvent
40 * @param event the received sensor event
55 sensor = event.sensor;
65 public TestSensorEvent(Sensor sensor, long timestamp, int accuracy, float[] values) {
66 this(sensor, timestamp, timestamp, accuracy, values);
72 public TestSensorEvent(Sensor sensor, long timestamp, long receivedTimestamp, int accuracy
    [all...]
MovementDetectorHelper.java 22 import android.hardware.Sensor;
44 private final Sensor mAccelerometer;
52 mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
54 throw new SensorNotSupportedException(Sensor.TYPE_ACCELEROMETER);
80 public void onAccuracyChanged(Sensor sensor, int accuracy) {}
  /frameworks/native/services/sensorservice/
OrientationSensor.h 23 #include <sensor/Sensor.h>
SensorFusion.h 27 #include <sensor/Sensor.h>
42 Sensor mAcc;
43 Sensor mMag;
44 Sensor mGyro;
SensorList.h 23 #include <sensor/Sensor.h>
50 const Vector<Sensor> getUserSensors() const;
51 const Vector<Sensor> getUserDebugSensors() const;
52 const Vector<Sensor> getDynamicSensors() const;
53 const Vector<Sensor> getVirtualSensors() const;
59 // Iterate through Sensor in sensor list and perform operation f on each Sensor object.
62 // bool f(const Sensor &)
    [all...]
  /packages/apps/Dialer/java/com/android/incallui/answerproximitysensor/
PseudoProximityWakeLock.java 20 import android.hardware.Sensor;
29 * PseudoScreenState} to fake a black screen when the proximity sensor is near.
35 private final Sensor proximitySensor;
45 context.getSystemService(SensorManager.class).getDefaultSensor(Sensor.TYPE_PROXIMITY);
75 boolean near = sensorEvent.values[0] < sensorEvent.sensor.getMaximumRange();
84 public void onAccuracyChanged(Sensor sensor, int i) {}
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowSensorManagerTest.java 7 import android.hardware.Sensor;
60 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); local
61 sensorManager.registerListener(listener, sensor, SensorManager.SENSOR_DELAY_NORMAL);
96 Sensor sensor = Shadow.newInstanceOf(Sensor.class); local
97 shadowOf(sensorManager).addSensor(Sensor.TYPE_ACCELEROMETER, sensor);
98 assertThat(sensor).isSameAs(sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER))
    [all...]
  /frameworks/base/core/java/com/android/internal/os/
SensorPowerCalculator.java 18 import android.hardware.Sensor;
28 private final List<Sensor> mSensors;
33 mSensors = sensorManager.getSensorList(Sensor.TYPE_ALL);
40 // Process Sensor usage
41 final SparseArray<? extends BatteryStats.Uid.Sensor> sensorStats = u.getSensorStats();
44 final BatteryStats.Uid.Sensor sensor = sensorStats.valueAt(ise); local
46 final BatteryStats.Timer timer = sensor.getSensorTime();
50 case BatteryStats.Uid.Sensor.GPS:
57 final Sensor s = mSensors.get(i)
    [all...]
  /frameworks/native/services/sensorservice/tests/
sensorservicetest.cpp 18 #include <android/sensor.h>
19 #include <sensor/Sensor.h>
20 #include <sensor/SensorManager.h>
21 #include <sensor/SensorEventQueue.h>
47 if (buffer[i].type == Sensor::TYPE_ACCELEROMETER) {
65 SensorManager& mgr = SensorManager::getInstanceForPackage(String16("Sensor Service Test"));
67 Sensor const* const* list;
74 Sensor const* accelerometer = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER)
    [all...]

Completed in 985 milliseconds

12 3 4 5 6 7 8 91011>>