/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
FrequencyVerificationTest.java | 19 import android.hardware.Sensor; 76 return new TestSensorEnvironment(getContext(), Sensor.TYPE_ALL, rateUs);
|
EventBasicVerification.java | 24 import android.hardware.Sensor; 34 * A {@link ISensorVerification} which verifies if the collected sensor events have any obvious 35 * problems, such as no sample, wrong sensor type, etc. 40 // allowed time from registration to sensor start sampling 44 // allowed time for entire sensor system to send sample to test app 64 Sensor sensor) { 66 mSensor = sensor; 89 // The calculation is still OK if sampleUs is not the actual sensor hardware 110 // When the sensor under test is the only one active, max fifo size is assumed to b [all...] |
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...] |
BatchArrivalVerification.java | 8 import android.hardware.Sensor; 20 * checking the last received sensor timestamp and checking that it is within 1.8 * the expected 56 * @return the verification or null if the verification is not a continuous mode sensor. 59 if (environment.getSensor().getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) { 68 // If the device goes into suspend mode during the test and the sensor under test is 69 // a non wake-up sensor, the FIFO will keep overwriting itself and the reportLatency 74 // In this case the sensor under test is either a wake-up sensor OR it 75 // is a non wake-up sensor but the device does not go into suspend.
|
ContinuousEventSanitizedVerification.java | 19 import android.hardware.Sensor; 47 * Get the default {@link ContinuousEventSanitizedVerification} for a sensor. 51 * @return the verification or null if the verification does not apply to the sensor. 56 if (reportingMode == Sensor.REPORTING_MODE_CONTINUOUS) { 85 sb.append(String.format("sensor:%s", event.sensor.getName()));
|
EventGapVerification.java | 5 import android.hardware.Sensor; 16 * checking the last received sensor timestamp and checking that it is within 1.8 * the expected 55 * @return the verification or null if the verification is not a continuous mode sensor. 58 if (environment.getSensor().getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) {
|
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_ONE_SHOT)
|
FifoLengthVerification.java | 21 import android.hardware.Sensor; 59 * @return the verification or null if the verification is not a continuous mode sensor. 63 if (environment.getSensor().getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) { 71 // If the device goes into suspend mode and the sensor is a non wake-up sensor, the 77 // In this case the sensor under test is either a wake-up sensor OR it 78 // is a non wake-up sensor but the device does not go into suspend.
|
/frameworks/native/services/sensorservice/hidl/ |
utils.cpp | 27 using ::android::Sensor; 31 SensorInfo convertSensor(const Sensor& src) { 41 // maxRange uses maxValue because ::android::Sensor wraps the
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
HidRawSensorDevice.cpp | 32 using namespace Hid::Sensor::SensorTypeUsage; 33 using namespace Hid::Sensor::PropertyUsage;
|
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/ |
OrientationSensorExampleActivity.java | 22 import android.hardware.Sensor;
37 // Monitor the phone's orientation sensor and plot the resulting azimuth pitch and roll values.
44 private Sensor orSensor = null;
168 // register for orientation sensor events:
170 for (Sensor sensor : sensorMgr.getSensorList(Sensor.TYPE_ORIENTATION)) {
171 if (sensor.getType() == Sensor.TYPE_ORIENTATION) {
172 orSensor = sensor;
[all...] |
/frameworks/base/services/core/java/com/android/server/policy/ |
WindowOrientationListener.java | 23 import android.hardware.Sensor; 62 private Sensor mSensor; 72 * @param handler Provides the Looper for receiving sensor updates. 82 * @param handler Provides the Looper for receiving sensor updates. 83 * @param rate at which sensor events are processed (see also 94 List<Sensor> l = mSensorManager.getSensorList(Sensor.TYPE_DEVICE_ORIENTATION); 95 Sensor wakeUpDeviceOrientationSensor = null; 96 Sensor nonWakeUpDeviceOrientationSensor = null; 98 * Prefer the wakeup form of the sensor if implemented [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
FalsingManager.java | 21 import android.hardware.Sensor; 44 * When the phone is locked, listens to touch, sensor and phone events and sends them to 53 Sensor.TYPE_PROXIMITY, 57 Sensor.TYPE_ACCELEROMETER, 58 Sensor.TYPE_GYROSCOPE, 59 Sensor.TYPE_PROXIMITY, 60 Sensor.TYPE_LIGHT, 61 Sensor.TYPE_ROTATION_VECTOR, 180 Sensor s = mSensorManager.getDefaultSensor(sensorType); 264 public void onAccuracyChanged(Sensor sensor, int accuracy) [all...] |
/frameworks/native/services/sensorservice/ |
SensorFusion.cpp | 32 Sensor uncalibratedGyro; 42 mAcc = Sensor(list + i); 45 mMag = Sensor(list + i); 48 mGyro = Sensor(list + i); 51 uncalibratedGyro = Sensor(list + i); 55 // Use the uncalibrated gyroscope for sensor fusion when available
|
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...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
EyePosition.java | 20 import android.hardware.Sensor; 65 private Sensor mSensor; 85 mSensor = sManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); 88 mSensor = sManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 91 Log.w(TAG, "no sensor available"); 184 public void onAccuracyChanged(Sensor sensor, int accuracy) { 189 switch (event.sensor.getType()) { 190 case Sensor.TYPE_GYROSCOPE: { 195 case Sensor.TYPE_ACCELEROMETER: [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
DoubleTwistPreferenceControllerTest.java | 26 import android.hardware.Sensor; 75 final List<Sensor> sensorList = new ArrayList<>(); 76 sensorList.add(mock(Sensor.class)); 94 final List<Sensor> sensorList = new ArrayList<>(); 95 sensorList.add(mock(Sensor.class));
|
/frameworks/native/libs/sensor/ |
SensorManager.cpp | 19 #include <sensor/SensorManager.h> 33 #include <sensor/ISensorServer.h> 34 #include <sensor/ISensorEventConnection.h> 35 #include <sensor/Sensor.h> 36 #include <sensor/SensorEventQueue.h> 81 // If we had no package name, we looked it up from the UID and the sensor 88 // Stash the per package sensor manager. 166 static_cast<Sensor const**>(malloc(count * sizeof(Sensor*))); [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...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
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/sensors/sixdof/Activities/ |
StartActivity.java | 26 import android.hardware.Sensor; 60 // If there is no 6DoF sensor advertised, pass trivially. 62 if (sensorManager.getDefaultSensor(Sensor.TYPE_POSE_6DOF) == null) {
|
/device/generic/goldfish/camera/ |
EmulatedFakeCamera3.cpp | 35 #include "fake-pipeline2/Sensor.h" 153 mSensor = new Sensor(mSensorWidth, mSensorHeight); 192 ALOGE("%s: Unable to shut down sensor: %d", __FUNCTION__, res); 473 /** android.sensor */ 882 * Get ready for sensor config 891 exposureTime = (entry.count > 0) ? entry.data.i64[0] : Sensor::kExposureTimeRange[0]; 893 frameDuration = (entry.count > 0)? entry.data.i64[0] : Sensor::kFrameDurationRange[0]; 895 sensitivity = (entry.count > 0) ? entry.data.i32[0] : Sensor::kSensitivityRange[0]; 898 frameDuration = exposureTime + Sensor::kMinVerticalBlank; [all...] |
/cts/tests/sensor/src/android/hardware/cts/ |
SensorTestCase.java | 19 import android.hardware.Sensor; 35 * Previously for L release, we had this flag to know if each sensor is running with multiple 54 // the sensor state is not supported in the device, log a warning and skip the test
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
SuspendStateMonitor.java | 10 import android.hardware.Sensor;
|