| /frameworks/base/core/java/android/hardware/ |
| SensorListener.java | 21 * sensor values have changed. 30 * <p>Called when sensor values have changed. 32 * depending on which sensor is being monitored. 34 * for details on possible sensor types. 87 * @param sensor The ID of the sensor being monitored 88 * @param values The new values for the sensor. 90 public void onSensorChanged(int sensor, float[] values); 93 * Called when the accuracy of a sensor has changed. 97 * @param sensor The ID of the sensor being monitore [all...] |
| SensorEventListener2.java | 25 * was called have been delivered to the applications registered for those sensor events. In 27 * even if some other application has called flush() on the same sensor. Starting with 33 * @param sensor The {@link android.hardware.Sensor Sensor} on which flush was called. 36 public void onFlushCompleted(Sensor sensor);
|
| SensorEventCallback.java | 20 * Used for receiving sensor additional information frames. 25 * Called when sensor values have changed. 33 * Called when the accuracy of the registered sensor has changed. 35 * @see android.hardware.SensorEventListener#onAccuracyChanged(Sensor, int) 38 public void onAccuracyChanged(Sensor sensor, int accuracy) {} 43 * @see android.hardware.SensorEventListener2#onFlushCompleted(Sensor) 46 public void onFlushCompleted(Sensor sensor) {} 49 * Called when a sensor additional information frame is available [all...] |
| SensorEventListener.java | 21 * there is new sensor data. 26 * Called when there is a new sensor event. Note that "on changed" 28 * new reading from a sensor with the exact same sensor values (but a 32 * for details on possible sensor types. 46 * Called when the accuracy of the registered sensor has changed. Unlike 52 * @param accuracy The new accuracy of this sensor, one of 55 public void onAccuracyChanged(Sensor sensor, int accuracy);
|
| 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...] |
| /packages/services/Car/service/src/com/android/car/hal/ |
| SensorBase.java | 21 * Abstraction for a sensor, whether it be a physical on-board sensor of a vehicle, or a logical 22 * data element which wants to be represented as sensor-like to higher-level entities 29 boolean requestSensorStart(int sensor, int rate); 30 void requestSensorStop(int sensor);
|
| /cts/apps/CameraITS/tests/scene0/ |
| test_unified_timestamps.py | 21 """Test if image and motion sensor events are in the same time domain. 36 ts_image0 = cap['metadata']['android.sensor.timestamp'] 39 print "Reading sensor measurements" 46 for sensor, existing in sensors.iteritems(): 48 assert(len(events[sensor]) > 0) 49 ts_sensor_first[sensor] = events[sensor][0]["time"] 50 ts_sensor_last[sensor] = events[sensor][-1]["time"] 54 ts_image1 = cap['metadata']['android.sensor.timestamp' [all...] |
| /device/google/contexthub/firmware/os/core/ |
| hostIntf.c | 99 // sensorType matching struct SensorInfo (because the sensor can have a 535 static void resetBuffer(struct ActiveSensor *sensor) 537 sensor->discard = true; 538 sensor->buffer.length = 0; 539 memset(&sensor->buffer.firstSample, 0x00, sizeof(struct SensorFirstSample)); 549 struct ActiveSensor *sensor = NULL; local 553 sensor = mActiveSensorTable + mSensorList[sensorType - 1]; 555 return sensor; 562 struct ActiveSensor *sensor; local 567 sensor = getActiveSensorByType(buffer->sensType) 636 struct ActiveSensor *sensor = getActiveSensorByType(buffer->sensType); local 1383 struct ActiveSensor *sensor = getActiveSensorByType(cmd->sensType); local 1543 struct ActiveSensor *sensor = getActiveSensorByType(evtType & 0xFF); local [all...] |
| /cts/tests/sensor/src/android/hardware/cts/ |
| SensorTest.java | 26 import android.hardware.Sensor; 68 private Sensor mTriggerSensor; 69 private List<Sensor> mSensorList; 70 private List<Sensor> mAndroidSensorList; 82 mSensorList = mSensorManager.getSensorList(Sensor.TYPE_ALL); 91 for (Sensor s : mSensorList) { 92 if (s.getType() < Sensor.TYPE_DEVICE_PRIVATE_BASE) { 125 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) local 287 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION); local 299 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local 403 Sensor sensor = null; local 439 Sensor sensor = null; local [all...] |
| /device/google/marlin/ |
| thermal-engine-marlin-vr.conf | 4 sensor emmc_therm 12 sensor emmc_therm 22 sensor emmc_therm
|
| thermal-engine-marlin.conf | 4 sensor emmc_therm 13 sensor emmc_therm 22 sensor emmc_therm 32 sensor emmc_therm 42 sensor emmc_therm 52 sensor emmc_therm 61 sensor emmc_therm 71 sensor emmc_therm 90 sensor HOT-SKIN-VIRTUAL
|
| /device/google/muskie/ |
| thermal-engine-vr.conf | 4 sensor back_therm 12 sensor back_therm
|
| thermal-engine.conf | 6 sensor back_therm 16 sensor back_therm 26 sensor back_therm 46 sensor HOT-SKIN-VIRTUAL 56 sensor back_therm 65 sensor back_therm 74 sensor back_therm 83 sensor back_therm
|
| /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/ |
| FakeSensorManager.java | 21 import android.hardware.Sensor; 46 * Currently only supports the proximity sensor. 58 Sensor proxSensor = context.getSystemService(SensorManager.class) 59 .getDefaultSensor(Sensor.TYPE_PROXIMITY); 62 proxSensor = createSensor(Sensor.TYPE_PROXIMITY); 67 mFakeLightSensor = new FakeGenericSensor(createSensor(Sensor.TYPE_LIGHT)), 80 public Sensor getDefaultSensor(int type) { 81 Sensor s = super.getDefaultSensor(type); 86 // return non-wakeup sensors if we can't find a wakeup sensor. 91 protected List<Sensor> getFullSensorList() 191 Sensor sensor = constr.newInstance(); 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/taimen/ |
| thermal-engine-vr.conf | 4 sensor bd_therm2 12 sensor bd_therm2 22 sensor bd_therm 30 sensor bd_therm
|
| thermal-engine.conf | 4 sensor bd_therm2 14 sensor bd_therm2 24 sensor bd_therm2 44 sensor HOT-SKIN-VIRTUAL2 54 sensor bd_therm2 63 sensor bd_therm2 72 sensor bd_therm2 81 sensor bd_therm2 90 sensor bd_therm 100 sensor bd_ther [all...] |
| /frameworks/native/services/sensorservice/ |
| 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) {
|
| /cts/tools/cts-device-info/src/com/android/cts/deviceinfo/ |
| SensorDeviceInfo.java | 19 import android.hardware.Sensor; 33 * Sensor device info collector. 37 private static final String SENSOR = "sensor"; 69 List<Sensor> sensors = sensorManager.getSensorList(Sensor.TYPE_ALL); 70 store.startArray(SENSOR); 71 for (Sensor sensor : sensors) { 73 store.addResult(REPORTING_MODE, sensor.getReportingMode()) [all...] |
| /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);
|
| /frameworks/base/native/android/ |
| sensor.cpp | 17 #define LOG_TAG "sensor" 21 #include <android/sensor.h> 24 #include <sensor/Sensor.h> 25 #include <sensor/SensorManager.h> 26 #include <sensor/SensorEventQueue.h> 35 using android::Sensor; 52 if (sensor == nullptr) { \ 53 ERROR_INVALID_PARAMETER("sensor cannot be NULL"); \ 78 Sensor const* const* l [all...] |
| /frameworks/native/include/android/ |
| sensor.h | 18 * @addtogroup Sensor 23 * @file sensor.h 46 * Structures and functions to receive and process sensor events in 68 /* (Keep in sync with hardware/sensors-base.h and Sensor.java.) */ 71 * Sensor types. 79 * Invalid sensor type. Returned by {@link ASensor_getType} as error value. 110 * The light sensor value is returned in SI lux units. 116 * The pressure sensor value is returned in hPa (millibar). 123 * The proximity sensor which turns the screen off and back on during calls is the 124 * wake-up proximity sensor. Implement wake-up proximity sensor before implementin 312 int32_t sensor; member in struct:AMetaDataEvent 356 int32_t sensor; member in struct:ASensorEvent [all...] |
| /system/chre/core/ |
| sensor_request_manager.cc | 27 bool isSensorRequestValid(const Sensor& sensor, 33 SensorType sensorType = sensor.getSensorType(); 36 if (requestedInterval < sensor.getMinInterval()) { 38 LOGE("Requested interval %" PRIu64 " < sensor's minInterval %" PRIu64, 39 requestedInterval, sensor.getMinInterval()); 43 LOGE("Invalid continuous request for a one-shot sensor."); 48 LOGE("Invalid one-shot request for a continuous sensor."); 59 DynamicVector<Sensor> sensors; 71 LOGE("Invalid sensor type") 129 const Sensor& sensor = requests.sensor.value(); local 212 const Sensor& sensor = mSensorRequests[sensorIndex].sensor.value(); local 297 SensorType sensor = static_cast<SensorType>(i); local [all...] |
| /frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/ |
| ASensorManager.cpp | 62 LOG(ERROR) << "Sensor service died. Cleanup sensor manager instance!"; 75 LOG(ERROR) << "Transaction error in linking to sensor service death: " << 78 LOG(WARNING) << "Unable to link to sensor service death notifications"; 80 LOG(DEBUG) << "Link to sensor service death notification successful"; 128 [&](const auto &sensor, auto result) { 134 if (sensor == mSensors[i]) { 224 if (sensor == NULL) { \ 297 ASensor const* sensor, 306 ASensor const* sensor, [all...] |