Lines Matching refs:insets

2856             updateColorViews(null /* insets */, true /* animate */);
2860 public WindowInsets onApplyWindowInsets(WindowInsets insets) {
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, boolean animate) {
2886 if (insets != null) {
2887 mLastTopInset = Math.min(insets.getStableInsetTop(),
2888 insets.getSystemWindowInsetTop());
2889 mLastBottomInset = Math.min(insets.getStableInsetBottom(),
2890 insets.getSystemWindowInsetBottom());
2891 mLastRightInset = Math.min(insets.getStableInsetRight(),
2892 insets.getSystemWindowInsetRight());
2894 // Don't animate if the presence of stable insets has changed, because that
2897 boolean hasTopStableInset = insets.getStableInsetTop() != 0;
2901 boolean hasBottomStableInset = insets.getStableInsetBottom() != 0;
2905 boolean hasRightStableInset = insets.getStableInsetRight() != 0;
2944 if (insets == null) {
2945 // The insets have changed, but we're not currently in the process
2950 if (insets != null) {
2951 insets = insets.replaceSystemWindowInsets(
2952 insets.getSystemWindowInsetLeft(),
2953 insets.getSystemWindowInsetTop(),
2954 insets.getSystemWindowInsetRight() - consumedRight,
2955 insets.getSystemWindowInsetBottom() - consumedBottom);
2959 if (insets != null) {
2960 insets = insets.consumeStableInsets();
2962 return insets;
3066 private WindowInsets updateStatusGuard(WindowInsets insets) {
3081 // If the parent doesn't consume the insets, manually
3082 // apply the default system window insets.
3083 mContentParent.computeSystemWindowInsets(insets, rect);
3084 final int newMargin = rect.top == 0 ? insets.getSystemWindowInsetTop() : 0;
3087 mlp.topMargin = insets.getSystemWindowInsetTop();
3110 // We only need to consume the insets if the action
3116 insets = insets.consumeSystemWindowInsets(
3133 return insets;
3136 private void updateNavigationGuard(WindowInsets insets) {
3144 mlp.bottomMargin = insets.getSystemWindowInsetBottom();
3155 insets.getSystemWindowInsetBottom(),
3159 lp.height = insets.getSystemWindowInsetBottom();
4299 mDecor.updateColorViews(null /* insets */, true /* animate */);