/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorTestOperations/ |
VerifyEventOrderingOperation.java | 32 private SensorManagerTestVerifier mSensor; 39 mSensor = new SensorManagerTestVerifier( 48 TestSensorEvent events[] = mSensor.collectEvents(100); 58 mSensor.getUnderlyingSensor(),
|
VerifyNormOperation.java | 34 private SensorManagerTestVerifier mSensor; 45 mSensor = new SensorManagerTestVerifier( 51 mAxisCount = SensorTestInformation.getAxisCount(mSensor.getUnderlyingSensor().getType()); 58 TestSensorEvent event = mSensor.collectEvents(1)[0]; 74 mSensor.getUnderlyingSensor(),
|
VerifyStandardDeviationOperation.java | 37 private SensorManagerTestVerifier mSensor; 47 mSensor = new SensorManagerTestVerifier( 53 mAxisCount = SensorTestInformation.getAxisCount(mSensor.getUnderlyingSensor().getType()); 59 TestSensorEvent events[] = mSensor.collectEvents(100); 74 mSensor.getUnderlyingSensor(),
|
VerifyJitteringOperation.java | 44 protected SensorManagerTestVerifier mSensor; 59 mSensor = new SensorManagerTestVerifier( 74 TestSensorEvent events[] = mSensor.collectEvents(100); 87 mSensor.getUnderlyingSensor(),
|
VerifyMaximumFrequencyOperation.java | 44 protected SensorManagerTestVerifier mSensor; 59 mSensor = new SensorManagerTestVerifier( 74 TestSensorEvent events[] = mSensor.collectEvents(100); 87 mSensor.getUnderlyingSensor(),
|
VerifyMeasurementsOperation.java | 38 private final SensorManagerTestVerifier mSensor; 55 mSensor = new SensorManagerTestVerifier( 68 TestSensorEvent events[] = mSensor.collectEvents(100); 89 mSensor.getUnderlyingSensor(),
|
VerifySignumOperation.java | 35 private final SensorManagerTestVerifier mSensor; 62 mSensor = new SensorManagerTestVerifier( 75 TestSensorEvent events[] = mSensor.collectEvents(100); 103 mSensor.getUnderlyingSensor(),
|
/hardware/invensense/65xx/libsensors_iio/ |
sensors_mpl.cpp | 108 SensorBase *mSensor;
138 mSensor = mplSensor;
139 mPollFds[mpl].fd = mSensor->getFd();
147 mPollFds[dmpOrient].fd = ((MPLSensor*) mSensor)->getDmpOrientFd();
151 mPollFds[dmpSign].fd = ((MPLSensor*) mSensor)->getDmpSignificantMotionFd();
155 mPollFds[dmpPed].fd = ((MPLSensor*) mSensor)->getDmpPedometerFd();
174 delete mSensor;
186 err = mSensor->enable(handle, enabled);
199 return mSensor->setDelay(handle, ns);
209 polltime = ((MPLSensor*) mSensor)->getStepCountPollTime(); [all...] |
/frameworks/native/services/sensorservice/ |
SensorInterface.cpp | 35 mSensor(&sensor, mSensorDevice.getHalDeviceVersion()) 50 return mSensorDevice.activate(ident, mSensor.getHandle(), enabled); 55 return mSensorDevice.batch(ident, mSensor.getHandle(), flags, samplingPeriodNs, 72 return mSensor;
|
SensorInterface.h | 65 Sensor mSensor;
|
/frameworks/base/core/java/android/view/ |
OrientationEventListener.java | 38 private Sensor mSensor; 71 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 72 if (mSensor != null) { 87 if (mSensor == null) { 93 mSensorManager.registerListener(mSensorEventListener, mSensor, mRate); 102 if (mSensor == null) { 156 return mSensor != null;
|
/device/lge/hammerhead/libsensors/ |
sensors.cpp | 138 SensorBase *mSensor[numSensorDrivers]; 179 memset(mSensor, 0, sizeof(mSensor)); 189 mSensor[mpl] = mplSensor; 190 mPollFds[mpl].fd = mSensor[mpl]->getFd(); 194 mSensor[compass] = mplSensor; 199 mSensor[dmpOrient] = mplSensor; 200 mPollFds[dmpOrient].fd = ((MPLSensor*) mSensor[dmpOrient])->getDmpOrientFd(); 204 mSensor[dmpSign] = mplSensor; 205 mPollFds[dmpSign].fd = ((MPLSensor*) mSensor[dmpSign])->getDmpSignificantMotionFd() [all...] |
/hardware/invensense/60xx/libsensors_iio/ |
sensors_mpl.cpp | 101 SensorBase *mSensor;
125 mSensor = mplSensor;
126 mPollFds[mpl].fd = mSensor->getFd();
134 mPollFds[dmpOrient].fd = ((MPLSensor*) mSensor)->getDmpOrientFd();
141 delete mSensor;
146 return mSensor->enable(handle, enabled);
152 return mSensor->setDelay(handle, ns);
171 mSensor->readEvents(NULL, 0);
176 ((MPLSensor*) mSensor)->readCompassEvents(NULL, count);
181 nb = ((MPLSensor*) mSensor)->executeOnData(data, count); [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
MotionSensor.java | 37 private Sensor mSensor = null; 56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); 59 mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI);
|
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/activities/ |
SensorActivity.java | 206 private MonitoredSensor mSensor; 211 mSensor = sensor; 233 if (mSensor != null) { 234 mSensor.onCheckedChanged(isChecked); 241 mSensor = null; 246 if (mChk != null && mSensor != null) { 247 mChk.setEnabled(mSensor.isEnabledByEmulator()); 248 mChk.setChecked(mSensor.isEnabledByUser()); 253 if (mVal != null && mSensor != null) { 254 mVal.setText(mSensor.getValue()) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Compass.java | 34 private Sensor mSensor; 56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION); 67 mSensorManager.registerListener(mListener, mSensor,
|
SensorTest.java | 33 private Sensor mSensor; 141 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 150 mSensorManager.registerListener(mListener, mSensor, SensorManager.SENSOR_DELAY_FASTEST);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
MotionSensorWTime.java | 39 private Sensor mSensor = null; 62 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); 65 mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI);
|
/packages/apps/InCallUI/src/com/android/incallui/ |
AccelerometerListener.java | 39 private Sensor mSensor; 69 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 78 mSensorManager.registerListener(mSensorListener, mSensor,
|
/packages/services/Telephony/src/com/android/phone/ |
AccelerometerListener.java | 39 private Sensor mSensor; 69 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 78 mSensorManager.registerListener(mSensorListener, mSensor,
|
/sdk/testapps/testSensors/src/com/android/tests/testsensors/ |
TestSensorsActivity.java | 45 private final Sensor mSensor; 59 mSensor = sensor; 149 return mSensor.getType(); 158 sm.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI);
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
WindowOrientationListener.java | 55 private Sensor mSensor; 87 mSensor = mSensorManager.getDefaultSensor(USE_GRAVITY_SENSOR 89 if (mSensor != null) { 101 if (mSensor == null) { 110 mSensorManager.registerListener(mSensorEventListener, mSensor, mRate, mHandler); 121 if (mSensor == null) { 168 return mSensor != null; [all...] |
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/handlers/ |
SensorChannel.java | 344 private final Sensor mSensor; 372 mSensor = sensor; 440 if (DEBUG) Loge("Unknown sensor type " + mSensor.getType() + 441 " for sensor " + mSensor.getName()); 509 return mSensor.getType(); 528 mSenMan.registerListener(mListener, mSensor, SensorManager.SENSOR_DELAY_FASTEST); 653 mSensor.getName()));
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
EyePosition.java | 66 private Sensor mSensor; 86 mSensor = sManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); 87 if (mSensor == null) { 89 mSensor = sManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 91 if (mSensor == null) { 205 if (mSensor != null) { 213 if (mSensor != null) { 217 mSensor, SensorManager.SENSOR_DELAY_GAME);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
GyroscopeTestActivity.java | 61 private Sensor mSensor; 87 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); 160 if (!mSensorManager.registerListener(mSensorListener, mSensor, 169 mSensorManager.unregisterListener(mSensorListener, mSensor);
|