Home
last modified time | relevance | path

Searched refs:rect (Results 1 – 25 of 39) sorted by relevance

12

/development/tools/winscope/src/app/components/timeline/expanded-timeline/
Dcanvas_drawer.ts33 drawRect(rect: Rect, color: string, alpha: number) {
44 this.defineRectPath(rect, this.ctx);
51 drawRectBorder(rect: Rect) {
55 this.defineRectPath(rect, this.ctx);
96 private defineRectPath(rect: Rect, ctx: CanvasRenderingContext2D) {
98 ctx.moveTo(rect.x, rect.y);
99 ctx.lineTo(rect.x + rect.w, rect.y);
100 ctx.lineTo(rect.x + rect.w, rect.y + rect.h);
101 ctx.lineTo(rect.x, rect.y + rect.h);
102 ctx.lineTo(rect.x, rect.y);
Ddefault_timeline_row_component.ts104 const rect = this.entryRect(timestamp); constant
105 if (rect.containsPoint(mousePoint)) {
131 const rect = this.entryRect(this.hoveringEntry); constant
133 this.canvasDrawer.drawRect(rect, this.color, 1.0);
134 this.canvasDrawer.drawRectBorder(rect);
169 const rect = this.entryRect(entry); constant
171 this.canvasDrawer.drawRect(rect, this.color, 0.2);
179 const rect = this.entryRect(this.selectedEntry.getTimestamp(), 1); constant
180 this.canvasDrawer.drawRect(rect, this.color, 1.0);
181 this.canvasDrawer.drawRectBorder(rect);
Dcanvas_drawer_test.ts47 expectedCtx.rect(10, 10, 10, 10);
63 expectedCtx.rect(10, 10, 10, 10);
79 expectedCtx.rect(9, 9, 12, 3);
81 expectedCtx.rect(9, 9, 3, 12);
83 expectedCtx.rect(9, 18, 12, 3);
85 expectedCtx.rect(18, 9, 3, 12);
102 expectedCtx.rect(95, 95, 5, 5);
Dtransition_timeline_component.ts134 const rect = this.getSegmentRect(timeRange.from, timeRange.to, rowToUse); constant
135 if (rect.containsPoint(mousePoint)) {
172 const rect = this.getSegmentRect(timeRange.from, timeRange.to, rowToUse); constant
173 this.canvasDrawer.drawRectBorder(rect);
229 const rect = this.getSegmentRect(start, end, rowToUse); constant
231 this.canvasDrawer.drawRect(rect, this.color, alpha);
253 const rect = this.getSegmentRect(timeRange.from, timeRange.to, rowIndex); constant
255 this.canvasDrawer.drawRect(rect, this.color, alpha);
256 this.canvasDrawer.drawRectBorder(rect);
/development/tools/winscope/src/viewers/components/rects/
Dcanvas.ts170 rects.forEach((rect) => {
171 const rectMesh = Canvas.makeRectMesh(rect, this.isDarkMode());
172 const transform = Canvas.toMatrix4(rect.transform);
177 if (rect.isClickable) {
267 private static makeRectMesh(rect: Rect3D, isDarkMode: boolean): THREE.Mesh {
268 const rectShape = Canvas.createRectShape(rect);
271 rect,
276 const color = Canvas.getColor(rect, isDarkMode);
289 rect.colorType === ColorType.VISIBLE_WITH_OPACITY ||
290 rect.colorType === ColorType.HAS_CONTENT_AND_OPACITY
[all …]
Dmapper3d.ts183 return rects.filter((rect) => rect.groupId === this.currentGroupId);
192 rects2d.forEach((rect) => {
193 if (rect.isVisible) {
232 const rect = {
251 return this.cropOversizedRect(rect, maxDisplaySize);
328 ...rects3d.map((rect) => {
329 return this.matMultiply(rect.transform, rect.bottomRight).y;
432 rects.forEach((rect) => {
443 updateMinMaxCoordinates(rect.topLeft);
444 updateMinMaxCoordinates(rect.bottomRight);
/development/tools/winscope/src/viewers/common/
Drect_filter.ts31 return rects.filter((rect) => {
32 const satisfiesOnlyVisible = rect.isDisplay || rect.isVisible;
33 const forceHidden = this.forcedStates.get(rect.id) === RectShowState.HIDE;
34 const forceShow = this.forcedStates.get(rect.id) === RectShowState.SHOW;
51 allRects.forEach((rect) => {
52 const forcedState = this.forcedStates.get(rect.id);
54 rectIdToShowState.set(rect.id, forcedState);
57 const isShown = shownRects.some((other) => other.id === rect.id);
59 rectIdToShowState.set(rect.id, showState);
Dui_rect_factory_test.ts202 const rect = new TraceRectBuilder() constant
219 node.setRects([rect]);
/development/tools/winscope/src/parsers/view_capture/computations/
Drects_computation.ts66 const rect = new TraceRectBuilder() constant
84 return rect;
119 const rect = this.rectsFactory.makeNodeRect( constant
129 node.setRects([rect]);
134 rect.x -
136 rect.y -
/development/tools/winscope/src/viewers/viewer_window_manager/
Dpresenter.ts177 rects.forEach((rect: UiRect) => {
178 if (!rect.isDisplay) return;
179 const displayName = rect.label.slice(10, rect.label.length);
180 ids.push({displayId: rect.id, groupId: rect.groupId, name: displayName});
/development/tools/winscope/src/viewers/viewer_surface_flinger/
Dpresenter.ts213 rects.forEach((rect: UiRect) => {
214 if (!rect.isDisplay) return;
215 const displayId = rect.id.slice(10, rect.id.length);
216 ids.push({displayId, groupId: rect.groupId, name: rect.label});
220 rects.forEach((rect: UiRect) => {
221 if (rect.isDisplay) return;
223 if (!ids.find((identifier) => identifier.groupId === rect.groupId)) {
228 ids.push({displayId: -1, groupId: rect.groupId, name});
Dpresenter_test.ts108 const rect = assertDefined( constant
111 Object.assign(rect, {isVisible: false});
311 uiData.rectsToDraw.filter((rect) => rect.hasContent).length,
/development/tools/winscope/src/parsers/
Draw_data_utils.ts75 const rect = obj.getChildByName('rect'); constant
77 rect !== undefined &&
78 rect
Draw_data_utils_test.ts37 const rect = TreeNodeUtils.makeRectNode(0, 0, 1, 1); constant
38 expect(RawDataUtils.isRect(rect)).toBeTrue();
162 const rect = TreeNodeUtils.makeRectNode(0, 0, 1, 1); constant
163 expect(RawDataUtils.isEmptyObj(rect)).toBeFalse();
/development/tools/winscope/src/parsers/surface_flinger/computations/
Dvisibility_properties_computation_test.ts45 visibleRegion: {rect: [{left: 0, right: 1, top: 0, bottom: 1}]},
96 visibleRegion: {rect: [{left: 0, right: 1, top: 0, bottom: 1}]},
143 visibleRegion: {rect: [{left: 0, right: 1, top: 0, bottom: 1}]},
172 visibleRegion: {rect: [{left: 0, right: 1, top: 0, bottom: 1}]},
202 visibleRegion: {rect: [{left: 0, right: 1, top: 0, bottom: 1}]},
258 visibleRegion: {rect: [{left: 0, right: 1, top: 0, bottom: 1}]},
308 visibleRegion: {rect: [{left: 0, right: 1, top: 0, bottom: 1}]},
360 visibleRegion: {rect: [{left: 0, right: 1, top: 0, bottom: 1}]},
459 visibleRegion: {rect: [{left: 0, right: 1, top: 0, bottom: 0}]},
521 visibleRegion: {rect: [{left: 0, top: 0, bottom: 1, right: 1}]},
[all …]
Drects_computation.ts150 const rect = this.rectsFactory.makeLayerRect( constant
155 layer.setRects([rect]);
/development/tools/winscope/src/parsers/window_manager/computations/
Drects_computation.ts121 const rect = this.rectsFactory.makeWindowStateRect( constant
125 if (!rect) {
128 container.setRects([rect]);
Drects_computation_test.ts147 if (nodeRects && nodeRects.every((rect) => !rect.isDisplay)) {
/development/samples/MultiWindow/src/com/example/android/multiwindow/
DCaptionOverlayActivity.java61 public void onRestrictedCaptionAreaChanged(Rect rect) { in onRestrictedCaptionAreaChanged() argument
62 Log.d(TAG, "rect: " + rect); in onRestrictedCaptionAreaChanged()
/development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/
DStylusDrawingView.java72 Rect rect = new Rect(); in init() local
73 StylusDrawingView.this.getGlobalVisibleRect(rect); in init()
74 int x = (int) e.getX() + rect.left; in init()
75 int y = (int) e.getY() + rect.top; in init()
/development/tools/winscope/src/viewers/components/
Dtree_node_component.ts117 const rect = this.el.getBoundingClientRect(); constant
119 return rect.top >= parentRect.top && rect.bottom <= parentRect.bottom;
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
DCustomArrayAdapter.java120 final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); in getCroppedBitmap() local
134 canvas.drawBitmap(bitmap, rect, rect, paint); in getCroppedBitmap()
/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/
DCustomArrayAdapter.java113 final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); in getCroppedBitmap() local
127 canvas.drawBitmap(bitmap, rect, rect, paint); in getCroppedBitmap()
/development/tools/winscope/src/app/components/
Dtrackpad_vertical_scroll.svg3 <rect x="14.0493" y="55.24" width="14.9635" height="5.61135" fill="var(--drawer-color)"/>
4 <rect x="33.7271" y="55.24" width="14.9635" height="5.61135"fill="var(--drawer-color)"/>
Dtrackpad_horizontal_scroll.svg3 <rect x="17.671" y="70.741" width="19.1431" height="7.17871" fill="var(--drawer-color)"/>
4 <rect x="42.8446" y="70.741" width="19.1431" height="7.17871" fill="var(--drawer-color)"/>

12