/frameworks/base/core/java/android/hardware/ |
SensorEvent.java | 20 * This class represents a {@link android.hardware.Sensor Sensor} event and 21 * holds information such as the sensor's type, the time-stamp, accuracy and of 22 * course the sensor's {@link SensorEvent#values data}. 52 * @see Sensor 60 * which {@link android.hardware.Sensor sensor} type is being monitored (see 64 * <h4>{@link android.hardware.Sensor#TYPE_ACCELEROMETER 65 * Sensor.TYPE_ACCELEROMETER}:</h4> All values are in SI units (m/s^2) 74 * A sensor of this type measures the acceleration applied to the devic 639 public Sensor sensor; field in class:SensorEvent [all...] |
TriggerEvent.java | 21 * associated with a Trigger Sensor. When the sensor detects a trigger 23 * {@link Sensor#TYPE_SIGNIFICANT_MOTION}, the {@link TriggerEventListener} 24 * is called with the TriggerEvent. The sensor is automatically canceled 27 * This class holds information such as the value of the sensor 29 * information regarding the Sensor itself. 33 * @see android.hardware.Sensor 39 * which {@link android.hardware.Sensor sensor} type is being monitored (see 42 * <h4> {@link Sensor#TYPE_SIGNIFICANT_MOTION} </h4 52 public Sensor sensor; field in class:TriggerEvent [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 95 * not taken into account by sensor timestamps. 104 * Internal temperature. Sensor hardware device internal temperature. 112 * Vector calibration parameter. Calibration applied to a sensor with 3 elements vector output, 122 * Sensor placement. Describes location and installation angle of the sensor device [all...] |
/frameworks/native/services/sensorservice/ |
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';
|
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...] |
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
SensorEventCallback.h | 32 virtual int submitEvent(SP(BaseSensorObject) sensor, const sensors_event_t &e) = 0; member in class:android::SensorHalExt::SensorEventCallback
|
/system/chre/core/include/chre/core/ |
sensor_request_manager.h | 21 #include "chre/core/sensor.h" 33 * sensor list with platform sensors. 38 * Destructs the sensor request manager and releases platform sensor resources 44 * Determines whether the runtime is aware of a given sensor type. The 45 * supplied sensorHandle is only populated if the sensor type is known. 47 * @param sensorType The type of the sensor. 48 * @param sensorHandle A non-null pointer to a uint32_t to use as a sensor 50 * @return true if the supplied sensor type is available for use. 55 * Sets a sensor request for the given nanoapp for the provided sensor handle 140 Optional<Sensor> sensor; member in struct:chre::SensorRequestManager::SensorRequests [all...] |
/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
ProcessUsageParserTest.java | 44 " Sensor 44: 27m 18s 207ms realtime (22 times)", 45 " Sensor 36: 6s 483ms realtime (3 times)", 53 " Sensor 0: 5s 207ms realtime (2 times)", 70 LinkedList<SensorInfoItem> sensor = processUsageInfo.get(1).getSensorUsage(); local 71 assertEquals("44", sensor.get(0).getSensorName()); 72 assertEquals("36", sensor.get(1).getSensorName()); 74 sensor = processUsageInfo.get(2).getSensorUsage(); 75 assertEquals("0", sensor.get(0).getSensorName());
|
/cts/tests/sensor/src/android/hardware/cts/ |
SensorSupportTest.java | 21 import android.hardware.Sensor; 56 checkSupportsSensor(Sensor.TYPE_ACCELEROMETER); 60 checkSupportsSensor(Sensor.TYPE_ACCELEROMETER_UNCALIBRATED); 64 checkSupportsSensor(Sensor.TYPE_GYROSCOPE); 68 checkSupportsSensor(Sensor.TYPE_GYROSCOPE_UNCALIBRATED); 72 checkSupportsSensor(Sensor.TYPE_MAGNETIC_FIELD); 76 checkSupportsSensor(Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED); 80 checkSupportsSensor(Sensor.TYPE_PRESSURE); 84 checkSupportsSensor(Sensor.TYPE_ROTATION_VECTOR); 88 checkSupportsSensor(Sensor.TYPE_SIGNIFICANT_MOTION) 121 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...] |
/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...] |
/device/google/wahoo/thermal/ |
sensors.cpp | 80 auto sensor = sensor_name_to_data_map_.at(sensor_name); local 83 out->throttlingThreshold = std::get<1>(sensor); 84 out->shutdownThreshold = std::get<2>(sensor); 85 out->vrThrottlingThreshold = std::get<3>(sensor); 86 out->type = std::get<4>(sensor);
|
/packages/apps/Camera2/src/com/android/camera/one/v2/common/ |
ZoomedCropRegion.java | 39 Rect sensor = mSensorArrayArea; local 40 int xCenter = sensor.width() / 2; 41 int yCenter = sensor.height() / 2; 42 int xDelta = (int) (0.5f * sensor.width() / zoom); 43 int yDelta = (int) (0.5f * sensor.height() / zoom);
|
/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...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
BatteryStatsSensorTest.java | 26 * Test BatteryStatsImpl Sensor Timers. 76 // Plugged-in (battery=off, sensor=off) 81 // Start sensor (battery=off, sensor=on) 93 // Stop sensor (battery=off, sensor=off) 112 // Unplugged (battery=on, sensor=off) 116 // Start sensor (battery=on, sensor=on) 128 // Stop sensor (battery=on, sensor=off 398 BatteryStats.Uid.Sensor sensor = uid.getSensorStats().get(SENSOR_ID); local 453 BatteryStats.Uid.Sensor sensor = bi.getUidStats().get(UID).getSensorStats().get(SENSOR_ID); 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) {
|
/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/base/packages/SystemUI/src/com/android/systemui/doze/ |
DozeFactory.java | 22 import android.hardware.Sensor; 81 Sensor sensor = DozeSensors.findSensorWithType(sensorManager, local 83 return new DozeScreenBrightness(context, service, sensorManager, sensor, host, handler,
|
/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);
|
/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...] |
/system/chre/apps/ash_world/ |
ash_world.cc | 122 uint8_t sensor = CHRE_SENSOR_TYPE_ACCELEROMETER; local 126 sensor = CHRE_SENSOR_TYPE_GYROSCOPE; 130 sensor = CHRE_SENSOR_TYPE_GEOMAGNETIC_FIELD; 140 success = ashSaveCalibrationParams(sensor, sensorCalParams); 142 LOGI("*** save sensor %" PRIu8 ": %s, time %" PRIu64 " us", 143 sensor, success ? "success" : "failure", (toc - tic) / 1000); 147 success = ashLoadCalibrationParams(sensor, ASH_CAL_STORAGE_ASH, &p); 149 LOGI("*** load sensor %" PRIu8 ": %s, time %" PRIu64 " us", 150 sensor, success ? "success" : "fail", (toc - tic) / 1000); 166 success = ashSetCalibration(sensor, sensorCalInfo) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
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...] |