HomeSort by relevance Sort by last modified time
    Searched refs:insets (Results 1 - 25 of 229) sorted by null

1 2 3 4 5 6 7 8 910

  /external/libmojo/ui/gfx/geometry/
insets_f.h 14 // A floating point version of gfx::Insets.
33 // Returns the total width taken up by the insets, which is the sum of the
34 // left and right insets.
37 // Returns the total height taken up by the insets, which is the sum of the
38 // top and bottom insets.
41 // Returns true if the insets are empty.
51 bool operator==(const InsetsF& insets) const {
52 return top_ == insets.top_ && left_ == insets.left_ &&
53 bottom_ == insets.bottom_ && right_ == insets.right_
    [all...]
insets.h 18 // rectangle. An Insets stores the thickness of the top, left, bottom and right
24 class GFX_EXPORT Insets {
26 constexpr Insets() : top_(0), left_(0), bottom_(0), right_(0) {}
27 constexpr explicit Insets(int all)
29 constexpr Insets(int vertical, int horizontal)
34 constexpr Insets(int top, int left, int bottom, int right)
42 // Returns the total width taken up by the insets, which is the sum of the
43 // left and right insets.
46 // Returns the total height taken up by the insets, which is the sum of the
47 // top and bottom insets
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/
Insettable.java 27 void setInsets(Rect insets);
LauncherRootView.java 43 // based on the horizontal insets.
51 protected boolean fitSystemWindows(Rect insets) {
55 && (insets.left > 0 || insets.right > 0 || insets.bottom > 0)) {
56 mConsumedInsets.left = insets.left;
57 mConsumedInsets.right = insets.right;
58 mConsumedInsets.bottom = insets.bottom;
59 insets = new Rect(0, insets.top, 0, 0)
    [all...]
  /frameworks/support/compat/src/main/java/androidx/core/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 WindowInsetsCompat onApplyWindowInsets(View v, WindowInsetsCompat insets);
WindowInsetsCompat.java 26 * 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) {
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.
153 * <p>Insets are considered "consumed" if the applicable <code>consume*</code> methods
154 * have been called such that all insets have been set to zero. This affects propagation of
155 * insets through the view hierarchy; insets that have not been fully consumed will continu
    [all...]
  /frameworks/base/core/tests/coretests/src/android/view/
ViewRootImplTest.java 58 final WindowInsets insets = mViewRootImpl.getWindowInsets(true /* forceConstruct */); local
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 */); local
71 assertThat(insets.getSystemWindowInsets(), equalTo(new Rect(0, 20, 0, 40)));
72 assertThat(new Rect(insets.getStableInsetLeft(), insets.getStableInsetTop()
81 final WindowInsets insets = mViewRootImpl.getWindowInsets(true \/* forceConstruct *\/); local
    [all...]
  /external/snakeyaml/src/test/java/org/yaml/snakeyaml/immutable/
MoreImmutablesTest.java 19 import java.awt.Insets;
34 Insets insets = new Insets(10, 20, 30, 40); local
35 String dump = yaml.dump(insets);
36 assertEquals("!!java.awt.Insets [10, 20, 30, 40]\n", dump);
38 assertEquals(insets, loaded);
64 Insets insets = new Insets(10, 20, 30, 40) local
    [all...]
  /frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/custom/
CustomDrawerLayout.java 40 public WindowInsets dispatchApplyWindowInsets(WindowInsets insets) {
41 mSystemWindowInsetTop = insets.getSystemWindowInsetTop();
42 return super.dispatchApplyWindowInsets(insets);
FitWindowsContentLayout.java 42 protected boolean fitSystemWindows(Rect insets) {
44 mInsets.set(insets);
46 return super.fitSystemWindows(insets);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DropTarget.java 30 boolean acceptsDrop(int x, int y, int width, int height, Rect insets, boolean isCurrentTarget);
  /frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/myapplication.widgets/
InsetsWidget.java 39 public WindowInsets onApplyWindowInsets(WindowInsets insets) {
41 return super.onApplyWindowInsets(insets);
  /frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
StickyHeaderScrollView.java 105 public WindowInsets onApplyWindowInsets(WindowInsets insets) {
107 mStatusBarInset = insets.getSystemWindowInsetTop();
108 insets = insets.replaceSystemWindowInsets(
109 insets.getSystemWindowInsetLeft(),
111 insets.getSystemWindowInsetRight(),
112 insets.getSystemWindowInsetBottom()
115 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...]
  /packages/apps/Launcher3/quickstep/src/com/android/quickstep/fallback/
RecentsRootView.java 68 protected boolean fitSystemWindows(Rect insets) {
70 mActivity.getDeviceProfile().updateInsets(insets);
71 setInsets(insets);
76 public void setInsets(Rect insets) {
77 // If the insets haven't changed, this is a no-op. Avoid unnecessary layout caused by
79 if (!insets.equals(mInsets)) {
80 super.setInsets(insets);
82 setBackground(insets.top == 0 ? null
  /frameworks/base/services/tests/servicestests/src/com/android/server/wm/
TaskSnapshotSurfaceTest.java 154 final Rect insets = new Rect(0, 10, 0, 10); local
155 mSurface.setFrames(new Rect(0, 0, 100, 100), insets, insets);
163 final Rect insets = new Rect(10, 10, 0, 0); local
164 mSurface.setFrames(new Rect(0, 0, 100, 100), insets, insets);
172 final Rect insets = new Rect(0, 10, 10, 0); local
173 mSurface.setFrames(new Rect(0, 0, 100, 100), insets, insets);
185 final Rect insets = new Rect(0, 10, 10, 0) local
198 final Rect insets = new Rect(0, 10, 10, 0); local
210 final Rect insets = new Rect(0, 10, 0, 10); local
223 final Rect insets = new Rect(10, 10, 0, 0); local
236 final Rect insets = new Rect(0, 10, 10, 0); local
    [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...]
  /frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
FitWindowsFrameLayout.java 50 protected boolean fitSystemWindows(Rect insets) {
52 mListener.onFitSystemWindows(insets);
54 return super.fitSystemWindows(insets);
FitWindowsLinearLayout.java 50 protected boolean fitSystemWindows(Rect insets) {
52 mListener.onFitSystemWindows(insets);
54 return super.fitSystemWindows(insets);
FitWindowsViewGroup.java 32 void onFitSystemWindows(Rect insets);
  /frameworks/base/core/proto/android/view/
displaycutout.proto 28 optional .android.graphics.RectProto insets = 1;
  /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;

Completed in 1306 milliseconds

1 2 3 4 5 6 7 8 910