/frameworks/support/v4/api21/android/support/v4/widget/ |
D | DrawerLayoutCompatApi21.java | 45 public static void dispatchChildInsets(View child, Object insets, int gravity) { in dispatchChildInsets() argument 46 WindowInsets wi = (WindowInsets) insets; in dispatchChildInsets() 57 public static void applyMarginInsets(ViewGroup.MarginLayoutParams lp, Object insets, in applyMarginInsets() argument 59 WindowInsets wi = (WindowInsets) insets; in applyMarginInsets() 73 public static int getTopInset(Object insets) { in getTopInset() argument 74 return insets != null ? ((WindowInsets) insets).getSystemWindowInsetTop() : 0; in getTopInset() 88 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) { in onApplyWindowInsets() argument 90 drawerLayout.setChildInsets(insets, insets.getSystemWindowInsetTop() > 0); in onApplyWindowInsets() 91 return insets.consumeSystemWindowInsets(); in onApplyWindowInsets()
|
/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/v4/api21/android/support/v4/view/ |
D | ViewCompatLollipop.java | 69 WindowInsetsCompatApi21 insets = new WindowInsetsCompatApi21(windowInsets); in setOnApplyWindowInsetsListener() 71 insets = (WindowInsetsCompatApi21) listener.onApplyWindowInsets(view, insets); in setOnApplyWindowInsetsListener() 73 return insets.unwrap(); in setOnApplyWindowInsetsListener() 127 public static WindowInsetsCompat onApplyWindowInsets(View v, WindowInsetsCompat insets) { in onApplyWindowInsets() argument 128 if (insets instanceof WindowInsetsCompatApi21) { in onApplyWindowInsets() 130 WindowInsets unwrapped = ((WindowInsetsCompatApi21) insets).unwrap(); in onApplyWindowInsets() 136 insets = new WindowInsetsCompatApi21(result); in onApplyWindowInsets() 139 return insets; in onApplyWindowInsets() 142 public static WindowInsetsCompat dispatchApplyWindowInsets(View v, WindowInsetsCompat insets) { in dispatchApplyWindowInsets() argument 143 if (insets instanceof WindowInsetsCompatApi21) { in dispatchApplyWindowInsets() [all …]
|
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/ |
D | TestWallpaper.java | 157 public void onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument 158 super.onApplyWindowInsets(insets); in onApplyWindowInsets() 159 mMainInsets.set(insets.getSystemWindowInsetLeft(), insets.getSystemWindowInsetTop(), in onApplyWindowInsets() 160 insets.getSystemWindowInsetRight(), insets.getSystemWindowInsetBottom()); in onApplyWindowInsets() 161 mStableInsets.set(insets.getStableInsetLeft(), insets.getStableInsetTop(), in onApplyWindowInsets() 162 insets.getStableInsetRight(), insets.getStableInsetBottom()); in onApplyWindowInsets() 163 mRound = insets.isRound(); in onApplyWindowInsets()
|
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/view/ |
D | StickyHeaderRecyclerView.java | 117 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument 119 mStatusBarInset = insets.getSystemWindowInsetTop(); in onApplyWindowInsets() 120 insets.replaceSystemWindowInsets( in onApplyWindowInsets() 121 insets.getSystemWindowInsetLeft(), in onApplyWindowInsets() 123 insets.getSystemWindowInsetRight(), in onApplyWindowInsets() 124 insets.getSystemWindowInsetBottom() in onApplyWindowInsets() 127 return insets; 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()
|
D | Rect.java | 335 public void inset(Rect insets) { in inset() argument 336 left += insets.left; in inset() 337 top += insets.top; in inset() 338 right -= insets.right; in inset() 339 bottom -= insets.bottom; in inset()
|
/frameworks/support/design/src/android/support/design/internal/ |
D | ScrimInsetsFrameLayout.java | 65 WindowInsetsCompat insets) { in ScrimInsetsFrameLayout() 69 mInsets.set(insets.getSystemWindowInsetLeft(), in ScrimInsetsFrameLayout() 70 insets.getSystemWindowInsetTop(), in ScrimInsetsFrameLayout() 71 insets.getSystemWindowInsetRight(), in ScrimInsetsFrameLayout() 72 insets.getSystemWindowInsetBottom()); in ScrimInsetsFrameLayout() 76 return insets.consumeSystemWindowInsets(); in ScrimInsetsFrameLayout() 131 protected void onInsetsChanged(Rect insets) { in onInsetsChanged() argument
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | DecorView.java | 946 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument 955 mFloatingInsets.top = insets.getSystemWindowInsetTop(); in onApplyWindowInsets() 956 mFloatingInsets.bottom = insets.getSystemWindowInsetBottom(); in onApplyWindowInsets() 957 insets = insets.replaceSystemWindowInsets(insets.getSystemWindowInsetLeft(), 0, in onApplyWindowInsets() 958 insets.getSystemWindowInsetRight(), 0); in onApplyWindowInsets() 961 mFloatingInsets.left = insets.getSystemWindowInsetTop(); in onApplyWindowInsets() 962 mFloatingInsets.right = insets.getSystemWindowInsetBottom(); in onApplyWindowInsets() 963 insets = insets.replaceSystemWindowInsets(0, insets.getSystemWindowInsetTop(), in onApplyWindowInsets() 964 0, insets.getSystemWindowInsetBottom()); in onApplyWindowInsets() 967 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/v7/appcompat/src/android/support/v7/widget/ |
D | DrawableUtils.java | 72 final Object insets = getOpticalInsetsMethod.invoke(drawable); in getOpticalBounds() local 74 if (insets != null) { in getOpticalBounds() 81 result.left = field.getInt(insets); in getOpticalBounds() 84 result.top = field.getInt(insets); in getOpticalBounds() 87 result.right = field.getInt(insets); in getOpticalBounds() 90 result.bottom = field.getInt(insets); in getOpticalBounds()
|
D | FitWindowsFrameLayout.java | 45 protected boolean fitSystemWindows(Rect insets) { in fitSystemWindows() argument 47 mListener.onFitSystemWindows(insets); in fitSystemWindows() 49 return super.fitSystemWindows(insets); in fitSystemWindows()
|
D | FitWindowsLinearLayout.java | 44 protected boolean fitSystemWindows(Rect insets) { in fitSystemWindows() argument 46 mListener.onFitSystemWindows(insets); in fitSystemWindows() 48 return super.fitSystemWindows(insets); in fitSystemWindows()
|
D | ActionBarOverlayLayout.java | 255 private boolean applyInsets(View view, Rect insets, boolean left, boolean top, in applyInsets() argument 259 if (left && lp.leftMargin != insets.left) { in applyInsets() 261 lp.leftMargin = insets.left; in applyInsets() 263 if (top && lp.topMargin != insets.top) { in applyInsets() 265 lp.topMargin = insets.top; in applyInsets() 267 if (right && lp.rightMargin != insets.right) { in applyInsets() 269 lp.rightMargin = insets.right; in applyInsets() 271 if (bottom && lp.bottomMargin != insets.bottom) { in applyInsets() 273 lp.bottomMargin = insets.bottom; in applyInsets() 279 protected boolean fitSystemWindows(Rect insets) { in fitSystemWindows() argument [all …]
|
D | SwitchCompat.java | 1095 final Rect insets = DrawableUtils.getOpticalBounds(mThumbDrawable); in onLayout() local 1096 opticalInsetLeft = Math.max(0, insets.left - trackPadding.left); in onLayout() 1097 opticalInsetRight = Math.max(0, insets.right - trackPadding.right); in onLayout() 1222 final Rect insets = DrawableUtils.getOpticalBounds(thumbDrawable); in onDraw() local 1224 padding.left += insets.left; in onDraw() 1225 padding.right -= insets.right; in onDraw() 1312 final Rect insets; in getThumbScrollRange() local 1314 insets = DrawableUtils.getOpticalBounds(mThumbDrawable); in getThumbScrollRange() 1316 insets = DrawableUtils.INSETS_NONE; in getThumbScrollRange() 1320 - insets.left - insets.right; in getThumbScrollRange()
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/custom/ |
D | CustomDrawerLayout.java | 41 public WindowInsets dispatchApplyWindowInsets(WindowInsets insets) { in dispatchApplyWindowInsets() argument 42 mSystemWindowInsetTop = insets.getSystemWindowInsetTop(); in dispatchApplyWindowInsets() 43 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 | 312 public WindowInsets onApplyWindowInsets(View view, WindowInsets insets) { in onApplyWindowInsets() argument 318 int bottomInset = insets.getSystemWindowInsetBottom(); in onApplyWindowInsets() 321 insets.getSystemWindowInsetBottom() - mBottomOffset, 0); in onApplyWindowInsets() 334 return insets.replaceSystemWindowInsets( in onApplyWindowInsets() 335 insets.getSystemWindowInsetLeft(), in onApplyWindowInsets() 336 insets.getSystemWindowInsetTop(), in onApplyWindowInsets() 337 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 | 94 protected boolean fitSystemWindows(Rect insets) { in fitSystemWindows() argument 96 boolean paddingChanged = insets.left != getPaddingLeft() in fitSystemWindows() 97 || insets.top != getPaddingTop() in fitSystemWindows() 98 || insets.bottom != getPaddingBottom(); in fitSystemWindows() 101 if (insets.right != mRightInset) { in fitSystemWindows() 102 mRightInset = insets.right; in fitSystemWindows() 107 setPadding(insets.left, 0, 0, 0); in fitSystemWindows() 109 insets.left = 0; in fitSystemWindows() 110 insets.top = 0; in fitSystemWindows() 111 insets.right = 0; in fitSystemWindows() [all …]
|
D | NotificationsQuickSettingsContainer.java | 82 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument 83 mBottomPadding = insets.getStableInsetBottom(); in onApplyWindowInsets() 85 return insets; in onApplyWindowInsets()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ActionBarOverlayLayout.java | 287 private boolean applyInsets(View view, Rect insets, boolean left, boolean top, 291 if (left && lp.leftMargin != insets.left) { 293 lp.leftMargin = insets.left; 295 if (top && lp.topMargin != insets.top) { 297 lp.topMargin = insets.top; 299 if (right && lp.rightMargin != insets.right) { 301 lp.rightMargin = insets.right; 303 if (bottom && lp.bottomMargin != insets.bottom) { 305 lp.bottomMargin = insets.bottom; 311 public WindowInsets onApplyWindowInsets(WindowInsets insets) { [all …]
|
/frameworks/base/core/java/android/widget/ |
D | Switch.java | 1100 final Insets insets = mThumbDrawable.getOpticalInsets(); in onLayout() local 1101 opticalInsetLeft = Math.max(0, insets.left - trackPadding.left); in onLayout() 1102 opticalInsetRight = Math.max(0, insets.right - trackPadding.right); in onLayout() 1226 final Insets insets = thumbDrawable.getOpticalInsets(); in onDraw() local 1228 padding.left += insets.left; in onDraw() 1229 padding.right -= insets.right; in onDraw() 1316 final Insets insets; in getThumbScrollRange() local 1318 insets = mThumbDrawable.getOpticalInsets(); in getThumbScrollRange() 1320 insets = Insets.NONE; in getThumbScrollRange() 1324 - insets.left - insets.right; in getThumbScrollRange()
|