HomeSort by relevance Sort by last modified time
    Searched refs:Sensor (Results 126 - 150 of 309) sorted by null

1 2 3 4 56 7 8 91011>>

  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
AccelerometerMeasurementTestActivity.java 22 import android.hardware.Sensor;
78 * The test takes a set of samples from the sensor under test and calculates the mean of each
79 * axis that the sensor data collects. It then compares it against the test expectations that
89 * - the sensor type and sensor handle that caused the failure
91 * - the mean of values sampled from the sensor
97 Sensor.TYPE_ACCELEROMETER,
GyroscopeTestActivity.java 25 import android.hardware.Sensor;
36 * Manual test for testing the gyroscope sensor. This test consists of 6 steps for all the
49 private Sensor mSensor;
76 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE);
224 public void onAccuracyChanged(Sensor sensor, int accuracy) {
RVCVRecordActivity.java 23 import android.hardware.Sensor;
254 * Start the sensor recording
268 * Stop the sensor recording
296 * Wait until a sensor recording for a certain axis is fully covered
304 * Wait until a sensor recording for a certain axis is halfway covered
332 * Get the sensor log file path
333 * @return Path of the sensor log file
336 return new File(mRecordDir, "sensor.log").getPath();
468 * Get sensor information of the camera being used
663 * Log all raw sensor readings, for Rotation Vector sensor algorithms researc
    [all...]
  /cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/
BatchArrivalVerification.java 8 import android.hardware.Sensor;
20 * checking the last received sensor timestamp and checking that it is within 1.8 * the expected
56 * @return the verification or null if the verification is not a continuous mode sensor.
59 if (environment.getSensor().getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) {
68 // If the device goes into suspend mode during the test and the sensor under test is
69 // a non wake-up sensor, the FIFO will keep overwriting itself and the reportLatency
74 // In this case the sensor under test is either a wake-up sensor OR it
75 // is a non wake-up sensor but the device does not go into suspend.
EventGapVerification.java 5 import android.hardware.Sensor;
16 * checking the last received sensor timestamp and checking that it is within 1.8 * the expected
55 * @return the verification or null if the verification is not a continuous mode sensor.
58 if (environment.getSensor().getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) {
EventOrderingVerification.java 21 import android.hardware.Sensor;
44 * Get the default {@link EventOrderingVerification} for a sensor.
47 * @return the verification or null if the verification does not apply to the sensor.
52 if (reportingMode == Sensor.REPORTING_MODE_ONE_SHOT)
FifoLengthVerification.java 21 import android.hardware.Sensor;
59 * @return the verification or null if the verification is not a continuous mode sensor.
63 if (environment.getSensor().getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) {
71 // If the device goes into suspend mode and the sensor is a non wake-up sensor, the
77 // In this case the sensor under test is either a wake-up sensor OR it
78 // is a non wake-up sensor but the device does not go into suspend.
  /frameworks/native/services/sensorservice/
RotationVectorSensor.cpp 32 const sensor_t sensor = { local
43 mSensor = Sensor(&sensor);
57 outEvent->sensor = getSensorToken();
90 return "Rotation Vector Sensor";
92 return "Game Rotation Vector Sensor";
94 return "GeoMag Rotation Vector Sensor";
118 const sensor_t sensor = { local
129 mSensor = Sensor(&sensor);
    [all...]
OrientationSensor.cpp 33 const sensor_t sensor = { local
34 .name = "Orientation Sensor",
44 mSensor = Sensor(&sensor);
66 outEvent->sensor = '_ypr';
SensorInterface.cpp 32 BaseSensor::BaseSensor(const sensor_t& sensor) :
34 mSensor(&sensor, mSensorDevice.getHalDeviceVersion()) {
37 BaseSensor::BaseSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]) :
39 mSensor(sensor, Sensor::uuid_t(uuid), mSensorDevice.getHalDeviceVersion()) {
44 HardwareSensor::HardwareSensor(const sensor_t& sensor):
45 BaseSensor(sensor) {
48 HardwareSensor::HardwareSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]):
49 BaseSensor(sensor, uuid) {
  /device/generic/goldfish/camera/
EmulatedFakeCamera2.cpp 54 // Sensor::kResolution[0], Sensor::kResolution[1]
58 static_cast<uint64_t>(Sensor::kFrameDurationRange[0])
63 // Sensor::kResolution[0], Sensor::kResolution[1]
68 // Sensor::kResolution[0], Sensor::kResolution[1]
72 static_cast<uint64_t>(Sensor::kFrameDurationRange[0])
77 // Sensor::kResolution[0], Sensor::kResolution[1
    [all...]
  /cts/tests/tests/hardware/src/android/hardware/cts/
SensorTestCase.java 19 import android.hardware.Sensor;
35 * Previously for L release, we had this flag to know if each sensor is running with multiple
54 // the sensor state is not supported in the device, log a warning and skip the test
  /cts/tests/tests/hardware/src/android/hardware/cts/helpers/
SuspendStateMonitor.java 10 import android.hardware.Sensor;
SensorStats.java 19 import android.hardware.Sensor;
37 * Class used to store stats related to {@link SensorOperation}s. Sensor stats may be linked
161 * Provides a sanitized sensor name, that can be used in file names.
164 public static String getSanitizedSensorName(Sensor sensor) throws SensorTestPlatformException {
165 return SensorCtsHelper.sanitizeStringForFileName(sensor.getStringType());
  /developers/build/prebuilts/gradle/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/
MainActivity.java 24 import android.hardware.Sensor;
40 * sensor values. Since on wearable devices a full screen activity is very short-lived, we set the
64 * measured by the Gravity sensor, changes with a variation (delta) > GRAVITY_THRESHOLD,
70 private Sensor mSensor;
93 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY);
131 Log.d(TAG, "Successfully registered for the sensor updates");
141 Log.d(TAG, "Unregistered for sensor events");
151 public void onAccuracyChanged(Sensor sensor, int accuracy) {
157 * as measured by the Gravity Sensor is +9.8 when the hand is downward and -9.8 when the han
    [all...]
  /developers/samples/android/wearable/wear/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/
MainActivity.java 24 import android.hardware.Sensor;
40 * sensor values. Since on wearable devices a full screen activity is very short-lived, we set the
64 * measured by the Gravity sensor, changes with a variation (delta) > GRAVITY_THRESHOLD,
70 private Sensor mSensor;
93 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY);
131 Log.d(TAG, "Successfully registered for the sensor updates");
141 Log.d(TAG, "Unregistered for sensor events");
151 public void onAccuracyChanged(Sensor sensor, int accuracy) {
157 * as measured by the Gravity Sensor is +9.8 when the hand is downward and -9.8 when the han
    [all...]
  /development/samples/USB/MissileLauncher/src/com/android/missilelauncher/
MissileLauncherActivity.java 24 import android.hardware.Sensor;
51 private Sensor mGravitySensor;
80 mGravitySensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY);
210 public void onAccuracyChanged(Sensor sensor, int accuracy) {
  /development/samples/browseable/JumpingJack/src/com.example.android.wearable.jumpingjack/
MainActivity.java 24 import android.hardware.Sensor;
40 * sensor values. Since on wearable devices a full screen activity is very short-lived, we set the
64 * measured by the Gravity sensor, changes with a variation (delta) > GRAVITY_THRESHOLD,
70 private Sensor mSensor;
93 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY);
131 Log.d(TAG, "Successfully registered for the sensor updates");
141 Log.d(TAG, "Unregistered for sensor events");
151 public void onAccuracyChanged(Sensor sensor, int accuracy) {
157 * as measured by the Gravity Sensor is +9.8 when the hand is downward and -9.8 when the han
    [all...]
  /frameworks/base/core/java/android/hardware/
Sensor.java 24 * Class representing a sensor. Use {@link SensorManager#getSensorList} to get
32 public final class Sensor {
35 * A constant describing an accelerometer sensor type.
42 * A constant string describing an accelerometer sensor type.
46 public static final String STRING_TYPE_ACCELEROMETER = "android.sensor.accelerometer";
49 * A constant describing a magnetic field sensor type.
56 * A constant string describing a magnetic field sensor type.
60 public static final String STRING_TYPE_MAGNETIC_FIELD = "android.sensor.magnetic_field";
63 * A constant describing an orientation sensor type.
74 * A constant string describing an orientation sensor type
    [all...]
  /frameworks/base/services/core/java/com/android/server/power/
WirelessChargerDetector.java 19 import android.hardware.Sensor;
69 * sensor to detect this case.
76 // The minimum amount of time to spend watching the sensor before making
80 // The sensor sampling interval.
105 // The gravity sensor, or null if none.
106 private Sensor mGravitySensor;
149 mGravitySensor = sensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY);
249 + mTotalSamples + " samples from the gravity sensor but we "
345 public void onAccuracyChanged(Sensor sensor, int accuracy)
    [all...]
  /hardware/bsp/intel/peripheral/sensors/mraa/sensors/
LSM303dOrientation.cpp 41 Sensor * LSM303dOrientation::createSensor(int pollFd) {
  /hardware/ti/omap4-aah/camera/inc/
SensorListener.h 20 * This defines API for camerahal to get sensor events
27 #include <android/sensor.h>
28 #include <gui/Sensor.h>
39 * SensorListner class - Registers with sensor manager to get sensor events
  /hardware/ti/omap4xxx/camera/inc/
SensorListener.h 20 * This defines API for camerahal to get sensor events
27 #include <android/sensor.h>
28 #include <gui/Sensor.h>
36 * SensorListner class - Registers with sensor manager to get sensor events
  /development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/
AccelerometerPlayActivity.java 25 import android.hardware.Sensor;
47 * @see Sensor
102 * release our sensor resources and wake locks
120 private Sensor mAccelerometer;
346 mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
379 if (event.sensor.getType() != Sensor.TYPE_ACCELEROMETER)
457 public void onAccuracyChanged(Sensor sensor, int accuracy) {
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/renderers/
Wedge.java 19 import android.hardware.Sensor;
64 if (sensorType == Sensor.TYPE_ACCELEROMETER) {

Completed in 604 milliseconds

1 2 3 4 56 7 8 91011>>