/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...] |
RawThermalZone.java | 27 * zone state by first computing max of all sensor temperature (in polling mode) 29 * monitoring only the temperature of first sensor is used to compute zone state. 70 // for uevent based monitoring only first sensor used 77 //zone temp is max of all sensor temp 90 // it is assumed only one sensor will be provided for moving average
|
/device/moto/shamu/sepolicy/ |
camera.te | 15 # Connect to sensor socket (/dev/sensor/sensor_ctl_socket)
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/res/values/ |
strings.xml | 24 <string name="sensor">Toggle Sensor</string>
|
/frameworks/native/data/etc/ |
android.hardware.sensor.accelerometer.xml | 17 <!-- Feature for devices with an accelerometer sensor. --> 19 <feature name="android.hardware.sensor.accelerometer" />
|
android.hardware.sensor.heartrate.ecg.xml | 17 <!-- Feature for devices with a hardware electrocardiography(ECG) sensor. --> 19 <feature name="android.hardware.sensor.heartrate.ecg" />
|
android.hardware.sensor.light.xml | 17 <!-- Feature for devices with an ambient light sensor. --> 19 <feature name="android.hardware.sensor.light" />
|
android.hardware.sensor.proximity.xml | 17 <!-- Feature for devices with a proximity sensor. --> 19 <feature name="android.hardware.sensor.proximity" />
|
tablet_core_hardware.xml | 29 <feature name="android.hardware.sensor.compass" /> 30 <feature name="android.hardware.sensor.accelerometer" /> 61 <!-- devices with an ambient light sensor must also include 62 android.hardware.sensor.light.xml --> 63 <!-- devices with a proximity sensor must also include 64 android.hardware.sensor.proximity.xml --> 66 android.hardware.sensor.barometer.xml --> 68 android.hardware.sensor.gyroscope.xml -->
|
/frameworks/native/services/sensorservice/ |
GravitySensor.cpp | 38 mAccelerometer = Sensor(list + i); 55 // translates to an offset in the linear-acceleration sensor. 62 outEvent->sensor = '_grv'; 77 Sensor GravitySensor::getSensor() const { 79 hwSensor.name = "Gravity Sensor"; 88 Sensor sensor(&hwSensor); 89 return sensor;
|
SensorService.h | 33 #include <gui/Sensor.h> 73 virtual Vector<Sensor> getSensorList(); 92 // first wake_up sensor event in the buffer else return -1. This wake_up sensor event will 116 // app that it has read events from a wake up sensor, decrement mWakeLockRefCount. 120 // Increment mPendingFlushEventsToSend for the given sensor handle. 153 // The number of flush complete events dropped for this sensor is stored here. 157 // received, the events for the sensor are sent on that *connection*. 161 // protected by SensorService::mLock. Key for this vector is the sensor handle. 191 // A queue of all flush() calls made on this sensor. Flush complete events will b [all...] |
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
Balls.java | 41 import android.hardware.Sensor; 60 //android.util.Log.d("rs", "sensor: " + event.sensor + ", x: " + event.values[0] + ", y: " + event.values[1] + ", z: " + event.values[2]); 62 if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) { 70 public void onAccuracyChanged(Sensor sensor, int accuracy) { 88 mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/ |
TestSensorFlushOperation.java | 25 * A {@link ISensorOperation} used to verify that sensor events and sensor values are correct. 28 * depending on sensor type. When {{@link #execute()} is called, the sensor will collect the
|
/developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/ |
BatchStepSensorFragment.java | 21 import android.hardware.Sensor; 84 // List of timestamps when sensor events occurred 89 // pointer to next entry in sensor event list 94 // Value of the step counter sensor when the listener was registered. 102 // When a listener is registered, the batch sensor delay in microseconds 135 * higher and has a step counter and step detector sensor. 172 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_COUNTER); 175 registerEventListener(BATCH_LATENCY_5s, Sensor.TYPE_STEP_COUNTER); 178 registerEventListener(BATCH_LATENCY_10s, Sensor.TYPE_STEP_COUNTER); 183 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_DETECTOR) 257 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local 468 String sensor = "-"; local [all...] |
/developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/res/values/ |
base-strings.xml | 24 sensor batching.\n\n It shows how to register a SensorEventListener with and without 25 batching and shows how these events are received.\n\nThe Step Detector sensor fires an 27 steps since a listener was first registered for this sensor. 31 requires manually flushing the sensor event queue before it overflows, which is not
|
/developers/samples/android/sensors/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/ |
BatchStepSensorFragment.java | 21 import android.hardware.Sensor; 84 // List of timestamps when sensor events occurred 89 // pointer to next entry in sensor event list 94 // Value of the step counter sensor when the listener was registered. 102 // When a listener is registered, the batch sensor delay in microseconds 135 * higher and has a step counter and step detector sensor. 172 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_COUNTER); 175 registerEventListener(BATCH_LATENCY_5s, Sensor.TYPE_STEP_COUNTER); 178 registerEventListener(BATCH_LATENCY_10s, Sensor.TYPE_STEP_COUNTER); 183 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_DETECTOR) 257 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local 468 String sensor = "-"; local [all...] |
/developers/samples/android/sensors/BatchStepSensor/ |
template-params.xml | 35 sensor batching.\n\n It shows how to register a SensorEventListener with and without 36 batching and shows how these events are received.\n\nThe Step Detector sensor fires an 38 steps since a listener was first registered for this sensor. 42 requires manually flushing the sensor event queue before it overflows, which is not
|
/development/samples/browseable/BatchStepSensor/res/values/ |
base-strings.xml | 27 sensor batching.\n\n It shows how to register a SensorEventListener with and without 28 batching and shows how these events are received.\n\nThe Step Detector sensor fires an 30 steps since a listener was first registered for this sensor. 34 requires manually flushing the sensor event queue before it overflows, which is not
|
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/ |
BatchStepSensorFragment.java | 21 import android.hardware.Sensor; 84 // List of timestamps when sensor events occurred 89 // pointer to next entry in sensor event list 94 // Value of the step counter sensor when the listener was registered. 102 // When a listener is registered, the batch sensor delay in microseconds 135 * higher and has a step counter and step detector sensor. 172 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_COUNTER); 175 registerEventListener(BATCH_LATENCY_5s, Sensor.TYPE_STEP_COUNTER); 178 registerEventListener(BATCH_LATENCY_10s, Sensor.TYPE_STEP_COUNTER); 183 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_DETECTOR) 257 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local 468 String sensor = "-"; local [all...] |
/pdk/apps/CameraITS/tests/scene0/ |
test_param_sensitivity_burst.py | 22 """Test that the android.sensor.sensitivity parameter is applied properly 34 sens_range = props['android.sensor.info.sensitivityRange'] 37 e = min(props['android.sensor.info.exposureTimeRange']) 44 s_res = cap["metadata"]["android.sensor.sensitivity"]
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
TestSensorManager.java | 22 import android.hardware.Sensor; 31 * A test class that performs the actions of {@link SensorManager} on a single sensor. This 32 * class allows for a single sensor to be registered and unregistered as well as performing 33 * operations such as flushing the sensor events and gathering events. This class also manages 34 * performing the test verifications for the sensor manager. 82 * Register the listener. This method will perform a no-op if the sensor is already registered. 106 * Unregister the listener. This method will perform a no-op if the sensor is not registered. 144 * the sensor is not registered. 159 * Wait for {@link SensorEventListener2#onFlushCompleted(Sensor)} to be called. This method will 160 * perform a no-op if the sensor is not registered [all...] |
/frameworks/native/libs/gui/ |
SensorEventQueue.cpp | 27 #include <gui/Sensor.h> 32 #include <android/sensor.h> 123 status_t SensorEventQueue::enableSensor(Sensor const* sensor) const { 124 return mSensorEventConnection->enableDisable(sensor->getHandle(), true, 0, 0, false); 127 status_t SensorEventQueue::disableSensor(Sensor const* sensor) const { 128 return mSensorEventConnection->enableDisable(sensor->getHandle(), false, 0, 0, false); 145 status_t SensorEventQueue::setEventRate(Sensor const* sensor, nsecs_t ns) const [all...] |
/pdk/apps/CameraITS/tests/inprog/ |
test_test_patterns.py | 21 """Test sensor test patterns. 29 req['android.sensor.testPatternData'] = [40, 100, 160, 220] 30 req['android.sensor.testPatternMode'] = i
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
PowerTestHostLink.java | 22 import android.hardware.Sensor; 203 final String REQUEST_SENSOR_ON = "SENSOR ON "; 204 final String REQUEST_SENSOR_OFF = "SENSOR OFF"; 205 final String REQUEST_SENSOR_AVAILABILITY = "SENSOR? "; 212 final String sensor = request.substring(REQUEST_SENSOR_AVAILABILITY.length()); local 213 final int sensorId = getSensorId(sensor); 331 Log.e(TAG, "Unknown sensor in request: " + sensorName); 337 Log.e(TAG, "Improperly formatted command received on setting sensor state"); 347 sensorId = Sensor.TYPE_ACCELEROMETER; 349 sensorId = Sensor.TYPE_AMBIENT_TEMPERATURE [all...] |
/hardware/ti/omap4-aah/camera/inc/ |
SensorListener.h | 20 * This defines API for camerahal to get sensor events 27 #include <android/sensor.h> 28 #include <gui/Sensor.h> 39 * SensorListner class - Registers with sensor manager to get sensor events
|