Searched defs:insets (Results 1 - 10 of 10) sorted by relevance

/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DActionBarOverlayLayout.java69 private boolean applyInsets(View view, Rect insets, boolean left, boolean top, argument
73 if (left && lp.leftMargin != insets.left) {
75 lp.leftMargin = insets.left;
77 if (top && lp.topMargin != insets.top) {
79 lp.topMargin = insets.top;
81 if (right && lp.rightMargin != insets.right) {
83 lp.rightMargin = insets.right;
85 if (bottom && lp.bottomMargin != insets.bottom) {
87 lp.bottomMargin = insets.bottom;
/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarOverlayLayout.java119 // and the application has asked for stable content insets, then
169 private boolean applyInsets(View view, Rect insets, boolean left, boolean top, argument
173 if (left && lp.leftMargin != insets.left) {
175 lp.leftMargin = insets.left;
177 if (top && lp.topMargin != insets.top) {
179 lp.topMargin = insets.top;
181 if (right && lp.rightMargin != insets.right) {
183 lp.rightMargin = insets.right;
185 if (bottom && lp.bottomMargin != insets.bottom) {
187 lp.bottomMargin = insets
193 fitSystemWindows(Rect insets) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DNinePatchDrawable.java186 private static Insets scaleFromDensity(Insets insets, int sdensity, int tdensity) { argument
187 int left = Bitmap.scaleFromDensity(insets.left, sdensity, tdensity);
188 int top = Bitmap.scaleFromDensity(insets.top, sdensity, tdensity);
189 int right = Bitmap.scaleFromDensity(insets.right, sdensity, tdensity);
190 int bottom = Bitmap.scaleFromDensity(insets.bottom, sdensity, tdensity);
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DMultiPaneChallengeLayout.java85 public void setInsets(Rect insets) { argument
86 mInsets.set(insets);
194 // Specifically that the root of the window will be padded in for insets
199 // Always measure the user switcher as if there were no IME insets
H A DCameraWidgetFrame.java513 public void setInsets(Rect insets) { argument
514 if (DEBUG) Log.d(TAG, "setInsets: " + insets);
515 mInsets.set(insets);
H A DKeyguardHostView.java1382 Rect insets = new Rect(); field in class:KeyguardHostView.SavedState
1392 this.insets = in.readParcelable(null);
1400 out.writeParcelable(insets, 0);
1425 ss.insets.set(mInsets);
1439 setInsets(ss.insets);
1445 protected boolean fitSystemWindows(Rect insets) { argument
1446 setInsets(insets);
1450 private void setInsets(Rect insets) { argument
1451 mInsets.set(insets);
H A DSlidingChallengeLayout.java271 public void setInsets(Rect insets) { argument
272 mInsets.set(insets);
880 // of insets on the root view - we only give the challenge the space it would
910 // insets for the IME.
917 // Specifically that the root of the window will be padded in for insets
928 // Allow scrim views to extend into the insets
975 // Scrim views use the entire area, including padding & insets
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DPhoneWindow.java2487 protected boolean fitSystemWindows(Rect insets) { argument
2488 mFrameOffsets.set(insets);
2489 updateStatusGuard(insets);
2490 updateNavigationGuard(insets);
2494 return super.fitSystemWindows(insets);
2497 private void updateStatusGuard(Rect insets) { argument
2508 // set top margin to top insets, show status guard
2509 if (mlp.topMargin != insets.top) {
2511 mlp.topMargin = insets.top;
2527 insets
2546 updateNavigationGuard(Rect insets) argument
[all...]
/frameworks/base/core/java/android/view/
H A DViewGroup.java2754 Insets insets = child.getOpticalInsets();
2755 left = Math.max(left, insets.left);
2756 top = Math.max(top, insets.top);
2757 right = Math.max(right, insets.right);
2758 bottom = Math.max(bottom, insets.bottom);
2839 Insets insets = c.getOpticalInsets();
2842 c.getLeft() + insets.left,
2843 c.getTop() + insets.top,
2844 c.getRight() - insets.right - 1,
2845 c.getBottom() - insets
5435 fitSystemWindows(Rect insets) argument
[all...]
H A DView.java832 * requested system UI flags that ignore those insets for layout.
2382 * flags, we would like a stable view of the content insets given to
2383 * {@link #fitSystemWindows(Rect)}. This means that the insets seen there
2410 * insets it adds to those given to the application.
3020 * The layout insets in pixels, that is the distance in pixels between the
5850 * Called by the view hierarchy when the content insets for a window have
5852 * The content insets tell you the space that the status bar, input method,
5864 * insets to the view's padding, consuming that content (modifying the
5865 * insets to be 0), and returning true. This behavior is off by default, but can
5869 * insets objec
5907 fitSystemWindows(Rect insets) argument
[all...]

Completed in 786 milliseconds