Home
last modified time | relevance | path

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

12345678910>>...13

/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 …]
DSportRuler.ts175 flagObj.x = Math.round(
178 this.drawFlag(flagObj.x, flagObj.color, flagObj.selected, flagObj.text, flagObj.type);
181 …!this.hoverFlag.hidden && this.drawFlag(this.hoverFlag.x, this.hoverFlag.color, true, this.hoverFl…
199 this.context2D.clearRect(this.frame.x, this.frame.y, this.frame.width, this.frame.height + 1);
204 this.context2D.moveTo(this.frame.x, this.frame.y);
205 this.context2D.lineTo(this.frame.x + this.frame.width, this.frame.y);
211 this.context2D.moveTo(this.frame.x, this.frame.y);
212 this.context2D.lineTo(this.frame.x, this.frame.y + this.frame.height);
322 let x = TraceRow.rangeSelectObject!.startX! + (rangeSelectWidth / section) * i;
324 this.context2D.moveTo(x, this.frame.y + 22);
[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);
56 this.context2D.fillText(`${ns2s(index * this.stepNS)}`, x + 5, this.frame.height - 1);
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 + 75 / 3);
61 this.context2D.moveTo(this.frame.x, this.frame.y);
62 this.context2D.lineTo(this.frame.x, this.frame.y + 75);
169 this.context2D.clearRect(this.frame.x, this.frame.y, this.frame.width, this.frame.height);
188 this.frame.x + miniWidth * cpuUsageItem.ro,
198 this.frame.x - MarkPadding,
215 this.range.startX = this.rangeRect.x;
216 this.range.endX = this.rangeRect.x + this.rangeRect.width;
[all …]
/developtools/smartperf_host/ide/src/trace/database/ui-worker/
DProcedureWorkerCommon.ts113 x: number,
121x >= frame.x - offsetX && x <= frame.x + frame.width + offsetX && y >= frame.y && y <= frame.y + f…
124 … return x >= frame.x && x <= frame.x + frame.width && y >= frame.y && y <= frame.y + frame.height;
128 return x >= frame.x - offsetX && x <= frame.x + frame.width + offsetX;
130 return x >= frame.x && x <= frame.x + frame.width;
136 return pointX >= currentRect?.x - unitPointXRange && pointX <= currentRect?.x + unitPointXRange;
391 node.frame.x = 0;
393 node.frame.x = Math.floor(((start || 0) - startNS) / pns);
396 node.frame.width = frame.width - node.frame.x;
398 node.frame.width = Math.ceil(((start || 0) + (dur || 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.ts33 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 …]
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 …]
DProcedureWorkerEBPF.test.ts29 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,
[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 …]
DProcedureWorkerCPU.test.ts36 x: 310,
53 x: 205,
80 x: 230,
96 x: 20,
107 x: 20,
115 x: 10,
133 x: 207,
144 x: 29,
152 x: 42,
168 x: 9,
[all …]
DProduceWorkerSdkCounter.test.ts34 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 …]
DProcedureWorkerMem.test.ts26 x: 0,
35 frame: { x: 0, y: 12, width: 14, height: 120 },
40 frame: { x: 0, y: 3, width: 30, height: 30 },
48 x: 0,
57 frame: { x: 0, y: 44, width: 144, height: 40 },
62 frame: { x: 0, y: 49, width: 130, height: 3 },
76 x: 270,
96 x: 150,
127 x: 66,
DProcedureWorkerProcess.test.ts39 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,
DProcedureWorkerEnergyAnomaly.test.ts36 x: 30,
46 frame: {x: 0, y: 29, width: 22, height: 101},
54 x: 50,
64 frame: {x: 0, y: 19, width: 32, height: 102},
78 x: 207,
91 x: 20,
103 x: 22,
114 x: 20,
126 x: 20,
143 x: 30,
[all …]
DProcedureWorkerHeap.test.ts36 frame: { x: 0, y: 19, width: 20, height: 10 },
56 frame: { x: 60, y: 9, width: 10, height: 10 },
61 frame: { x: 0, y: 19, width: 110, height: 130 },
83 x: 250,
101 x: 205,
121 x: 20,
152 x: 20,
158 let frame = { x: 0, y: 9, width: 10, height: 10 };
169 x: 20,
179 x: 20,
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/data/
DEntryOhos.ets26 private x: number = 0;
28 constructor(x?: number, y?: number, icon?: ImagePaint, data?: Object) {
30 this.x = x;
34 * Returns the x-value of this Entry object.
39 return this.x;
43 * Sets the x-value of this Entry object.
45 * @param x
47 public setX(x: number): void {
48 this.x = x;
57 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): void {
114 if (x >= this.clientWidth - this.litChartColumnTipEL!.clientWidth) {
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/bpftrace/
DTabPaneSampleInstructionDistributions.ts188 let x = this.canvasX; variable
192 x -= this.floatHint!.clientWidth - 1;
194 x += 20;
198 this.floatHint!.style.transform = `translate(${x}px, ${y}px)`;
230 isContains(point: unknown, x: number, y: number): boolean {
232 return x >= point.x && x <= point.x + 2 && point.y <= y && y <= point.y + point.height;
288 for (const x in instructionData) { constant
289 const xNum = Number(x);
292 const yNum = Number((instructionData[x].length / count).toFixed(3));
297 const existX = this.cacheData.find((i) => i.instruct === x);
[all …]
DTabPaneSampleInstructionSelectionTotalTime.ts182 let x = this.canvasX;
186 x -= this.floatHint!.clientWidth - 1;
188 x += 30;
192 this.floatHint!.style.transform = `translate(${x}px, ${y}px)`;
218 isContains(point: unknown, x: number, y: number): boolean {
220 return x >= point.x && x <= point.x + 2 && point.y <= y && y <= point.y + point.height;
267 for (const x in instructionData) {
268 const xNum = Number(x);
270 const yNum = Number((instructionData[x].length / count).toFixed(3));
274 const existX = this.cacheData.find((i) => i.instruct === x);
[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.ets24 public static getInstance(x: number, y: number): MPPointD {
26 result.x = x;
39 public x: number;
42 private constructor(x: number, y: number) {
44 this.x = x;
50 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
262 let x = ev.pageX - rect.left - this.centerX!; variable
264 if (isPointIsCircle(0, 0, x, y, this.radius!)) {
265 let degree = this.computeDegree(x, y);
314 let x = ev.pageX - rect.left - this.centerX!; variable
316 if (isPointIsCircle(0, 0, x, y, this.radius!)) {
317 let degree = this.computeDegree(x, y);
339 computeDegree(x: number, y: number): number {
340 let degree = (360 * Math.atan(y / x)) / (2 * Math.PI);
341 if (x >= 0 && y >= 0) {
[all …]
/developtools/smartperf_host/ide/test/trace/component/trace/sheet/sample/
DTabPaneSampleInstructionSelectionTotalTime.test.ts123 x: 0,
142 x: 0,
161 x: 0,
180 x: 0,
200 x: 0,
219 x: 0,
241 x: 156,
255 x: 0,
292 x: 836.5,
299 x: 859,
[all …]

12345678910>>...13