Home
last modified time | relevance | path

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

123

/development/tools/winscope/src/common/
Drect.ts20 export class Rect { class
28 static from(node: PropertyTreeNode): Rect {
33 return new Rect(left, top, right - left, bottom - top);
45 cropRect(other: Rect): Rect {
50 return new Rect(maxLeft, maxTop, minRight - maxLeft, minBottom - maxTop);
53 containsRect(other: Rect): boolean {
64 intersectsRect(other: Rect): boolean {
86 return !new Rect(x, y, w, h).isEmpty();
/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 …]
/development/tools/winscope/src/app/components/timeline/expanded-timeline/
Dcanvas_drawer_test.ts18 import {Rect} from 'common/rect';
28 canvasDrawer.drawRect(new Rect(10, 10, 10, 10), '#333333', 1.0);
43 canvasDrawer.drawRect(new Rect(10, 10, 10, 10), '#333333', 1.0);
59 canvasDrawer.drawRect(new Rect(10, 10, 10, 10), '#333333', 0.5);
75 canvasDrawer.drawRectBorder(new Rect(10, 10, 10, 10));
97 canvasDrawer.drawRect(new Rect(200, 200, 10, 10), '#333333', 1.0);
98 canvasDrawer.drawRect(new Rect(95, 95, 50, 50), '#333333', 1.0);
Ddefault_timeline_row_component_test.ts29 import {Rect} from 'common/rect';
89 new Rect(0, 0, rectWidth, rectHeight),
94 new Rect(Math.floor((canvasWidth * 2) / 100), 0, rectWidth, rectHeight),
99 new Rect(Math.floor((canvasWidth * 5) / 100), 0, rectWidth, rectHeight),
104 new Rect(Math.floor((canvasWidth * 60) / 100), 0, rectWidth, rectHeight),
127 new Rect(Math.floor((canvasWidth * 10) / 25), 0, rectWidth, rectHeight),
171 new Rect(0, 0, rectWidth, rectHeight),
178 new Rect(0, 0, rectWidth, rectHeight),
330 const expectedRect = new Rect(xPos + 1, 1, rectWidth, rectHeight);
Dcanvas_drawer.ts18 import {Rect} from 'common/rect';
33 drawRect(rect: Rect, color: string, alpha: number) {
51 drawRectBorder(rect: Rect) {
96 private defineRectPath(rect: Rect, ctx: CanvasRenderingContext2D) {
Dtransition_timeline_component_test.ts29 import {Rect} from 'common/rect';
141 new Rect(0, padding, Math.floor(width / 5), oneRowHeight),
146 new Rect(
212 new Rect(0, padding, Math.floor(width / 10), oneRowHeight),
217 new Rect(Math.floor(width / 2), padding, Math.floor(width), oneRowHeight),
242 const expectedRect = new Rect(
265 const expectedRect = new Rect(
349 new Rect(0, padding, Math.floor((width * 3) / 4), oneRowHeight),
354 new Rect(
422 new Rect(0, padding, Math.floor((width * 3) / 4), oneRowHeight),
[all …]
/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/VirtualDeviceManager/client/src/com/example/android/vdmdemo/client/
DClientView.java20 import android.graphics.Rect;
38 private Consumer<Rect> mResizeDoneCallback = null;
40 private final Rect mResizingBounds = new Rect();
64 Consumer<Rect> callback) { in startResizing()
/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/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/parsers/surface_flinger/computations/
Dvisibility_properties_computation.ts18 import {Rect} from 'common/rect';
309 private getRect(rectNode: PropertyTreeNode): Rect | undefined {
311 return Rect.from(rectNode);
320 private getDisplaySize(layer: HierarchyTreeNode): Rect {
321 const displaySize = new Rect(0, 0, 0, 0);
339 crop = new Rect(0, 0, 0, 0),
366 crop = new Rect(0, 0, 0, 0),
377 crop: Rect,
378 ): Rect | undefined {
/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/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/tools/winscope/src/trace/
Dtrace_rect.ts18 import {Rect} from 'common/rect';
21 export class TraceRect extends Rect implements Item {
/development/tools/winscope/src/viewers/components/rects/
Dtypes2d.ts18 import {Rect} from 'common/rect';
20 export class UiRect extends Rect {
/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/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/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/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/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/
DStylusDrawingView.java25 import android.graphics.Rect;
72 Rect rect = new Rect(); in init()
76 hoverPointer.setBounds(new Rect(x - 10, y - 10, x + 10, y + 10)); in init()

123