/hardware/bsp/intel/peripheral/libupm/examples/java/ |
RPR220_intrSample.java | 45 upm_rpr220.RPR220 sensor = new upm_rpr220.RPR220(2); local 48 sensor.installISR(callback);
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
TestSensorEnvironment.java | 20 import android.hardware.Sensor; 30 * The environment is self contained and carries its state around all the sensor test framework. 35 * It represents the fraction of the expected sampling frequency, at which the sensor can 41 private final Sensor mSensor; 49 * Constructs an environment for sensor testing. 52 * @param sensorType The type of the sensor under test 53 * @param samplingPeriodUs The requested collection period for the sensor under test 55 * @deprecated Use variants with {@link Sensor} objects. 63 * Constructs an environment for sensor testing. 66 * @param sensorType The type of the sensor under tes 389 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local [all...] |
/device/google/contexthub/util/nanoapp_cmd/ |
nanoapp_cmd.c | 68 static int setType(struct ConfigCmd *cmd, char *sensor) 70 if (strcmp(sensor, "accel") == 0) { 72 } else if (strcmp(sensor, "gyro") == 0) { 74 } else if (strcmp(sensor, "mag") == 0) { 76 } else if (strcmp(sensor, "uncal_gyro") == 0) { 78 } else if (strcmp(sensor, "uncal_mag") == 0) { 80 } else if (strcmp(sensor, "als") == 0) { 82 } else if (strcmp(sensor, "prox") == 0) { 84 } else if (strcmp(sensor, "baro") == 0) { 86 } else if (strcmp(sensor, "temp") == 0) [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/ |
FrequencyVerification.java | 21 import android.hardware.Sensor; 31 * A {@link ISensorVerification} which verifies that the sensor frequency are within the expected 62 * Get the default {@link FrequencyVerification} for a sensor. 65 * @return the verification or null if the verification does not apply to the sensor. 68 Sensor sensor = environment.getSensor(); local 69 if (sensor.getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) { 75 sensor.getName(), 76 sensor.getMinDelay() [all...] |
/development/ndk/platforms/android-19/include/android/ |
sensor.h | 38 * Structures and functions to receive and process sensor events in 53 * Sensor types 54 * (keep in sync with hardware/sensor.h) 66 * Sensor accuracy measure 87 * A sensor event. 111 int32_t sensor; member in struct:AMetaDataEvent 136 int32_t sensor; member in struct:ASensorEvent 177 * Get a reference to the sensor manager. ASensorManager is a singleton. 193 * Returns the default sensor for the given type, or NULL if no sensor [all...] |
/prebuilts/ndk/current/platforms/android-19/arch-arm/usr/include/android/ |
sensor.h | 38 * Structures and functions to receive and process sensor events in 53 * Sensor types 54 * (keep in sync with hardware/sensor.h) 66 * Sensor accuracy measure 87 * A sensor event. 111 int32_t sensor; member in struct:AMetaDataEvent 136 int32_t sensor; member in struct:ASensorEvent 177 * Get a reference to the sensor manager. ASensorManager is a singleton. 193 * Returns the default sensor for the given type, or NULL if no sensor [all...] |
/prebuilts/ndk/current/platforms/android-19/arch-mips/usr/include/android/ |
sensor.h | 38 * Structures and functions to receive and process sensor events in 53 * Sensor types 54 * (keep in sync with hardware/sensor.h) 66 * Sensor accuracy measure 87 * A sensor event. 111 int32_t sensor; member in struct:AMetaDataEvent 136 int32_t sensor; member in struct:ASensorEvent 177 * Get a reference to the sensor manager. ASensorManager is a singleton. 193 * Returns the default sensor for the given type, or NULL if no sensor [all...] |
/prebuilts/ndk/current/platforms/android-19/arch-x86/usr/include/android/ |
sensor.h | 38 * Structures and functions to receive and process sensor events in 53 * Sensor types 54 * (keep in sync with hardware/sensor.h) 66 * Sensor accuracy measure 87 * A sensor event. 111 int32_t sensor; member in struct:AMetaDataEvent 136 int32_t sensor; member in struct:ASensorEvent 177 * Get a reference to the sensor manager. ASensorManager is a singleton. 193 * Returns the default sensor for the given type, or NULL if no sensor [all...] |
/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/ |
read_device_node.c | 56 void get_sensor_data(char *d, short *sensor) 60 sensor[i] = *(short *)(d + 2 + i * 2); 76 short sensor[3]; local 121 get_sensor_data(dptr, sensor); 123 printf("PRESS, %d, %lld\n", (sensor[1] << 16) + (unsigned short)sensor[2], *(long long *)dptr); 129 get_sensor_data(dptr, sensor); 131 printf("ACCEL, %d, %d, %d, %lld\n", sensor[0], sensor[1], sensor[2], *(long long *)dptr) [all...] |
/device/google/contexthub/sensorhal/ |
sensors.cpp | 74 sensor_t sensor = kSensorList[i]; local 75 if (sensor.handle != handle) { 79 if ((sensor.flags & REPORTING_MODE_MASK) == SENSOR_FLAG_CONTINUOUS_MODE) { 80 if ((delayNs/1000) < sensor.minDelay) { 81 delayNsClamped = sensor.minDelay * 1000; 82 } else if ((delayNs/1000) > sensor.maxDelay) { 83 delayNsClamped = sensor.maxDelay * 1000; 117 sensor_t sensor = kSensorList[i]; local 118 if (sensor.handle != handle) { 122 if ((sensor.flags & REPORTING_MODE_MASK) == SENSOR_FLAG_CONTINUOUS_MODE) [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/ |
SensorParameterRangeTest.java | 21 import android.hardware.Sensor; 80 mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), 88 mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE), 96 mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD), 105 mSensorManager.getDefaultSensor(Sensor.TYPE_PRESSURE), 113 Sensor sensor, double maxRange, double minFrequency, double maxFrequency) { 116 sensor.getName(), sensor.getMaximumRange(), maxRange, 117 SensorCtsHelper.getUnitsForSensor(sensor)), 165 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); local [all...] |
SensorBatchingFifoTest.java | 21 import android.hardware.Sensor; 32 * Checks the minimum Hardware FIFO length for each of the Hardware sensor. 33 * Further verifies if the advertised FIFO (Sensor.getFifoMaxEventCount()) is actually allocated 34 * for the sensor. 54 Sensor.TYPE_ACCELEROMETER, 55 getReservedFifoLength(Sensor.TYPE_ACCELEROMETER)); 61 Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED, 62 getReservedFifoLength(Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED)); 68 Sensor.TYPE_PRESSURE, 69 getReservedFifoLength(Sensor.TYPE_PRESSURE)) 80 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); local 89 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); local [all...] |
/hardware/bsp/intel/peripheral/libupm/examples/c++/ |
nrf24l01-broadcast.cxx | 34 upm::NRF24L01 *sensor = NULL; variable 54 sensor = new upm::NRF24L01(7, 8); 55 sensor->setBeaconingMode (); 72 sensor->sendBeaconingMsg ((uint8_t*) (*item).c_str()); 81 delete sensor;
|
ldt0028.cxx | 40 // Create the LDT0-028 Piezo Vibration Sensor object using AIO pin 0 41 upm::LDT0028* sensor = new upm::LDT0028(0); local 49 buffer[i] = (uint16_t) sensor->getSample(); 60 std::cout << sensor->name() << " exceeded the threshold value of " << 85 // Delete the sensor object 86 delete sensor;
|
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/handlers/ |
SensorChannel.java | 24 import android.hardware.Sensor; 46 * The target update time per sensor. Ignored if 0 or negative. 47 * Sensor updates that arrive faster than this delay are ignored. 59 /** Sensor manager. */ 67 * Sensor "enabled by emulator" state has changed. Parameter {@code obj} is 72 * Sensor display value has changed. Parameter {@code obj} is the 86 List<Sensor> sensors = mSenMan.getSensorList(Sensor.TYPE_ALL); 89 Sensor avail_sensor = sensors.get(n); 93 // The first sensor we've got for the given type is no 252 final MonitoredSensor sensor = getSensorByEFN(name); local 273 MonitoredSensor sensor = getSensorByEFN(name); local [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...] |
/hardware/ti/omap4xxx/camera/ |
SensorListener.cpp | 20 * This file listens and propogates sensor events to CameraHal. 49 if (sen_events[i].type == Sensor::TYPE_ACCELEROMETER) { 82 } else if (sen_events[i].type == Sensor::TYPE_GYROSCOPE) { 155 CAMHAL_LOGEA("Couldn't create sensor looper thread"); 160 ret = mSensorLooperThread->run("sensor looper thread", PRIORITY_URGENT_DISPLAY); 197 Sensor const* sensor; local 205 sensor = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER); 206 CAMHAL_LOGDB("orientation = %p (%s)", sensor, sensor->getName().string()) 216 Sensor const* sensor; local [all...] |
/frameworks/native/services/sensorservice/ |
SensorInterface.h | 20 #include <gui/Sensor.h> 43 virtual const Sensor& getSensor() const = 0; 50 BaseSensor(const sensor_t& sensor); 51 BaseSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]); 66 virtual const Sensor& getSensor() const override { return mSensor; } 70 Sensor mSensor; 77 HardwareSensor(const sensor_t& sensor); 78 HardwareSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]);
|
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...] |
/frameworks/native/libs/gui/ |
SensorEventQueue.cpp | 29 #include <gui/Sensor.h> 34 #include <android/sensor.h> 127 status_t SensorEventQueue::enableSensor(Sensor const* sensor) const { 128 return enableSensor(sensor, SENSOR_DELAY_NORMAL); 131 status_t SensorEventQueue::enableSensor(Sensor const* sensor, int32_t samplingPeriodUs) const { 132 return mSensorEventConnection->enableDisable(sensor->getHandle(), true, 136 status_t SensorEventQueue::disableSensor(Sensor const* sensor) const [all...] |
/frameworks/base/core/java/android/hardware/ |
SensorManager.java | 31 * SensorManager lets you access the device's {@link android.hardware.Sensor 44 * Note: Don't use this mechanism with a Trigger Sensor, have a look 45 * at {@link TriggerEventListener}. {@link Sensor#TYPE_SIGNIFICANT_MOTION} 46 * is an example of a trigger sensor. 51 * private final Sensor mAccelerometer; 55 * mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 68 * public void onAccuracyChanged(Sensor sensor, int accuracy) { 78 * @see Sensor 88 private final SparseArray<List<Sensor>> mSensorListByType [all...] |
SensorAdditionalInfo.java | 25 * This class represents a {@link android.hardware.Sensor Sensor} additional information frame, 31 * @see Sensor 38 * The sensor that generated this event. See 41 public final Sensor sensor; field in class:SensorAdditionalInfo 88 * not taken into account by sensor timestamps. 97 * Internal temperature. Sensor hardware device internal temperature. 105 * Vector calibration parameter. Calibration applied to a sensor with 3 elements vector output, 115 * Sensor placement. Describes location and installation angle of the sensor device [all...] |
/cts/tests/tests/car/src/android/car/cts/ |
CarSensorManagerTest.java | 37 for (int sensor: supportedSensors) { 38 if (sensor == CarSensorManager.SENSOR_TYPE_DRIVING_STATUS) {
|
/frameworks/base/core/java/android/view/ |
OrientationListener.java | 53 * @param rate at which sensor events are processed (see also 79 * Enables the OrientationListener so it will monitor the sensor and call 93 public void onAccuracyChanged(int sensor, int accuracy) { 96 public void onSensorChanged(int sensor, float[] values) {
|
/frameworks/native/include/binder/ |
IBatteryStats.h | 31 virtual void noteStartSensor(int uid, int sensor) = 0; 32 virtual void noteStopSensor(int uid, int sensor) = 0;
|