/frameworks/base/policy/src/com/android/internal/policy/impl/ |
WakeGestureListener.java | 40 private Sensor mSensor; 46 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_WAKE_GESTURE); 53 return mSensor != null; 59 if (mSensor != null && !mTriggerRequested) { 61 mSensorManager.requestTriggerSensor(mListener, mSensor); 68 if (mSensor != null && mTriggerRequested) { 70 mSensorManager.cancelTriggerSensor(mListener, mSensor); 80 pw.println(prefix + "mSensor=" + mSensor);
|
/hardware/invensense/6515/libsensors_iio/ |
sensors_mpl.cpp | 122 SensorBase *mSensor; 148 mSensor = mplSensor; 149 mPollFds[mpl].fd = mSensor->getFd(); 157 mPollFds[dmpOrient].fd = ((MPLSensor*) mSensor)->getDmpOrientFd(); 161 mPollFds[dmpSign].fd = ((MPLSensor*) mSensor)->getDmpSignificantMotionFd(); 165 mPollFds[dmpPed].fd = ((MPLSensor*) mSensor)->getDmpPedometerFd(); 172 delete mSensor; 183 err = mSensor->enable(handle, enabled); 190 return mSensor->setDelay(handle, ns); 218 polltime = ((MPLSensor*) mSensor)->getStepCountPollTime() [all...] |
/hardware/invensense/65xx/libsensors_iio/ |
sensors_mpl.cpp | 109 SensorBase *mSensor; 139 mSensor = mplSensor; 140 mPollFds[mpl].fd = mSensor->getFd(); 148 mPollFds[dmpOrient].fd = ((MPLSensor*) mSensor)->getDmpOrientFd(); 152 mPollFds[dmpSign].fd = ((MPLSensor*) mSensor)->getDmpSignificantMotionFd(); 156 mPollFds[dmpPed].fd = ((MPLSensor*) mSensor)->getDmpPedometerFd(); 175 delete mSensor; 187 err = mSensor->enable(handle, enabled); 200 return mSensor->setDelay(handle, ns); 210 polltime = ((MPLSensor*) mSensor)->getStepCountPollTime() [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...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
RotationVectorTestActivity.java | 72 private final Sensor[] mSensor = new Sensor[3]; 80 if (mSensor[ROTATION_VECTOR_INDEX] == null 81 && mSensor[GEOMAGNETIC_ROTATION_VECTOR_INDEX] == null 82 && mSensor[GAME_ROTATION_VECTOR_INDEX] == null) { 126 Sensor sensor = mSensor[sensorIndex]; 168 mSensor[ROTATION_VECTOR_INDEX] = 170 mSensor[GEOMAGNETIC_ROTATION_VECTOR_INDEX] = 172 mSensor[GAME_ROTATION_VECTOR_INDEX] = 198 Sensor sensor = mSensor[i]; 208 mSensorManager.registerListener(this, mSensor[i], SensorManager.SENSOR_DELAY_GAME) [all...] |
HeartRateMonitorTestActivity.java | 38 private Sensor mSensor; 54 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE); 61 if (!mSensorManager.registerListener(mSensorListener, mSensor, 71 mSensorManager.unregisterListener(mSensorListener, mSensor);
|
GyroscopeTestActivity.java | 49 private Sensor mSensor; 76 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); 150 if (!mSensorManager.registerListener(mSensorListener, mSensor, 159 mSensorManager.unregisterListener(mSensorListener, mSensor);
|
/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...] |
/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;
|
/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);
|
/frameworks/native/services/sensorservice/ |
SensorInterface.cpp | 33 mSensor(&sensor, mSensorDevice.getHalDeviceVersion()) 47 return mSensorDevice.activate(ident, mSensor.getHandle(), enabled); 52 return mSensorDevice.batch(ident, mSensor.getHandle(), flags, samplingPeriodNs, 69 return mSensor;
|
/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);
|
/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...] |
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
TestSensorEnvironment.java | 32 private final Sensor mSensor; 128 mSensor = sensor; 145 return mSensor; 191 int sensorMaxDelay = mSensor.getMaxDelay(); 196 return Math.max(expectedSamplingPeriodUs, mSensor.getMinDelay()); 203 switch (mSensor.getType()) { 208 + mSensor.getStringType());
|
/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);
|
/frameworks/base/docs/html/guide/topics/sensors/ |
sensors_motion.jd | 237 private Sensor mSensor; 240 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 327 private Sensor mSensor; 330 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); 346 private Sensor mSensor; 349 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); 442 private Sensor mSensor; 445 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE_UNCALIBRATED); 456 private Sensor mSensor; 459 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION) [all...] |
sensors_position.jd | 203 private Sensor mSensor; 206 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GAME_ROTATION_VECTOR); 224 private Sensor mSensor; 227 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR); 239 private Sensor mSensor; 242 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION); 340 private Sensor mSensor; 343 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD); 378 private Sensor mSensor; 381 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
DozeService.java | 424 private final Sensor mSensor; 433 mSensor = mSensors.getDefaultSensor(type); 451 if (!mConfigured || mSensor == null) return; 453 mRegistered = mSensors.requestTriggerSensor(this, mSensor); 455 mSensors.cancelTriggerSensor(this, mSensor); 467 .append(", mSensor=").append(mSensor).append("}").toString(); 499 if (mSensor.getType() == Sensor.TYPE_PICK_UP_GESTURE) {
|
/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);
|
/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,
|
/developers/samples/android/wearable/wear/JumpingJack/Wearable/src/main/java/com/example/android/jumpingjack/ |
MainActivity.java | 70 private Sensor mSensor; 93 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); 128 if (mSensorManager.registerListener(this, mSensor,
|
/development/samples/wearable/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/ |
MainActivity.java | 70 private Sensor mSensor; 93 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); 128 if (mSensorManager.registerListener(this, mSensor,
|