/hardware/samsung_slsi/exynos5/libcamera2/ |
ExynosCamera2.cpp | 56 class Sensor { 59 * Static sensor characteristics 72 // Sensor sensitivity, approximate 99 const int32_t Sensor::kSensitivityRange[2] = {100, 1600}; 100 const nsecs_t Sensor::kExposureTimeRange[2] = 102 const nsecs_t Sensor::kFrameDurationRange[2] = 105 const uint8_t Sensor::kColorFilterArrangement = ANDROID_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGGB; 116 const uint32_t Sensor::kMaxRawValue = 4000; 117 const uint32_t Sensor::kBlackLevel = 1000; 120 Sensor::kFrameDurationRange[0 [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/renderers/ |
GLArrowSensorTestRenderer.java | 24 import android.hardware.Sensor; 39 * Renders a wedge to indicate the direction of sensor data. 89 if (mSensorType == Sensor.TYPE_ACCELEROMETER) { 157 public void onAccuracyChanged(Sensor arg0, int arg1) { 166 int type = event.sensor.getType(); 167 if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) { 183 } else if (type == Sensor.TYPE_ROTATION_VECTOR 184 || type == Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR 185 || type == Sensor.TYPE_GAME_ROTATION_VECTOR) [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/ |
EventOrderingVerification.java | 21 import android.hardware.Sensor; 44 * Get the default {@link EventOrderingVerification} for a sensor. 47 * @return the verification or null if the verification does not apply to the sensor. 52 if (reportingMode != Sensor.REPORTING_MODE_CONTINUOUS 53 && reportingMode != Sensor.REPORTING_MODE_ON_CHANGE) {
|
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...] |
FrequencyVerificationTest.java | 19 import android.hardware.Sensor; 76 return new TestSensorEnvironment(getContext(), Sensor.TYPE_ALL, rateUs);
|
EventGapVerification.java | 5 import android.hardware.Sensor; 16 * checking the last received sensor timestamp and checking that it is within 1.8 * the expected 50 * @return the verification or null if the verification is not a continuous mode sensor. 53 if (environment.getSensor().getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) {
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
GyroscopeMeasurementTestActivity.java | 23 import android.hardware.Sensor; 119 Sensor.TYPE_GYROSCOPE, 123 Sensor.TYPE_GYROSCOPE_UNCALIBRATED, 141 * The test takes a set of samples from the sensor under test and calculates the angular 142 * position for each axis that the sensor data collects. It then compares it against the test 157 Sensor.TYPE_GYROSCOPE,
|
StepCounterTestActivity.java | 25 import android.hardware.Sensor; 61 private Sensor mSensorStepCounter; 62 private Sensor mSensorStepDetector; 80 mSensorStepCounter = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER); 81 mSensorStepDetector = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_DETECTOR); 207 // sensor not supported, so no-op 215 String sensorName = counterEvent.sensor.getName(); 243 + TestSensorEnvironment.getSensorMaxDetectionLatencyNs(counterEvent.sensor); 248 counterEvent.sensor.getName()); 272 counterEvent.sensor.getName()) [all...] |
SignificantMotionTestActivity.java | 25 import android.hardware.Sensor; 37 * Test cases for Significant Motion sensor. 57 private Sensor mSensorSignificantMotion; 186 mSensorSignificantMotion = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION); 188 throw new SensorNotSupportedException(Sensor.TYPE_SIGNIFICANT_MOTION); 226 int eventType = event.sensor.getType(); 229 Sensor.TYPE_SIGNIFICANT_MOTION, 231 Assert.assertEquals(eventTypeMessage, Sensor.TYPE_SIGNIFICANT_MOTION, eventType); 233 String sensorName = event.sensor.getName(); 251 + TestSensorEnvironment.getSensorMaxDetectionLatencyNs(event.sensor); [all...] |
AccelerometerMeasurementTestActivity.java | 22 import android.hardware.Sensor; 78 * The test takes a set of samples from the sensor under test and calculates the mean of each 79 * axis that the sensor data collects. It then compares it against the test expectations that 89 * - the sensor type and sensor handle that caused the failure 91 * - the mean of values sampled from the sensor 97 Sensor.TYPE_ACCELEROMETER,
|
GyroscopeTestActivity.java | 25 import android.hardware.Sensor; 36 * Manual test for testing the gyroscope sensor. This test consists of 6 steps for all the 49 private Sensor mSensor; 76 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); 224 public void onAccuracyChanged(Sensor sensor, int accuracy) {
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/ |
WidgetTestActivity.java | 23 import android.hardware.Sensor;
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
SensorTest.java | 21 import android.hardware.Sensor; 33 private Sensor mSensor; 99 Log.e(TAG, "sensorChanged " + event.sensor.getName() + 133 public void onAccuracyChanged(Sensor sensor, int accuracy) { 141 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
|
/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...] |
Android.mk | 30 Sensor.cpp \
|
/frameworks/native/services/sensorservice/ |
SensorInterface.cpp | 31 HardwareSensor::HardwareSensor(const sensor_t& sensor) 33 mSensor(&sensor, mSensorDevice.getHalDeviceVersion()) 68 Sensor HardwareSensor::getSensor() const {
|
OrientationSensor.cpp | 60 outEvent->sensor = '_ypr'; 76 Sensor OrientationSensor::getSensor() const { 78 hwSensor.name = "Orientation Sensor"; 87 Sensor sensor(&hwSensor); 88 return sensor;
|
/device/samsung/manta/bubblelevel/ |
BubbleLevelImpl.h | 22 #include <gui/Sensor.h> 90 Sensor const* mAccelerometer;
|
/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...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
EyePosition.java | 20 import android.hardware.Sensor; 66 private Sensor mSensor; 86 mSensor = sManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); 89 mSensor = sManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 92 Log.w(TAG, "no sensor available"); 185 public void onAccuracyChanged(Sensor sensor, int accuracy) { 190 switch (event.sensor.getType()) { 191 case Sensor.TYPE_GYROSCOPE: { 196 case Sensor.TYPE_ACCELEROMETER: [all...] |
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
DeviceSensorsTest.java | 8 import android.hardware.Sensor; 183 mDeviceSensors.sensorChanged(Sensor.TYPE_LIGHT, values); 197 mDeviceSensors.sensorChanged(Sensor.TYPE_ROTATION_VECTOR, values); 207 mDeviceSensors.sensorChanged(Sensor.TYPE_ACCELEROMETER, values); 217 mDeviceSensors.sensorChanged(Sensor.TYPE_LINEAR_ACCELERATION, values); 227 mDeviceSensors.sensorChanged(Sensor.TYPE_GYROSCOPE, values); 244 mDeviceSensors.sensorChanged(Sensor.TYPE_ROTATION_VECTOR, values); 249 mDeviceSensors.sensorChanged(Sensor.TYPE_ACCELEROMETER, values2);
|
/device/generic/goldfish/camera/ |
EmulatedFakeCamera2.cpp | 54 // Sensor::kResolution[0], Sensor::kResolution[1] 58 Sensor::kFrameDurationRange[0] 63 // Sensor::kResolution[0], Sensor::kResolution[1] 68 // Sensor::kResolution[0], Sensor::kResolution[1] 72 Sensor::kFrameDurationRange[0] 77 // Sensor::kResolution[0], Sensor::kResolution[1 [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/ |
SensorTestCase.java | 19 import android.hardware.Sensor; 35 * By default tests need to run in a {@link TestSensorEnvironment} that assumes each sensor is 41 * Ideally, each {@link Sensor} object would expose this information to clients. 57 // the sensor state is not supported in the device, log a warning and skip the test
|
/developers/build/prebuilts/gradle/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/ |
MainActivity.java | 24 import android.hardware.Sensor; 40 * sensor values. Since on wearable devices a full screen activity is very short-lived, we set the 64 * measured by the Gravity sensor, changes with a variation (delta) > GRAVITY_THRESHOLD, 70 private Sensor mSensor; 93 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); 131 Log.d(TAG, "Successfully registered for the sensor updates"); 141 Log.d(TAG, "Unregistered for sensor events"); 151 public void onAccuracyChanged(Sensor sensor, int accuracy) { 157 * as measured by the Gravity Sensor is +9.8 when the hand is downward and -9.8 when the han [all...] |
/developers/samples/android/wearable/wear/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/ |
MainActivity.java | 24 import android.hardware.Sensor; 40 * sensor values. Since on wearable devices a full screen activity is very short-lived, we set the 64 * measured by the Gravity sensor, changes with a variation (delta) > GRAVITY_THRESHOLD, 70 private Sensor mSensor; 93 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); 131 Log.d(TAG, "Successfully registered for the sensor updates"); 141 Log.d(TAG, "Unregistered for sensor events"); 151 public void onAccuracyChanged(Sensor sensor, int accuracy) { 157 * as measured by the Gravity Sensor is +9.8 when the hand is downward and -9.8 when the han [all...] |