Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 263) sorted by relevance

1234567891011

/developtools/smartperf_host/ide/src/trace/component/trace/timer-shaft/
DRect.ts17 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 …]
DRangeRuler.ts36 …this.inspectionFrame = new Rect(frame.x - MarkPadding, frame.y, frame.width + MarkPadding * 2, fra…
56 this.context2D.moveTo(this.frame.x, this.frame.y);
57 this.context2D.lineTo(this.frame.x, this.frame.y + this.frame.height / 3);
61 this.context2D.moveTo(this.frame.x, this.frame.y);
62 this.context2D.lineTo(this.frame.x, this.frame.y + this.frame.height);
160 this.context2D.clearRect(this.frame.x, this.frame.y, this.frame.width, this.frame.height);
169 this.frame.x + miniWidth * cpuUsageItem.ro,
179 this.frame.x - MarkPadding,
196 this.range.startX = this.rangeRect.x;
197 this.range.endX = this.rangeRect.x + this.rangeRect.width;
[all …]
DTimeRuler.ts38 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);
50 this.context2D.moveTo(x + Math.floor(innerIndex * this.stepSmall), 0);
51 this.context2D.lineTo(x + Math.floor(innerIndex * this.stepSmall), this.frame.height / 4);
54 this.context2D.fillText(`${ns2s(index * this.stepNS)}`, x + 5, this.frame.height - 1);
DSportRuler.ts174 flagObj.x = Math.round(
177 this.drawFlag(flagObj.x, flagObj.color, flagObj.selected, flagObj.text, flagObj.type);
180 …!this.hoverFlag.hidden && this.drawFlag(this.hoverFlag.x, this.hoverFlag.color, true, this.hoverFl…
198 this.context2D.clearRect(this.frame.x, this.frame.y, this.frame.width, this.frame.height + 1);
203 this.context2D.moveTo(this.frame.x, this.frame.y);
204 this.context2D.lineTo(this.frame.x + this.frame.width, this.frame.y);
210 this.context2D.moveTo(this.frame.x, this.frame.y);
211 this.context2D.lineTo(this.frame.x, this.frame.y + this.frame.height);
321 let x = TraceRow.rangeSelectObject!.startX! + (rangeSelectWidth / section) * i;
323 this.context2D.moveTo(x, this.frame.y + 22);
[all …]
/developtools/smartperf_host/ide/src/trace/database/ui-worker/
DProcedureWorkerTimeline.ts155 this.c.clearRect(this.frame.x, this.frame.y, this.frame.width, this.frame.height);
160 let x = Math.floor(i * this.step) + this.frame.x;
161 this.c.moveTo(x, 0);
162 this.c.lineTo(x, this.frame.height);
165 this.c.moveTo(x + Math.floor(j * this.stepSmall), 0);
166 this.c.lineTo(x + Math.floor(j * this.stepSmall), this.frame.height / 4);
169 this.c.fillText(`${ns2s(i * this.stepNS)}`, x + 5, this.frame.height - 1);
183 public obj = [{ x: 3 }, { x: 2 }];
226 this.c.clearRect(this.frame.x, this.frame.y, this.frame.width, this.frame.height);
231 this.c.moveTo(this.frame.x, this.frame.y);
[all …]
DProcedureWorkerCommon.ts112 x: number,
120x >= frame.x - offsetX && x <= frame.x + frame.width + offsetX && y >= frame.y && y <= frame.y + f…
123 … return x >= frame.x && x <= frame.x + frame.width && y >= frame.y && y <= frame.y + frame.height;
127 return x >= frame.x - offsetX && x <= frame.x + frame.width + offsetX;
129 return x >= frame.x && x <= frame.x + frame.width;
135 return pointX >= currentRect?.x - unitPointXRange && pointX <= currentRect?.x + unitPointXRange;
348 node.frame.x = 0;
350 node.frame.x = Math.floor(((node[startKey] || 0) - startNS) / pns);
353 node.frame.width = frame.width - node.frame.x;
355 …me.width = Math.ceil(((node[startKey] || 0) + (node[durKey] || 0) - startNS) / pns - node.frame.x);
[all …]
/developtools/smartperf_host/ide/test/trace/database/ui-worker/
DProcedureWorkerHiPerfReport.test.ts31 x: 5,
40 frame: { x: 50, y: 9, width: 105, height: 150 },
47 frame: { x: 60, y: 99, width: 610, height: 16 },
56 x: 33,
65 frame: { x: 10, y: 91, width: 110, height: 310 },
70 frame: { x: 30, y: 4, width: 130, height: 103 },
77 frame: { x: 23, y: 32, width: 130, height: 32 },
85 x: 70,
94 frame: { x: 4, y: 93, width: 350, height: 130 },
99 frame: { x: 50, y: 95, width: 50, height: 640 },
[all …]
DProcedureWorkerCpuState.test.ts31 x: 43,
43 x: 80,
54 x: 10,
66 x: 30,
79 x: 20,
90 x: 20,
105 frame: { x: 0, y: 54, width: 30, height: 350 },
111 x: 77,
123 x: 30,
138 frame: { x: 20, y: 45, width: 50, height: 150 },
[all …]
DProcedureWorkerEBPF.test.ts28 x: 20,
38 x: 20,
48 x: 40,
57 frame: { x: 40, y: 59, width: 140, height: 142 },
65 x: 24,
74 frame: { x: 10, y: 91, width: 40, height: 540 },
83 x: 60,
95 x: 2,
106 x: 80,
118 x: 66,
DProcedureWorkerEnergySystem.test.ts29 x: 20,
39 frame: { x: 0, y: 9, width: 10, height: 10 },
47 x: 20,
58 frame: { x: 0, y: 9, width: 10, height: 10 },
76 x: 20,
94 x: 20,
112 x: 20,
124 x: 10,
137 x: 20,
148 x: 20,
[all …]
DProcedureWorkerJank.test.ts26 x: 20,
59 x: 120,
97 x: 9,
108 x: 220,
116 x: 7,
133 x: 90,
144 x: 980,
152 x: 45,
168 x: 65,
218 x: 12,
[all …]
DProcedureWorkerEnergyAnomaly.test.ts29 x: 30,
39 frame: { x: 0, y: 29, width: 22, height: 101 },
47 x: 50,
57 frame: { x: 0, y: 19, width: 32, height: 102 },
71 x: 207,
84 x: 20,
96 x: 22,
107 x: 20,
119 x: 20,
136 x: 30,
[all …]
DProcedureWorkerCPU.test.ts38 x: 310,
55 x: 203,
82 x: 230,
98 x: 20,
109 x: 20,
117 x: 10,
135 x: 207,
146 x: 29,
154 x: 42,
170 x: 9,
[all …]
DProcedureWorkerProcess.test.ts37 x: 99,
49 frame: { x: 0, y: 9, width: 10, height: 10 },
61 frame: { x: 32, y: 3, width: 10, height: 120 },
66 frame: { x: 30, y: 93, width: 20, height: 10 },
75 x: 104,
86 x: 20,
97 x: 201,
108 x: 20,
125 x: 55,
156 x: 20,
DProduceWorkerSdkCounter.test.ts32 x: 20,
46 x: 23,
61 x: 21,
75 x: 20,
88 x: 20,
108 x: 13,
117 x: 20,
130 x: 50,
139 x: 20,
156 x: 20,
[all …]
DProcedureWorkerEnergyPower.test.ts47 x: 20,
61 x: 20,
69 x: 20,
80 x: 20,
88 x: 20,
146 x: 90,
180 x: 20,
191 x: 50,
201 frame: { x: 0, y: 9, width: 20, height: 12 },
209 x: 98,
[all …]
DProcedureWorkerMem.test.ts26 x: 0,
36 frame: { x: 0, y: 12, width: 14, height: 120 },
41 frame: { x: 0, y: 3, width: 30, height: 30 },
52 frame: { x: 0, y: 44, width: 144, height: 40 },
57 frame: { x: 0, y: 49, width: 130, height: 3 },
71 x: 270,
91 x: 150,
122 x: 66,
DProcedureWorkerHeap.test.ts34 frame: { x: 0, y: 19, width: 20, height: 10 },
54 frame: { x: 60, y: 9, width: 10, height: 10 },
59 frame: { x: 0, y: 19, width: 110, height: 130 },
81 x: 250,
99 x: 205,
119 x: 20,
150 x: 20,
156 let frame = { x: 0, y: 9, width: 10, height: 10 };
167 x: 20,
177 x: 20,
DProduceWorkerSdkSlice.test.ts29 x: 46,
51 x: 17,
72 x: 20,
91 x: 20,
100 x: 20,
113 x: 20,
122 x: 20,
139 x: 20,
170 x: 70,
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/data/
DEntryOhos.ets28 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/smartperf_host/ide/src/base-ui/chart/column/
DLitChartColumn.ts28 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/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/utils/
DMPPointF.ets21 public x: number;
24 public constructor(x?: number, y?: number) {
26 this.x = x;
30 public static getInstance(x ?: number, y ?: number, copy ?: MPPointF): MPPointF{
33 result.x = copy.x;
37 if (x != null && y != null) {
39 result.x = x;
55 return this.x;
DMPPointD.ets28 public static getInstance(x: number, y: number): MPPointD{
30 result.x = x;
44 public x: number;
47 private constructor(x: number, y: number) {
49 this.x = x;
57 return "MPPointD, x: " + this.x + ", y: " + this.y;
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/pkgs/
Dbasic_tool.py39 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/smartperf_host/ide/src/base-ui/chart/pie/
DLitChartPie.ts23 x: number; property
255 let x = ev.pageX - rect.left - this.centerX!; variable
257 if (isPointIsCircle(0, 0, x, y, this.radius!)) {
258 let degree = this.computeDegree(x, y);
307 let x = ev.pageX - rect.left - this.centerX!; variable
309 if (isPointIsCircle(0, 0, x, y, this.radius!)) {
310 let degree = this.computeDegree(x, y);
329 computeDegree(x: number, y: number) {
330 let degree = (360 * Math.atan(y / x)) / (2 * Math.PI);
331 if (x >= 0 && y >= 0) {
[all …]

1234567891011