Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
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()
DProximitySensorImpl.java78 protected @DevicePostureController.DevicePostureInt int mDevicePosture; field in ProximitySensorImpl
357 isRegistered(), mPaused, isNear(), mDevicePosture, mPrimaryThresholdSensor, in toString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
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()
344 idpw.println("posture=" + DevicePostureController.devicePostureToString(mDevicePosture)); in dump()
351 if (mDevicePosture == posture
357 final Sensor oldSensor = mLightSensorOptional[mDevicePosture].get();
360 mDevicePosture = posture;
368 mDevicePosture = posture;
[all …]
DDozeSensors.java125 private int mDevicePosture; field in DozeSensors
177 mDevicePosture = mDevicePostureController.getDevicePosture(); in DozeSensors()
222 dozeParameters.singleTapUsesProx(mDevicePosture) /* requiresProx */, in DozeSensors()
224 mDevicePosture, in DozeSensors()
497 + DevicePostureController.devicePostureToString(mDevicePosture)); in dump()
722 .append(DevicePostureController.devicePostureToString(mDevicePosture)); in toString()
850 if (mDevicePosture == posture) {
853 mDevicePosture = posture;
856 triggerSensor.setPosture(mDevicePosture);
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
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()
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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
DPostureDependentProximitySensorTest.java116 mPostureDependentProximitySensor.mDevicePosture); in testPostureChangeListenerUpdatesPosture()
123 mPostureDependentProximitySensor.mDevicePosture); in testPostureChangeListenerUpdatesPosture()
130 mPostureDependentProximitySensor.mDevicePosture); in testPostureChangeListenerUpdatesPosture()
137 mPostureDependentProximitySensor.mDevicePosture); in testPostureChangeListenerUpdatesPosture()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogImpl.java310 private @DevicePostureController.DevicePostureInt int mDevicePosture; field in VolumeDialogImpl
394 mDevicePosture = initialPosture; in VolumeDialogImpl()
407 mDevicePosture == DevicePostureController.DEVICE_POSTURE_HALF_OPENED; in adjustPositionOnScreen()
2446 mDevicePosture = posture;