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

1 2 3 4 5 6 78 91011>>

  /device/google/contexthub/sensorhal/
hubconnection.cpp 176 // enable hall sensor for folio
321 sensors_event_t *HubConnection::initEv(sensors_event_t *ev, uint64_t timestamp, uint32_t type, uint32_t sensor)
327 ev->sensor = sensor;
332 void HubConnection::processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct OneAxisSample *sample, __attribute__((unused)) bool highAccuracy)
337 switch (sensor) {
346 initEv(&nev[cnt++], timestamp, type, sensor)->pressure = sample->fdata;
349 initEv(&nev[cnt++], timestamp, type, sensor)->temperature = sample->fdata;
352 initEv(&nev[cnt++], timestamp, type, sensor)->distance = sample->fdata;
355 initEv(&nev[cnt++], timestamp, type, sensor)->light = sample->fdata
639 uint32_t type, sensor, bias, currSensor; local
    [all...]
  /frameworks/native/include/gui/
SensorEventQueue.h 45 class Sensor;
57 * Typical sensor delay (sample period) in microseconds.
65 // Default sensor sample period
82 status_t enableSensor(Sensor const* sensor) const;
83 status_t enableSensor(Sensor const* sensor, int32_t samplingPeriodUs) const;
84 status_t disableSensor(Sensor const* sensor) const;
85 status_t setEventRate(Sensor const* sensor, nsecs_t ns) const
    [all...]
  /frameworks/native/services/sensorservice/
SensorService.cpp 62 * - what about a gyro-corrected magnetic-field sensor?
63 * - run mag sensor from time to time to force calibration
64 * - gravity sensor length is wrong (=> drift in linear-acc sensor)
95 ALOGW("Can't generate HMAC key; dynamic sensor getId() will be wrong.");
112 ALOGW("Unable to write HMAC key; dynamic sensor getId() will change "
214 // counts for each sensor.
217 [&batchingSupported] (const Sensor& s) -> bool {
268 const Sensor& SensorService::registerSensor(SensorInterface* s, bool isDebug, bool isVirtual) {
279 const Sensor& SensorService::registerDynamicSensorLocked(SensorInterface* s, bool isDebug)
760 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local
769 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local
859 Sensor sensor = initialSensorList[i]; local
949 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local
1122 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local
1203 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local
    [all...]
CorrectedGyroSensor.cpp 36 mGyro = Sensor(list + i);
41 const sensor_t sensor = { local
42 .name = "Corrected Gyroscope Sensor",
52 mSensor = Sensor(&sensor);
64 outEvent->sensor = '_cgy';
GravitySensor.cpp 35 mAccelerometer = Sensor(list + i);
40 const sensor_t sensor = { local
41 .name = "Gravity Sensor",
51 mSensor = Sensor(&sensor);
64 // translates to an offset in the linear-acceleration sensor.
71 outEvent->sensor = '_grv';
LinearAccelerationSensor.cpp 34 const Sensor &gsensor = mGravitySensor.getSensor();
35 const sensor_t sensor = { local
36 .name = "Linear Acceleration Sensor",
46 mSensor = Sensor(&sensor);
57 outEvent->sensor = '_lin';
OrientationSensor.cpp 33 const sensor_t sensor = { local
34 .name = "Orientation Sensor",
44 mSensor = Sensor(&sensor);
66 outEvent->sensor = '_ypr';
SensorEventConnection.cpp 216 int32_t sensor_handle = buffer[i].sensor;
218 ALOGD_IF(DEBUG_CONNECTIONS, "flush complete event sensor==%d ",
219 buffer[i].meta_data.sensor);
220 // Setting sensor_handle to the correct sensor to ensure the sensor events per
221 // connection are filtered correctly. buffer[i].sensor is zero for meta_data
223 sensor_handle = buffer[i].meta_data.sensor;
227 // Check if this connection has registered for this sensor. If not continue to the
235 // Check if there is a pending flush_complete event for this sensor on this connection.
239 ALOGD_IF(DEBUG_CONNECTIONS, "First flush event for sensor==%d "
618 const Sensor& sensor = si->getSensor(); local
    [all...]
  /hardware/bsp/intel/peripheral/libupm/examples/javascript/
ldt0028.js 33 // Create the LDT0-028 Piezo Vibration Sensor object using AIO pin 0
34 var sensor = new sensorModule.LDT0028(0);
42 buffer.push(sensor.getSample());
53 console.log(sensor.name() + " exceeded the threshold value of " +
  /hardware/ti/omap4-aah/camera/
SensorListener.cpp 20 * This file listens and propogates sensor events to CameraHal.
47 if (sen_events[i].type == android::Sensor::TYPE_ACCELEROMETER) {
80 } else if (sen_events[i].type == android::Sensor::TYPE_GYROSCOPE) {
153 CAMHAL_LOGEA("Couldn't create sensor looper thread");
158 ret = mSensorLooperThread->run("sensor looper thread", android::PRIORITY_URGENT_DISPLAY);
195 android::Sensor const* sensor; member in class:Ti::Camera::android
203 sensor = mgr.getDefaultSensor(android::Sensor::TYPE_ACCELEROMETER);
204 if(sensor) {
218 android::Sensor const* sensor; member in class:Ti::Camera::android
    [all...]
  /frameworks/base/core/jni/
android_hardware_SensorManager.cpp 26 #include <gui/Sensor.h>
82 //android.hardware.Sensor
84 jclass sensorClass = (jclass) _env->NewGlobalRef(_env->FindClass("android/hardware/Sensor"));
116 * It is used to intern strings associated with Sensor data.
133 * A localized interning mechanism for Sensor strings.
165 translateNativeSensorToJavaSensor(JNIEnv *env, jobject sensor, const Sensor& nativeSensor) {
168 if (sensor == NULL) {
169 // Sensor sensor = new Sensor()
235 jobject sensor = translateNativeSensorToJavaSensor(env, NULL, nativeList[i]); local
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
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...]
  /frameworks/base/core/java/android/hardware/
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...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
SensorManagerTest.java 4 import android.hardware.Sensor;
45 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); local
46 sensorManager.registerListener(listener, sensor, SensorManager.SENSOR_DELAY_NORMAL);
74 public void onAccuracyChanged(Sensor sensor, int accuracy) {
  /packages/apps/Camera2/src/com/android/camera/hardware/
HeadingSensor.java 21 import android.hardware.Sensor;
27 * A virtual sensor that reports device heading based on information
28 * provided by accelerometer sensor or magnetic sensor.
38 /** Device sensor manager. */
41 private final Sensor mAccelerometerSensor;
43 private final Sensor mMagneticSensor;
47 /** Magnetic sensor data. */
53 * Constructs a heading sensor.
60 mAccelerometerSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER)
    [all...]
  /hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
stress_iio.c 700 void get_sensor_data(char *d, short *sensor)
705 sensor[i] = *(short *)(d + 2 + i * 2);
712 short sensor[3]; local
790 get_sensor_data(dptr, sensor);
792 printf("PRESSURE:%d, %lld\n", (sensor[1] << 16) + (unsigned short)sensor[2], *(long long *)dptr);
798 get_sensor_data(dptr, sensor);
800 printf("A:%d, %d, %d, %lld\n", sensor[0], sensor[1], sensor[2], *(long long *)dptr)
    [all...]
  /device/google/contexthub/util/nanotool/
contexthub.cpp 190 LOGI("Enabling sensor %d at rate %.0f Hz (special 0x%x) and latency %.2f ms",
199 LOGE("Could not enable sensor %d", spec.sensor_type);
218 // twice then disable once, the sensor will be disabled
219 LOGI("Disabling sensor %d", sensor_type);
226 LOGE("Could not disable sensor %d", sensor_type);
304 bool ContextHub::CalibrateSingleSensor(const SensorSpec& sensor) {
308 req.config.sensor_type = static_cast<uint8_t>(sensor.sensor_type);
312 LOGI("Issuing calibration request to sensor %d (%s)", sensor.sensor_type,
313 ContextHub::SensorTypeToAbbrevName(sensor.sensor_type).c_str())
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowSensorManager.java 3 import android.hardware.Sensor;
25 public boolean registerListener(SensorEventListener listener, Sensor sensor, int rate) {
37 public void unregisterListener(SensorEventListener listener, Sensor sensor) {
  /frameworks/base/core/java/com/android/internal/os/
SensorPowerCalculator.java 18 import android.hardware.Sensor;
26 private final List<Sensor> mSensors;
30 mSensors = sensorManager.getSensorList(Sensor.TYPE_ALL);
37 // Process Sensor usage
38 final SparseArray<? extends BatteryStats.Uid.Sensor> sensorStats = u.getSensorStats();
41 final BatteryStats.Uid.Sensor sensor = sensorStats.valueAt(ise); local
43 final BatteryStats.Timer timer = sensor.getSensorTime();
46 case BatteryStats.Uid.Sensor.GPS:
53 final Sensor s = mSensors.get(i)
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
ProximityClassifier.java 19 import android.hardware.Sensor;
24 * A classifier which looks at the proximity sensor during the gesture. It calculates the percentage
25 * the proximity sensor showing the near state during the whole gesture
44 if (event.sensor.getType() == Sensor.TYPE_PROXIMITY) {
45 update(event.values[0] < event.sensor.getMaximumRange(), event.timestamp);
73 * @param near is the sensor showing the near state right now
  /frameworks/base/services/core/java/com/android/server/
SensorNotificationService.java 23 import android.hardware.Sensor;
40 private Sensor mMetaSensor;
55 mMetaSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_DYNAMIC_SENSOR_META);
57 if (DBG) Slog.d(TAG, "Cannot obtain dynamic meta sensor, not supported.");
69 if (DBG) Slog.d(TAG, "DYNS sent dynamic sensor broadcast");
74 if (event.sensor == mMetaSensor) {
80 public void onAccuracyChanged(Sensor sensor, int accuracy) {
  /frameworks/native/libs/binder/
IBatteryStats.cpp 37 virtual void noteStartSensor(int uid, int sensor) {
41 data.writeInt32(sensor);
45 virtual void noteStopSensor(int uid, int sensor) {
49 data.writeInt32(sensor);
146 int sensor = data.readInt32(); local
147 noteStartSensor(uid, sensor);
154 int sensor = data.readInt32(); local
155 noteStopSensor(uid, sensor);
  /packages/services/Car/car-lib/src/android/car/hardware/
CarSensorManager.java 42 * API for monitoring car sensor data.
48 * This sensor represents vehicle speed in m/s.
49 * Sensor data in {@link CarSensorEvent} is a float which will be >= 0.
54 * Represents engine RPM of the car. Sensor data in {@link CarSensorEvent} is a float.
58 * Total travel distance of the car in Kilometer. Sensor data is a float.
74 * Represents the current status of parking brake. Sensor data in {@link CarSensorEvent} is an
76 * around. For this sensor, rate in {@link #registerListener(CarSensorEventListener, int, int)}
81 * This represents the current position of transmission gear. Sensor data in
89 * Day/night sensor. Sensor data is intValues[0]
327 Integer sensor = sensorIterator.next(); local
    [all...]
  /hardware/intel/common/utils/ituxd/src/com/intel/thermal/
ThermalZone.java 43 // sensor name - sensorAttrib object hash to improve lookup performace
44 // during runtime thermal monitoring like re-programming sensor thresholds
51 protected boolean mSupportsUEvent; /* Determines if Sensor supports Uevents */
64 private int mRecordedValuesHead = -1; /* Index pointing to the head of past values of sensor */
65 private int mRecordedValues[]; /* Recorded values of sensor */
126 // Sensor State starts with -1, InstancesList starts with 0
208 // since each object of sensor attrib list is already validated during
209 // parsing it is gauranteed that 'sa != null' and a valid sensor object 's'
402 // 2. if sensor list null disable zone
412 Log.i(TAG, "deactivate zone:" + getZoneName() + " sensor list null! ")
555 ThermalSensor sensor = mThermalSensors.get(0); local
    [all...]
  /sdk/apps/SdkController/src/com/android/tools/sdkcontroller/activities/
SensorActivity.java 46 * For each sensor it displays a checkbox that is enabled if the sensor is supported
47 * by the emulator. The user can select whether the sensor is active. It also displays
48 * data from the sensor when available.
183 for (MonitoredSensor sensor : sensors) {
188 mDisplayedSensors.put(sensor, new DisplayInfo(sensor, row));
210 public DisplayInfo(MonitoredSensor sensor, TableRow row) {
211 mSensor = sensor;
213 // Initialize displayed checkbox for this sensor, and registe
    [all...]

Completed in 1551 milliseconds

1 2 3 4 5 6 78 91011>>