/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
D | TaskSnapshotSurfaceTest.java | 152 final Rect insets = new Rect(0, 10, 0, 10); in testCalculateSnapshotFrame() local 153 mSurface.setFrames(new Rect(0, 0, 100, 100), insets, insets); in testCalculateSnapshotFrame() 161 final Rect insets = new Rect(10, 10, 0, 0); in testCalculateSnapshotFrame_navBarLeft() local 162 mSurface.setFrames(new Rect(0, 0, 100, 100), insets, insets); in testCalculateSnapshotFrame_navBarLeft() 170 final Rect insets = new Rect(0, 10, 10, 0); in testDrawStatusBarBackground() local 171 mSurface.setFrames(new Rect(0, 0, 100, 100), insets, insets); in testDrawStatusBarBackground() 183 final Rect insets = new Rect(0, 10, 10, 0); in testDrawStatusBarBackground_nullFrame() local 184 mSurface.setFrames(new Rect(0, 0, 100, 100), insets, insets); in testDrawStatusBarBackground_nullFrame() 196 final Rect insets = new Rect(0, 10, 10, 0); in testDrawStatusBarBackground_nope() local 197 mSurface.setFrames(new Rect(0, 0, 100, 100), insets, insets); in testDrawStatusBarBackground_nope() [all …]
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | StickyHeaderScrollView.java | 105 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument 107 mStatusBarInset = insets.getSystemWindowInsetTop(); in onApplyWindowInsets() 108 insets = insets.replaceSystemWindowInsets( in onApplyWindowInsets() 109 insets.getSystemWindowInsetLeft(), in onApplyWindowInsets() 111 insets.getSystemWindowInsetRight(), in onApplyWindowInsets() 112 insets.getSystemWindowInsetBottom() in onApplyWindowInsets() 115 return insets; in onApplyWindowInsets()
|
D | StickyHeaderListView.java | 137 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument 139 mStatusBarInset = insets.getSystemWindowInsetTop(); in onApplyWindowInsets() 140 insets.replaceSystemWindowInsets( in onApplyWindowInsets() 141 insets.getSystemWindowInsetLeft(), in onApplyWindowInsets() 143 insets.getSystemWindowInsetRight(), in onApplyWindowInsets() 144 insets.getSystemWindowInsetBottom() in onApplyWindowInsets() 147 return insets; in onApplyWindowInsets()
|
D | StatusBarBackgroundLayout.java | 109 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument 110 mLastInsets = insets; in onApplyWindowInsets() 111 return super.onApplyWindowInsets(insets); in onApplyWindowInsets()
|
/frameworks/support/compat/java/android/support/v4/view/ |
D | WindowInsetsCompat.java | 34 private WindowInsetsCompat(Object insets) { in WindowInsetsCompat() argument 35 mInsets = insets; in WindowInsetsCompat() 363 static WindowInsetsCompat wrap(Object insets) { in wrap() argument 364 return insets == null ? null : new WindowInsetsCompat(insets); in wrap() 367 static Object unwrap(WindowInsetsCompat insets) { in unwrap() argument 368 return insets == null ? null : insets.mInsets; in unwrap()
|
/frameworks/support/design/src/android/support/design/internal/ |
D | ScrimInsetsFrameLayout.java | 69 WindowInsetsCompat insets) { in ScrimInsetsFrameLayout() 73 mInsets.set(insets.getSystemWindowInsetLeft(), in ScrimInsetsFrameLayout() 74 insets.getSystemWindowInsetTop(), in ScrimInsetsFrameLayout() 75 insets.getSystemWindowInsetRight(), in ScrimInsetsFrameLayout() 76 insets.getSystemWindowInsetBottom()); in ScrimInsetsFrameLayout() 77 onInsetsChanged(insets); in ScrimInsetsFrameLayout() 78 setWillNotDraw(!insets.hasSystemWindowInsets() || mInsetForeground == null); in ScrimInsetsFrameLayout() 80 return insets.consumeSystemWindowInsets(); in ScrimInsetsFrameLayout() 135 protected void onInsetsChanged(WindowInsetsCompat insets) { in onInsetsChanged() argument
|
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/ |
D | TestWallpaper.java | 165 public void onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument 166 super.onApplyWindowInsets(insets); in onApplyWindowInsets() 167 mMainInsets.set(insets.getSystemWindowInsetLeft(), insets.getSystemWindowInsetTop(), in onApplyWindowInsets() 168 insets.getSystemWindowInsetRight(), insets.getSystemWindowInsetBottom()); in onApplyWindowInsets() 169 mStableInsets.set(insets.getStableInsetLeft(), insets.getStableInsetTop(), in onApplyWindowInsets() 170 insets.getStableInsetRight(), insets.getStableInsetBottom()); in onApplyWindowInsets() 171 mRound = insets.isRound(); in onApplyWindowInsets()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Insets.java | 86 Insets insets = (Insets) o; in equals() 88 if (bottom != insets.bottom) return false; in equals() 89 if (left != insets.left) return false; in equals() 90 if (right != insets.right) return false; in equals() 91 if (top != insets.top) return false; in equals()
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/view/ |
D | StickyHeaderRecyclerView.java | 121 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument 123 mStatusBarInset = insets.getSystemWindowInsetTop(); in onApplyWindowInsets() 124 insets.replaceSystemWindowInsets( in onApplyWindowInsets() 125 insets.getSystemWindowInsetLeft(), in onApplyWindowInsets() 127 insets.getSystemWindowInsetRight(), in onApplyWindowInsets() 128 insets.getSystemWindowInsetBottom() in onApplyWindowInsets() 131 return insets; in onApplyWindowInsets()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | DecorView.java | 983 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument 992 mFloatingInsets.top = insets.getSystemWindowInsetTop(); in onApplyWindowInsets() 993 mFloatingInsets.bottom = insets.getSystemWindowInsetBottom(); in onApplyWindowInsets() 994 insets = insets.replaceSystemWindowInsets(insets.getSystemWindowInsetLeft(), 0, in onApplyWindowInsets() 995 insets.getSystemWindowInsetRight(), 0); in onApplyWindowInsets() 998 mFloatingInsets.left = insets.getSystemWindowInsetTop(); in onApplyWindowInsets() 999 mFloatingInsets.right = insets.getSystemWindowInsetBottom(); in onApplyWindowInsets() 1000 insets = insets.replaceSystemWindowInsets(0, insets.getSystemWindowInsetTop(), in onApplyWindowInsets() 1001 0, insets.getSystemWindowInsetBottom()); in onApplyWindowInsets() 1004 mFrameOffsets.set(insets.getSystemWindowInsets()); in onApplyWindowInsets() [all …]
|
D | DockedDividerUtils.java | 99 public static int calculateMiddlePosition(boolean isHorizontalDivision, Rect insets, in calculateMiddlePosition() argument 101 int start = isHorizontalDivision ? insets.top : insets.left; in calculateMiddlePosition() 103 ? displayHeight - insets.bottom in calculateMiddlePosition() 104 : displayWidth - insets.right; in calculateMiddlePosition()
|
/frameworks/support/wear/src/android/support/wear/widget/ |
D | BoxInsetLayout.java | 114 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument 115 insets = super.onApplyWindowInsets(insets); in onApplyWindowInsets() 117 final boolean round = insets.isRound(); in onApplyWindowInsets() 122 mInsets.set(insets.getSystemWindowInsetLeft(), insets.getSystemWindowInsetTop(), in onApplyWindowInsets() 123 insets.getSystemWindowInsetRight(), insets.getSystemWindowInsetBottom()); in onApplyWindowInsets() 125 return insets; in onApplyWindowInsets() 152 WindowInsets insets = getRootWindowInsets(); in onAttachedToWindow() local 153 mInsets.set(insets.getSystemWindowInsetLeft(), insets.getSystemWindowInsetTop(), in onAttachedToWindow() 154 insets.getSystemWindowInsetRight(), insets.getSystemWindowInsetBottom()); in onAttachedToWindow()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | DrawableUtils.java | 75 final Object insets = getOpticalInsetsMethod.invoke(drawable); in getOpticalBounds() local 77 if (insets != null) { in getOpticalBounds() 84 result.left = field.getInt(insets); in getOpticalBounds() 87 result.top = field.getInt(insets); in getOpticalBounds() 90 result.right = field.getInt(insets); in getOpticalBounds() 93 result.bottom = field.getInt(insets); in getOpticalBounds()
|
D | FitWindowsFrameLayout.java | 49 protected boolean fitSystemWindows(Rect insets) { in fitSystemWindows() argument 51 mListener.onFitSystemWindows(insets); in fitSystemWindows() 53 return super.fitSystemWindows(insets); in fitSystemWindows()
|
D | FitWindowsLinearLayout.java | 49 protected boolean fitSystemWindows(Rect insets) { in fitSystemWindows() argument 51 mListener.onFitSystemWindows(insets); in fitSystemWindows() 53 return super.fitSystemWindows(insets); in fitSystemWindows()
|
D | ActionBarOverlayLayout.java | 261 private boolean applyInsets(View view, Rect insets, boolean left, boolean top, 265 if (left && lp.leftMargin != insets.left) { 267 lp.leftMargin = insets.left; 269 if (top && lp.topMargin != insets.top) { 271 lp.topMargin = insets.top; 273 if (right && lp.rightMargin != insets.right) { 275 lp.rightMargin = insets.right; 277 if (bottom && lp.bottomMargin != insets.bottom) { 279 lp.bottomMargin = insets.bottom; 285 protected boolean fitSystemWindows(Rect insets) { [all …]
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
D | NavigationTestView.java | 42 protected void onInsetsChanged(WindowInsetsCompat insets) { in onInsetsChanged() argument 43 super.onInsetsChanged(insets); in onInsetsChanged() 44 mHashSystemWindowInsets = insets.hasSystemWindowInsets(); in onInsetsChanged()
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/custom/ |
D | CustomDrawerLayout.java | 39 public WindowInsets dispatchApplyWindowInsets(WindowInsets insets) { in dispatchApplyWindowInsets() argument 40 mSystemWindowInsetTop = insets.getSystemWindowInsetTop(); in dispatchApplyWindowInsets() 41 return super.dispatchApplyWindowInsets(insets); in dispatchApplyWindowInsets()
|
D | FitWindowsContentLayout.java | 42 protected boolean fitSystemWindows(Rect insets) { in fitSystemWindows() argument 44 mInsets.set(insets); in fitSystemWindows() 46 return super.fitSystemWindows(insets); in fitSystemWindows()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
D | SystemBarHelper.java | 310 public WindowInsets onApplyWindowInsets(View view, WindowInsets insets) { in onApplyWindowInsets() argument 316 int bottomInset = insets.getSystemWindowInsetBottom(); in onApplyWindowInsets() 319 insets.getSystemWindowInsetBottom() - mBottomOffset, 0); in onApplyWindowInsets() 332 return insets.replaceSystemWindowInsets( in onApplyWindowInsets() 333 insets.getSystemWindowInsetLeft(), in onApplyWindowInsets() 334 insets.getSystemWindowInsetTop(), in onApplyWindowInsets() 335 insets.getSystemWindowInsetRight(), in onApplyWindowInsets()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | KeyguardPreviewContainer.java | 65 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument 66 setPadding(0, 0, 0, insets.getStableInsetBottom()); in onApplyWindowInsets() 67 return super.onApplyWindowInsets(insets); in onApplyWindowInsets()
|
D | StatusBarWindowView.java | 105 protected boolean fitSystemWindows(Rect insets) { in fitSystemWindows() argument 107 boolean paddingChanged = insets.top != getPaddingTop() in fitSystemWindows() 108 || insets.bottom != getPaddingBottom(); in fitSystemWindows() 111 if (insets.right != mRightInset || insets.left != mLeftInset) { in fitSystemWindows() 112 mRightInset = insets.right; in fitSystemWindows() 113 mLeftInset = insets.left; in fitSystemWindows() 120 insets.left = 0; in fitSystemWindows() 121 insets.top = 0; in fitSystemWindows() 122 insets.right = 0; in fitSystemWindows() 136 insets.top = 0; in fitSystemWindows()
|
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/myapplication.widgets/ |
D | InsetsWidget.java | 39 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument 41 return super.onApplyWindowInsets(insets); in onApplyWindowInsets()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
D | ThumbnailData.java | 31 public final Rect insets = new Rect(); field in ThumbnailData 38 out.insets.set(snapshot.getContentInsets()); in createFromTaskSnapshot()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ActionBarOverlayLayout.java | 288 private boolean applyInsets(View view, Rect insets, boolean left, boolean top, 292 if (left && lp.leftMargin != insets.left) { 294 lp.leftMargin = insets.left; 296 if (top && lp.topMargin != insets.top) { 298 lp.topMargin = insets.top; 300 if (right && lp.rightMargin != insets.right) { 302 lp.rightMargin = insets.right; 304 if (bottom && lp.bottomMargin != insets.bottom) { 306 lp.bottomMargin = insets.bottom; 312 public WindowInsets onApplyWindowInsets(WindowInsets insets) { [all …]
|