Home
last modified time | relevance | path

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

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
H A DPostureDependentProximitySensor.java63 mDevicePosture = mDevicePostureController.getDevicePosture(); in PostureDependentProximitySensor()
95 if (mDevicePosture >= mPostureToPrimaryProxSensorMap.length in chooseSensors()
96 || mDevicePosture >= mPostureToSecondaryProxSensorMap.length) { in chooseSensors()
98 "unsupported devicePosture=" + mDevicePosture); in chooseSensors()
102 ThresholdSensor newPrimaryProx = mPostureToPrimaryProxSensorMap[mDevicePosture]; in chooseSensors()
103 ThresholdSensor newSecondaryProx = mPostureToSecondaryProxSensorMap[mDevicePosture]; in chooseSensors()
108 + DevicePostureController.devicePostureToString(mDevicePosture)); in chooseSensors()
136 if (mDevicePosture == posture) {
140 mDevicePosture = posture;
147 DevicePostureController.devicePostureToString(mDevicePosture), super.toString()); in toString()
H A DProximitySensorImpl.java78 protected @DevicePostureController.DevicePostureInt int mDevicePosture; field in ProximitySensorImpl
357 isRegistered(), mPaused, isNear(), mDevicePosture, mPrimaryThresholdSensor, in toString()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
H A DDozeScreenBrightness.java88 private int mDevicePosture; field in DozeScreenBrightness
122 mDevicePosture = mDevicePostureController.getDevicePosture(); in DozeScreenBrightness()
219 && mDevicePosture < mLightSensorOptional.length; in lightSensorSupportsCurrentPosture()
227 return mLightSensorOptional[mDevicePosture].isPresent(); in isLightSensorPresent()
235 return mLightSensorOptional[mDevicePosture].get(); in getLightSensor()
351 if (mDevicePosture == posture
357 final Sensor oldSensor = mLightSensorOptional[mDevicePosture].get();
360 mDevicePosture = posture;
368 mDevicePosture = posture;
371 mDevicePosture = posture;
[all …]
H A DDozeSensors.java126 private int mDevicePosture; field in DozeSensors
177 mDevicePosture = mDevicePostureController.getDevicePosture(); in DozeSensors()
223 dozeParameters.singleTapUsesProx(mDevicePosture) /* requiresProx */, in DozeSensors()
225 mDevicePosture, in DozeSensors()
496 + DevicePostureController.devicePostureToString(mDevicePosture)); in dump()
721 .append(DevicePostureController.devicePostureToString(mDevicePosture)); in toString()
849 if (mDevicePosture == posture) {
852 mDevicePosture = posture;
855 triggerSensor.setPosture(mDevicePosture);
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
H A DDevicePostureController.java70 private int mDevicePosture = DEVICE_POSTURE_UNKNOWN; field in DevicePostureController
116 if (devicePosture == mDevicePosture) return; in onDevicePostureChanged()
117 mDevicePosture = devicePosture; in onDevicePostureChanged()
118 mListeners.forEach(l -> l.onDevicePostureChanged(mDevicePosture)); in onDevicePostureChanged()
129 listener.onDevicePostureChanged(mDevicePosture); in registerOnDevicePostureChangedListener()
H A DTabletopModeController.java97 private int mDevicePosture = DEVICE_POSTURE_UNKNOWN; field in TabletopModeController
181 if (mDevicePosture != posture) { in onDevicePostureChanged()
190 onDevicePostureOrDisplayRotationChanged(mDevicePosture, newDisplayRotation); in onDisplayConfigurationChanged()
198 mDevicePosture = newPosture; in onDevicePostureOrDisplayRotationChanged()
217 return isHalfOpened(mDevicePosture) && mTabletopModeRotations.contains(mDisplayRotation); in isInTabletopMode()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
H A DPostureDependentProximitySensorTest.java116 mPostureDependentProximitySensor.mDevicePosture); in testPostureChangeListenerUpdatesPosture()
123 mPostureDependentProximitySensor.mDevicePosture); in testPostureChangeListenerUpdatesPosture()
130 mPostureDependentProximitySensor.mDevicePosture); in testPostureChangeListenerUpdatesPosture()
137 mPostureDependentProximitySensor.mDevicePosture); in testPostureChangeListenerUpdatesPosture()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DVolumeDialogImpl.java304 private @DevicePostureController.DevicePostureInt int mDevicePosture; field in VolumeDialogImpl
375 mDevicePosture = initialPosture; in VolumeDialogImpl()
388 mDevicePosture == DevicePostureController.DEVICE_POSTURE_HALF_OPENED; in adjustPositionOnScreen()
2391 mDevicePosture = posture;