Home
last modified time | relevance | path

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

1234

/frameworks/base/core/tests/coretests/src/android/view/
DDisplayCutoutTest.java19 import static android.view.DisplayCutout.BOUNDS_POSITION_BOTTOM;
20 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
21 import static android.view.DisplayCutout.NO_CUTOUT;
22 import static android.view.DisplayCutout.extractBoundsFromList;
23 import static android.view.DisplayCutout.fromSpec;
45 import android.view.DisplayCutout.ParcelableWrapper;
73 final DisplayCutout mCutoutNumbers = new DisplayCutout(
80 final DisplayCutout mCutoutTop = createCutoutTop();
81 final DisplayCutout mCutoutWithWaterfall = createCutoutWithWaterfall();
82 final DisplayCutout mWaterfallOnly = createCutoutWaterfallOnly();
[all …]
/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>()
66 return DisplayCutout.getFillBuiltInDisplayCutout( in <lambda>()
192 fun DisplayCutout.getBoundBaseOnCurrentRotation(): List<Int> { in DisplayCutout() method
209 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/packages/SystemUI/tests/src/com/android/systemui/decor/
DRoundedCornerDecorProviderFactoryTest.kt20 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.kt25 import android.view.DisplayCutout in <lambda>()
26 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.kt20 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.kt21 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.java69 public final class DisplayCutout { class
95 public static final DisplayCutout NO_CUTOUT = new DisplayCutout(
100 private static final Pair<Path, DisplayCutout> NULL_PAIR = new Pair<>(null, null);
112 private static Pair<Path, DisplayCutout> sCachedCutout = NULL_PAIR;
422 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() method in DisplayCutout
449 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() method in DisplayCutout
476 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() method in DisplayCutout
503 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() method in DisplayCutout
524 public DisplayCutout(@Nullable Rect safeInsets, @Nullable List<Rect> boundingRects) { in DisplayCutout() method in DisplayCutout
547 private DisplayCutout(Rect safeInsets, Insets waterfallInsets, Rect boundLeft, Rect boundTop, 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/core/java/com/android/internal/policy/
DSystemBarUtils.java23 import android.view.DisplayCutout;
46 public static int getStatusBarHeight(Resources res, DisplayCutout cutout) { in getStatusBarHeight()
62 final DisplayCutout cutout = display.getCutout(); in getStatusBarHeightForRotation()
71 DisplayCutout rotated = in getStatusBarHeightForRotation()
/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()
171 cutout: DisplayCutout?, in setupConfigs()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSysUICutoutInformation.kt19 import android.view.DisplayCutout
22 val cutout: DisplayCutout,
/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/gesture/
DGesturePointerEventListener.kt26 import android.view.DisplayCutout in <lambda>()
113 if (bounds[DisplayCutout.BOUNDS_POSITION_LEFT] != null) { in <lambda>()
117 bounds[DisplayCutout.BOUNDS_POSITION_LEFT]!!.width() + in <lambda>()
121 if (bounds[DisplayCutout.BOUNDS_POSITION_TOP] != null) { in <lambda>()
125 bounds[DisplayCutout.BOUNDS_POSITION_TOP]!!.height() + in <lambda>()
129 if (bounds[DisplayCutout.BOUNDS_POSITION_RIGHT] != null) { in <lambda>()
133 bounds[DisplayCutout.BOUNDS_POSITION_RIGHT]!!.width() + in <lambda>()
137 if (bounds[DisplayCutout.BOUNDS_POSITION_BOTTOM] != null) { in <lambda>()
141 bounds[DisplayCutout.BOUNDS_POSITION_BOTTOM]!!.height() + in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/common/ui/compose/windowinsets/
DDisplayCutout.kt19 import android.view.DisplayCutout as ViewDisplayCutout
25 data class DisplayCutout( class
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DActionBarOverlayLayoutTest.java19 import static android.view.DisplayCutout.NO_CUTOUT;
34 import android.view.DisplayCutout;
59 private static final DisplayCutout CONSUMED_CUTOUT = null;
60 private static final DisplayCutout CUTOUT_5 = new DisplayCutout(
231 private WindowInsets insetsWith(Insets content, DisplayCutout cutout) { in insetsWith()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationInsetsImpl.java24 import android.view.DisplayCutout;
44 @Nullable DisplayCutout displayCutout) { in getinsets()

1234