Searched refs:insets (Results 1 - 25 of 78) sorted by relevance

1234

/frameworks/support/compat/src/main/java/androidx/core/view/
H A DOnApplyWindowInsetsListener.java22 * 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 WindowInsetsCompat onApplyWindowInsets(View v, WindowInsetsCompat insets); argument
H A DWindowInsetsCompat.java26 * Describes a set of insets for window content.
29 * future. To adjust insets, use one of the supplied clone methods to obtain a new
35 private WindowInsetsCompat(Object insets) { argument
36 mInsets = insets;
121 * Returns true if this WindowInsets has nonzero system window insets.
138 * Returns true if this WindowInsets has any nonzero insets.
151 * Check if these insets have been fully consumed.
154 * have been called such that all insets have been set to zero. This affects propagation of
155 * insets through the view hierarchy; insets tha
392 wrap(Object insets) argument
396 unwrap(WindowInsetsCompat insets) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/view/
H A DViewRootImplTest.java58 final WindowInsets insets = mViewRootImpl.getWindowInsets(true /* forceConstruct */);
60 assertThat(insets.getSystemWindowInsets(), equalTo(new Rect()));
61 assertThat(new Rect(insets.getStableInsetLeft(), insets.getStableInsetTop(),
62 insets.getStableInsetRight(), insets.getStableInsetBottom()), equalTo(new Rect()));
69 final WindowInsets insets = mViewRootImpl.getWindowInsets(true /* forceConstruct */);
71 assertThat(insets.getSystemWindowInsets(), equalTo(new Rect(0, 20, 0, 40)));
72 assertThat(new Rect(insets.getStableInsetLeft(), insets
[all...]
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/custom/
H A DCustomDrawerLayout.java40 public WindowInsets dispatchApplyWindowInsets(WindowInsets insets) { argument
41 mSystemWindowInsetTop = insets.getSystemWindowInsetTop();
42 return super.dispatchApplyWindowInsets(insets);
H A DFitWindowsContentLayout.java42 protected boolean fitSystemWindows(Rect insets) { argument
44 mInsets.set(insets);
46 return super.fitSystemWindows(insets);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DDropTarget.java30 boolean acceptsDrop(int x, int y, int width, int height, Rect insets, boolean isCurrentTarget); argument
H A DDockState.java91 public boolean acceptsDrop(int x, int y, int width, int height, Rect insets, argument
98 updateBoundsWithSystemInsets(mTmpRect, insets);
278 public Rect getPreDockedBounds(int width, int height, Rect insets) { argument
280 return updateBoundsWithSystemInsets(mTmpRect, insets);
287 public Rect getDockedBounds(int width, int height, int dividerSize, Rect insets, argument
293 insets, width, height, dividerSize);
305 int dividerSize, Rect insets, TaskStackLayoutAlgorithm layoutAlgorithm,
311 insets, width, height, dividerSize);
322 : insets.top;
323 // For now, ignore the left insets sinc
304 getDockedTaskStackBounds(Rect displayRect, int width, int height, int dividerSize, Rect insets, TaskStackLayoutAlgorithm layoutAlgorithm, Resources res, Rect windowRectOut) argument
335 updateBoundsWithSystemInsets(Rect bounds, Rect insets) argument
[all...]
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/myapplication.widgets/
H A DInsetsWidget.java39 public WindowInsets onApplyWindowInsets(WindowInsets insets) { argument
41 return super.onApplyWindowInsets(insets);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
H A DStickyHeaderScrollView.java105 public WindowInsets onApplyWindowInsets(WindowInsets insets) { argument
107 mStatusBarInset = insets.getSystemWindowInsetTop();
108 insets = insets.replaceSystemWindowInsets(
109 insets.getSystemWindowInsetLeft(),
111 insets.getSystemWindowInsetRight(),
112 insets.getSystemWindowInsetBottom()
115 return insets;
H A DStickyHeaderListView.java137 public WindowInsets onApplyWindowInsets(WindowInsets insets) { argument
139 mStatusBarInset = insets.getSystemWindowInsetTop();
140 insets.replaceSystemWindowInsets(
141 insets.getSystemWindowInsetLeft(),
143 insets.getSystemWindowInsetRight(),
144 insets.getSystemWindowInsetBottom()
147 return insets;
H A DStatusBarBackgroundLayout.java109 public WindowInsets onApplyWindowInsets(WindowInsets insets) { argument
110 mLastInsets = insets;
111 return super.onApplyWindowInsets(insets);
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
H A DTaskSnapshotSurfaceTest.java154 final Rect insets = new Rect(0, 10, 0, 10);
155 mSurface.setFrames(new Rect(0, 0, 100, 100), insets, insets);
163 final Rect insets = new Rect(10, 10, 0, 0);
164 mSurface.setFrames(new Rect(0, 0, 100, 100), insets, insets);
172 final Rect insets = new Rect(0, 10, 10, 0);
173 mSurface.setFrames(new Rect(0, 0, 100, 100), insets, insets);
185 final Rect insets
[all...]
H A DScreenDecorWindowTests.java164 // initialInsets was not actually immutable and just updated to the current insets,
269 final WindowInsets insets = getInsets(activity);
271 case TOP: return insets.getSystemWindowInsetTop() >= expected;
272 case BOTTOM: return insets.getSystemWindowInsetBottom() >= expected;
273 case LEFT: return insets.getSystemWindowInsetLeft() >= expected;
274 case RIGHT: return insets.getSystemWindowInsetRight() >= expected;
279 final WindowInsets insets = getInsets(activity);
281 case TOP: assertGreaterOrEqual(insets.getSystemWindowInsetTop(), expected); break;
282 case BOTTOM: assertGreaterOrEqual(insets.getSystemWindowInsetBottom(), expected); break;
283 case LEFT: assertGreaterOrEqual(insets
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DInsets.java86 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/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DFitWindowsFrameLayout.java50 protected boolean fitSystemWindows(Rect insets) { argument
52 mListener.onFitSystemWindows(insets);
54 return super.fitSystemWindows(insets);
H A DFitWindowsLinearLayout.java50 protected boolean fitSystemWindows(Rect insets) { argument
52 mListener.onFitSystemWindows(insets);
54 return super.fitSystemWindows(insets);
H A DFitWindowsViewGroup.java32 void onFitSystemWindows(Rect insets); argument
H A DDrawableUtils.java65 * Allows us to get the optical insets for a {@link Drawable}. Since this is hidden we need to
77 final Object insets = getOpticalInsetsMethod.invoke(drawable);
79 if (insets != null) {
80 // If the drawable has some optical insets, let's copy them into a Rect
86 result.left = field.getInt(insets);
89 result.top = field.getInt(insets);
92 result.right = field.getInt(insets);
95 result.bottom = field.getInt(insets);
103 Log.e(TAG, "Couldn't obtain the optical insets. Ignoring.");
108 // any optical insets, o
[all...]
/frameworks/base/core/proto/android/view/
H A Ddisplaycutout.proto28 optional .android.graphics.RectProto insets = 1;
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/view/
H A DStickyHeaderRecyclerView.java121 public WindowInsets onApplyWindowInsets(WindowInsets insets) { argument
123 mStatusBarInset = insets.getSystemWindowInsetTop();
124 insets.replaceSystemWindowInsets(
125 insets.getSystemWindowInsetLeft(),
127 insets.getSystemWindowInsetRight(),
128 insets.getSystemWindowInsetBottom()
131 return insets;
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
H A DThumbnailData.java33 public Rect insets; field in class:ThumbnailData
44 insets = new Rect();
55 insets = new Rect(snapshot.getContentInsets());
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DKeyguardPreviewContainer.java65 public WindowInsets onApplyWindowInsets(WindowInsets insets) { argument
66 setPadding(0, 0, 0, insets.getStableInsetBottom());
67 return super.onApplyWindowInsets(insets);
/frameworks/base/core/java/com/android/internal/policy/
H A DDockedDividerUtils.java99 public static int calculateMiddlePosition(boolean isHorizontalDivision, Rect insets, argument
101 int start = isHorizontalDivision ? insets.top : insets.left;
103 ? displayHeight - insets.bottom
104 : displayWidth - insets.right;
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
H A DTestWallpaper.java165 public void onApplyWindowInsets(WindowInsets insets) { argument
166 super.onApplyWindowInsets(insets);
167 mMainInsets.set(insets.getSystemWindowInsetLeft(), insets.getSystemWindowInsetTop(),
168 insets.getSystemWindowInsetRight(), insets.getSystemWindowInsetBottom());
169 mStableInsets.set(insets.getStableInsetLeft(), insets.getStableInsetTop(),
170 insets.getStableInsetRight(), insets
[all...]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
H A DSystemBarHelper.java216 * for this class to work. Otherwise window insets are not dispatched and this method will have
324 public WindowInsets onApplyWindowInsets(View view, WindowInsets insets) { argument
330 int bottomInset = insets.getSystemWindowInsetBottom();
333 insets.getSystemWindowInsetBottom() - mBottomOffset, 0);
346 return insets.replaceSystemWindowInsets(
347 insets.getSystemWindowInsetLeft(),
348 insets.getSystemWindowInsetTop(),
349 insets.getSystemWindowInsetRight(),

Completed in 418 milliseconds

1234