Home
last modified time | relevance | path

Searched refs:CommonFoldingFeature (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/sidecar/
DSidecarHelper.java29 import androidx.window.common.CommonFoldingFeature;
51 private static int deviceStateFromFeatureList(@NonNull List<CommonFoldingFeature> featureList) { in deviceStateFromFeatureList()
53 final CommonFoldingFeature feature = featureList.get(i); in deviceStateFromFeatureList()
56 case CommonFoldingFeature.COMMON_STATE_FLAT: in deviceStateFromFeatureList()
58 case CommonFoldingFeature.COMMON_STATE_HALF_OPENED: in deviceStateFromFeatureList()
60 case CommonFoldingFeature.COMMON_STATE_UNKNOWN: in deviceStateFromFeatureList()
62 case CommonFoldingFeature.COMMON_STATE_NO_FOLDING_FEATURES: in deviceStateFromFeatureList()
64 case CommonFoldingFeature.COMMON_STATE_USE_BASE_STATE: in deviceStateFromFeatureList()
77 @NonNull List<CommonFoldingFeature> featureList) { in calculateDeviceState()
86 @NonNull List<CommonFoldingFeature> featureList in calculateDisplayFeatures()
[all …]
DSampleSidecarImpl.java28 import androidx.window.common.CommonFoldingFeature;
42 private List<CommonFoldingFeature> mStoredFeatures = new ArrayList<>();
48 BaseDataProducer<List<CommonFoldingFeature>> foldingFeatureProducer = in SampleSidecarImpl()
56 private void setStoredFeatures(List<CommonFoldingFeature> storedFeatures) { in setStoredFeatures()
60 private void onDisplayFeaturesChanged(List<CommonFoldingFeature> storedFeatures) { in onDisplayFeaturesChanged()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/common/
DDeviceStateManagerFoldingFeatureProducer.java21 import static androidx.window.common.CommonFoldingFeature.COMMON_STATE_UNKNOWN;
22 import static androidx.window.common.CommonFoldingFeature.parseListFromString;
52 extends BaseDataProducer<List<CommonFoldingFeature>> {
126 || posture == CommonFoldingFeature.COMMON_STATE_HALF_OPENED; in DeviceStateManagerFoldingFeatureProducer()
140 private void runCallbackWhenValidState(@NonNull Consumer<List<CommonFoldingFeature>> callback, in runCallbackWhenValidState()
146 AcceptOnceConsumer<List<CommonFoldingFeature>> singleRunCallback = in runCallbackWhenValidState()
178 public Optional<List<CommonFoldingFeature>> getCurrentData() { in getCurrentData()
193 public List<CommonFoldingFeature> getFoldsWithUnknownState() { in getFoldsWithUnknownState()
197 return CommonFoldingFeature.parseListFromString( in getFoldsWithUnknownState()
198 optionalFoldingFeatureString.get(), CommonFoldingFeature.COMMON_STATE_UNKNOWN in getFoldsWithUnknownState()
[all …]
DCommonFoldingFeature.java43 public final class CommonFoldingFeature { class
47 public static final String TAG = CommonFoldingFeature.class.getSimpleName();
129 public static List<CommonFoldingFeature> parseListFromString(@NonNull String value, in parseListFromString()
131 List<CommonFoldingFeature> features = new ArrayList<>(); in parseListFromString()
134 CommonFoldingFeature feature; in parseListFromString()
136 feature = CommonFoldingFeature.parseFromString(featureString, hingeState); in parseListFromString()
159 private static CommonFoldingFeature parseFromString(@NonNull String string, in parseFromString()
203 return new CommonFoldingFeature(type, state, featureRect); in parseFromString()
215 CommonFoldingFeature(int type, @State int state, @NonNull Rect rect) { in CommonFoldingFeature() method in CommonFoldingFeature
248 CommonFoldingFeature that = (CommonFoldingFeature) o; in equals()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/layout/
DDisplayFoldFeatureUtil.java19 import androidx.window.common.CommonFoldingFeature;
32 private static DisplayFoldFeature create(CommonFoldingFeature foldingFeature, in create()
35 if (foldingFeature.getType() == CommonFoldingFeature.COMMON_TYPE_HINGE) { in create()
55 List<CommonFoldingFeature> folds = producer.getFoldsWithUnknownState(); in extractDisplayFoldFeatures()
58 for (CommonFoldingFeature fold : folds) { in extractDisplayFoldFeatures()
DWindowLayoutComponentImpl.java21 import static androidx.window.common.CommonFoldingFeature.COMMON_STATE_FLAT;
22 import static androidx.window.common.CommonFoldingFeature.COMMON_STATE_HALF_OPENED;
44 import androidx.window.common.CommonFoldingFeature;
73 private final List<CommonFoldingFeature> mLastReportedFoldingFeatures = new ArrayList<>();
260 private void onDisplayFeaturesChanged(List<CommonFoldingFeature> storedFeatures) { in onDisplayFeaturesChanged()
283 List<CommonFoldingFeature> storedFeatures) { in getWindowLayoutInfo()
315 List<CommonFoldingFeature> storedFeatures) { in getWindowLayoutInfo()
340 @NonNull @UiContext Context context, List<CommonFoldingFeature> storedFeatures) { in getDisplayFeatures()
352 List<CommonFoldingFeature> storedFeatures) { in getDisplayFeatures()
362 for (CommonFoldingFeature baseFeature : storedFeatures) { in getDisplayFeatures()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
DSplitController.java90 import androidx.window.common.CommonFoldingFeature;
239 implements java.util.function.Consumer<List<CommonFoldingFeature>> {
241 public void accept(List<CommonFoldingFeature> foldingFeatures) { in accept()