/frameworks/support/v4/api21/android/support/v4/widget/ |
H A D | DrawerLayoutImpl.java | 25 void setChildInsets(Object insets, boolean drawStatusBar); argument
|
H A D | DrawerLayoutCompatApi21.java | 45 public static void dispatchChildInsets(View child, Object insets, int gravity) { argument 46 WindowInsets wi = (WindowInsets) insets; 57 public static void applyMarginInsets(ViewGroup.MarginLayoutParams lp, Object insets, argument 59 WindowInsets wi = (WindowInsets) insets; 73 public static int getTopInset(Object insets) { argument 74 return insets != null ? ((WindowInsets) insets).getSystemWindowInsetTop() : 0; 88 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) { argument 90 drawerLayout.setChildInsets(insets, insets [all...] |
/frameworks/support/v4/donut/android/support/v4/view/ |
H A D | OnApplyWindowInsetsListener.java | 22 * Listener for applying window insets on a view in a custom way. 25 * to the way that window insets are treated for a view. If an OnApplyWindowInsetsListener 38 * @param v The view applying window insets 39 * @param insets The insets to apply 40 * @return The insets supplied, minus any insets that were consumed 42 public WindowInsetsCompat onApplyWindowInsets(View v, WindowInsetsCompat insets); argument
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | FitWindowsFrameLayout.java | 45 protected boolean fitSystemWindows(Rect insets) { argument 47 mListener.onFitSystemWindows(insets); 49 return super.fitSystemWindows(insets);
|
H A D | FitWindowsLinearLayout.java | 44 protected boolean fitSystemWindows(Rect insets) { argument 46 mListener.onFitSystemWindows(insets); 48 return super.fitSystemWindows(insets);
|
H A D | FitWindowsViewGroup.java | 27 void onFitSystemWindows(Rect insets); argument
|
H A D | DrawableUtils.java | 52 * Allows us to get the optical insets for a {@link Drawable}. Since this is hidden we need to 64 final Object insets = getOpticalInsetsMethod.invoke(drawable); 66 if (insets != null) { 67 // If the drawable has some optical insets, let's copy them into a Rect 73 result.left = field.getInt(insets); 76 result.top = field.getInt(insets); 79 result.right = field.getInt(insets); 82 result.bottom = field.getInt(insets); 90 Log.e(TAG, "Couldn't obtain the optical insets. Ignoring."); 95 // any optical insets, o [all...] |
H A D | ActionBarOverlayLayout.java | 199 // // and the application has asked for stable content insets, then 257 private boolean applyInsets(View view, Rect insets, boolean left, boolean top, argument 261 if (left && lp.leftMargin != insets.left) { 263 lp.leftMargin = insets.left; 265 if (top && lp.topMargin != insets.top) { 267 lp.topMargin = insets.top; 269 if (right && lp.rightMargin != insets.right) { 271 lp.rightMargin = insets.right; 273 if (bottom && lp.bottomMargin != insets.bottom) { 275 lp.bottomMargin = insets 281 fitSystemWindows(Rect insets) argument [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
H A D | StickyHeaderScrollView.java | 103 public WindowInsets onApplyWindowInsets(WindowInsets insets) { argument 105 mStatusBarInset = insets.getSystemWindowInsetTop(); 106 insets = insets.replaceSystemWindowInsets( 107 insets.getSystemWindowInsetLeft(), 109 insets.getSystemWindowInsetRight(), 110 insets.getSystemWindowInsetBottom() 113 return insets;
|
H A D | StickyHeaderListView.java | 134 public WindowInsets onApplyWindowInsets(WindowInsets insets) { argument 136 mStatusBarInset = insets.getSystemWindowInsetTop(); 137 insets.replaceSystemWindowInsets( 138 insets.getSystemWindowInsetLeft(), 140 insets.getSystemWindowInsetRight(), 141 insets.getSystemWindowInsetBottom() 144 return insets;
|
/frameworks/support/v4/api21/android/support/v4/view/ |
H A D | ViewCompatLollipop.java | 59 // Wrap the framework insets in our wrapper 60 WindowInsetsCompatApi21 insets = new WindowInsetsCompatApi21(windowInsets); 61 // Give the listener a chance to use the wrapped insets 62 insets = (WindowInsetsCompatApi21) listener.onApplyWindowInsets(view, insets); 63 // Return the unwrapped insets 64 return insets.unwrap(); 89 public static WindowInsetsCompat onApplyWindowInsets(View v, WindowInsetsCompat insets) { argument 90 if (insets instanceof WindowInsetsCompatApi21) { 92 WindowInsets unwrapped = ((WindowInsetsCompatApi21) insets) 104 dispatchApplyWindowInsets(View v, WindowInsetsCompat insets) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Insets.java | 86 Insets insets = (Insets) o; 88 if (bottom != insets.bottom) return false; 89 if (left != insets.left) return false; 90 if (right != insets.right) return false; 91 if (top != insets.top) return false;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | KeyguardPreviewContainer.java | 65 public WindowInsets onApplyWindowInsets(WindowInsets insets) { argument 66 setPadding(0, 0, 0, insets.getStableInsetBottom()); 67 return super.onApplyWindowInsets(insets);
|
H A D | StatusBarWindowView.java | 67 protected boolean fitSystemWindows(Rect insets) { argument 69 boolean paddingChanged = insets.left != getPaddingLeft() 70 || insets.top != getPaddingTop() 71 || insets.bottom != getPaddingBottom(); 74 if (insets.right != mRightInset) { 75 mRightInset = insets.right; 80 setPadding(insets.left, 0, 0, 0); 82 insets.left = 0; 83 insets.top = 0; 84 insets [all...] |
H A D | NotificationsQuickSettingsContainer.java | 58 public WindowInsets onApplyWindowInsets(WindowInsets insets) { argument 59 setPadding(0, 0, 0, insets.getSystemWindowInsetBottom()); 60 return insets;
|
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/ |
H A D | TestWallpaper.java | 157 public void onApplyWindowInsets(WindowInsets insets) { argument 158 super.onApplyWindowInsets(insets); 159 mMainInsets.set(insets.getSystemWindowInsetLeft(), insets.getSystemWindowInsetTop(), 160 insets.getSystemWindowInsetRight(), insets.getSystemWindowInsetBottom()); 161 mStableInsets.set(insets.getStableInsetLeft(), insets.getStableInsetTop(), 162 insets.getStableInsetRight(), insets [all...] |
/frameworks/support/design/src/android/support/design/internal/ |
H A D | ScrimInsetsFrameLayout.java | 59 setWillNotDraw(true); // No need to draw until the insets are adjusted 65 WindowInsetsCompat insets) { 69 mInsets.set(insets.getSystemWindowInsetLeft(), 70 insets.getSystemWindowInsetTop(), 71 insets.getSystemWindowInsetRight(), 72 insets.getSystemWindowInsetBottom()); 75 return insets.consumeSystemWindowInsets();
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
H A D | SystemBarHelper.java | 151 * window insets are not dispatched and this method will have no effect. 228 public WindowInsets onApplyWindowInsets(View view, WindowInsets insets) { argument 229 int bottomInset = insets.getSystemWindowInsetBottom(); 232 insets.getSystemWindowInsetBottom() - mNavigationBarHeight, 0); 245 return insets.replaceSystemWindowInsets( 246 insets.getSystemWindowInsetLeft(), 247 insets.getSystemWindowInsetTop(), 248 insets.getSystemWindowInsetRight(),
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ActionBarOverlayLayout.java | 231 // and the application has asked for stable content insets, then 287 private boolean applyInsets(View view, Rect insets, boolean left, boolean top, argument 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 311 onApplyWindowInsets(WindowInsets insets) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | NinePatchDrawable.java | 183 private static Insets scaleFromDensity(Insets insets, int sdensity, int tdensity) { argument 184 int left = Bitmap.scaleFromDensity(insets.left, sdensity, tdensity); 185 int top = Bitmap.scaleFromDensity(insets.top, sdensity, tdensity); 186 int right = Bitmap.scaleFromDensity(insets.right, sdensity, tdensity); 187 int bottom = Bitmap.scaleFromDensity(insets.bottom, sdensity, tdensity); 293 NinePatch.InsetStruct insets = mNinePatchState.mNinePatch.getBitmap().getNinePatchInsets(); 294 if (insets != null) { 295 final Rect outlineInsets = insets.outlineRect; 300 insets.outlineRadius); 301 outline.setAlpha(insets [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | Switch.java | 1099 final Insets insets = mThumbDrawable.getOpticalInsets(); 1100 opticalInsetLeft = Math.max(0, insets.left - trackPadding.left); 1101 opticalInsetRight = Math.max(0, insets.right - trackPadding.right); 1165 // If necessary, offset by the optical insets of the thumb asset. 1225 final Insets insets = thumbDrawable.getOpticalInsets(); 1227 padding.left += insets.left; 1228 padding.right -= insets.right; 1315 final Insets insets; 1317 insets = mThumbDrawable.getOpticalInsets(); 1319 insets [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | SwitchCompat.java | 813 final Rect insets = DrawableUtils.getOpticalBounds(mThumbDrawable); 814 opticalInsetLeft = Math.max(0, insets.left - trackPadding.left); 815 opticalInsetRight = Math.max(0, insets.right - trackPadding.right); 879 // If necessary, offset by the optical insets of the thumb asset. 940 final Rect insets = DrawableUtils.getOpticalBounds(thumbDrawable); 942 padding.left += insets.left; 943 padding.right -= insets.right; 1030 final Rect insets; 1032 insets = DrawableUtils.getOpticalBounds(mThumbDrawable); 1034 insets [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | CoordinatorLayout.java | 209 // We're set to fitSystemWindows but we haven't had any insets yet... 210 // We should request a new dispatch of window insets 231 * Set a drawable to draw in the insets area for the status bar. 242 * Gets the drawable used to draw in the insets area for the status bar. 251 * Set a drawable to draw in the insets area for the status bar. 261 * Set a drawable to draw in the insets area for the status bar. 271 private void setWindowInsets(WindowInsetsCompat insets) { argument 272 if (mLastInsets != insets) { 273 mLastInsets = insets; 274 mDrawStatusBarBackground = insets ! 694 dispatchChildApplyWindowInsets(WindowInsetsCompat insets) argument 2110 onApplyWindowInsets(CoordinatorLayout coordinatorLayout, V child, WindowInsetsCompat insets) argument 2517 onApplyWindowInsets(View v, WindowInsetsCompat insets) argument [all...] |
H A D | AppBarLayout.java | 165 WindowInsetsCompat insets) { 166 setWindowInsets(insets); 167 return insets.consumeSystemWindowInsets(); 465 private void setWindowInsets(WindowInsetsCompat insets) { argument 468 mLastInsets = insets; 473 insets = ViewCompat.dispatchApplyWindowInsets(child, insets); 474 if (insets.isConsumed()) {
|
/frameworks/base/core/java/com/android/internal/policy/ |
H A D | PhoneWindow.java | 2856 updateColorViews(null /* insets */, true /* animate */); 2860 public WindowInsets onApplyWindowInsets(WindowInsets insets) { argument 2861 mFrameOffsets.set(insets.getSystemWindowInsets()); 2862 insets = updateColorViews(insets, true /* animate */); 2863 insets = updateStatusGuard(insets); 2864 updateNavigationGuard(insets); 2868 return insets; 2876 private WindowInsets updateColorViews(WindowInsets insets, boolea argument 3066 updateStatusGuard(WindowInsets insets) argument 3136 updateNavigationGuard(WindowInsets insets) argument [all...] |