/frameworks/base/services/core/java/com/android/server/policy/ |
D | WakeGestureListener.java | 34 private final SensorManager mSensorManager; field in WakeGestureListener 43 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in WakeGestureListener() 46 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_WAKE_GESTURE); in WakeGestureListener() 61 mSensorManager.requestTriggerSensor(mListener, mSensor); in requestWakeUpTrigger() 70 mSensorManager.cancelTriggerSensor(mListener, mSensor); in cancelWakeUpTrigger()
|
D | WindowOrientationListener.java | 52 private SensorManager mSensorManager; field in WindowOrientationListener 85 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in WindowOrientationListener() 87 mSensor = mSensorManager.getDefaultSensor(USE_GRAVITY_SENSOR in WindowOrientationListener() 110 mSensorManager.registerListener(mSensorEventListener, mSensor, mRate, mHandler); in enable() 129 mSensorManager.unregisterListener(mSensorEventListener); in disable()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | MotionSensor.java | 36 private SensorManager mSensorManager = null; field in MotionSensor 54 mSensorManager = (SensorManager)getContext().getApplicationContext() in onPrepare() 56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); in onPrepare() 59 mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI); in onPrepare() 64 mSensorManager.unregisterListener(this); in onTearDown()
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
D | Balls.java | 54 private SensorManager mSensorManager; field in Balls 77 mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE); in onCreate() 87 mSensorManager.registerListener(this, in onResume() 88 mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), in onResume() 106 mSensorManager.unregisterListener(this); in onStop()
|
/frameworks/base/core/java/android/view/ |
D | OrientationEventListener.java | 35 private SensorManager mSensorManager; field in OrientationEventListener 69 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in OrientationEventListener() 71 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in OrientationEventListener() 93 mSensorManager.registerListener(mSensorEventListener, mSensor, mRate); in enable() 108 mSensorManager.unregisterListener(mSensorEventListener); in disable()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | MotionSensorWTime.java | 38 private SensorManager mSensorManager = null; field in MotionSensorWTime 60 mSensorManager = (SensorManager)getContext().getApplicationContext() in onPrepare() 62 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); in onPrepare() 65 mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI); in onPrepare() 70 mSensorManager.unregisterListener(this); in onTearDown()
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
D | SimpleModelView.java | 40 private SensorManager mSensorManager; field in SimpleModelView 54 mSensorManager = (SensorManager)getContext().getSystemService(Context.SENSOR_SERVICE); in SimpleModelView() 56 mRotationVectorSensor = mSensorManager.getDefaultSensor( in SimpleModelView() 73 mSensorManager.registerListener(this, mRotationVectorSensor, 10000); in resume() 78 mSensorManager.unregisterListener(this); in pause()
|
/frameworks/base/docs/html/guide/topics/sensors/ |
D | sensors_position.jd | 202 private SensorManager mSensorManager; 205 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 206 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GAME_ROTATION_VECTOR); 223 private SensorManager mSensorManager; 226 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 227 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR); 238 private SensorManager mSensorManager; 241 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 242 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION); 286 private SensorManager mSensorManager; [all …]
|
D | sensors_motion.jd | 236 private SensorManager mSensorManager; 239 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 240 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 326 private SensorManager mSensorManager; 329 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 330 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); 345 private SensorManager mSensorManager; 348 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 349 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); 441 private SensorManager mSensorManager; [all …]
|
D | sensors_overview.jd | 402 private SensorManager mSensorManager; 404 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 411 List<Sensor> deviceSensors = mSensorManager.getSensorList(Sensor.TYPE_ALL); 427 private SensorManager mSensorManager; 429 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 430 if (mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD) != null){ 462 private SensorManager mSensorManager; 467 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 469 if (mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY) != null){ 470 List<Sensor> gravSensors = mSensorManager.getSensorList(Sensor.TYPE_GRAVITY); [all …]
|
D | sensors_environment.jd | 109 private SensorManager mSensorManager; 119 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 120 mPressure = mSensorManager.getDefaultSensor(Sensor.TYPE_PRESSURE); 138 mSensorManager.registerListener(this, mPressure, SensorManager.SENSOR_DELAY_NORMAL); 145 mSensorManager.unregisterListener(this);
|
/frameworks/base/core/java/android/hardware/ |
D | LegacySensorManager.java | 38 private final SensorManager mSensorManager; field in LegacySensorManager 45 mSensorManager = sensorManager; in LegacySensorManager() 71 final List<Sensor> fullList = mSensorManager.getFullSensorList(); in getSensors() 113 Sensor sensor = mSensorManager.getDefaultSensor(type); in registerLegacyListener() 134 result = mSensorManager.registerListener(legacyListener, sensor, rate); in registerLegacyListener() 165 Sensor sensor = mSensorManager.getDefaultSensor(type); in unregisterLegacyListener() 179 mSensorManager.unregisterListener(legacyListener, sensor); in unregisterLegacyListener()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AnyMotionDetector.java | 88 private SensorManager mSensorManager; field in AnyMotionDetector 114 mSensorManager = sm; in AnyMotionDetector() 115 mAccelSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in AnyMotionDetector() 145 mSensorManager.unregisterListener(mListener); in stop() 160 if (mSensorManager.registerListener(mListener, mAccelSensor, in startOrientationMeasurement() 178 mSensorManager.unregisterListener(mListener); in stopOrientationMeasurementLocked()
|
D | DeviceIdleController.java | 113 private SensorManager mSensorManager; field in DeviceIdleController 884 … mSensorManager = (SensorManager) getContext().getSystemService(Context.SENSOR_SERVICE); in onBootPhase() 885 mSigMotionSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION); in onBootPhase() 895 mHandler, mSensorManager, this); in onBootPhase() 1377 mSensorManager.requestTriggerSensor(mSigMotionListener, mSigMotionSensor); in startMonitoringSignificantMotion() 1385 mSensorManager.cancelTriggerSensor(mSigMotionListener, mSigMotionSensor); in stopMonitoringSignificantMotion()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | WirelessChargerDetector.java | 101 private final SensorManager mSensorManager; field in WirelessChargerDetector 145 mSensorManager = sensorManager; in WirelessChargerDetector() 225 if (mSensorManager.registerListener(mListener, mGravitySensor, in startDetectionLocked() 242 mSensorManager.unregisterListener(mListener); in finishDetectionLocked()
|
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/ |
D | GL2CameraEye.java | 78 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in CamGLSurfaceView() 79 mAcceleration = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); in CamGLSurfaceView() 97 mSensorManager.unregisterListener(this); in onPause() 112 mSensorManager.registerListener(this, mAcceleration, SensorManager.SENSOR_DELAY_GAME); in onResume() 133 SensorManager mSensorManager; field in CamGLSurfaceView
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | AutomaticBrightnessController.java | 102 private final SensorManager mSensorManager; field in AutomaticBrightnessController 203 mSensorManager = sensorManager; in AutomaticBrightnessController() 218 mLightSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in AutomaticBrightnessController() 286 mSensorManager.registerListener(mLightSensorListener, mLightSensor, in setLightSensorEnabled() 297 mSensorManager.unregisterListener(mLightSensorListener); in setLightSensorEnabled()
|
D | DisplayPowerController.java | 128 private final SensorManager mSensorManager; field in DisplayPowerController 265 mSensorManager = sensorManager; in DisplayPowerController() 361 mProximitySensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY); in DisplayPowerController() 941 mSensorManager.registerListener(mProximitySensorListener, mProximitySensor, 952 mSensorManager.unregisterListener(mProximitySensorListener);
|