/frameworks/base/services/core/java/com/android/server/policy/ |
D | WakeGestureListener.java | 40 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/ |
D | ProximityCheck.java | 34 private final ProximitySensor mSensor; field in ProximityCheck 44 mSensor = sensor; in ProximityCheck() 45 mSensor.setTag("prox_check"); in ProximityCheck() 52 mSensor.setTag(tag); in setTag() 65 if (!mSensor.isLoaded()) { in check() 71 mSensor.register(mListener); in check() 80 mSensor.destroy(); in destroy() 84 mSensor.unregister(mListener); in unregister()
|
D | ThresholdSensorImpl.java | 45 private final Sensor mSensor; field in ThresholdSensorImpl 73 mSensor = sensor; in ThresholdSensorImpl() 99 return mSensor != null; in isLoaded() 162 mSensorManager.registerListener(mSensorEventListener, mSensor, mSensorDelay); in registerInternal() 207 return mSensor != null ? mSensor.getName() : null; in getName() 212 return mSensor != null ? mSensor.getStringType() : null; in getType() 218 isLoaded(), mRegistered, mPaused, mThreshold, mSensor); in toString() 239 private Sensor mSensor; field in ThresholdSensorImpl.Builder 310 mSensor = sensor; in setSensor() 333 mSensorManager, mSensor, mExecution, in build()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/ |
D | AsyncSensorManagerTest.java | 47 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()
|
/frameworks/base/core/java/android/view/ |
D | OrientationEventListener.java | 38 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/native/services/sensorservice/ |
D | SensorInterface.cpp | 35 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() 97 return mCallback->onConfigurationChanged(mSensor.getHandle(), mEnabled, mSamplingPeriodNs, in activate() 109 return mCallback->onConfigurationChanged(mSensor.getHandle(), mEnabled, in batch() 120 return mCallback->onConfigurationChanged(mSensor.getHandle(), mEnabled, in setDelay()
|
D | LimitedAxesImuSensor.cpp | 62 mSensor = Sensor(&sensor); in LimitedAxesImuSensor() 72 outEvent->sensor = mSensor.getHandle(); in process() 73 outEvent->type = mSensor.getType(); in process()
|
D | RotationVectorSensor.cpp | 43 mSensor = Sensor(&sensor); in RotationVectorSensor() 129 mSensor = Sensor(&sensor); in GyroDriftSensor()
|
D | SensorInterface.h | 67 virtual const Sensor& getSensor() const override { return mSensor; } in getSensor() 72 Sensor mSensor; variable
|
D | GravitySensor.cpp | 51 mSensor = Sensor(&sensor); in GravitySensor()
|
D | CorrectedGyroSensor.cpp | 52 mSensor = Sensor(&sensor); in CorrectedGyroSensor()
|
D | LinearAccelerationSensor.cpp | 46 mSensor = Sensor(&sensor); in LinearAccelerationSensor()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeScreenBrightnessTest.java | 83 private FakeSensorManager.FakeGenericSensor mSensor; field in DozeScreenBrightnessTest 124 mSensor = fakeSensorManager.getFakeLightSensor(); in setUp() 130 new Optional[]{Optional.of(mSensor.getSensor())}, in setUp() 158 mSensor.sendSensorEvent(3); in testAod_usesDebugValue() 197 mSensor.sendSensorEvent(3); in doze_doesNotUseLightSensor() 212 mSensor.sendSensorEvent(3); in dozeSuspendTriggers_doesNotUseLightSensor() 227 mSensor.sendSensorEvent(3); in aod_usesLightSensor() 242 mSensor.sendSensorEvent(3); in docked_usesLightSensor() 281 mSensor.sendSensorEvent(1); in testScreenOffAfterPulsing_pausesLightSensor() 320 Optional.of(mSensor.getSensor()) /* closed */, in testSensorsSupportPostures_closed() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/whitebalance/ |
D | AmbientSensor.java | 49 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/face/aidl/ |
D | BiometricTestSessionImpl.java | 58 @NonNull private final Sensor mSensor; field in BiometricTestSessionImpl 136 mSensor = sensor; in BiometricTestSessionImpl() 148 mSensor.setTestHalEnabled(enabled); in setTestHalEnabled() 175 mSensor.getSessionForUser(userId).getHalSessionCallback() in finishEnroll() 193 mSensor.getSessionForUser(userId).getHalSessionCallback().onAuthenticationSucceeded(fid, in acceptAuthentication() 203 mSensor.getSessionForUser(userId).getHalSessionCallback().onAuthenticationFailed(); in rejectAuthentication() 214 if (mSensor.getScheduler().getCurrentClient() instanceof EnrollClient) { in notifyAcquired() 217 mSensor.getSessionForUser(userId).getHalSessionCallback() in notifyAcquired() 222 mSensor.getSessionForUser(userId).getHalSessionCallback() in notifyAcquired() 233 mSensor.getSessionForUser(userId).getHalSessionCallback().onError((byte) errorCode, in notifyError()
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | SensorManagerPlugin.java | 80 Sensor mSensor; field in SensorManagerPlugin.SensorEvent 102 mSensor = sensor; in SensorEvent() 108 return mSensor; in getSensor()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/ |
D | BiometricTestSessionImpl.java | 59 @NonNull private final Sensor mSensor; field in BiometricTestSessionImpl 136 mSensor = sensor; in BiometricTestSessionImpl() 147 mSensor.setTestHalEnabled(enabled); in setTestHalEnabled() 195 mSensor.getSessionForUser(userId).getHalSessionCallback() in finishEnroll() 220 mSensor.getSessionForUser(userId).getHalSessionCallback().onAuthenticationSucceeded(fid, in acceptAuthentication() 237 mSensor.getSessionForUser(userId).getHalSessionCallback().onAuthenticationFailed(); in rejectAuthentication() 246 mSensor.getSessionForUser(userId).getHalSessionCallback() in notifyAcquired() 256 mSensor.getSessionForUser(userId).getHalSessionCallback().onError((byte) errorCode, in notifyError()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/sensors/ |
D | FakeSensorManager.java | 110 .map(i -> i.mSensor) in getFullSensorList() 123 if (sensor == null || s.mSensor == sensor) { in unregisterListenerImpl() 136 if (s.mSensor == sensor) { in registerListenerImpl() 257 private final Sensor mSensor; field in FakeSensorManager.FakeGenericSensor 262 this.mSensor = sensor; in FakeGenericSensor() 266 return mSensor; in getSensor() 287 event.sensor = mSensor; in createSensorEvent()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | MotionSensor.java | 37 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/services/core/java/com/android/server/wm/ |
D | WindowOrientationListener.java | 78 private Sensor mSensor; field in WindowOrientationListener 144 mSensor = wakeUpDeviceOrientationSensor; in WindowOrientationListener() 146 mSensor = nonWakeUpDeviceOrientationSensor; in WindowOrientationListener() 149 if (mSensor != null) { in WindowOrientationListener() 154 mSensor = mSensorManager.getDefaultSensor(USE_GRAVITY_SENSOR in WindowOrientationListener() 156 if (mSensor != null) { in WindowOrientationListener() 180 if (mSensor == null) { in enable() 192 if (mSensor.getType() == Sensor.TYPE_ACCELEROMETER) { in enable() 194 mOrientationJudge, mSensor, mRate, DEFAULT_BATCH_LATENCY, mHandler); in enable() 196 mSensorManager.registerListener(mOrientationJudge, mSensor, mRate, mHandler); in enable() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | MotionSensorWTime.java | 39 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/av/media/libheadtracking/ |
D | SensorPoseProvider.cpp | 89 : mQueue(queue), mSensor(sensor) {} in SensorEnableGuard() 92 if (mSensor != SensorPoseProvider::INVALID_HANDLE) { in ~SensorEnableGuard() 93 int ret = mQueue->disableSensor(mSensor); in ~SensorEnableGuard() 101 SensorEnableGuard(SensorEnableGuard&& other) : mQueue(other.mQueue), mSensor(other.mSensor) { in SensorEnableGuard() 102 other.mSensor = SensorPoseProvider::INVALID_HANDLE; in SensorEnableGuard() 107 int32_t mSensor; member in android::media::__anonbad7a65c0111::SensorEnableGuard
|
/frameworks/base/services/core/java/com/android/server/sensorprivacy/ |
D | PersistedState.java | 246 int mSensor; field in PersistedState.TypeUserSensor 251 mSensor = sensor; in TypeUserSensor() 255 this(typeUserSensor.mType, typeUserSensor.mUserId, typeUserSensor.mSensor); in TypeUserSensor() 263 return mType == that.mType && mUserId == that.mUserId && mSensor == that.mSensor; in equals() 268 return 31 * (31 * mType + mUserId) + mSensor; in hashCode() 309 userSensor.mSensor); in persist() 333 int sensor = mStates.keyAt(i).mSensor; in dump() 382 consumer.accept(tus.mType, tus.mUserId, tus.mSensor, sensorState); in forEachKnownState()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/ |
D | SensorListTest.java | 46 Sensor mSensor; field in SensorListTest 61 mSensorList.addSensor(0, mSensor, UserHandle.USER_NULL, mUserSwitchObserver); in testAddingSensor()
|
/frameworks/base/core/java/android/hardware/ |
D | SensorPrivacyManager.java | 259 onSensorPrivacyChanged(params.mSensor, params.mEnabled); in onSensorPrivacyChanged() 280 private int mSensor; field in SensorPrivacyManager.OnSensorPrivacyChangedListener.SensorPrivacyChangedParams 287 mSensor = sensor; in SensorPrivacyChangedParams() 298 mSensor = sensor; in SensorPrivacyChangedParams() 307 return mSensor; in getSensor()
|