HomeSort by relevance Sort by last modified time
    Searched refs:sensor (Results 176 - 200 of 463) sorted by null

1 2 3 4 5 6 78 91011>>

  /hardware/invensense/6515/libsensors_iio/software/core/mllite/
data_builder.c 57 void inv_apply_calibration(struct inv_single_sensor_t *sensor, const long *bias);
201 /** Sets orientation and sensitivity field for a sensor.
202 * @param[out] sensor Structure to apply settings to
207 void set_sensor_orientation_and_scale(struct inv_single_sensor_t *sensor,
218 sensor->sensitivity = sensitivity;
233 sensor->orientation = orientation;
330 /** Returns timestame based upon a raw sensor, and returns if that sample has a new piece of data.
367 /** Gets best timestamp and if there is a new piece of data for a 9-axis sensor combination.
368 * It does this by finding a raw sensor that has the closest sample rate that is at least as
369 * often desired. It also returns if that raw sensor has a new piece of data
    [all...]
  /hardware/invensense/65xx/libsensors_iio/software/core/mllite/
data_builder.c 56 void inv_apply_calibration(struct inv_single_sensor_t *sensor, const long *bias);
200 /** Sets orientation and sensitivity field for a sensor.
201 * @param[out] sensor Structure to apply settings to
206 void set_sensor_orientation_and_scale(struct inv_single_sensor_t *sensor,
217 sensor->sensitivity = sensitivity;
232 sensor->orientation = orientation;
480 /** Takes raw data stored in the sensor, removes bias, and converts it to
482 * @param[in,out] sensor structure to modify
486 void inv_apply_calibration(struct inv_single_sensor_t *sensor, const long *bias)
491 raw32[0] = (long)sensor->raw[0] << 15
    [all...]
  /cts/tests/sensor/src/android/hardware/cts/
SingleSensorTests.java 20 import android.hardware.Sensor;
41 * For each sensor that reports continuously, it takes a set of samples. The test suite verifies
42 * that the event ordering, frequency, and jitter pass for the collected sensor events. It
43 * additionally tests that the mean, standard deviation, and magnitude are correct for the sensor
46 * The event ordering test verifies the ordering of the sampled data reported by the Sensor under
47 * test. This test is used to guarantee that sensor data is reported in the order it occurs, and
51 * if the sensor sampled data is not timestamped at the hardware level. Or events sampled at high
54 * The frequency test verifies that the sensor under test can sample and report data at the maximum
57 * susceptible to errors if the sensor is not capable to sample data at the maximum rate it
58 * supports, or the sensor events are not timestamped at the hardware level
124 Sensor sensor = sensorManager.getDefaultSensor(entry.getKey()); local
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DozeTriggers.java 26 import android.hardware.Sensor;
288 final Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY); local
289 if (sensor == null) {
290 if (DozeMachine.DEBUG) Log.d(TAG, "ProxCheck: No sensor found");
296 mMaxRange = sensor.getMaximumRange();
297 mSensorManager.registerListener(this, sensor, SensorManager.SENSOR_DELAY_NORMAL, 0,
341 public void onAccuracyChanged(Sensor sensor, int accuracy)
    [all...]
  /hardware/libhardware/modules/sensors/
multihal.cpp 59 * Comparable class that globally identifies a sensor, by module index and local handle.
61 * A local handle is the handle the sub-module assigns to a sensor.
105 // Returns the sub_hw_modules index of the module that contains the sensor associates with this
273 // Android N and hire require sensor HALs to be at least 1_3 compliant
318 ALOGE("IGNORING activate(enable %d) call to non-API-compliant sensor handle=%d !",
333 ALOGE("IGNORING setDelay() call for non-API-compliant sensor handle=%d !", handle);
342 // A normal event's "sensor" field is a local handle. Convert it to a global handle.
343 // A meta-data event must have its sensor set to 0, but it has a nested event
348 // If it's a metadata event, rewrite the inner payload, not the sensor field.
349 // If the event's sensor field is unregistered for any reason, rewrite the sensor fiel
    [all...]
  /device/google/cuttlefish_common/guest/hals/sensors/
vsoc_sensors.cpp 178 ALOGE("Failed to notify remoter about new sensor enable/disable.");
213 ALOGE("Failed to notify remoter about new sensor delay.");
226 // 1. The next deadline for some active sensor
229 // a sensor was activated/deactivated or its
247 D("Reported %d sensor events. First: %d %f %f %f", num_copied, data->sensor,
258 ALOGE("GceSensors::%s: Could not listen for sensor connections. (%s).",
262 D("GceSensors::%s: Listening for sensor connections at %s", __FUNCTION__,
273 // Listen for incoming sensor data and control messages
334 ALOGE("GceSensors::%s. Could not send sensor state (%s)."
    [all...]
  /frameworks/native/libs/sensor/
ISensorServer.cpp 17 #include <sensor/ISensorServer.h>
32 #include <sensor/Sensor.h>
33 #include <sensor/ISensorEventConnection.h>
57 virtual Vector<Sensor> getSensorList(const String16& opPackageName)
63 Sensor s;
64 Vector<Sensor> v;
75 virtual Vector<Sensor> getDynamicSensorList(const String16& opPackageName)
81 Sensor s;
82 Vector<Sensor> v
    [all...]
  /hardware/akm/AK8975_FS/libsensors/
sensors.cpp 41 #error "Sensor configuration ERROR: No sensor is defined."
65 { "AK8975 3-axis Magnetic field sensor",
77 { "AK8975 Orientation sensor",
89 { "AK8975 Orientation sensor",
118 .name = "AKM Sensor module",
152 * which sensor is implemented in AKMD program.
285 SensorBase* const sensor(mSensors[i]);
286 if ((mPollFds[i].revents & POLLIN) || (sensor->hasPendingEvents())) {
287 int nb = sensor->readEvents(data, count)
    [all...]
  /hardware/interfaces/sensors/1.0/default/
Sensors.cpp 174 // Exit and let the system restart the sensor-hal-implementation hidl service.
215 CHECK(dyn->sensor != nullptr);
216 CHECK_EQ(dyn->sensor->handle, dyn->handle);
219 convertFromSensor(*dyn->sensor, &info);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
HeartRateMonitorTestActivity.java 21 import android.hardware.Sensor;
38 private Sensor mSensor;
54 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE);
111 public void onAccuracyChanged(Sensor sensor, int i) {
  /cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
ContinuousEventSanitizedVerification.java 19 import android.hardware.Sensor;
47 * Get the default {@link ContinuousEventSanitizedVerification} for a sensor.
51 * @return the verification or null if the verification does not apply to the sensor.
56 if (reportingMode == Sensor.REPORTING_MODE_CONTINUOUS) {
85 sb.append(String.format("sensor:%s", event.sensor.getName()));
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
Compass.java 21 import android.hardware.Sensor;
34 private Sensor mSensor;
48 public void onAccuracyChanged(Sensor sensor, int accuracy) {
56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);
  /frameworks/base/core/java/android/view/
OrientationEventListener.java 20 import android.hardware.Sensor;
38 private Sensor mSensor;
63 * @param rate at which sensor events are processed (see also
71 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
83 * Enables the OrientationEventListener so it will monitor the sensor and call
139 mOldListener.onSensorChanged(Sensor.TYPE_ACCELEROMETER, event.values);
147 public void onAccuracyChanged(Sensor sensor, int accuracy) {
153 * Returns true if sensor is enabled and false otherwise
  /frameworks/base/core/java/com/android/internal/app/
IBatteryStats.aidl 36 void noteStartSensor(int uid, int sensor);
37 void noteStopSensor(int uid, int sensor);
  /frameworks/base/services/core/java/com/android/server/
GestureLauncherService.java 27 import android.hardware.Sensor;
52 * The service that listens for gestures detected in sensor firmware and starts the intent
82 private Sensor mCameraLaunchSensor;
83 private Sensor mCameraLiftTriggerSensor;
103 * How long the sensor 1 has been turned on since camera launch sensor was
105 * <p>Sensor 1 is the main sensor used to detect camera launch gesture.</p>
110 * If applicable, how long the sensor 2 has been turned on since camera
111 * launch sensor was subscribed to and when the last camera launc
    [all...]
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
MotionSensorWTime.java 17 // Make values from a motion sensor (e.g., accelerometer) available as filter outputs.
22 import android.hardware.Sensor;
39 private Sensor mSensor = null;
62 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION);
63 // TODO: currently, the type of sensor is hardcoded. Should be able to set the sensor
74 public final void onAccuracyChanged(Sensor sensor, int accuracy) {
75 // (Do we need to do something when sensor accuracy changes?)
  /frameworks/native/libs/sensor/include/sensor/
Sensor.h 28 #include <android/sensor.h>
44 class Sensor : public ASensor, public LightFlattenable<Sensor>
64 Sensor(const Sensor&) = default;
65 Sensor& operator=(const Sensor&) = default;
67 Sensor(const char * name = "");
68 Sensor(struct sensor_t const* hwSensor, int halVersion = 0);
69 Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersion = 0)
    [all...]
  /frameworks/native/libs/sensor/tests/
Sensor_test.cpp 19 #include <sensor/Sensor.h>
29 static bool sensorsMatch(const Sensor& a, const Sensor& b) {
58 hwSensor.name = "Test Sensor";
78 Sensor sensor1(&hwSensor, SENSORS_DEVICE_API_VERSION_1_4);
79 Sensor sensor2;
  /frameworks/native/services/sensorservice/
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/services/Car/car-support-lib/src/android/support/car/hardware/
CarSensorsProxy.java 21 import android.hardware.Sensor;
52 private final Sensor mAccelerometerSensor;
53 private final Sensor mMagneticFieldSensor;
54 private final Sensor mGyroscopeSensor;
126 int type = event.sensor.getType();
129 case Sensor.TYPE_GYROSCOPE:
134 case Sensor.TYPE_MAGNETIC_FIELD:
139 case Sensor.TYPE_ACCELEROMETER:
146 Log.w(TAG, "Unexpected sensor event type: " + type);
154 public void onAccuracyChanged(Sensor sensor, int accuracy) {
    [all...]
  /system/chre/chre_api/include/chre_api/chre/
sensor.h 22 * API dealing with sensor interaction in the Context Hub Runtime
25 * This includes the definition of our sensor types and the ability to
47 * in our values since we don't have all possible sensor types assigned.
66 * Since this is a one-shot sensor, after this event is delivered to the
67 * nanoapp, the sensor automatically goes into DONE mode. Sensors of this
76 * Since this is a one-shot sensor, after this event is delivered to the
77 * nanoapp, the sensor automatically goes into DONE mode. Sensors of this
133 * 0. If an invalid reading is generated by the sensor hardware, it must
137 * upon configuring this sensor. Thus, the 'invalid' field must be checked on
207 * First value for sensor events which are not data from the sensor
    [all...]
  /system/chre/chre_api/legacy/v1_0/chre/
sensor.h 21 * API dealing with sensor interaction in the Context Hub Runtime
24 * This includes the definition of our sensor types and the ability to
39 * The CHRE_SENSOR_TYPE_* defines are the sensor types supported.
41 * Unless otherwise noted, each of these sensor types is based off of a
42 * corresponding sensor type in the Android API's sensors.h interface.
51 * Note that every sensor will generate CHRE_EVENT_SENSOR_SAMPLING_CHANGE
52 * events, so it is not listed with each individual sensor.
69 * This is a one-shot sensor.
82 * This is a one-shot sensor.
109 * Barometric pressure sensor
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/renderers/
GLArrowSensorTestRenderer.java 24 import android.hardware.Sensor;
39 * Renders a wedge to indicate the direction of sensor data.
89 if (mSensorType == Sensor.TYPE_ACCELEROMETER) {
157 public void onAccuracyChanged(Sensor arg0, int arg1) {
166 int type = event.sensor.getType();
167 if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {
183 } else if (type == Sensor.TYPE_ROTATION_VECTOR
184 || type == Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR
185 || type == Sensor.TYPE_GAME_ROTATION_VECTOR)
    [all...]
  /cts/tests/sensor/jni/
SensorTest.cpp 99 int TestSensorManager::configureDirectReport(TestSensor sensor, int channel, int rate) {
103 return ASensorManager_configureDirectReport(mManager, sensor, channel, rate);
235 constexpr size_t kMaxSize = 128*1024*1024; // sensor test should not need more than 128M
  /development/samples/Compass/src/com/example/android/compass/
CompassActivity.java 30 import android.hardware.Sensor;
77 Sensor gsensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
78 Sensor msensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
205 public void onAccuracyChanged(Sensor sensor, int accuracy) {
209 int type = event.sensor.getType();
211 if (type == Sensor.TYPE_ACCELEROMETER) {
213 } else if (type == Sensor.TYPE_MAGNETIC_FIELD)
    [all...]

Completed in 877 milliseconds

1 2 3 4 5 6 78 91011>>