Home
last modified time | relevance | path

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

1234

/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/
DRoundedCornerDecorProviderFactory.kt19 import android.view.DisplayCutout
39 alignedBound1 = DisplayCutout.BOUNDS_POSITION_TOP,
40 alignedBound2 = DisplayCutout.BOUNDS_POSITION_LEFT,
44 alignedBound1 = DisplayCutout.BOUNDS_POSITION_TOP,
45 alignedBound2 = DisplayCutout.BOUNDS_POSITION_RIGHT,
49 alignedBound1 = DisplayCutout.BOUNDS_POSITION_BOTTOM,
50 alignedBound2 = DisplayCutout.BOUNDS_POSITION_LEFT,
54 alignedBound1 = DisplayCutout.BOUNDS_POSITION_BOTTOM,
55 alignedBound2 = DisplayCutout.BOUNDS_POSITION_RIGHT,
61 alignedBound1 = DisplayCutout.BOUNDS_POSITION_TOP,
[all …]
DRoundedCornerDecorProviderImpl.kt21 import android.view.DisplayCutout in <lambda>()
32 @DisplayCutout.BoundsPosition override val alignedBound1: Int, in <lambda>()
33 @DisplayCutout.BoundsPosition override val alignedBound2: Int, in <lambda>()
37 private val isTop = alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in <lambda>()
103 @DisplayCutout.BoundsPosition
106 DisplayCutout.BOUNDS_POSITION_LEFT -> Gravity.LEFT in toLayoutGravity()
107 DisplayCutout.BOUNDS_POSITION_TOP -> Gravity.TOP in toLayoutGravity()
108 DisplayCutout.BOUNDS_POSITION_RIGHT -> Gravity.RIGHT in toLayoutGravity()
112 DisplayCutout.BOUNDS_POSITION_LEFT -> Gravity.BOTTOM in toLayoutGravity()
113 DisplayCutout.BOUNDS_POSITION_TOP -> Gravity.LEFT in toLayoutGravity()
[all …]
DPrivacyDotDecorProviderFactory.kt21 import android.view.DisplayCutout
52 alignedBound1 = DisplayCutout.BOUNDS_POSITION_TOP,
53 alignedBound2 = DisplayCutout.BOUNDS_POSITION_LEFT,
57 alignedBound1 = DisplayCutout.BOUNDS_POSITION_TOP,
58 alignedBound2 = DisplayCutout.BOUNDS_POSITION_RIGHT,
62 alignedBound1 = DisplayCutout.BOUNDS_POSITION_BOTTOM,
63 alignedBound2 = DisplayCutout.BOUNDS_POSITION_LEFT,
67 alignedBound1 = DisplayCutout.BOUNDS_POSITION_BOTTOM,
68 alignedBound2 = DisplayCutout.BOUNDS_POSITION_RIGHT,
79 @DisplayCutout.BoundsPosition override val alignedBound1: Int,
[all …]
DDecorProvider.kt19 import android.view.DisplayCutout
69 @DisplayCutout.BoundsPosition protected abstract val alignedBound1: Int in onReloadResAndMeasure()
71 @DisplayCutout.BoundsPosition protected abstract val alignedBound2: Int in onReloadResAndMeasure()
83 @DisplayCutout.BoundsPosition protected abstract val alignedBound: Int
96 @DisplayCutout.BoundsPosition alignedBound: Int in partitionAlignedBound()
134 DisplayCutout.BOUNDS_POSITION_TOP, in getProperBound()
135 DisplayCutout.BOUNDS_POSITION_BOTTOM, in getProperBound()
136 DisplayCutout.BOUNDS_POSITION_LEFT, in getProperBound()
137 DisplayCutout.BOUNDS_POSITION_RIGHT in getProperBound()
DCutoutDecorProviderImpl.kt20 import android.view.DisplayCutout in <lambda>()
28 @DisplayCutout.BoundsPosition override val alignedBound: Int in <lambda>()
32 DisplayCutout.BOUNDS_POSITION_TOP -> R.id.display_cutout in <lambda>()
33 DisplayCutout.BOUNDS_POSITION_LEFT -> R.id.display_cutout_left in <lambda>()
34 DisplayCutout.BOUNDS_POSITION_RIGHT -> R.id.display_cutout_right in <lambda>()
DFaceScanningProviderFactory.kt21 import android.view.DisplayCutout in <lambda>()
22 import android.view.DisplayCutout.BOUNDS_POSITION_BOTTOM in <lambda>()
23 import android.view.DisplayCutout.BOUNDS_POSITION_LEFT in <lambda>()
24 import android.view.DisplayCutout.BOUNDS_POSITION_RIGHT in <lambda>()
25 import android.view.DisplayCutout.BOUNDS_POSITION_TOP in <lambda>()
64 return DisplayCutout.getFillBuiltInDisplayCutout( in <lambda>()
185 fun DisplayCutout.getBoundBaseOnCurrentRotation(): List<Int> { in DisplayCutout() method
202 fun Int.baseOnRotation0(@DisplayCutout.BoundsPosition currentRotation: Int): Int { in baseOnRotation0()
DCutoutDecorProviderFactory.kt22 import android.view.DisplayCutout in <lambda>()
37 return DisplayCutout.getFillBuiltInDisplayCutout(res, displayInfo.uniqueId) in <lambda>()
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayCutoutTest.java19 import static android.view.DisplayCutout.NO_CUTOUT;
20 import static android.view.DisplayCutout.extractBoundsFromList;
21 import static android.view.DisplayCutout.fromSpec;
43 import android.view.DisplayCutout.ParcelableWrapper;
71 final DisplayCutout mCutoutNumbers = new DisplayCutout(
78 final DisplayCutout mCutoutTop = createCutoutTop();
79 final DisplayCutout mCutoutWithWaterfall = createCutoutWithWaterfall();
80 final DisplayCutout mWaterfallOnly = createCutoutWaterfallOnly();
171 DisplayCutout cutout = in testGetWaterfallInsets()
182 final DisplayCutout cutout = fromSpec(cutoutSpecString, displayWidth, displayHeight, in testGetCutoutPath()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/
DRoundedCornerDecorProviderFactoryTest.kt21 import android.view.DisplayCutout in <lambda>()
71 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in <lambda>()
72 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_LEFT)) in <lambda>()
76 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in <lambda>()
77 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_RIGHT)) in <lambda>()
96 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_BOTTOM) in <lambda>()
97 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_LEFT)) in <lambda>()
101 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_BOTTOM) in <lambda>()
102 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_RIGHT)) in <lambda>()
122 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in <lambda>()
[all …]
DCutoutDecorProviderFactoryTest.kt26 import android.view.DisplayCutout in <lambda>()
27 import android.view.DisplayCutout.BOUNDS_POSITION_LENGTH in <lambda>()
63 displayCutout: DisplayCutout? = null, in <lambda>()
82 ): DisplayCutout { in <lambda>()
97 return DisplayCutout( in <lambda>()
99 sorted[DisplayCutout.BOUNDS_POSITION_LEFT], in <lambda>()
100 sorted[DisplayCutout.BOUNDS_POSITION_TOP], in <lambda>()
101 sorted[DisplayCutout.BOUNDS_POSITION_RIGHT], in <lambda>()
102 sorted[DisplayCutout.BOUNDS_POSITION_BOTTOM] in <lambda>()
129 Assert.assertEquals(DisplayCutout.BOUNDS_POSITION_TOP, providers[0].alignedBounds[0]) in <lambda>()
[all …]
DPrivacyDotDecorProviderFactoryTest.kt21 import android.view.DisplayCutout
67 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in testGet4CornerDecorProvidersWithPrivacyDot()
68 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_LEFT)) in testGet4CornerDecorProvidersWithPrivacyDot()
72 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in testGet4CornerDecorProvidersWithPrivacyDot()
73 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_RIGHT)) in testGet4CornerDecorProvidersWithPrivacyDot()
77 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_BOTTOM) in testGet4CornerDecorProvidersWithPrivacyDot()
78 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_LEFT)) in testGet4CornerDecorProvidersWithPrivacyDot()
82 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_BOTTOM) in testGet4CornerDecorProvidersWithPrivacyDot()
83 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_RIGHT)) in testGet4CornerDecorProvidersWithPrivacyDot()
DOverlayWindowTest.kt22 import android.view.DisplayCutout
58 alignedBound1 = DisplayCutout.BOUNDS_POSITION_TOP, in setUp()
59 alignedBound2 = DisplayCutout.BOUNDS_POSITION_LEFT, in setUp()
66 alignedBound1 = DisplayCutout.BOUNDS_POSITION_BOTTOM, in setUp()
67 alignedBound2 = DisplayCutout.BOUNDS_POSITION_LEFT, in setUp()
74 alignedBound1 = DisplayCutout.BOUNDS_POSITION_BOTTOM, in setUp()
75 alignedBound2 = DisplayCutout.BOUNDS_POSITION_RIGHT, in setUp()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DWmDisplayCutoutTest.java19 import static android.view.DisplayCutout.BOUNDS_POSITION_BOTTOM;
20 import static android.view.DisplayCutout.BOUNDS_POSITION_LEFT;
21 import static android.view.DisplayCutout.BOUNDS_POSITION_RIGHT;
22 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
23 import static android.view.DisplayCutout.NO_CUTOUT;
24 import static android.view.DisplayCutout.fromBoundingRect;
33 import android.view.DisplayCutout;
49 private final DisplayCutout mCutoutTop = new DisplayCutout(
153 DisplayCutout.constructDisplayCutout( in computeSafeInsets_waterfall()
164 DisplayCutout.constructDisplayCutout( in computeSafeInsets_cutoutTop_greaterThan_waterfallTop()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java21 import android.view.DisplayCutout;
31 public static final WmDisplayCutout NO_CUTOUT = new WmDisplayCutout(DisplayCutout.NO_CUTOUT,
34 private final DisplayCutout mInner;
37 public WmDisplayCutout(DisplayCutout inner, Size frameSize) { in WmDisplayCutout()
49 DisplayCutout inner, int displayWidth, int displayHeight) { in computeSafeInsets()
50 if (inner == DisplayCutout.NO_CUTOUT) { in computeSafeInsets()
54 final Rect safeInsets = DisplayCutout.computeSafeInsets(displayWidth, displayHeight, inner); in computeSafeInsets()
68 public DisplayCutout getDisplayCutout() { in getDisplayCutout()
/frameworks/base/core/java/android/view/
DDisplayCutout.java64 public final class DisplayCutout { class
90 public static final DisplayCutout NO_CUTOUT = new DisplayCutout(
95 private static final Pair<Path, DisplayCutout> NULL_PAIR = new Pair<>(null, null);
107 private static Pair<Path, DisplayCutout> sCachedCutout = NULL_PAIR;
402 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() method in DisplayCutout
428 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() method in DisplayCutout
453 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() method in DisplayCutout
474 public DisplayCutout(@Nullable Rect safeInsets, @Nullable List<Rect> boundingRects) { in DisplayCutout() method in DisplayCutout
497 private DisplayCutout(Rect safeInsets, Insets waterfallInsets, Rect boundLeft, Rect boundTop, in DisplayCutout() method in DisplayCutout
506 private DisplayCutout(Rect safeInsets, Insets waterfallInsets, Rect[] bounds, in DisplayCutout() method in DisplayCutout
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyTestsBase.java19 import static android.view.DisplayCutout.BOUNDS_POSITION_BOTTOM;
20 import static android.view.DisplayCutout.BOUNDS_POSITION_LEFT;
21 import static android.view.DisplayCutout.BOUNDS_POSITION_RIGHT;
22 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
37 import android.view.DisplayCutout;
87 : DisplayCutout.NO_CUTOUT; in displayInfoAndCutoutForRotation()
94 private static DisplayCutout displayCutoutForRotation(int rotation, boolean isLongEdgeCutout) { in displayCutoutForRotation()
122 return DisplayCutout.fromBoundingRect((int) rectF.left, (int) rectF.top, in displayCutoutForRotation()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayLayout.java46 import android.view.DisplayCutout;
84 private DisplayCutout mCutout;
342 public DisplayCutout getDisplayCutout() { in getDisplayCutout()
350 DisplayCutout cutout, boolean hasStatusBar) { in convertNonDecorInsetsToStableInsets()
369 int displayHeight, DisplayCutout displayCutout, InsetsState insetsState, int uiMode, in computeNonDecorInsets()
404 public static DisplayCutout calculateDisplayCutoutForRotation( in calculateDisplayCutoutForRotation()
405 DisplayCutout cutout, int rotation, int displayWidth, int displayHeight) { in calculateDisplayCutoutForRotation()
406 if (cutout == null || cutout == DisplayCutout.NO_CUTOUT) { in calculateDisplayCutoutForRotation()
424 final DisplayCutout.CutoutPathParserInfo info = cutout.getCutoutPathParserInfo(); in calculateDisplayCutoutForRotation()
425 final DisplayCutout.CutoutPathParserInfo newInfo = new DisplayCutout.CutoutPathParserInfo( in calculateDisplayCutoutForRotation()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DQsBatteryModeController.kt4 import android.view.DisplayCutout
44 fun getBatteryMode(cutout: DisplayCutout?, qsExpandedFraction: Float): Int? = in getBatteryMode()
65 private fun hasCenterCutout(cutout: DisplayCutout?): Boolean = in hasCenterCutout()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DScreenDecorHwcLayerTest.kt27 import android.view.DisplayCutout
57 private val cutoutTop: DisplayCutout = DisplayCutout.Builder()
62 private val cutoutRight: DisplayCutout = DisplayCutout.Builder()
170 cutout: DisplayCutout?, in setupConfigs()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DActionBarOverlayLayoutTest.java19 import static android.view.DisplayCutout.NO_CUTOUT;
32 import android.view.DisplayCutout;
56 private static final DisplayCutout CONSUMED_CUTOUT = null;
57 private static final DisplayCutout CUTOUT_5 = new DisplayCutout(
170 private WindowInsets insetsWith(Insets content, DisplayCutout cutout) { in insetsWith()
/frameworks/base/core/java/com/android/internal/policy/
DSystemBarUtils.java23 import android.view.DisplayCutout;
45 public static int getStatusBarHeight(Resources res, DisplayCutout cutout) { in getStatusBarHeight()
60 final DisplayCutout cutout = context.getDisplay().getCutout(); in getStatusBarHeightForRotation()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DDisplayCutoutView.java26 import android.view.DisplayCutout;
90 final DisplayCutout displayCutout = mInfo.displayCutout; in hasCutout()
114 public static void boundsFromDirection(DisplayCutout displayCutout, int gravity, Rect out) { in boundsFromDirection()
142 final DisplayCutout displayCutout = mInfo.displayCutout; in localBounds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationInsetsImpl.java24 import android.view.DisplayCutout;
44 @Nullable DisplayCutout displayCutout) { in getinsets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProvider.kt25 import android.view.DisplayCutout in <lambda>()
138 displayCutout: DisplayCutout?): Rect { in <lambda>()
217 displayCutout: DisplayCutout?, in <lambda>()
228 displayCutout: DisplayCutout?, in <lambda>()
279 displayCutout: DisplayCutout?): CacheKey = in <lambda>()
289 val displayCutout: DisplayCutout? in <lambda>()
348 displayCutout: DisplayCutout?, in calculateInsetsForRotationWithRotatedResources()
401 displayCutout: DisplayCutout?, in getStatusBarLeftRight()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DQsBatteryModeControllerTest.kt7 import android.view.DisplayCutout
28 val CENTER_TOP_CUTOUT: DisplayCutout =
29 mock<DisplayCutout>().also { in <lambda>()

1234