Home
last modified time | relevance | path

Searched refs:mSensor (Results 1 – 25 of 25) sorted by relevance

/frameworks/base/services/core/java/com/android/server/policy/
DWakeGestureListener.java40 private Sensor mSensor; field in WakeGestureListener
46 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_WAKE_GESTURE); in WakeGestureListener()
53 return mSensor != null; in isSupported()
59 if (mSensor != null && !mTriggerRequested) { in requestWakeUpTrigger()
61 mSensorManager.requestTriggerSensor(mListener, mSensor); in requestWakeUpTrigger()
68 if (mSensor != null && mTriggerRequested) { in cancelWakeUpTrigger()
70 mSensorManager.cancelTriggerSensor(mListener, mSensor); in cancelWakeUpTrigger()
80 pw.println(prefix + "mSensor=" + mSensor); in dump()
DDeviceStateProviderImpl.java404 private final Sensor mSensor; field in DeviceStateProviderImpl.SensorBooleanSupplier
409 mSensor = sensor; in SensorBooleanSupplier()
416 SensorEvent latestEvent = mLatestSensorEvent.get(mSensor); in getAsBoolean()
424 + mSensor); in getAsBoolean()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
DAsyncSensorManagerTest.java47 private FakeSensorManager.FakeProximitySensor mSensor; field in AsyncSensorManagerTest
57 mSensor = fakeSensorManager.getFakeProximitySensor(); in setUp()
63 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in registerListenerImpl()
68 mSensor.sendProximityResult(true); in registerListenerImpl()
74 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in unregisterListenerImpl_withNullSensor()
80 mSensor.sendProximityResult(true); in unregisterListenerImpl_withNullSensor()
86 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in unregisterListenerImpl_withSensor()
87 mAsyncSensorManager.unregisterListener(mListener, mSensor.getSensor()); in unregisterListenerImpl_withSensor()
92 mSensor.sendProximityResult(true); in unregisterListenerImpl_withSensor()
DFakeSensorManager.java104 .map(i -> i.mSensor) in getFullSensorList()
117 if (sensor == null || s.mSensor == sensor) { in unregisterListenerImpl()
130 if (s.mSensor == sensor) { in registerListenerImpl()
251 private final Sensor mSensor; field in FakeSensorManager.FakeGenericSensor
256 this.mSensor = sensor; in FakeGenericSensor()
260 return mSensor; in getSensor()
281 event.sensor = mSensor; in createSensorEvent()
/frameworks/native/services/sensorservice/
DSensorInterface.cpp35 mSensor(&sensor, mSensorDevice.getHalDeviceVersion()) { in BaseSensor()
40 mSensor(sensor, Sensor::uuid_t(uuid), mSensorDevice.getHalDeviceVersion()) { in BaseSensor()
63 return mSensorDevice.activate(ident, mSensor.getHandle(), enabled); in activate()
68 return mSensorDevice.batch(ident, mSensor.getHandle(), flags, samplingPeriodNs, in batch()
95 bool lastState = mSensorDevice.isSensorActive(mSensor.getHandle()); in activate()
102 bool currentState = mSensorDevice.isSensorActive(mSensor.getHandle()); in activate()
110 if (mSensorDevice.isSensorActive(mSensor.getHandle())) { in willDisableAllSensors()
116 if (mSensorDevice.isSensorActive(mSensor.getHandle())) { in didEnableAllSensors()
DRotationVectorSensor.cpp43 mSensor = Sensor(&sensor); in RotationVectorSensor()
129 mSensor = Sensor(&sensor); in GyroDriftSensor()
DSensorInterface.h70 virtual const Sensor& getSensor() const override { return mSensor; } in getSensor()
77 Sensor mSensor; variable
DGravitySensor.cpp51 mSensor = Sensor(&sensor); in GravitySensor()
DCorrectedGyroSensor.cpp52 mSensor = Sensor(&sensor); in CorrectedGyroSensor()
DOrientationSensor.cpp44 mSensor = Sensor(&sensor); in OrientationSensor()
DLinearAccelerationSensor.cpp46 mSensor = Sensor(&sensor); in LinearAccelerationSensor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/television/
DTvUnblockSensorActivity.java46 private int mSensor = -1; field in TvUnblockSensorActivity
64 mSensor = ALL_SENSORS; in onCreate()
66 mSensor = getIntent().getIntExtra(SensorPrivacyManager.EXTRA_SENSOR, -1); in onCreate()
69 if (mSensor == -1) { in onCreate()
76 if (mSensor == ALL_SENSORS) { in onCreate()
81 } else if (this.mSensor == sensor && !blocked) { in onCreate()
98 switch (mSensor) { in initUI()
122 if (mSensor == ALL_SENSORS) { in initUI()
126 mSensorPrivacyController.setSensorBlocked(OTHER, mSensor, false); in initUI()
/frameworks/base/core/java/android/view/
DOrientationEventListener.java38 private Sensor mSensor; field in OrientationEventListener
71 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in OrientationEventListener()
72 if (mSensor != null) { in OrientationEventListener()
87 if (mSensor == null) { in enable()
93 mSensorManager.registerListener(mSensorEventListener, mSensor, mRate); in enable()
102 if (mSensor == null) { in disable()
156 return mSensor != null; in canDetectOrientation()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeScreenBrightnessTest.java76 private FakeSensorManager.FakeGenericSensor mSensor; field in DozeScreenBrightnessTest
109 mSensor = fakeSensorManager.getFakeLightSensor(); in setUp()
111 Optional.of(mSensor.getSensor()), mDozeHost, null /* handler */, in setUp()
130 mSensor.sendSensorEvent(3); in testAod_usesLightSensor()
143 mSensor.sendSensorEvent(3); in testAod_usesDebugValue()
166 mSensor.sendSensorEvent(1); in testPausingAod_doesNotResetBrightness()
198 mSensor.sendSensorEvent(1); in testScreenOffAfterPulsing_pausesLightSensor()
210 mSensor.sendSensorEvent(1); in testOnScreenStateSetBeforeTransition_stillRegistersSensor()
237 mSensor.sendSensorEvent(1); in testNoBrightnessDeliveredAfterFinish()
249 mSensor.sendSensorEvent(1); in testNonPositiveBrightness_keepsPreviousBrightnessAndScrim()
[all …]
/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DAmbientSensor.java49 protected Sensor mSensor; field in AmbientSensor
134 writer.println(" mSensor=" + mSensor); in dump()
181 mSensorManager.registerListener(mListener, mSensor, mRate * 1000, mHandler); in startListening()
252 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in AmbientBrightnessSensor()
253 if (mSensor == null) { in AmbientBrightnessSensor()
331 mSensor = null; in AmbientColorTemperatureSensor()
334 mSensor = sensor; in AmbientColorTemperatureSensor()
338 if (mSensor == null) { in AmbientColorTemperatureSensor()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/
DBiometricTestSessionImpl.java56 @NonNull private final Sensor mSensor; field in BiometricTestSessionImpl
128 mSensor = sensor; in BiometricTestSessionImpl()
138 mSensor.setTestHalEnabled(enabled); in setTestHalEnabled()
160 mSensor.getSessionForUser(userId).mHalSessionCallback in finishEnroll()
176 mSensor.getSessionForUser(userId).mHalSessionCallback.onAuthenticationSucceeded(fid, in acceptAuthentication()
184 mSensor.getSessionForUser(userId).mHalSessionCallback.onAuthenticationFailed(); in rejectAuthentication()
191 mSensor.getSessionForUser(userId).mHalSessionCallback in notifyAcquired()
199 mSensor.getSessionForUser(userId).mHalSessionCallback.onError((byte) errorCode, in notifyError()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/
DBiometricTestSessionImpl.java57 @NonNull private final Sensor mSensor; field in BiometricTestSessionImpl
135 mSensor = sensor; in BiometricTestSessionImpl()
145 mSensor.setTestHalEnabled(enabled); in setTestHalEnabled()
167 mSensor.getSessionForUser(userId).mHalSessionCallback in finishEnroll()
183 mSensor.getSessionForUser(userId).mHalSessionCallback.onAuthenticationSucceeded(fid, in acceptAuthentication()
191 mSensor.getSessionForUser(userId).mHalSessionCallback.onAuthenticationFailed(); in rejectAuthentication()
207 mSensor.getSessionForUser(userId).mHalSessionCallback.onAuthenticationFrame( in notifyAcquired()
215 mSensor.getSessionForUser(userId).mHalSessionCallback.onError((byte) errorCode, in notifyError()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
DThresholdSensorImpl.java41 private final Sensor mSensor; field in ThresholdSensorImpl
69 mSensor = sensor; in ThresholdSensorImpl()
95 return mSensor != null; in isLoaded()
158 mSensorManager.registerListener(mSensorEventListener, mSensor, mSensorDelay); in registerInternal()
205 isLoaded(), mRegistered, mPaused, mThreshold, mSensor); in toString()
221 private Sensor mSensor; field in ThresholdSensorImpl.Builder
292 mSensor = sensor; in setSensor()
315 mSensorManager, mSensor, mExecution, in build()
DProximitySensor.java335 private final ProximitySensor mSensor; field in ProximitySensor.ProximityCheck
343 mSensor = sensor; in ProximityCheck()
344 mSensor.setTag("prox_check"); in ProximityCheck()
351 mSensor.setTag(tag); in setTag()
364 if (!mSensor.isLoaded()) { in check()
370 mSensor.register(mListener); in check()
376 mSensor.unregister(mListener); in unregister()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DSensorManagerPlugin.java80 Sensor mSensor; field in SensorManagerPlugin.SensorEvent
102 mSensor = sensor; in SensorEvent()
108 return mSensor; in getSensor()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowOrientationListener.java78 private Sensor mSensor; field in WindowOrientationListener
138 mSensor = wakeUpDeviceOrientationSensor; in WindowOrientationListener()
140 mSensor = nonWakeUpDeviceOrientationSensor; in WindowOrientationListener()
143 if (mSensor != null) { in WindowOrientationListener()
148 mSensor = mSensorManager.getDefaultSensor(USE_GRAVITY_SENSOR in WindowOrientationListener()
150 if (mSensor != null) { in WindowOrientationListener()
174 if (mSensor == null) { in enable()
186 if (mSensor.getType() == Sensor.TYPE_ACCELEROMETER) { in enable()
188 mOrientationJudge, mSensor, mRate, DEFAULT_BATCH_LATENCY, mHandler); in enable()
190 mSensorManager.registerListener(mOrientationJudge, mSensor, mRate, mHandler); in enable()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DMotionSensor.java37 private Sensor mSensor = null; field in MotionSensor
56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); in onPrepare()
59 mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI); in onPrepare()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DMotionSensorWTime.java39 private Sensor mSensor = null; field in MotionSensorWTime
62 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); in onPrepare()
65 mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI); in onPrepare()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeSensors.java394 final Sensor mSensor; field in DozeSensors.TriggerSensor
427 mSensor = sensor; in TriggerSensor()
458 if (!mConfigured || mSensor == null) return; in updateListening()
461 mRegistered = mSensorManager.requestTriggerSensor(this, mSensor); in updateListening()
464 final boolean rt = mSensorManager.cancelTriggerSensor(this, mSensor); in updateListening()
487 .append(", mSensor=").append(mSensor).append("}").toString(); in toString()
496 if (mSensor != null && mSensor.getType() == Sensor.TYPE_PICK_UP_GESTURE) { in onTrigger()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt64890 Landroid/view/OrientationEventListener;->mSensor:Landroid/hardware/Sensor;