Home
last modified time | relevance | path

Searched refs:Rect (Results 1 – 25 of 53) sorted by relevance

123

/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
DInsertionListView.java32 import android.graphics.Rect;
106 final HashMap<Long, Rect> listViewItemBounds = new HashMap<Long, Rect>(); in addRow()
115 Rect startRect = new Rect(child.getLeft(), child.getTop(), child.getRight(), in addRow()
195 Rect startRect = listViewItemBounds.get(itemId); in addRow()
231 Rect startBounds = listViewItemBounds.get(itemId); in addRow()
235 Rect endBounds = new Rect(startBounds); in addRow()
241 private Rect mLastBound = null; in addRow()
242 private Rect mCurrentBound = new Rect(); in addRow()
245 Rect bounds = (Rect)valueAnimator.getAnimatedValue(); in addRow()
363 static final TypeEvaluator<Rect> sBoundsEvaluator = new TypeEvaluator<Rect>() {
[all …]
DCustomArrayAdapter.java28 import android.graphics.Rect;
120 final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); in getCroppedBitmap()
/development/tools/winscope/spec/traces/
DExpectedTraces.js1 import { Buffer, RectF, Transform, Matrix, Color, Rect, Region } from '../../src/flickerlib/common.…
5 const standardRect = new Rect(0, 0, 0, 0);
7 const standardCrop = new Rect(0, 0, -1, -1);
33 visibleRegion: new Region([new Rect(37, 43, 146, 152)]),
212 visibleRegion: new Region([new Rect(0, 98, 1440, 2712)]),
301 crop: new Rect(0, 0, 1440, 2960),
306 visibleRegion: new Region([new Rect(0, 0, 1440, 2960)]),
405 crop: new Rect(0, 0, 1440, 2880),
410 visibleRegion: new Region([new Rect(0, 0, 1440, 2880)]),
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DRegions.java34 private final Rect mRect1 = new Rect();
35 private final Rect mRect2 = new Rect();
74 Rect r = new Rect(); in drawRgn()
84 private static void drawCentered(Canvas c, Rect r, Paint p) { in drawCentered()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DCardBoundsWatchFaceService.java22 import android.graphics.Rect;
45 final Rect mCardBounds = new Rect();
72 public void onPeekCardPositionUpdate(Rect bounds) { in onPeekCardPositionUpdate()
85 public void onDraw(Canvas canvas, Rect bounds) { in onDraw()
DInteractiveWatchFaceService.java23 import android.graphics.Rect;
68 private final Rect mCardBounds = new Rect();
129 public void onPeekCardPositionUpdate(Rect bounds) { in onPeekCardPositionUpdate()
198 public void onDraw(Canvas canvas, Rect bounds) { in onDraw()
/development/samples/devbytes/animation/ListViewDraggingAnimation/src/com/example/android/listviewdragginganimation/
DDynamicListView.java29 import android.graphics.Rect;
89 private Rect mHoverCellCurrentBounds;
90 private Rect mHoverCellOriginalBounds;
161 mHoverCellOriginalBounds = new Rect(left, top, left + w, top + h); in getAndAddHoverView()
162 mHoverCellCurrentBounds = new Rect(mHoverCellOriginalBounds); in getAndAddHoverView()
174 Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); in getBitmapWithBorder()
456 private final static TypeEvaluator<Rect> sBoundEvaluator = new TypeEvaluator<Rect>() {
457 public Rect evaluate(float fraction, Rect startValue, Rect endValue) {
458 return new Rect(interpolate(startValue.left, endValue.left, fraction),
482 public boolean handleMobileCellScroll(Rect r) { in handleMobileCellScroll()
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/
DTouchHighlightImageButton.java22 import android.graphics.Rect;
42 private Rect mCachedBounds = new Rect();
DZoomActivity.java25 import android.graphics.Rect;
121 final Rect startBounds = new Rect(); in zoomImageFromThumb()
122 final Rect finalBounds = new Rect(); in zoomImageFromThumb()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DInternalSelectionView.java23 import android.graphics.Rect;
48 private Rect mTempRect = new Rect();
183 public void getRectForRow(Rect rect, int row) { in getRectForRow()
227 public void getFocusedRect(Rect r) { in getFocusedRect()
233 Rect previouslyFocusedRect) { in onFocusChanged()
DCustomLayout.java21 import android.graphics.Rect;
47 private final Rect mTmpContainerRect = new Rect();
48 private final Rect mTmpChildRect = new Rect();
/development/tools/winscope/src/flickerlib/windows/
DDisplayContent.ts18 import { toRect, DisplayContent, Rect } from "../common"
45 new Rect(0, 0, displayRectWidth, displayRectHeight),
46 new Rect(0, 0, appRectWidth, appRectHeight),
/development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/
DInlineContentClipView.java22 import android.graphics.Rect;
58 private final Rect mParentBounds = new Rect();
61 private final Rect mContentBounds = new Rect();
/development/samples/ApiDemos/src/com/example/android/apis/app/
DPictureInPictureAutoEnter.java23 import android.graphics.Rect;
127 final Rect imageViewRect = new Rect(); in updatePictureInPictureParams()
131 final Rect sourceRectHint = mSwitchView.isChecked() ? new Rect(imageViewRect) : null; in updatePictureInPictureParams()
DPictureInPictureSourceRectHint.java22 import android.graphics.Rect;
113 final Rect hint = getVideoRectHint(); in onPictureInPictureRequested()
130 private Rect getVideoRectHint() { in getVideoRectHint()
131 final Rect hint = new Rect(); in getVideoRectHint()
/development/tools/mkstubs/tests/data/
DTestTemplateClass.java19 import org.w3c.dom.css.Rect;
47 public void draw(List<? extends Rect> shape) { in draw()
/development/samples/MultiWindow/src/com/example/android/multiwindow/
DCaptionOverlayActivity.java22 import android.graphics.Rect;
61 public void onRestrictedCaptionAreaChanged(Rect rect) { in onRestrictedCaptionAreaChanged()
/development/samples/browseable/MultiWindowPlayground/src/com/android.multiwindowplayground/
DMainActivity.java29 import android.graphics.Rect;
89 Rect bounds = new Rect(500, 300, 100, 0); in onStartLaunchBoundsActivity()
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
DShadowLayout.java27 import android.graphics.Rect;
44 static final Rect sShadowRect = new Rect(0, 0, 200 + 2 * BLUR_RADIUS, 200 + 2 * BLUR_RADIUS);
/development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/
DUIAnimation.java24 import android.graphics.Rect;
85 final Rect startBounds = new Rect(); in zoomImageFromThumb()
86 final Rect finalBounds = new Rect(); in zoomImageFromThumb()
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DCandidateView.java23 import android.graphics.Rect;
43 private Rect mBgPadding;
142 Rect padding = new Rect(); in onMeasure()
165 mBgPadding = new Rect(0, 0, 0, 0); in onDraw()
173 final Rect bgPadding = mBgPadding; in onDraw()
/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/
DFoldingLayout.java27 import android.graphics.Rect;
68 private Rect[] mFoldRectArray;
105 private Rect mDstRect;
236 mDstRect = new Rect(); in prepareFold()
267 mFoldRectArray = new Rect[mNumberOfFolds]; in prepareFold()
293 mFoldRectArray[x] = new Rect(x * delta, 0, x * delta + deltap, h); in prepareFold()
296 mFoldRectArray[x] = new Rect(0, x * delta, w, x * delta + deltap); in prepareFold()
499 Rect src;
/development/samples/TicTacToeLib/src/com/example/android/tictactoe/library/
DGameView.java27 import android.graphics.Rect;
79 private final Rect mSrcRect = new Rect();
80 private final Rect mDstRect = new Rect();
107 private final Rect mBlinkRect = new Rect();
414 Rect r = b.getParcelable("gv_blink_rect");
/development/samples/browseable/XYZTouristAttractions/Shared/src/com.example.android.xyztouristattractions.common/
DUtils.java26 import android.graphics.Rect;
194 public static Rect calculateBottomInsetsOnRoundDevice(Display display, Rect systemInsets) { in calculateBottomInsetsOnRoundDevice()
214 return new Rect(leftRightInset, 0, leftRightInset, bottomInset); in calculateBottomInsetsOnRoundDevice()
/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/
DCustomArrayAdapter.java28 import android.graphics.Rect;
113 final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); in getCroppedBitmap()

123