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

1 2 3 4

  /frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
TestWallpaper.java 165 public void onApplyWindowInsets(WindowInsets insets) {
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.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 54 sInsetsClazz = Class.forName("android.graphics.Insets");
64 * Allows us to get the optical insets for a {@link Drawable}. Since this is hidden we need to
65 * use reflection. Since the {@code Insets} class is hidden also, we return a Rect instead.
76 final Object insets = getOpticalInsetsMethod.invoke(drawable); local
78 if (insets != null) {
79 // If the drawable has some optical insets, let's copy them into a Rect
85 result.left = field.getInt(insets);
88 result.top = field.getInt(insets);
91 result.right = field.getInt(insets);
94 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 324 * This is called with the full size of the window since we are handling our own insets.
353 * This is called with the full size of the window since we are handling our own insets.
397 public WindowInsets onApplyWindowInsets(WindowInsets insets) {
398 mSystemInsets.set(insets.getSystemWindowInsets());
401 return insets;
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DividerView.java 346 public WindowInsets onApplyWindowInsets(WindowInsets insets) {
347 if (mStableInsets.left != insets.getStableInsetLeft()
348 || mStableInsets.top != insets.getStableInsetTop()
349 || mStableInsets.right != insets.getStableInsetRight()
350 || mStableInsets.bottom != insets.getStableInsetBottom()) {
351 mStableInsets.set(insets.getStableInsetLeft(), insets.getStableInsetTop(),
352 insets.getStableInsetRight(), insets.getStableInsetBottom());
358 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...]
  /packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DeepShortcutsContainer.java 292 Rect insets = dragLayer.getInsets(); local
298 boolean canBeLeftAligned = leftAlignedX + width < dragLayer.getRight() - insets.right;
299 boolean canBeRightAligned = rightAlignedX > dragLayer.getLeft() + insets.left;
332 mIsAboveIcon = y > dragLayer.getTop() + insets.top;
337 // Insets are added later, so subtract them now.
338 y -= insets.top;
  /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...]
  /packages/apps/Launcher3/src/com/android/launcher3/allapps/
AllAppsContainerView.java 483 Rect insets = mLauncher.getDragLayer().getInsets(); local
485 int height = insets.top + grid.hotseatCellHeightPx;
492 insets.top + mSearchContainerOffsetTop,
499 params.height = insets.bottom;
  /frameworks/base/core/java/android/service/wallpaper/
WallpaperService.java 445 * Called with the current insets that are in effect for the wallpaper.
449 * @param insets Insets to apply.
451 public void onApplyWindowInsets(WindowInsets insets) {
793 WindowInsets insets = new WindowInsets(mFinalSystemInsets, local
    [all...]
  /frameworks/base/core/java/android/widget/
Switch.java 29 import android.graphics.Insets;
860 final Insets inset = mThumbDrawable.getOpticalInsets();
1103 final Insets insets = mThumbDrawable.getOpticalInsets(); local
1229 final Insets insets = thumbDrawable.getOpticalInsets(); local
1319 final Insets insets; local
    [all...]
  /frameworks/base/core/java/com/android/internal/policy/
DecorView.java     [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
SystemServicesProxy.java 538 Rect insets = new Rect(); local
539 getStableInsets(insets);
540 return insets.right > 0;
    [all...]
  /frameworks/support/core-ui/java/android/support/v4/widget/
MaterialProgressDrawable.java 712 float insets; local
714 insets = (float) Math.ceil(mStrokeWidth / 2.0f);
716 insets = (float) (minEdge / 2.0f - mRingCenterRadius);
718 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...]

Completed in 1680 milliseconds

1 2 3 4