| /developtools/hdc/src/common/ |
| D | file.cpp | 37 bool HdcFile::BeginTransfer(CtxFile *context, const string &command) in BeginTransfer() argument 50 if (!SetMasterParameters(context, command.c_str(), argc, argv)) { in BeginTransfer() 56 …uv_fs_open(loopTask, &context->fsOpenReq, context->localPath.c_str(), O_RDONLY, S_IWUSR | S_IRUSR,… in BeginTransfer() 57 context->master = true; in BeginTransfer() 61 LogMsg(MSG_FAIL, "Transfer path failed, Master:%s Slave:%s", context->localPath.c_str(), in BeginTransfer() 62 context->remotePath.c_str()); in BeginTransfer() 68 bool HdcFile::SetMasterParameters(CtxFile *context, const char *command, int argc, char **argv) in SetMasterParameters() argument 79 context->transferConfig.compressType = COMPRESS_LZ4; in SetMasterParameters() 82 context->transferConfig.updateIfNew = true; in SetMasterParameters() 89 context->transferConfig.holdTimestamp = true; in SetMasterParameters() [all …]
|
| D | transfer.cpp | 46 bool HdcTransferBase::ResetCtx(CtxFile *context, bool full) in ResetCtx() argument 49 *context = {}; in ResetCtx() 50 context->fsOpenReq.data = context; in ResetCtx() 51 context->fsCloseReq.data = context; in ResetCtx() 52 context->thisClass = this; in ResetCtx() 53 context->loop = loopTask; in ResetCtx() 54 context->cb = OnFileIO; in ResetCtx() 56 context->closeNotify = false; in ResetCtx() 57 context->indexIO = 0; in ResetCtx() 58 context->lastErrno = 0; in ResetCtx() [all …]
|
| /developtools/hdc/src/host/ |
| D | host_app.cpp | 29 bool HdcHostApp::BeginInstall(CtxFile *context, const char *command) in BeginInstall() argument 42 context->transferConfig.clientCwd = argv[i + 1]; in BeginInstall() 52 ExtractRelativePath(context->transferConfig.clientCwd, path); in BeginInstall() 54 context->taskQueue.push_back(path); in BeginInstall() 56 GetSubFiles(argv[i], ".hap", &context->taskQueue); in BeginInstall() 57 GetSubFiles(argv[i], ".hsp", &context->taskQueue); in BeginInstall() 61 if (!context->taskQueue.size()) { in BeginInstall() 66 sort(context->taskQueue.begin(), context->taskQueue.end()); in BeginInstall() 67 …context->taskQueue.erase(unique(context->taskQueue.begin(), context->taskQueue.end()), context->ta… in BeginInstall() 69 context->transferConfig.options = options; in BeginInstall() [all …]
|
| /developtools/profiler/host/smartperf/ide/src/trace/database/ui-worker/ |
| D | ProcedureWorkerHiPerfEvent.ts | 49 hiPerfEventReq.context.beginPath(); 50 hiPerfEventReq.context.fillStyle = ColorUtils.FUNC_COLOR[0]; 51 hiPerfEventReq.context.strokeStyle = ColorUtils.FUNC_COLOR[0]; 56 HiPerfEventStruct.draw(hiPerfEventReq.context, path, re, groupBy10MS); 65 groupBy10MS ? hiPerfEventReq.context.fill(path) : hiPerfEventReq.context.stroke(path); 67 let textMetrics = hiPerfEventReq.context.measureText(maxEvent); 68 hiPerfEventReq.context.globalAlpha = 0.8; 69 hiPerfEventReq.context.fillStyle = '#f0f0f0'; 70 hiPerfEventReq.context.fillRect(0, 5, textMetrics.width + 8, 18); 71 hiPerfEventReq.context.globalAlpha = 1; [all …]
|
| D | ProcedureWorkerEnergyPower.ts | 31 … powerReq: { useCache: boolean; context: CanvasRenderingContext2D; type: string; appName: string }, 46 powerReq.context.beginPath(); 60 let textMetrics = powerReq.context.measureText(s); 61 powerReq.context.globalAlpha = 1.0; 62 powerReq.context.fillStyle = '#f0f0f0'; 63 powerReq.context.fillRect(0, 5, textMetrics.width + 8, 18); 64 powerReq.context.globalAlpha = 1; 65 powerReq.context.fillStyle = '#333'; 66 powerReq.context.textBaseline = 'middle'; 67 powerReq.context.fillText(s, 4, 5 + 9); [all …]
|
| D | ProcedureWorkerEnergyAnomaly.ts | 33 context: CanvasRenderingContext2D; 52 req.context.beginPath(); 58 EnergyAnomalyStruct.draw(req.context, re); 65 req.context.fillStyle = ColorUtils.FUNC_COLOR[0]; 66 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0]; 67 req.context.closePath(); 97 energyAnomalyRequest.context.clearRect( 111 energyAnomalyRequest.context, 121 energyAnomalyRequest.context, 126 energyAnomalyRequest.context.stroke(); [all …]
|
| D | ProcedureWorkerHiPerfThread.ts | 48 hiPerfThreadReq.context.beginPath(); 49 hiPerfThreadReq.context.fillStyle = ColorUtils.FUNC_COLOR[0]; 50 hiPerfThreadReq.context.strokeStyle = ColorUtils.FUNC_COLOR[0]; 55 HiPerfThreadStruct.draw(hiPerfThreadReq.context, path, re, groupBy10MS); 64 groupBy10MS ? hiPerfThreadReq.context.fill(path) : hiPerfThreadReq.context.stroke(path); 65 hiPerfThreadReq.context.closePath(); 96 …hiPerfThreadRequest.context.clearRect(0, 0, hiPerfThreadRequest.frame.width, hiPerfThreadRequest.f… 105 hiPerfThreadRequest.context, 115 hiPerfThreadRequest.context, 120 hiPerfThreadRequest.context.stroke(); [all …]
|
| D | ProcedureWorkerCommon.ts | 33 context: any; 521 export function drawSelection(context: any, params: any) { 529 if (context) { 530 context.globalAlpha = 0.5; 531 context.fillStyle = '#666666'; 532 context.fillRect( 538 context.globalAlpha = 1; 544 export function drawSelectionRange(context: any, params: TraceRow<any>) { 564 if (context) { 565 context.globalAlpha = 0.5; [all …]
|
| D | ProcedureWorkerHiPerfProcess.ts | 48 hiPerfProcessReq.context.beginPath(); 49 hiPerfProcessReq.context.fillStyle = ColorUtils.FUNC_COLOR[0]; 50 hiPerfProcessReq.context.strokeStyle = ColorUtils.FUNC_COLOR[0]; 55 HiPerfProcessStruct.draw(hiPerfProcessReq.context, path, re, groupBy10MS); 64 groupBy10MS ? hiPerfProcessReq.context.fill(path) : hiPerfProcessReq.context.stroke(path); 65 hiPerfProcessReq.context.closePath(); 96 …hiPerfProcessRequest.context.clearRect(0, 0, hiPerfProcessRequest.frame.width, hiPerfProcessReques… 105 hiPerfProcessRequest.context, 115 hiPerfProcessRequest.context, 120 hiPerfProcessRequest.context.stroke(); [all …]
|
| D | ProcedureWorkerHiPerfCPU.ts | 49 req.context.beginPath(); 50 req.context.fillStyle = ColorUtils.FUNC_COLOR[0]; 51 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0]; 65 HiPerfCpuStruct.draw(req.context, path, re, groupBy10MS); 69 req.context.fill(path); 71 req.context.stroke(path); 73 req.context.closePath(); 107 …hiPerfCpuRequest.context.clearRect(0, 0, hiPerfCpuRequest.frame.width, hiPerfCpuRequest.frame.heig… 116 hiPerfCpuRequest.context, 126 hiPerfCpuRequest.context, [all …]
|
| D | ProcedureWorkerDiskIoAbility.ts | 34 context: CanvasRenderingContext2D; 54 req.context.beginPath(); 57 DiskAbilityMonitorStruct.draw(req.context, re, req.maxDiskRate, row.isHover); 64 req.context.closePath(); 65 let textMetrics = req.context.measureText(req.maxDiskRateName); 66 req.context.globalAlpha = 0.8; 67 req.context.fillStyle = '#f0f0f0'; 68 req.context.fillRect(0, 5, textMetrics.width + 8, 18); 69 req.context.globalAlpha = 1; 70 req.context.fillStyle = '#333'; [all …]
|
| D | ProduceWorkerSdkCounter.ts | 32 context: CanvasRenderingContext2D; 53 req.context.beginPath(); 60 CounterStruct.draw(req.context, re, maxCounter); 63 req.context.closePath(); 64 let textMetrics = req.context.measureText(maxCounterName); 65 req.context.globalAlpha = 0.8; 66 req.context.fillStyle = '#f0f0f0'; 67 req.context.fillRect(0, 5, textMetrics.width + 8, 18); 68 req.context.globalAlpha = 1; 69 req.context.fillStyle = '#333'; [all …]
|
| D | ProcedureWorkerFPS.ts | 33 context: CanvasRenderingContext2D; 50 req.context.beginPath(); 53 FpsStruct.draw(req.context, re); 60 req.context.closePath(); 62 let textMetrics = req.context.measureText(maxFps); 63 req.context.globalAlpha = 0.8; 64 req.context.fillStyle = '#f0f0f0'; 65 req.context.fillRect(0, 5, textMetrics.width + 8, 18); 66 req.context.globalAlpha = 1; 67 req.context.fillStyle = '#333'; [all …]
|
| /developtools/smartperf_host/ide/src/trace/database/ui-worker/ |
| D | ProcedureWorkerEnergyPower.ts | 31 … powerReq: { useCache: boolean; context: CanvasRenderingContext2D; type: string; appName: string }, 46 powerReq.context.beginPath(); 60 let textMetrics = powerReq.context.measureText(s); 61 powerReq.context.globalAlpha = 1.0; 62 powerReq.context.fillStyle = '#f0f0f0'; 63 powerReq.context.fillRect(0, 5, textMetrics.width + 8, 18); 64 powerReq.context.globalAlpha = 1; 65 powerReq.context.fillStyle = '#333'; 66 powerReq.context.textBaseline = 'middle'; 67 powerReq.context.fillText(s, 4, 5 + 9); [all …]
|
| D | ProcedureWorkerEnergyAnomaly.ts | 33 context: CanvasRenderingContext2D; 52 req.context.beginPath(); 58 EnergyAnomalyStruct.draw(req.context, re); 65 req.context.fillStyle = ColorUtils.FUNC_COLOR[0]; 66 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0]; 67 req.context.closePath(); 97 energyAnomalyRequest.context.clearRect( 111 energyAnomalyRequest.context, 121 energyAnomalyRequest.context, 126 energyAnomalyRequest.context.stroke(); [all …]
|
| D | ProcedureWorkerHiPerfEvent.ts | 44 hiPerfEventReq.context.beginPath(); 45 hiPerfEventReq.context.fillStyle = ColorUtils.FUNC_COLOR[0]; 46 hiPerfEventReq.context.strokeStyle = ColorUtils.FUNC_COLOR[0]; 52 HiPerfEventStruct.draw(hiPerfEventReq.context, normalPath, specPath, re, groupBy10MS); 64 hiPerfEventReq.context.fill(normalPath); 66 hiPerfEventReq.context.stroke(normalPath); 67 HiPerfStruct.drawSpecialPath(hiPerfEventReq.context, specPath); 70 let textMetrics = hiPerfEventReq.context.measureText(maxEvent); 71 hiPerfEventReq.context.globalAlpha = 0.8; 72 hiPerfEventReq.context.fillStyle = '#f0f0f0'; [all …]
|
| D | ProcedureWorkerDiskIoAbility.ts | 34 context: CanvasRenderingContext2D; 54 req.context.beginPath(); 57 DiskAbilityMonitorStruct.draw(req.context, re, req.maxDiskRate, diskIoAbilityRow.isHover); 68 req.context.closePath(); 69 let textMetrics = req.context.measureText(req.maxDiskRateName); 70 req.context.globalAlpha = 0.8; 71 req.context.fillStyle = '#f0f0f0'; 72 req.context.fillRect(0, 5, textMetrics.width + 8, 18); 73 req.context.globalAlpha = 1; 74 req.context.fillStyle = '#333'; [all …]
|
| D | ProcedureWorkerFPS.ts | 33 context: CanvasRenderingContext2D; 50 req.context.beginPath(); 53 FpsStruct.draw(req.context, re); 60 req.context.closePath(); 62 let textMetrics = req.context.measureText(maxFps); 63 req.context.globalAlpha = 0.8; 64 req.context.fillStyle = '#f0f0f0'; 65 req.context.fillRect(0, 5, textMetrics.width + 8, 18); 66 req.context.globalAlpha = 1; 67 req.context.fillStyle = '#333'; [all …]
|
| D | ProduceWorkerSdkCounter.ts | 32 context: CanvasRenderingContext2D; 53 req.context.beginPath(); 60 CounterStruct.draw(req.context, re, maxCounter); 65 req.context.closePath(); 66 let textMetrics = req.context.measureText(maxCounterName); 67 req.context.globalAlpha = 0.8; 68 req.context.fillStyle = '#f0f0f0'; 69 req.context.fillRect(0, 5, textMetrics.width + 8, 18); 70 req.context.globalAlpha = 1; 71 req.context.fillStyle = '#333'; [all …]
|
| D | ProcedureWorkerCpuFreqLimits.ts | 36 context: CanvasRenderingContext2D; 56 cpuFreqLimitReq.context.beginPath(); 68 CpuFreqLimitsStruct.draw(cpuFreqLimitReq.context, re, maxFreq); 70 cpuFreqLimitReq.context.closePath(); 72 let textMetrics = cpuFreqLimitReq.context.measureText(s); 73 cpuFreqLimitReq.context.globalAlpha = 0.8; 74 cpuFreqLimitReq.context.fillStyle = '#f0f0f0'; 75 cpuFreqLimitReq.context.fillRect(0, 5, textMetrics.width + 8, 18); 76 cpuFreqLimitReq.context.globalAlpha = 1; 77 cpuFreqLimitReq.context.fillStyle = '#333'; [all …]
|
| /developtools/smartperf_host/ide/src/trace/component/chart/ |
| D | SpAbilityMonitorChart.ts | 141 context: this.trace.canvasPanelCtx, 190 … let context = traceRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCtx!; 191 traceRow.canvasSave(context); 194 context: context, 202 traceRow.canvasRestore(context); 226 …let context = userTraceRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCt… 227 userTraceRow.canvasSave(context); 230 context: context, 238 userTraceRow.canvasRestore(context); 262 …let context = sysTraceRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCtx… [all …]
|
| D | SpFileSystemChart.ts | 90 context: this.trace.canvasPanelCtx, 118 …let context = logicalReadRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanel… 119 logicalReadRow.canvasSave(context); 122 context: context, 129 logicalReadRow.canvasRestore(context); 149 …let context = logicalWriteRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPane… 150 logicalWriteRow.canvasSave(context); 153 context: context, 160 logicalWriteRow.canvasRestore(context); 181 … let context = diskIoRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCtx!; [all …]
|
| /developtools/profiler/host/smartperf/ide/src/trace/component/chart/ |
| D | SpAbilityMonitorChart.ts | 136 context: this.trace.canvasPanelCtx, 185 … let context = traceRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCtx!; 186 traceRow.canvasSave(context); 189 context: context, 197 traceRow.canvasRestore(context); 221 …let context = userTraceRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCt… 222 userTraceRow.canvasSave(context); 225 context: context, 233 userTraceRow.canvasRestore(context); 257 …let context = sysTraceRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCtx… [all …]
|
| D | SpFileSystemChart.ts | 90 context: this.trace.canvasPanelCtx, 118 …let context = logicalReadRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanel… 119 logicalReadRow.canvasSave(context); 122 context: context, 129 logicalReadRow.canvasRestore(context); 149 …let context = logicalWriteRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPane… 150 logicalWriteRow.canvasSave(context); 153 context: context, 160 logicalWriteRow.canvasRestore(context); 181 … let context = diskIoRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCtx!; [all …]
|
| /developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ |
| D | FloatWindowComponent.ets | 25 private context: CanvasRenderingContext2D = new CanvasRenderingContext2D(this.settings) 48 Canvas(this.context) 53 … this.context.clearRect(this.XPoint + 0.5, this.YPoint - this.YLength, this.XLength, this.YLength) 54 this.context.beginPath() 55 this.context.strokeStyle="#ffffff" 56 this.context.moveTo(this.XPoint, this.YPoint - this.YLength) 57 this.context.lineTo(this.XPoint, this.YPoint) 58 this.context.stroke() 60 this.context.beginPath() 61 this.context.strokeStyle="#ffffff" [all …]
|