Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/common/
DDeviceStateManagerPostureProducer.java66 int posture; in DeviceStateManagerPostureProducer() local
69 posture = Integer.parseInt(deviceStatePostureMapping[1]); in DeviceStateManagerPostureProducer()
78 mDeviceStateToPostureMap.put(deviceState, posture); in DeviceStateManagerPostureProducer()
90 final int posture = mDeviceStateToPostureMap.get(mCurrentDeviceState, -1); in getData() local
91 return posture != -1 ? Optional.of(posture) : Optional.empty(); in getData()
DSettingsDevicePostureProducer.java55 int posture = Settings.Global.getInt(mResolver, DEVICE_POSTURE, -1); in getData() local
56 return posture == -1 ? Optional.empty() : Optional.of(posture); in getData()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/sidecar/
DSampleSidecarImpl.java88 Optional<Integer> posture = mDevicePostureProducer.getData(); in getDeviceState() local
91 deviceState.posture = posture.orElse(SidecarDeviceState.POSTURE_UNKNOWN); in getDeviceState()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/
DSampleExtensionImpl.java78 Optional<Integer> posture = mDevicePostureProducer.getData(); in getFeatureState() local
79 int fallbackPosture = posture.orElse(ExtensionFoldingFeature.STATE_FLAT); in getFeatureState()