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.java55 private SensorManager mSensorManager; field in WindowOrientationListener
89 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in WindowOrientationListener()
91 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_DEVICE_ORIENTATION); in WindowOrientationListener()
98 mSensor = mSensorManager.getDefaultSensor(USE_GRAVITY_SENSOR in WindowOrientationListener()
137 mSensorManager.registerListener( in enable()
140 mSensorManager.registerListener(mOrientationJudge, mSensor, mRate, mHandler); in enable()
159 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/tests/java_api/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/packages/SystemUI/src/com/android/systemui/doze/
DDozeSensors.java54 private final SensorManager mSensorManager; field in DozeSensors
72 mSensorManager = sensorManager; in DozeSensors()
81 mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION), in DozeSensors()
86 mSensorManager.getDefaultSensor(Sensor.TYPE_PICK_UP_GESTURE), in DozeSensors()
105 List<Sensor> sensorList = mSensorManager.getSensorList(Sensor.TYPE_ALL); in findSensorWithType()
184 mRegistered = mSensorManager.registerListener(this, in setRegistered()
185 mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY), in setRegistered()
188 mSensorManager.unregisterListener(this); in setRegistered()
237 mRegistered = mSensorManager.requestTriggerSensor(this, mSensor); in updateListener()
240 final boolean rt = mSensorManager.cancelTriggerSensor(this, mSensor); in updateListener()
DDozeTriggers.java60 private final SensorManager mSensorManager; field in DozeTriggers
80 mSensorManager = sensorManager; in DozeTriggers()
84 mDozeSensors = new DozeSensors(context, mSensorManager, dozeParameters, config, in DozeTriggers()
258 final Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY);
267 mSensorManager.registerListener(this, sensor, SensorManager.SENSOR_DELAY_NORMAL, 0,
299 mSensorManager.unregisterListener(this);
/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.java56 private SensorManager mSensorManager; field in SensorNotificationService
74 mSensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE); in onBootPhase()
75 mMetaSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_DYNAMIC_SENSOR_META); in onBootPhase()
79 mSensorManager.registerListener(this, mMetaSensor, in onBootPhase()
152 mSensorManager.setOperationParameter(info); in onLocationChanged()
DAnyMotionDetector.java88 private SensorManager mSensorManager; field in AnyMotionDetector
127 mSensorManager = sm; in AnyMotionDetector()
128 mAccelSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in AnyMotionDetector()
179 mSensorManager.unregisterListener(mListener); in stop()
195 if (mSensorManager.registerListener(mListener, mAccelSensor, in startOrientationMeasurementLocked()
213 mSensorManager.unregisterListener(mListener); in stopOrientationMeasurementLocked()
DDeviceIdleController.java126 private SensorManager mSensorManager; field in DeviceIdleController
440 mSensorManager.unregisterListener(this, mMotionSensor); in onSensorChanged()
452 success = mSensorManager.requestTriggerSensor(mMotionListener, mMotionSensor); in registerLocked()
454 success = mSensorManager.registerListener( in registerLocked()
467 mSensorManager.cancelTriggerSensor(mMotionListener, mMotionSensor); in unregisterLocked()
469 mSensorManager.unregisterListener(mMotionListener); in unregisterLocked()
1416mSensorManager = (SensorManager) getContext().getSystemService(Context.SENSOR_SERVICE); in onBootPhase()
1420 mMotionSensor = mSensorManager.getDefaultSensor(sigMotionSensorId, true); in onBootPhase()
1424 mMotionSensor = mSensorManager.getDefaultSensor( in onBootPhase()
1429 mMotionSensor = mSensorManager.getDefaultSensor( in onBootPhase()
[all …]
/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java40 private final SensorManager mSensorManager; field in LegacySensorManager
47 mSensorManager = sensorManager; in LegacySensorManager()
72 final List<Sensor> fullList = mSensorManager.getFullSensorList(); in getSensors()
114 Sensor sensor = mSensorManager.getDefaultSensor(type); in registerLegacyListener()
135 result = mSensorManager.registerListener(legacyListener, sensor, rate); in registerLegacyListener()
166 Sensor sensor = mSensorManager.getDefaultSensor(type); in unregisterLegacyListener()
180 mSensorManager.unregisterListener(legacyListener, sensor); in unregisterLegacyListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingManager.java66 private final SensorManager mSensorManager; field in FalsingManager
90 mSensorManager = mContext.getSystemService(SensorManager.class); in FalsingManager()
142 mSensorManager.unregisterListener(this); in sessionExitpoint()
165 Sensor s = mSensorManager.getDefaultSensor(sensorType); in registerSensors()
170 mSensorManager.registerListener(this, s, SensorManager.SENSOR_DELAY_GAME); in registerSensors()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java66 private final SensorManager mSensorManager; field in AutomaticBrightnessController
188 mSensorManager = sensorManager; in AutomaticBrightnessController()
212 mLightSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in AutomaticBrightnessController()
280 mSensorManager.registerListener(mLightSensorListener, mLightSensor, in setLightSensorEnabled()
293 mSensorManager.unregisterListener(mLightSensorListener); in setLightSensorEnabled()
333 mSensorManager.unregisterListener(mLightSensorListener); in adjustLightSensorRate()
334 mSensorManager.registerListener(mLightSensorListener, mLightSensor, in adjustLightSensorRate()
DDisplayPowerController.java132 private final SensorManager mSensorManager; field in DisplayPowerController
287 mSensorManager = sensorManager; in DisplayPowerController()
414 mProximitySensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY); in DisplayPowerController()
1097 mSensorManager.registerListener(mProximitySensorListener, mProximitySensor,
1108 mSensorManager.unregisterListener(mProximitySensorListener);
/frameworks/base/services/core/java/com/android/server/power/
DWirelessChargerDetector.java103 private final SensorManager mSensorManager; field in WirelessChargerDetector
147 mSensorManager = sensorManager; in WirelessChargerDetector()
265 if (mSensorManager.registerListener(mListener, mGravitySensor, in startDetectionLocked()
282 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/native/libs/sensor/
DSensorManager.cpp150 SensorManager& mSensorManager; in assertStateLocked() member in android::SensorManager::assertStateLocked::DeathObserver
153 mSensorManager.sensorManagerDied(); in assertStateLocked()
156 explicit DeathObserver(SensorManager& mgr) : mSensorManager(mgr) { } in assertStateLocked()