Home
last modified time | relevance | path

Searched refs:mSensorManager (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/services/core/java/com/android/server/policy/
DWakeGestureListener.java34 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()
DWindowOrientationListener.java52 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/
DMotionSensor.java36 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/
DBalls.java54 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/
DOrientationEventListener.java35 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/
DMotionSensorWTime.java38 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/
DSimpleModelView.java40 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/
Dsensors_position.jd202 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 …]
Dsensors_motion.jd236 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 …]
Dsensors_overview.jd402 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 …]
Dsensors_environment.jd109 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/
DLegacySensorManager.java38 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/
DAnyMotionDetector.java88 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()
DDeviceIdleController.java113 private SensorManager mSensorManager; field in DeviceIdleController
884mSensorManager = (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/
DWirelessChargerDetector.java101 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/
DGL2CameraEye.java78 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/
DAutomaticBrightnessController.java102 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()
DDisplayPowerController.java128 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);