Home
last modified time | relevance | path

Searched refs:mSensorManager (Results 1 – 20 of 20) 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.java54 private SensorManager mSensorManager; field in WindowOrientationListener
88 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in WindowOrientationListener()
90 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_DEVICE_ORIENTATION); in WindowOrientationListener()
97 mSensor = mSensorManager.getDefaultSensor(USE_GRAVITY_SENSOR in WindowOrientationListener()
121 mSensorManager.registerListener(mOrientationJudge, mSensor, mRate, mHandler); in enable()
140 mSensorManager.unregisterListener(mOrientationJudge); 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/services/core/java/com/android/server/
DSensorNotificationService.java39 private SensorManager mSensorManager; field in SensorNotificationService
54 mSensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE); in onBootPhase()
55 mMetaSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_DYNAMIC_SENSOR_META); in onBootPhase()
59 mSensorManager.registerListener(this, mMetaSensor, in onBootPhase()
DAnyMotionDetector.java85 private SensorManager mSensorManager; field in AnyMotionDetector
115 mSensorManager = sm; in AnyMotionDetector()
116 mAccelSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in AnyMotionDetector()
156 mSensorManager.unregisterListener(mListener); in stop()
171 if (mSensorManager.registerListener(mListener, mAccelSensor, in startOrientationMeasurementLocked()
187 mSensorManager.unregisterListener(mListener); in stopOrientationMeasurementLocked()
DDeviceIdleController.java123 private SensorManager mSensorManager; field in DeviceIdleController
428 mSensorManager.unregisterListener(this, mMotionSensor); in onSensorChanged()
440 success = mSensorManager.requestTriggerSensor(mMotionListener, mMotionSensor); in registerLocked()
442 success = mSensorManager.registerListener( in registerLocked()
455 mSensorManager.cancelTriggerSensor(mMotionListener, mMotionSensor); in unregisterLocked()
457 mSensorManager.unregisterListener(mMotionListener); in unregisterLocked()
1367mSensorManager = (SensorManager) getContext().getSystemService(Context.SENSOR_SERVICE); in onBootPhase()
1371 mMotionSensor = mSensorManager.getDefaultSensor(sigMotionSensorId, true); in onBootPhase()
1375 mMotionSensor = mSensorManager.getDefaultSensor( in onBootPhase()
1380 mMotionSensor = mSensorManager.getDefaultSensor( in onBootPhase()
[all …]
/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);
470 if (mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY) != null){
471 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/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/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingManager.java61 private final SensorManager mSensorManager; field in FalsingManager
83 mSensorManager = mContext.getSystemService(SensorManager.class); in FalsingManager()
131 mSensorManager.unregisterListener(this); in sessionExitpoint()
152 Sensor s = mSensorManager.getDefaultSensor(sensorType); in registerSensors()
154 mSensorManager.registerListener(this, s, SensorManager.SENSOR_DELAY_GAME); in registerSensors()
/frameworks/native/libs/gui/
DSensorManager.cpp136 SensorManager& mSensorManager; in assertStateLocked() member in android::SensorManager::assertStateLocked::DeathObserver
139 mSensorManager.sensorManagerDied(); in assertStateLocked()
142 DeathObserver(SensorManager& mgr) : mSensorManager(mgr) { } in assertStateLocked()
/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.java77 private final SensorManager mSensorManager; field in AutomaticBrightnessController
195 mSensorManager = sensorManager; in AutomaticBrightnessController()
216 mLightSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in AutomaticBrightnessController()
296 mSensorManager.registerListener(mLightSensorListener, mLightSensor, in setLightSensorEnabled()
308 mSensorManager.unregisterListener(mLightSensorListener); in setLightSensorEnabled()
DDisplayPowerController.java127 private final SensorManager mSensorManager; field in DisplayPowerController
267 mSensorManager = sensorManager; in DisplayPowerController()
372 mProximitySensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY); in DisplayPowerController()
964 mSensorManager.registerListener(mProximitySensorListener, mProximitySensor,
975 mSensorManager.unregisterListener(mProximitySensorListener);