Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDevicePostureController.java57 static String devicePostureToString(@DevicePostureInt int posture) { in devicePostureToString() argument
58 switch (posture) { in devicePostureToString()
70 return "UNSUPPORTED POSTURE posture=" + posture; in devicePostureToString()
77 void onPostureChanged(@DevicePostureInt int posture); in onPostureChanged() argument
DDevicePostureControllerImpl.java62 int posture; in DevicePostureControllerImpl() local
65 posture = Integer.parseInt(deviceStatePostureMapping[1]); in DevicePostureControllerImpl()
70 mDeviceStateToPostureMap.put(deviceState, posture); in DevicePostureControllerImpl()
/frameworks/base/packages/SettingsLib/DeviceStateRotationLock/src/com.android.settingslib.devicestate/
DDeviceStateRotationLockSettingsManager.java139 int posture = mPosturesHelper.deviceStateToPosture(deviceState); in updateSetting() local
140 if (mPostureRotationLockFallbackSettings.indexOfKey(posture) >= 0) { in updateSetting()
143 posture = mPostureRotationLockFallbackSettings.get(posture); in updateSetting()
146 posture, in updateSetting()
315 int posture = Integer.parseInt(values[0]); in loadDefaults() local
320 mPostureRotationLockFallbackSettings.put(posture, fallbackPosture); in loadDefaults()
329 Integer deviceState = mPosturesHelper.postureToDeviceState(posture); in loadDefaults()
333 Log.wtf(TAG, "No matching device state for posture: " + posture); in loadDefaults()
335 mPostureRotationLockSettings.put(posture, rotationLockSetting); in loadDefaults()
336 mPostureDefaultRotationLockSettings.put(posture, rotationLockSetting); in loadDefaults()
DPosturesHelper.kt47 fun postureToDeviceState(@DeviceStateRotationLockKey posture: Int): Int? { in postureToDeviceState()
48 return when (posture) { in postureToDeviceState()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDevicePostureController.java95 int posture; in onInit() local
98 posture = Integer.parseInt(deviceStatePostureMapping[1]); in onInit()
103 mDeviceStateToPostureMap.put(deviceState, posture); in onInit()
148 void onDevicePostureChanged(@DevicePostureInt int posture); in onDevicePostureChanged() argument
DTabletopModeController.java196 public void onDevicePostureChanged(@DevicePostureController.DevicePostureInt int posture) { in onDevicePostureChanged() argument
197 if (mDevicePosture != posture) { in onDevicePostureChanged()
198 onDevicePostureOrDisplayRotationChanged(posture, mDisplayRotation); in onDevicePostureChanged()
228 private boolean isHalfOpened(@DevicePostureController.DevicePostureInt int posture) { in isHalfOpened() argument
229 return posture == DEVICE_POSTURE_HALF_OPENED; in isHalfOpened()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardBypassController.kt53 private val postureCallback = DevicePostureController.Callback { posture -> in <lambda>() method
54 if (postureState != posture) { in <lambda>()
55 postureState = posture in <lambda>()
138 devicePostureController.addCallback { posture -> in <lambda>() method
139 if (postureState != posture) { in <lambda>()
140 postureState = posture in <lambda>()
DDozeParameters.java477 int posture) { in getPostureSpecificBool() argument
479 if (posture < postureMapping.length) { in getPostureSpecificBool()
480 bool = postureMapping[posture] != 0; in getPostureSpecificBool()
482 Log.e("DozeParameters", "Unsupported doze posture " + posture); in getPostureSpecificBool()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenBrightness.java343 public void onPostureChanged(int posture) {
344 if (mDevicePosture == posture
346 || posture >= mLightSensorOptional.length) {
351 final Sensor newSensor = mLightSensorOptional[posture].get();
353 mDevicePosture = posture;
361 mDevicePosture = posture;
364 mDevicePosture = posture;
DDozeSensors.java601 @DevicePostureController.DevicePostureInt int posture, in TriggerSensor() argument
614 mPosture = posture; in TriggerSensor()
621 public boolean setPosture(@DevicePostureController.DevicePostureInt int posture) { in setPosture() argument
622 if (mPosture == posture in setPosture()
624 || posture >= mSensors.length) { in setPosture()
629 Sensor newSensor = mSensors[posture]; in setPosture()
631 mPosture = posture; in setPosture()
644 mPosture = posture; in setPosture()
845 private final DevicePostureController.Callback mDevicePostureCallback = posture -> {
846 if (mDevicePosture == posture) {
[all …]
DDozeLogger.kt216 fun logPostureChanged(posture: Int, partUpdated: String) { in logPostureChanged()
218 int1 = posture in logPostureChanged()
DDozeLog.java294 @DevicePostureController.DevicePostureInt int posture, in tracePostureChanged()
297 mLogger.logPostureChanged(posture, partUpdated); in tracePostureChanged()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyguard/data/repository/
DFakeDevicePostureRepository.kt28 fun setCurrentPosture(posture: DevicePosture) { in setCurrentPosture()
29 _currentDevicePosture.value = posture in setCurrentPosture()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/model/
DDevicePosture.kt30 fun toPosture(@DevicePostureController.DevicePostureInt posture: Int): DevicePosture { in toPosture()
31 return when (posture) { in toPosture()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
DPostureDependentProximitySensor.java135 posture -> {
136 if (mDevicePosture == posture) {
140 mDevicePosture = posture;
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/
DDevicePostureRepository.kt40 val sendPostureUpdate = { posture: Int -> in <lambda>() method
41 val currentDevicePosture = DevicePosture.toPosture(posture) in <lambda>()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/common/
DDeviceStateManagerFoldingFeatureProducer.java78 int posture; in DeviceStateManagerFoldingFeatureProducer() local
81 posture = Integer.parseInt(deviceStatePostureMapping[1]); in DeviceStateManagerFoldingFeatureProducer()
91 mDeviceStateToPostureMap.put(deviceState, posture); in DeviceStateManagerFoldingFeatureProducer()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardPinViewController.java32 private final DevicePostureController.Callback mPostureCallback = posture ->
33 mView.onDevicePostureChanged(posture);
DKeyguardPatternView.java98 void onDevicePostureChanged(@DevicePostureInt int posture) { in onDevicePostureChanged() argument
105 cs.setGuidelinePercent(R.id.pattern_top_guideline, posture == DEVICE_POSTURE_HALF_OPENED in onDevicePostureChanged()
DKeyguardPINView.java83 void onDevicePostureChanged(@DevicePostureInt int posture) { in onDevicePostureChanged() argument
84 mLastDevicePosture = posture; in onDevicePostureChanged()
DKeyguardPatternViewController.java63 posture -> mView.onDevicePostureChanged(posture);
DKeyguardUpdateMonitor.java1857 public void onPostureChanged(@DevicePostureInt int posture) {
1859 boolean newPostureAllowsFaceAuth = doesPostureAllowFaceAuth(posture);
1860 mPostureState = posture;
2968 private boolean doesPostureAllowFaceAuth(@DevicePostureInt int posture) { in doesPostureAllowFaceAuth() argument
2970 || (posture == mConfigFaceAuthSupportedPosture); in doesPostureAllowFaceAuth()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/sidecar/
DSampleSidecarImpl.java78 deviceState.posture = deviceStateFromFeature(); in getDeviceState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeSensorsTest.java584 public TriggerSensor createDozeSensorForPosture(Sensor[] sensors, int posture) { in createDozeSensorForPosture() argument
595 posture, in createDozeSensorForPosture()
/frameworks/base/packages/SystemUI/docs/device-entry/
Ddoze.md40 …n [DozeTriggers][8] via [DozeSensors][12]. Sensors can be configured per posture for foldable devi…