Home
last modified time | relevance | path

Searched refs:mDevicePosture (Results 1 – 5 of 5) sorted by relevance

/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
H A DPostureDependentProximitySensor.java56 mDevicePosture = devicePostureController.getDevicePosture(); in PostureDependentProximitySensor()
62 if (mDevicePosture >= mPostureToPrimaryProxSensorMap.length in chooseSensors()
63 || mDevicePosture >= mPostureToSecondaryProxSensorMap.length) { in chooseSensors()
65 "unsupported devicePosture=" + mDevicePosture); in chooseSensors()
69 ThresholdSensor newPrimaryProx = mPostureToPrimaryProxSensorMap[mDevicePosture]; in chooseSensors()
70 ThresholdSensor newSecondaryProx = mPostureToSecondaryProxSensorMap[mDevicePosture]; in chooseSensors()
75 + DevicePostureController.devicePostureToString(mDevicePosture)); in chooseSensors()
95 if (mDevicePosture == posture) {
99 mDevicePosture = posture;
106 DevicePostureController.devicePostureToString(mDevicePosture), super.toString()); in toString()
H A DProximitySensorImpl.java78 protected @DevicePostureController.DevicePostureInt int mDevicePosture; field in ProximitySensorImpl
352 isRegistered(), mPaused, isNear(), mDevicePosture, mPrimaryThresholdSensor, in toString()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
H A DDozeScreenBrightness.java87 private int mDevicePosture; field in DozeScreenBrightness
122 mDevicePosture = mDevicePostureController.getDevicePosture(); in DozeScreenBrightness()
211 && mDevicePosture < mLightSensorOptional.length; in lightSensorSupportsCurrentPosture()
219 return mLightSensorOptional[mDevicePosture].isPresent(); in isLightSensorPresent()
227 return mLightSensorOptional[mDevicePosture].get(); in getLightSensor()
335 if (mDevicePosture == posture
341 final Sensor oldSensor = mLightSensorOptional[mDevicePosture].get();
344 mDevicePosture = posture;
352 mDevicePosture = posture;
355 mDevicePosture = posture;
[all …]
H A DDozeSensors.java124 private int mDevicePosture; field in DozeSensors
175 mDevicePosture = mDevicePostureController.getDevicePosture(); in DozeSensors()
213 dozeParameters.singleTapUsesProx(mDevicePosture) /* requiresProx */, in DozeSensors()
214 mDevicePosture), in DozeSensors()
464 + DevicePostureController.devicePostureToString(mDevicePosture)); in dump()
681 .append(DevicePostureController.devicePostureToString(mDevicePosture)); in toString()
811 if (mDevicePosture == posture) {
814 mDevicePosture = posture;
817 triggerSensor.setPosture(mDevicePosture);
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
H A DPostureDependentProximitySensorTest.java86 mProximitySensor.mDevicePosture); in testPostureChangeListenerUpdatesPosture()
93 mProximitySensor.mDevicePosture); in testPostureChangeListenerUpdatesPosture()
100 mProximitySensor.mDevicePosture); in testPostureChangeListenerUpdatesPosture()
107 mProximitySensor.mDevicePosture); in testPostureChangeListenerUpdatesPosture()