| /developtools/profiler/host/smartperf/ide/src/trace/component/trace/timer-shaft/ |
| D | Rect.ts | 17 x: number = 0; property in Rect 22 constructor(x: number, y: number, width: number, height: number) { 23 this.x = x; 29 static contains(rectObj: Rect, x: number, y: number): boolean { 30 …return rectObj.x <= x && x <= rectObj.x + rectObj.width && rectObj.y <= y && y <= rectObj.y + rect… 35 x: number, 41 rectObj.x + paddingLeftRight <= x && 42 x <= rectObj.x + rectObj.width - paddingLeftRight && 48 …static containsWithMargin(rectObj: Rect, x: number, y: number, t: number, r: number, b: number, l:… 50 rectObj.x - l <= x && [all …]
|
| D | SportRuler.ts | 153 this.c.clearRect(this.frame.x, this.frame.y, this.frame.width, this.frame.height + 1); 158 this.c.moveTo(this.frame.x, this.frame.y); 159 this.c.lineTo(this.frame.x + this.frame.width, this.frame.y); 165 this.c.moveTo(this.frame.x, this.frame.y); 166 this.c.lineTo(this.frame.x, this.frame.y + this.frame.height); 184 flagObj.x = Math.round( 187 this.drawFlag(flagObj.x, flagObj.color, flagObj.selected, flagObj.text, flagObj.type); 190 …!this.hoverFlag.hidden && this.drawFlag(this.hoverFlag.x, this.hoverFlag.color, true, this.hoverFl… 304 …let x = Math.round((this.rulerW * (time - this.range.startNS)) / (this.range.endNS - this.range.st… 308 this.c.moveTo(x - 3, 141); [all …]
|
| D | RangeRuler.ts | 32 …this.inspectionFrame = new Rect(frame.x - MarkPadding, frame.y, frame.width + MarkPadding * 2, fra… 52 this.c.moveTo(this.frame.x, this.frame.y); 53 this.c.lineTo(this.frame.x, this.frame.y + this.frame.height / 3); 57 this.c.moveTo(this.frame.x, this.frame.y); 58 this.c.lineTo(this.frame.x, this.frame.y + this.frame.height); 157 this.frame.x + miniWidth * cpuUsageItem.ro, 167 …this.c.clearRect(this.frame.x - MarkPadding, this.frame.y, this.frame.width + MarkPadding * 2, thi… 178 …this.rangeRect.x = this.markAObj.frame.x < this.markBObj.frame.x ? this.markAObj.frame.x : this.ma… 179 this.rangeRect.width = Math.abs(this.markBObj.frame.x - this.markAObj.frame.x); 180 … this.c.fillRect(this.rangeRect.x, this.rangeRect.y, this.rangeRect.width, this.rangeRect.height); [all …]
|
| D | TimeRuler.ts | 38 this.c.clearRect(this.frame.x, this.frame.y, this.frame.width, this.frame.height); 43 let x = Math.floor(index * this.step) + this.frame.x; 44 this.c.moveTo(x, 0); 45 this.c.lineTo(x, this.frame.height); 48 this.c.moveTo(x + Math.floor(inner_index * this.stepSmall), 0); 49 this.c.lineTo(x + Math.floor(inner_index * this.stepSmall), this.frame.height / 4); 52 this.c.fillText(`${ns2s(index * this.stepNS)}`, x + 5, this.frame.height - 1);
|
| /developtools/smartperf_host/ide/src/trace/component/trace/timer-shaft/ |
| D | Rect.ts | 17 x: number = 0; property in Rect 22 constructor(x: number, y: number, width: number, height: number) { 23 this.x = x; 29 static contains(rectObj: Rect, x: number, y: number): boolean { 30 …return rectObj.x <= x && x <= rectObj.x + rectObj.width && rectObj.y <= y && y <= rectObj.y + rect… 35 x: number, 41 rectObj.x + paddingLeftRight <= x && 42 x <= rectObj.x + rectObj.width - paddingLeftRight && 48 …static containsWithMargin(rectObj: Rect, x: number, y: number, t: number, r: number, b: number, l:… 50 rectObj.x - l <= x && [all …]
|
| D | SportRuler.ts | 153 this.context2D.clearRect(this.frame.x, this.frame.y, this.frame.width, this.frame.height + 1); 158 this.context2D.moveTo(this.frame.x, this.frame.y); 159 this.context2D.lineTo(this.frame.x + this.frame.width, this.frame.y); 165 this.context2D.moveTo(this.frame.x, this.frame.y); 166 this.context2D.lineTo(this.frame.x, this.frame.y + this.frame.height); 184 flagObj.x = Math.round( 187 this.drawFlag(flagObj.x, flagObj.color, flagObj.selected, flagObj.text, flagObj.type); 190 …!this.hoverFlag.hidden && this.drawFlag(this.hoverFlag.x, this.hoverFlag.color, true, this.hoverFl… 304 …let x = Math.round((this.rulerW * (time - this.range.startNS)) / (this.range.endNS - this.range.st… 308 this.context2D.moveTo(x - 3, 141); [all …]
|
| D | TimeRuler.ts | 38 this.context2D.clearRect(this.frame.x, this.frame.y, this.frame.width, this.frame.height); 43 let x = Math.floor(index * this.step) + this.frame.x; 44 this.context2D.moveTo(x, 0); 45 this.context2D.lineTo(x, this.frame.height); 48 this.context2D.moveTo(x + Math.floor(inner_index * this.stepSmall), 0); 49 this.context2D.lineTo(x + Math.floor(inner_index * this.stepSmall), this.frame.height / 4); 52 this.context2D.fillText(`${ns2s(index * this.stepNS)}`, x + 5, this.frame.height - 1);
|
| /developtools/profiler/host/smartperf/ide/src/trace/database/ui-worker/ |
| D | ProcedureWorkerTimeline.ts | 182 this.c.clearRect(this.frame.x, this.frame.y, this.frame.width, this.frame.height); 187 let x = Math.floor(i * this.step) + this.frame.x; 188 this.c.moveTo(x, 0); 189 this.c.lineTo(x, this.frame.height); 192 this.c.moveTo(x + Math.floor(j * this.stepSmall), 0); 193 this.c.lineTo(x + Math.floor(j * this.stepSmall), this.frame.height / 4); 196 this.c.fillText(`${ns2s(i * this.stepNS)}`, x + 5, this.frame.height - 1); 210 public obj = [{ x: 3 }, { x: 2 }]; 253 this.c.clearRect(this.frame.x, this.frame.y, this.frame.width, this.frame.height); 258 this.c.moveTo(this.frame.x, this.frame.y); [all …]
|
| D | ProcedureWorkerCommon.ts | 91 export function isFrameContainPoint(frame: Rect, x: number, y: number): boolean { 92 return x >= frame.x && x <= frame.x + frame.width && y >= frame.y && y <= frame.y + frame.height; 231 node.frame.x = 0; 233 node.frame.x = Math.floor(((node[startKey] || 0) - startNS) / pns); 236 node.frame.width = frame.width - node.frame.x; 238 …me.width = Math.ceil(((node[startKey] || 0) + (node[durKey] || 0) - startNS) / pns - node.frame.x); 277 x: number = 0; 281 constructor(x: number, y: number, width: number, height: number) { 282 this.x = x; 289 let minX = r1.x <= rect.x ? r1.x : rect.x; [all …]
|
| /developtools/smartperf_host/ide/src/trace/database/ui-worker/ |
| D | ProcedureWorkerTimeline.ts | 182 this.c.clearRect(this.frame.x, this.frame.y, this.frame.width, this.frame.height); 187 let x = Math.floor(i * this.step) + this.frame.x; 188 this.c.moveTo(x, 0); 189 this.c.lineTo(x, this.frame.height); 192 this.c.moveTo(x + Math.floor(j * this.stepSmall), 0); 193 this.c.lineTo(x + Math.floor(j * this.stepSmall), this.frame.height / 4); 196 this.c.fillText(`${ns2s(i * this.stepNS)}`, x + 5, this.frame.height - 1); 210 public obj = [{ x: 3 }, { x: 2 }]; 253 this.c.clearRect(this.frame.x, this.frame.y, this.frame.width, this.frame.height); 258 this.c.moveTo(this.frame.x, this.frame.y); [all …]
|
| D | ProcedureWorkerCommon.ts | 91 export function isFrameContainPoint(frame: Rect, x: number, y: number): boolean { 92 return x >= frame.x && x <= frame.x + frame.width && y >= frame.y && y <= frame.y + frame.height; 95 return (pointX >= currentRect?.x - unitPointXRange) && pointX <= currentRect?.x + unitPointXRange; 250 node.frame.x = 0; 252 node.frame.x = Math.floor(((node[startKey] || 0) - startNS) / pns); 255 node.frame.width = frame.width - node.frame.x; 257 …me.width = Math.ceil(((node[startKey] || 0) + (node[durKey] || 0) - startNS) / pns - node.frame.x); 296 x: number = 0; 300 constructor(x: number, y: number, width: number, height: number) { 301 this.x = x; [all …]
|
| /developtools/smartperf_host/ide/test/trace/database/ui-worker/ |
| D | ProcedureWorkerHiPerfReport.test.ts | 33 x: 5, 42 frame: { x: 50, y: 9, width: 105, height: 150 }, 49 frame: { x: 60, y: 99, width: 610, height: 16 }, 58 x: 33, 67 frame: { x: 10, y: 91, width: 110, height: 310 }, 72 frame: { x: 30, y: 4, width: 130, height: 103 }, 79 frame: { x: 23, y: 32, width: 130, height: 32 }, 87 x: 70, 96 frame: { x: 4, y: 93, width: 350, height: 130 }, 101 frame: { x: 50, y: 95, width: 50, height: 640 }, [all …]
|
| D | ProcedureWorkerCpuState.test.ts | 33 x: 43, 45 x: 80, 56 x: 10, 68 x: 30, 81 x: 20, 92 x: 20, 107 frame: { x: 0, y: 54, width: 30, height: 350 }, 113 x: 77, 125 x: 30, 140 frame: { x: 20, y: 45, width: 50, height: 150 }, [all …]
|
| D | ProcedureWorkerEnergySystem.test.ts | 30 x: 20, 40 frame: { x: 0, y: 9, width: 10, height: 10 }, 48 x: 20, 59 frame: { x: 0, y: 9, width: 10, height: 10 }, 77 x: 20, 95 x: 20, 113 x: 20, 125 x: 10, 138 x: 20, 149 x: 20, [all …]
|
| D | ProcedureWorkerEnergyAnomaly.test.ts | 30 x: 30, 40 frame: { x: 0, y: 29, width: 22, height: 101 }, 48 x: 50, 58 frame: { x: 0, y: 19, width: 32, height: 102 }, 72 x: 207, 85 x: 20, 97 x: 22, 108 x: 20, 120 x: 20, 137 x: 30, [all …]
|
| D | ProcedureWorkerCPU.test.ts | 42 x: 310, 59 x: 203, 86 x: 230, 102 x: 20, 113 x: 20, 121 x: 10, 139 x: 207, 150 x: 29, 158 x: 42, 174 x: 9, [all …]
|
| D | ProcedureWorkerJank.test.ts | 29 x: 20, 62 x: 120, 100 x: 9, 111 x: 220, 119 x: 7, 136 x: 90, 147 x: 980, 155 x: 45, 171 x: 65, 221 x: 12, [all …]
|
| D | ProcedureWorkerFileSystem.test.ts | 29 x: 20, 39 x: 20, 49 x: 40, 58 frame: { x: 40, y: 59, width: 140, height: 142 }, 66 x: 24, 75 frame: { x: 10, y: 91, width: 40, height: 540 }, 84 x: 60, 96 x: 2, 107 x: 80, 119 x: 66,
|
| D | ProcedureWorkerProcess.test.ts | 39 x: 99, 51 frame: { x: 0, y: 9, width: 10, height: 10 }, 63 frame: { x: 32, y: 3, width: 10, height: 120 }, 68 frame: { x: 30, y: 93, width: 20, height: 10 }, 77 x: 104, 88 x: 20, 99 x: 201, 110 x: 20, 127 x: 55, 158 x: 20,
|
| D | ProduceWorkerSdkCounter.test.ts | 34 x: 20, 48 x: 23, 63 x: 21, 77 x: 20, 90 x: 20, 110 x: 13, 119 x: 20, 132 x: 50, 141 x: 20, 158 x: 20, [all …]
|
| /developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/data/ |
| D | EntryOhos.ets | 28 private x:number = 0; 30 constructor(x?:number, y?:number,icon?:ImagePaint,data?:Object) { 32 this.x = x; 36 * Returns the x-value of this Entry object. 41 return this.x; 45 * Sets the x-value of this Entry object. 47 * @param x 49 public setX(x:number):void { 50 this.x = x; 59 var e:EntryOhos= new EntryOhos(this.x, this.getY(),null, this.getData()); [all …]
|
| /developtools/profiler/host/smartperf/ide/src/base-ui/chart/column/ |
| D | LitChartColumn.ts | 28 x: number; 34 x: number; 59 offset?: { x: number | undefined; y: number | undefined }; 69 this.offset = { x: 60, y: 20 }; 77 let x = ev.pageX - rect.left; variable 80 if (contains(it.bgFrame!, x, y)) { 96 this.tipTypeShow(x, y, pillars, innerHtml); 102 this.tipTypeShow(x, y, pillars, innerHtml); 113 private tipTypeShow(x: number, y: number, pillars: Pillar[], innerHtml: string) { 114 if (x >= this.clientWidth - this.litChartColumnTipEL!.clientWidth) { [all …]
|
| /developtools/smartperf_host/ide/src/base-ui/chart/column/ |
| D | LitChartColumn.ts | 28 x: number; 34 x: number; 59 offset?: { x: number | undefined; y: number | undefined }; 69 this.offset = { x: 60, y: 20 }; 77 let x = ev.pageX - rect.left; variable 80 if (contains(it.bgFrame!, x, y)) { 96 this.tipTypeShow(x, y, pillars, innerHtml); 102 this.tipTypeShow(x, y, pillars, innerHtml); 113 private tipTypeShow(x: number, y: number, pillars: Pillar[], innerHtml: string) { 114 if (x >= this.clientWidth - this.litChartColumnTipEL!.clientWidth) { [all …]
|
| /developtools/integration_verification/tools/rom_ram_analyzer/lite_small/pkgs/ |
| D | basic_tool.py | 39 def get_unit(x: str) -> str: 41 unit = re.search(pattern, x).group() 45 def translate_str_unit(x: str, dest: str, prefix: str = "~") -> float: 46 src_unit = get_unit(x) 60 x = float(x.lstrip(prefix).rstrip(src_unit)) 61 return round(x*(trans_dict.get(src_unit)/trans_dict.get(dest)), 2) 64 def do_nothing(x: Any) -> Any: 65 return x 87 file_list = list(map(lambda x: cls.abspath(x), file_list)) 89 file_list = list(map(lambda x: os.path.realpath(x), file_list))
|
| /developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/utils/ |
| D | MPPointF.ets | 21 public x: number; 32 public constructor(x?: number, y?: number) { 34 this.x = x; 38 public static getInstance(x ?: number, y ?: number, copy ?: MPPointF): MPPointF{ 41 result.x = copy.x; 45 if (x != null && y != null) { 47 result.x = x; 60 result.x = copy.x; 102 x = in.readFloat(); 107 return this.x;
|