/frameworks/base/core/java/android/service/wallpaper/ |
H A D | WallpaperService.java | 442 * Called with the current insets that are in effect for the wallpaper. 446 * @param insets Insets to apply. 448 public void onApplyWindowInsets(WindowInsets insets) { argument 790 WindowInsets insets = new WindowInsets(mFinalSystemInsets, 794 Log.v(TAG, "dispatching insets=" + insets); 796 onApplyWindowInsets(insets);
|
/frameworks/base/core/java/android/view/ |
H A D | View.java | 882 * requested system UI flags that ignore those insets for layout. 2401 * Flag indicating that we're in the process of applying window insets. 2666 * flags, we would like a stable view of the content insets given to 2667 * {@link #fitSystemWindows(Rect)}. This means that the insets seen there 2694 * insets it adds to those given to the application. 3250 * The layout insets in pixels, that is the distance in pixels between the 7067 * Called by the view hierarchy when the content insets for a window have 7069 * The content insets tell you the space that the status bar, input method, 7081 * insets to the view's padding, consuming that content (modifying the 7082 * insets t 7129 fitSystemWindows(Rect insets) argument 7153 fitSystemWindowsInt(Rect insets) argument 7197 onApplyWindowInsets(WindowInsets insets) argument 7250 dispatchApplyWindowInsets(WindowInsets insets) argument 17953 setOpticalInsets(Insets insets) argument 21434 onApplyWindowInsets(View v, WindowInsets insets) argument [all...] |
H A D | ViewGroup.java | 3200 Insets insets = child.getOpticalInsets(); 3201 left = Math.max(left, insets.left); 3202 top = Math.max(top, insets.top); 3203 right = Math.max(right, insets.right); 3204 bottom = Math.max(bottom, insets.bottom); 3286 Insets insets = c.getOpticalInsets(); 3289 c.getLeft() + insets.left, 3290 c.getTop() + insets.top, 3291 c.getRight() - insets.right - 1, 3292 c.getBottom() - insets 6269 dispatchApplyWindowInsets(WindowInsets insets) argument [all...] |
H A D | ViewRootImpl.java | 476 // Compute surface insets required to draw at specified Z value. 477 // TODO: Use real shadow insets for a constant max Z. 751 final Rect insets = attrs.surfaceInsets; 752 final boolean hasSurfaceInsets = insets.left != 0 || insets.right != 0 753 || insets.top != 0 || insets.bottom != 0; 804 // Restore old surface insets. 1258 // immediately use pending insets. 1426 if (DEBUG_LAYOUT) Log.v(TAG, "Visible insets changin [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | AbsSeekBar.java | 514 final Insets insets = thumbDrawable.getOpticalInsets(); 518 tempRect.left += insets.left; 519 tempRect.right -= insets.right;
|
H A D | GridLayout.java | 912 Insets insets = getOpticalInsets(); 914 int top = getPaddingTop() + insets.top; 915 int left = getPaddingLeft() + insets.left; 916 int right = getWidth() - getPaddingRight() - insets.right; 917 int bottom = getHeight() - getPaddingBottom() - insets.bottom;
|
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/base/core/java/com/android/internal/app/ |
H A D | AlertController.java | 436 public WindowInsets onApplyWindowInsets(View view, WindowInsets insets) { 437 if (insets.isRound()) { 443 return insets.consumeSystemWindowInsets();
|
/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...] |
/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/ |
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/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/packages/SystemUI/src/com/android/systemui/recents/ |
H A D | RecentsConfiguration.java | 274 /** Updates the system insets */ 275 public void updateSystemInsets(Rect insets) { argument 276 systemInsets.set(insets); 321 * the system insets. 336 * the system insets.
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | RecentsView.java | 317 * This is called with the full size of the window since we are handling our own insets. 358 * This is called with the full size of the window since we are handling our own insets. 385 public WindowInsets onApplyWindowInsets(WindowInsets insets) { argument 386 // Update the configuration with the latest system insets and trigger a relayout 387 mConfig.updateSystemInsets(insets.getSystemWindowInsets()); 389 return insets.consumeSystemWindowInsets();
|
/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 | NotificationPanelView.java | 1902 public WindowInsets onApplyWindowInsets(WindowInsets insets) { argument 1903 mNavigationBarBottomHeight = insets.getSystemWindowInsetBottom(); 1905 return insets;
|
H A D | NotificationsQuickSettingsContainer.java | 58 public WindowInsets onApplyWindowInsets(WindowInsets insets) { argument 59 setPadding(0, 0, 0, insets.getSystemWindowInsetBottom()); 60 return 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...] |
/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/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/ |
H A D | ListenerBindingObject.java | 175 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) { argument
|
/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/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
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;
|
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;
|
/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/support/design/src/android/support/design/widget/ |
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()) {
|