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

1 2 3 4

  /frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
TestWallpaper.java 157 public void onApplyWindowInsets(WindowInsets insets) {
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.getStableInsetBottom())
    [all...]
  /frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/view/
StickyHeaderRecyclerView.java 117 public WindowInsets onApplyWindowInsets(WindowInsets insets) {
119 mStatusBarInset = insets.getSystemWindowInsetTop();
120 insets.replaceSystemWindowInsets(
121 insets.getSystemWindowInsetLeft(),
123 insets.getSystemWindowInsetRight(),
124 insets.getSystemWindowInsetBottom()
127 return insets;
  /frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
StickyHeaderListView.java 137 public WindowInsets onApplyWindowInsets(WindowInsets insets) {
139 mStatusBarInset = insets.getSystemWindowInsetTop();
140 insets.replaceSystemWindowInsets(
141 insets.getSystemWindowInsetLeft(),
143 insets.getSystemWindowInsetRight(),
144 insets.getSystemWindowInsetBottom()
147 return insets;
  /external/snakeyaml/src/test/java/org/yaml/snakeyaml/immutable/
ImmutablesRepresenter.java 18 import java.awt.Insets;
34 this.representers.put(Insets.class, new RepresentInsets());
42 Insets insets = (Insets) data; local
45 Arrays.asList(new Object[] { insets.top, insets.left, insets.bottom,
46 insets.right }), true);
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...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/
BoxInsetLayout.java 77 public WindowInsets onApplyWindowInsets(WindowInsets insets) {
78 insets = super.onApplyWindowInsets(insets);
79 final boolean round = insets.isRound();
85 insets.getSystemWindowInsetLeft(),
86 insets.getSystemWindowInsetTop(),
87 insets.getSystemWindowInsetRight(),
88 insets.getSystemWindowInsetBottom());
89 return insets;
101 * @return the system window insets Rec
    [all...]
  /frameworks/support/v7/appcompat/src/android/support/v7/widget/
DrawableUtils.java 50 sInsetsClazz = Class.forName("android.graphics.Insets");
60 * Allows us to get the optical insets for a {@link Drawable}. Since this is hidden we need to
61 * use reflection. Since the {@code Insets} class is hidden also, we return a Rect instead.
72 final Object insets = getOpticalInsetsMethod.invoke(drawable); local
74 if (insets != null) {
75 // If the drawable has some optical insets, let's copy them into a Rect
81 result.left = field.getInt(insets);
84 result.top = field.getInt(insets);
87 result.right = field.getInt(insets);
90 result.bottom = field.getInt(insets);
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
SelectionHandles.java 95 Margins insets = canvas.getInsets(mItem.getNode().getFqcn()); local
96 if (insets != null) {
97 x1 += insets.left;
98 x2 -= insets.right;
99 y1 += insets.top;
100 y2 -= insets.bottom;
SelectionOverlay.java 203 Margins insets = mCanvas.getInsets(selectedNode.getFqcn()); local
209 if (insets != null) {
210 x1 += insets.left;
211 x2 -= insets.right;
212 y1 += insets.top;
213 y2 -= insets.bottom;
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/tv/views/
RecentsTvView.java 211 * Returns the last known system insets.
230 public WindowInsets onApplyWindowInsets(WindowInsets insets) {
231 mSystemInsets.set(insets.getSystemWindowInsets());
233 return insets;
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
RecentsViewTouchHandler.java 97 Rect insets = new Rect(); local
98 SystemServicesProxy.getInstance(mRv.getContext()).getStableInsets(insets);
99 mDividerSnapAlgorithm = DividerSnapAlgorithm.create(mRv.getContext(), insets);
RecentsView.java 333 * This is called with the full size of the window since we are handling our own insets.
362 * This is called with the full size of the window since we are handling our own insets.
406 public WindowInsets onApplyWindowInsets(WindowInsets insets) {
407 mSystemInsets.set(insets.getSystemWindowInsets());
410 return insets;
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DividerView.java 302 public WindowInsets onApplyWindowInsets(WindowInsets insets) {
303 if (mStableInsets.left != insets.getStableInsetLeft()
304 || mStableInsets.top != insets.getStableInsetTop()
305 || mStableInsets.right != insets.getStableInsetRight()
306 || mStableInsets.bottom != insets.getStableInsetBottom()) {
307 mStableInsets.set(insets.getStableInsetLeft(), insets.getStableInsetTop(),
308 insets.getStableInsetRight(), insets.getStableInsetBottom());
314 return super.onApplyWindowInsets(insets);
    [all...]
  /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...]
ScreenViewer.java 19 import java.awt.Insets;
90 new Insets(0, 0, 0, 0), 0, 0));
95 new Insets(0, 0, 0, 0), 0, 0));
138 new Insets(0, 0, 0, 0), 0, 0));
170 new Insets(0, 0, 0, 0), 0, 0));
200 new Insets(0, 0, 0, 0), 0, 0));
218 new Insets(0, 0, 0, 6), 0, 0));
229 new Insets(0, 0, 0, 0), 0, 0));
373 new Insets(0, 0, 0, 12), 0, 0 ));
379 new Insets(0, 0, 0, 12), 0, 0 ))
622 private final Insets insets = new Insets(0, 0, 0, 0); field in class:ScreenViewer.CrosshairPanel
650 Insets insets = getInsets(); local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
CommonControllerOverlay.java 246 // | Action Bar | insets.top
249 // | Content Area | insets.right = insets.left = 0
252 // | Navigation Bar | insets.bottom
258 protected boolean fitSystemWindows(Rect insets) {
261 mWindowInsets.set(insets);
267 Rect insets = mWindowInsets; local
268 int pl = insets.left; // the left paddings
269 int pr = insets.right;
270 int pt = insets.top
    [all...]
  /frameworks/base/core/java/com/android/internal/policy/
DecorView.java     [all...]
  /frameworks/base/graphics/java/android/graphics/drawable/
NinePatchDrawable.java 30 import android.graphics.Insets;
77 private Insets mOpticalInsets = Insets.NONE;
286 final NinePatch.InsetStruct insets = local
288 if (insets != null) {
294 outline.setAlpha(insets.outlineAlpha * (getAlpha() / 255.0f));
306 public Insets getOpticalInsets() {
307 final Insets opticalInsets = mOpticalInsets;
309 return Insets.of(opticalInsets.right, opticalInsets.top,
456 state.mOpticalInsets = Insets.of(opticalInsets)
707 final NinePatch.InsetStruct insets = ninePatch.getBitmap().getNinePatchInsets(); local
    [all...]
  /frameworks/base/core/java/android/service/wallpaper/
WallpaperService.java 444 * Called with the current insets that are in effect for the wallpaper.
448 * @param insets Insets to apply.
450 public void onApplyWindowInsets(WindowInsets insets) {
792 WindowInsets insets = new WindowInsets(mFinalSystemInsets, local
    [all...]
  /frameworks/base/core/java/android/widget/
Switch.java 29 import android.graphics.Insets;
857 final Insets inset = mThumbDrawable.getOpticalInsets();
1100 final Insets insets = mThumbDrawable.getOpticalInsets(); local
1226 final Insets insets = thumbDrawable.getOpticalInsets(); local
1316 final Insets insets; local
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
SystemServicesProxy.java 525 Rect insets = new Rect(); local
526 getStableInsets(insets);
527 return insets.right > 0;
    [all...]
  /frameworks/support/v4/java/android/support/v4/widget/
MaterialProgressDrawable.java 713 float insets; local
715 insets = (float) Math.ceil(mStrokeWidth / 2.0f);
717 insets = (float) (minEdge / 2.0f - mRingCenterRadius);
719 mStrokeInset = insets;
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/
GridModel.java 842 Margins insets = metadata.getInsets(); local
    [all...]
  /frameworks/base/services/core/java/com/android/server/wm/
WindowSurfacePlacer.java 1667 Rect insets = win != null ? win.mContentInsets : null; local
    [all...]
  /frameworks/support/v7/appcompat/src/android/support/v7/app/
AppCompatDelegateImplV7.java 429 WindowInsetsCompat insets) {
430 final int top = insets.getSystemWindowInsetTop();
434 insets = insets.replaceSystemWindowInsets(
435 insets.getSystemWindowInsetLeft(),
437 insets.getSystemWindowInsetRight(),
438 insets.getSystemWindowInsetBottom());
441 // Now apply the insets on our view
442 return ViewCompat.onApplyWindowInsets(v, insets);
450 public void onFitSystemWindows(Rect insets) {
1653 final Rect insets = mTempRect1; local
    [all...]

Completed in 597 milliseconds

1 2 3 4