/frameworks/support/v4/api21/android/support/v4/widget/ |
DrawerLayoutImpl.java | 25 void setChildInsets(Object insets, boolean drawStatusBar);
|
DrawerLayoutCompatApi21.java | 45 public static void dispatchChildInsets(View child, Object insets, int gravity) { 46 WindowInsets wi = (WindowInsets) insets; 57 public static void applyMarginInsets(ViewGroup.MarginLayoutParams lp, Object insets, 59 WindowInsets wi = (WindowInsets) insets; 73 public static int getTopInset(Object insets) { 74 return insets != null ? ((WindowInsets) insets).getSystemWindowInsetTop() : 0; 88 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) { 90 drawerLayout.setChildInsets(insets, insets.getSystemWindowInsetTop() > 0) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
Insettable.java | 27 void setInsets(Rect insets);
|
LauncherRootView.java | 13 protected boolean fitSystemWindows(Rect insets) { 14 setInsets(insets);
|
/frameworks/support/v4/donut/android/support/v4/view/ |
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);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
FitWindowsFrameLayout.java | 45 protected boolean fitSystemWindows(Rect insets) { 47 mListener.onFitSystemWindows(insets); 49 return super.fitSystemWindows(insets);
|
FitWindowsLinearLayout.java | 44 protected boolean fitSystemWindows(Rect insets) { 46 mListener.onFitSystemWindows(insets); 48 return super.fitSystemWindows(insets);
|
FitWindowsViewGroup.java | 27 void onFitSystemWindows(Rect insets);
|
DrawableUtils.java | 42 sInsetsClazz = Class.forName("android.graphics.Insets"); 52 * Allows us to get the optical insets for a {@link Drawable}. Since this is hidden we need to 53 * use reflection. Since the {@code Insets} class is hidden also, we return a Rect instead. 64 final Object insets = getOpticalInsetsMethod.invoke(drawable); local 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); [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
StickyHeaderScrollView.java | 103 public WindowInsets onApplyWindowInsets(WindowInsets insets) { 105 mStatusBarInset = insets.getSystemWindowInsetTop(); 106 insets = insets.replaceSystemWindowInsets( 107 insets.getSystemWindowInsetLeft(), 109 insets.getSystemWindowInsetRight(), 110 insets.getSystemWindowInsetBottom() 113 return insets;
|
StickyHeaderListView.java | 134 public WindowInsets onApplyWindowInsets(WindowInsets insets) { 136 mStatusBarInset = insets.getSystemWindowInsetTop(); 137 insets.replaceSystemWindowInsets( 138 insets.getSystemWindowInsetLeft(), 140 insets.getSystemWindowInsetRight(), 141 insets.getSystemWindowInsetBottom() 144 return insets;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
ViewOutlineProviderCompatUtils.java | 29 public void setInsets(final InputMethodService.Insets insets); 34 public void setInsets(final InputMethodService.Insets insets) {}
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/ |
LayoutRenderer.java | 27 import java.awt.Insets; 69 Insets insets = getInsets(); local 70 g.clipRect(insets.left, insets.top, 71 getWidth() - insets.left - insets.right, 72 getHeight() - insets.top - insets.bottom); 83 int x = (getWidth() - insets.left - insets.right - root.width) / 2 144 Insets insets = getInsets(); local [all...] |
/frameworks/support/v4/api21/android/support/v4/view/ |
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) { 90 if (insets instanceof WindowInsetsCompatApi21) { 92 WindowInsets unwrapped = ((WindowInsetsCompatApi21) insets).unwrap() [all...] |
/frameworks/base/graphics/java/android/graphics/ |
Insets.java | 20 * An Insets instance holds four integer offsets which describe changes to the four 24 * Insets are immutable so may be treated as values. 28 public class Insets { 29 public static final Insets NONE = new Insets(0, 0, 0, 0); 36 private Insets(int left, int top, int right, int bottom) { 46 * Return an Insets instance with the appropriate values. 53 * @return Insets instance with the appropriate values 55 public static Insets of(int left, int top, int right, int bottom) { 59 return new Insets(left, top, right, bottom) [all...] |
/developers/build/prebuilts/gradle/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/ |
MainActivity.java | 38 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) { 42 final boolean round = insets.isRound(); 48 // GridViewPager relies on insets to properly handle 51 pager.onApplyWindowInsets(insets); 52 return insets;
|
/developers/samples/android/wearable/wear/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/ |
MainActivity.java | 38 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) { 42 final boolean round = insets.isRound(); 48 // GridViewPager relies on insets to properly handle 51 pager.onApplyWindowInsets(insets); 52 return insets;
|
/development/samples/browseable/GridViewPager/src/com.example.android.wearable.gridviewpager/ |
MainActivity.java | 38 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) { 42 final boolean round = insets.isRound(); 48 // GridViewPager relies on insets to properly handle 51 pager.onApplyWindowInsets(insets); 52 return insets;
|
/external/proguard/src/proguard/gui/ |
MemberSpecificationDialog.java | 87 constraints.insets = new Insets(1, 2, 1, 2); 93 constraintsStretch.insets = constraints.insets; 98 constraintsLast.insets = constraints.insets; 105 constraintsLastStretch.insets = constraints.insets; 113 panelConstraints.insets = constraints.insets; [all...] |
OptimizationsDialog.java | 64 constraintsLast.insets = new Insets(1, 2, 1, 2); 71 constraintsLastStretch.insets = constraintsLast.insets; 79 panelConstraints.insets = constraintsLast.insets; 84 selectButtonConstraints.insets = new Insets(4, 4, 8, 4); 90 okButtonConstraints.insets = selectButtonConstraints.insets; [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
KeyguardPreviewContainer.java | 65 public WindowInsets onApplyWindowInsets(WindowInsets insets) { 66 setPadding(0, 0, 0, insets.getStableInsetBottom()); 67 return super.onApplyWindowInsets(insets);
|
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/ |
TestWallpaper.java | 157 public void onApplyWindowInsets(WindowInsets insets) { 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.getStableInsetBottom()) [all...] |
/frameworks/support/design/src/android/support/design/internal/ |
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();
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
SelectionHandles.java | 95 Margins insets = canvas.getInsets(mItem.getNode().getFqcn()); local 96 if (insets != null) { 97 x1 += insets.left; 98 x2 -= insets.right; 99 y1 += insets.top; 100 y2 -= insets.bottom;
|
/packages/apps/Settings/src/com/android/settings/widget/ |
StickyHeaderListView.java | 131 public WindowInsets onApplyWindowInsets(WindowInsets insets) { 133 mStatusBarInset = insets.getSystemWindowInsetTop(); 134 insets.consumeSystemWindowInsets(false, true, false, false); 136 return insets;
|