| /developtools/smartperf_host/ide/test/trace/component/trace/timer-shaft/ |
| D | Rect.test.ts | 19 let rect = new Rect(20, 20, 100, 100); variable 23 expect(rect.contains(4, 5)).toBeFalsy(); 27 expect(Rect.contains(rect, 4, 4)).toBeFalsy(); 31 expect(rect.containsWithPadding(4, 5, 2, 2)).toBeFalsy(); 35 expect(Rect.containsWithPadding(rect, 4, 4, 2, 2)).toBeFalsy(); 39 expect(rect.containsWithMargin(1, 2, 1, 2, 4, 5)).toBeFalsy(); 47 expect(rect.intersect([])).toBeFalsy();
|
| /developtools/smartperf_host/ide/src/base-ui/chart/pie/ |
| D | LitChartPie.ts | 254 let rect = this.getBoundingClientRect(); variable 255 let x = ev.pageX - rect.left - this.centerX!; variable 256 let y = ev.pageY - rect.top - this.centerY!; variable 266 ev.pageX - rect.left + 10, 306 let rect = this.getBoundingClientRect(); variable 307 let x = ev.pageX - rect.left - this.centerX!; variable 308 let y = ev.pageY - rect.top - this.centerY!; variable 378 let rect = this.correctRect({ variable 384 this.ctx?.fillText(text, rect.x, rect.y); 482 rect: Rectangle [all …]
|
| /developtools/smartperf_host/ide/test/trace/database/ui-worker/ |
| D | ProcedureWorkerTimeline.test.ts | 44 let rect = new Rect(0, 10, 10, 10); variable 45 …timeline(timelineCanvas, ctx, 1, 100254, 100254, rect, null, null, null, null, null, null, 0, 0, (… 53 let rect = new Rect(0, 10, 10, 10); variable 54 let sportRuler = new SportRuler(canvas, ctx, rect); 69 let rect = new Rect(0, 20, 10, 20); variable 73 rect, 76 endX: rect.width, 109 let rect = new Rect(0, 50, 10, 50); variable 113 rect, 116 endX: rect.width,
|
| D | ProcedureWorkerCommon.test.ts | 82 let rect = new Rect(); variable 147 expect(rect.contains(1, 2)).not.toBeUndefined(); 151 expect(rect.containsWithPadding()).not.toBeUndefined(); 160 let rect = new Rect(); variable 161 expect(Rect.contains(rect, 1, 2)).toBe(false); 165 let rect = new Rect(); variable 166 expect(Rect.containsWithPadding(rect, 1, 2, 1, 2)).toBe(false); 170 let rect = new Rect(); variable 171 expect(Rect.containsWithMargin(rect, 1, 2, 1, 2, 1, 1)).toBe(false); 175 let rect = new Rect(); variable [all …]
|
| D | ProcedureWorkerFrameDynamic.test.ts | 30 let rect = new Rect(341, 2, 10, 10); variable 66 frame: rect, 100 frame: rect, 110 frameDynamicRender.drawDynamicPointYStr(ctx, dataList, rect, 0, 20); 122 frame: rect, 136 frame: rect,
|
| D | ProcedureWorkerFrameAnimation.test.ts | 27 let rect = new Rect(341, 2, 10, 10); variable 38 frame: rect, 48 frame: rect, 75 frame: rect,
|
| D | ProcedureWorkerProcess.test.ts | 52 let rect = new Rect(0, 10, 10, 10); variable 53 proc(dataList, res, 1, 100254, 100254, rect); 68 let rect = new Rect(0, 10, 10, 50); variable 69 proc(processDataList, res, 1, 100254, 100254, rect);
|
| D | ProcedureWorkerFunc.test.ts | 33 let rect = new Rect(0, 30, 30, 30); variable 42 func(funcDataList, res, 1, 100254, 100254, rect, true); 57 let rect = new Rect(30, 50, 53, 13); variable 66 func(funcDataList, res, 1, 100254, 100254, rect, false);
|
| D | ProcedureWorkerFPS.test.ts | 36 let rect = new Rect(0, 10, 10, 10); variable 37 fps(dataList, [{ length: 1 }], 1, 100254, 100254, rect, true); 52 let rect = new Rect(0, 50, 50, 16); variable 53 fps(fpsDataList, [{ length: 0 }], 1, 100254, 100254, rect, false);
|
| D | ProcedureWorkerHeap.test.ts | 37 let rect = new Rect(0, 10, 30, 10); variable 46 heap(heapDataList, res, 1, 100254, 100254, rect, true); 61 let rect = new Rect(0, 10, 10, 10); variable 70 heap(heapHataList, res, 1, 100254, 100254, rect, false);
|
| D | ProcedureWorkerHeapTimeline.test.ts | 40 let rect = new Rect(0, 10, 10, 10); variable 41 HeapTimeline(heapTimelineCanvas, ctx, 1, 100254, 100254, rect, (e: any) => {});
|
| D | ProcedureWorkerSoInit.test.ts | 32 let rect = new Rect(0, 10, 10, 10); variable 59 … soDataFilter(list, filter, 100254, 100254, rect, { height: 40, width: 1407, x: 0, y: 0 },true);
|
| D | ProcedureWorkerCpuProfiler.test.ts | 38 let rect = new Rect(0, 10, 10, 10); variable 71 jsCpuProfiler(list, filter, 100254, 100254, rect, traceRow.frame, true);
|
| D | ProcedureWorkerHiPerfReport.test.ts | 50 let rect = new Rect(0, 10, 60, 10); variable 72 let rect = new Rect(0, 30, 13, 13); variable 101 let rect = new Rect(0, 60, 60, 60); variable
|
| D | ProcedureWorkerSnapshot.test.ts | 36 let rect = new Rect(0, 10, 10, 10); variable 63 snapshot(list, filter, 100254, 100254, rect, { height: 40, width: 1407, x: 0, y: 0 });
|
| D | ProcedureWorkerHeapSnapshot.test.ts | 40 let rect = new Rect(0, 10, 10, 10); variable 67 HeapSnapshot(list, filter, 100254, 100254, rect, { height: 40, width: 1407, x: 0, y: 0 });
|
| /developtools/smartperf_host/ide/src/base-ui/ |
| D | icon.svg | 5 <rect id="rectangle" stroke="currentColor" opacity="0.899323091" x="2" y="2" width="12" 6 height="12"></rect> 7 <rect id="rectangle" fill="currentColor" opacity="0.802454776" x="4.00073886" 8 y="7.50196767" width="8" height="1"></rect> 13 <rect id="rectangle" stroke="currentColor" opacity="0.899323091" x="2" y="2" width="12" 14 height="12"></rect> 89 <rect id="rectangle" fill="#606060" fill-rule="nonzero" opacity="0" x="0" y="0" 90 width="16" height="16"></rect> 95 <rect id="rectangle" x="0" y="0" width="12" height="2"></rect> 112 <rect id="rectangle" x="0" y="0" width="16" height="16"></rect> [all …]
|
| /developtools/smartperf_host/ide/src/trace/component/chart/ |
| D | FrameChart.ts | 49 private rect: Rect = new Rect(0, 0, 0, 0); 158 this.rect.width = this.canvas!.width; 159 this.rect.height = (this._maxDepth + 1) * depthHeight + scaleHeight; 160 this.canvas!.style.height = `${this.rect!.height}px`; 161 this.canvas!.height = Math.ceil(this.rect!.height); 337 this.canvas.style.height = `${this.rect!.height}px`; 343 this.canvas.height = Math.ceil(this.rect!.height); 347 this.rect.width === 0 || 350 newWidth! > this.rect.width 352 this.rect.width = this.canvas!.width; [all …]
|
| /developtools/smartperf_host/ide/src/trace/component/trace/base/ |
| D | Extension.ts | 98 let rect = this.getBoundingClientRect(); variable 100 ev.pageX >= rect.left + (cut?.left ?? 0) && 101 ev.pageX <= rect.right - (cut?.right ?? 0) && 102 ev.pageY >= rect.top + (cut?.top ?? 0) && 103 ev.pageY <= rect.bottom - (cut?.bottom ?? 0)
|
| /developtools/smartperf_host/ide/src/trace/database/ui-worker/ |
| D | ProcedureWorkerCommon.ts | 362 export function ns2x(ns: number, startNS: number, endNS: number, duration: number, rect: any) { 366 let xSize: number = ((ns - startNS) * rect.width) / (endNS - startNS); 369 } else if (xSize > rect.width) { 370 xSize = rect.width; 420 static intersect(r1: Rect, rect: Rect): boolean { 421 let minX = r1.x <= rect.x ? r1.x : rect.x; 422 let minY = r1.y <= rect.y ? r1.y : rect.y; 423 let maxX = r1.x + r1.width >= rect.x + rect.width ? r1.x + r1.width : rect.x + rect.width; 424 let maxY = r1.y + r1.height >= rect.y + rect.height ? r1.y + r1.height : rect.y + rect.height; 425 return maxX - minX <= rect.width + r1.width && maxY - minY <= r1.height + rect.height; [all …]
|
| /developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/components/ |
| D | PathView.ets | 145 rect: MyRect; 196 this.rect = this.lineData.mDisplayRect; 198 this.positionX = this.rect.left; 200 …this.xScale = (this.rect.right - this.rect.left)/(this.xAxis.getAxisMaximum()-this.xAxis.getAxisMi… 201 …this.yLeftScale = (this.rect.bottom - this.rect.top)/(this.yleftAxis.getAxisMaximum()-this.yleftAx… 203 …this.yRightScale = (this.rect.bottom - this.rect.top)/(this.yRightAxis.getAxisMaximum()-this.yRigh… 318 …is.clipPath='M'+Utils.convertDpToPixel(this.rect.left - this.positionX)+' '+Utils.convertDpToPixel… 319 …+'L'+Utils.convertDpToPixel(this.rect.right - this.positionX)+' '+Utils.convertDpToPixel(this.rect… 320 …+'L'+Utils.convertDpToPixel(this.rect.right - this.positionX)+' '+Utils.convertDpToPixel(this.rect… 321 …+'L'+Utils.convertDpToPixel(this.rect.left - this.positionX)+' '+Utils.convertDpToPixel(this.rect.…
|
| /developtools/smartperf_host/ide/src/base-ui/tree/ |
| D | LitTree.ts | 337 let rect = (ev.currentTarget! as any).getBoundingClientRect(); variable 338 if (ev.clientX >= rect.left + rect.width / 3 && ev.clientX < rect.left + rect.width) { 342 } else if (ev.clientY >= rect.top && ev.clientY < rect.top + rect.height / 2) { 346 } else if (ev.clientY <= rect.bottom && ev.clientY > rect.top + rect.height / 2) {
|
| /developtools/smartperf_host/ide/src/base-ui/chart/column/ |
| D | LitChartColumn.ts | 76 let rect = this.getBoundingClientRect(); variable 77 let x = ev.pageX - rect.left; variable 78 let y = ev.pageY - rect.top; variable 480 function contains(rect: { x: number; y: number; w: number; h: number }, x: number, y: number): bool… 481 return rect.x <= x && x <= rect.x + rect.w && rect.y <= y && y <= rect.y + rect.h;
|
| /developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/charts/ |
| D | LineChart.ets | 283 let rect = this.lineData.mDisplayRect; 284 this.clipPath='M'+Utils.convertDpToPixel(rect.left)+' '+Utils.convertDpToPixel(0) 285 +'L'+Utils.convertDpToPixel(rect.right)+' '+Utils.convertDpToPixel(0) 286 +'L'+Utils.convertDpToPixel(rect.right)+' '+Utils.convertDpToPixel(this.height) 287 +'L'+Utils.convertDpToPixel(rect.left)+' '+Utils.convertDpToPixel(this.height) 292 let rect = this.lineData.mDisplayRect; 293 this.clipYPath='M'+Utils.convertDpToPixel(this.minOffset/2)+' '+Utils.convertDpToPixel(rect.top) 294 +'L'+Utils.convertDpToPixel(this.width - this.minOffset/2)+' '+Utils.convertDpToPixel(rect.top) 295 … +'L'+Utils.convertDpToPixel(this.width - this.minOffset/2)+' '+Utils.convertDpToPixel(rect.bottom) 296 +'L'+Utils.convertDpToPixel(this.minOffset/2)+' '+Utils.convertDpToPixel(rect.bottom)
|
| /developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/utils/ |
| D | Matrix.ets | 131 public mapRect(rect: MyRect){ 134 rect.set(rect.left + x, rect.top + y, rect.right + x, rect.bottom + y);
|