/development/tools/winscope/src/app/components/timeline/expanded-timeline/ |
D | canvas_drawer.ts | 35 rect: Rect, 53 this.defineRectPath(rect, this.ctx); 56 rect.x, 58 rect.x + rect.w, 61 const gradientRatio = Math.max(0, Math.min(25 / rect.w, 1)); 76 const centerY = rect.y + rect.h / 2; 79 this.drawEllipsis(centerY, rect.x + marginOffset, true, rect.x + rect.w); 83 this.drawEllipsis(centerY, rect.x + rect.w - marginOffset, false, rect.x); 116 drawRectBorder(rect: Rect) { 120 this.defineRectPath(rect, this.ctx); [all …]
|
D | default_timeline_row_component.ts | 104 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 170 this.canvasDrawer.drawRect(rect, this.color, 0.2); 178 const rect = this.entryRect(this.selectedEntry.getTimestamp(), 1); constant 179 this.canvasDrawer.drawRect(rect, this.color, 1.0); 180 this.canvasDrawer.drawRectBorder(rect);
|
D | transition_timeline_component.ts | 96 const rect = this.getRectFromIndex(entry.getIndex()); constant 97 if (!rect) { 101 this.drawSegment(rect, transition); 103 selectedRect = rect; 139 const rect = this.getRectFromIndex(entry.getIndex()); constant 140 if (rect?.containsPoint(mousePoint)) { 160 const rect = this.getRectFromIndex(this.hoveringEntry.getIndex()); constant 161 if (rect) { 162 this.canvasDrawer.drawRectBorder(rect); 216 private drawSegment(rect: Rect, transition: PropertyTreeNode) { [all …]
|
D | canvas_drawer_test.ts | 51 expectedCtx.rect(testRect.x, testRect.y, testRect.w, testRect.h); 62 expectedCtx.rect(testRect.x, testRect.y, testRect.w, testRect.h); 84 expectedCtx.rect(testRect.x, testRect.y, testRect.w, testRect.h); 118 expectedCtx.rect(9, 9, 12, 3); 120 expectedCtx.rect(9, 9, 3, 12); 122 expectedCtx.rect(9, 18, 12, 3); 124 expectedCtx.rect(18, 9, 3, 12); 136 expectedCtx.rect(95, 95, 5, 5); 203 ctx.rect(
|
/development/tools/winscope/src/viewers/components/rects/ |
D | canvas.ts | 176 if (!rects.some((rect) => rect.id === key)) { 181 rects.forEach((rect) => { 182 const existingGraphics = this.lastScene.rectIdToRectGraphics.get(rect.id); 184 ? this.makeAndAddRectMesh(rect) 186 rect, 187 existingGraphics.rect, 190 this.lastScene.rectIdToRectGraphics.set(rect.id, {rect, mesh}); 218 .filter((graphics) => graphics.rect.isClickable) 254 private makeAndAddRectMesh(rect: UiRect3D): THREE.Mesh { 255 const color = this.getColor(rect); [all …]
|
D | canvas_test.ts | 246 const rect = makeUiRect3D(rectId); constant 247 canvas.updateRects([rect]); 259 const rect = makeUiRect3D(rectId); constant 260 rect.topLeft = new Point3D(1, 1, 5); 261 rect.bottomRight = new Point3D(2, 2, 5); 262 canvas.updateRects([rect]); 268 canvas.updateRects([rect]); 273 const rect = makeUiRect3D(rectId); constant 274 canvas.updateRects([rect]); 367 const rect = makeUiRect3D(rectId); constant [all …]
|
D | mapper3d.ts | 230 return rects.filter((rect) => rect.groupId === groupId); 239 rects2d.forEach((rect) => { 240 if (rect.isVisible) { 290 const rect: UiRect3D = { 303 return this.cropOversizedRect(rect, maxDisplaySize); 382 const bottomRightCorners = rects3d.map((rect) => 383 rect.transform.transformPoint3D(rect.bottomRight), 514 rects.forEach((rect) => { 525 updateMinMaxCoordinates(rect.topLeft, rect.transform); 526 updateMinMaxCoordinates(rect.bottomRight, rect.transform); [all …]
|
/development/tools/winscope/src/viewers/common/ |
D | rect_filter.ts | 38 return rects.filter((rect) => { 39 const satisfiesHasContent = rect.hasContent || rect.isDisplay; 44 const satisfiesOnlyVisible = rect.isDisplay || rect.isVisible; 45 const key = this.convertToForcedStateKey(rect.id); 64 allRects.forEach((rect) => { 65 const key = this.convertToForcedStateKey(rect.id); 68 rectIdToShowState.set(rect.id, forcedState); 71 const isShown = shownRects.some((other) => other.id === rect.id); 73 rectIdToShowState.set(rect.id, showState);
|
D | abstract_hierarchy_viewer_presenter_test.ts | 136 const rect = assertDefined(uiData.rectsToDraw?.at(2)); constant 137 await presenter.onHighlightedIdChange(rect.id); 138 expect(uiData.highlightedItem).toEqual(rect.id); 140 expect(propertiesTree.id).toEqual(rect.id); 147 await presenter.onHighlightedIdChange(rect.id);
|
D | ui_rect_factory_test.ts | 312 const rect = new TraceRectBuilder() constant 330 isPrimary ? node.setRects([rect]) : node.setSecondaryRects([rect]);
|
/development/tools/winscope/src/common/ |
D | dom_utils.ts | 28 const rect = element.getBoundingClientRect(); constant 29 return rect.height > 0 && rect.width > 0;
|
/development/tools/winscope/src/parsers/view_capture/computations/ |
D | rects_computation.ts | 66 const rect = new TraceRectBuilder() constant 85 return rect; 120 const rect = this.rectsFactory.makeNodeRect( constant 130 node.setRects([rect]); 135 rect.x - 137 rect.y -
|
/development/tools/winscope/src/viewers/viewer_window_manager/ |
D | presenter.ts | 206 rects.forEach((rect: UiRect) => { 207 if (!rect.isDisplay) return; 208 const displayName = rect.label.slice(10, rect.label.length); 210 displayId: rect.id, 211 groupId: rect.groupId, 213 isActive: rect.isActiveDisplay,
|
/development/tools/winscope/src/parsers/ |
D | raw_data_utils.ts | 75 const rect = obj.getChildByName('rect'); constant 77 rect !== undefined && 78 rect
|
D | raw_data_utils_test.ts | 37 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/viewers/viewer_surface_flinger/ |
D | presenter.ts | 505 rects.forEach((rect: UiRect) => { 506 if (!rect.isDisplay) return; 508 const displayId = rect.id.slice(10, rect.id.length); 511 groupId: rect.groupId, 512 name: rect.label, 513 isActive: isActive(rect), 518 rects.forEach((rect: UiRect) => { 519 if (rect.isDisplay) return; 521 if (!ids.find((identifier) => identifier.groupId === rect.groupId)) { 526 ids.push({displayId: -1, groupId: rect.groupId, name, isActive: false});
|
/development/tools/winscope/src/parsers/window_manager/computations/ |
D | rects_computation.ts | 138 const rect = this.rectsFactory.makeWindowStateRect( constant 142 if (!rect) { 145 container.setRects([rect]);
|
D | rects_computation_test.ts | 195 if (nodeRects && nodeRects.every((rect) => !rect.isDisplay)) {
|
/development/tools/winscope/src/parsers/surface_flinger/computations/ |
D | visibility_properties_computation_test.ts | 79 visibleRegion: {rect: [rect1x1]}, 146 visibleRegion: {rect: [rect1x1]}, 166 visibleRegion: {rect: [rect1x1]}, 224 visibleRegion: {rect: [rect1x1]}, 285 visibleRegion: {rect: [rect1x1]}, 373 visibleRegion: {rect: [{left: 0, right: 1, top: 0, bottom: 0}]}, 457 visibleRegion: {rect: [rect2x2]}, 653 visibleRegion: {rect: [rect1x1]}, 681 visibleRegion: {rect: [rect1x1]}, 732 visibleRegion: {rect: [bounds]}, [all …]
|
D | rects_computation.ts | 224 touchableRegion.rects.map((rect) => { 225 return rect.cropRect(display); 338 displayRects.map((rect) => [rect.groupId, rect]), 420 const rect = makeTraceRect( constant 428 isPrimaryRects ? layer.setRects([rect]) : layer.setSecondaryRects([rect]);
|
/development/samples/MultiWindow/src/com/example/android/multiwindow/ |
D | CaptionOverlayActivity.java | 61 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/ |
D | StylusDrawingView.java | 72 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/ |
D | tree_node_component.ts | 139 const rect = this.el.getBoundingClientRect(); constant 141 return rect.top >= parentRect.top && rect.bottom <= parentRect.bottom;
|
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/ |
D | CustomArrayAdapter.java | 120 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/ |
D | CustomArrayAdapter.java | 113 final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); in getCroppedBitmap() local 127 canvas.drawBitmap(bitmap, rect, rect, paint); in getCroppedBitmap()
|