Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 233) sorted by relevance

12345678910

/developtools/hdc/src/common/
Dfile.cpp37 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 …]
Dtransfer.cpp45 bool HdcTransferBase::ResetCtx(CtxFile *context, bool full) in ResetCtx() argument
48 *context = {}; in ResetCtx()
49 context->fsOpenReq.data = context; in ResetCtx()
50 context->fsCloseReq.data = context; in ResetCtx()
51 context->thisClass = this; in ResetCtx()
52 context->loop = loopTask; in ResetCtx()
53 context->cb = OnFileIO; in ResetCtx()
55 context->closeNotify = false; in ResetCtx()
56 context->indexIO = 0; in ResetCtx()
57 context->lastErrno = 0; in ResetCtx()
[all …]
Dfile.h30 void TransferNext(CtxFile *context);
32 void CheckMaster(CtxFile *context) override;
33 void WhenTransferFinish(CtxFile *context) override;
34 bool BeginTransfer(CtxFile *context, const string &command);
35 void TransferSummary(CtxFile *context);
36 bool SetMasterParameters(CtxFile *context, const char *command, int argc, char **argv);
/developtools/hdc/src/host/
Dhost_app.cpp29 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()
67context->taskQueue.erase(unique(context->taskQueue.begin(), context->taskQueue.end()), context->ta… in BeginInstall()
69 context->transferConfig.options = options; in BeginInstall()
[all …]
/developtools/smartperf_host/ide/src/trace/component/chart/
DSpAbilityMonitorChart.ts126 let context: CanvasRenderingContext2D;
128 context = abilityRow.currentContext;
130context = abilityRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCtx!;
132 abilityRow.canvasSave(context);
134 context?.clearRect(0, 0, abilityRow.frame.width, abilityRow.frame.height);
138 context: context,
145 abilityRow.canvasRestore(context, this.trace);
210 let context: CanvasRenderingContext2D;
212 context = userTraceRow.currentContext;
214context = userTraceRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCtx!;
[all …]
DSpEBPFChart.ts87 context: this.trace.canvasPanelCtx,
122 let context: CanvasRenderingContext2D;
124 context = logicalReadRow.currentContext;
126context = logicalReadRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCtx!;
128 logicalReadRow.canvasSave(context);
131 context: context,
138 logicalReadRow.canvasRestore(context, this.trace);
165 let context: CanvasRenderingContext2D;
167 context = logicalWriteRow.currentContext;
169context = logicalWriteRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCtx…
[all …]
DSpArkTsChart.ts84 context: this.trace.canvasPanelCtx,
204 let context: CanvasRenderingContext2D;
206 context = this.heapTimelineRow!.currentContext;
208context = this.heapTimelineRow!.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPa…
210 this.heapTimelineRow!.canvasSave(context);
213 context: context,
220 this.heapTimelineRow!.canvasRestore(context, this.trace);
226 let context: CanvasRenderingContext2D;
228 context = this.heapSnapshotRow!.currentContext;
230context = this.heapSnapshotRow!.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPa…
[all …]
DSpLogChart.ts56 let context: CanvasRenderingContext2D;
58 context = logsRow.currentContext;
60 context = logsRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCtx!;
62 logsRow.canvasSave(context);
65 context: context,
71 logsRow.canvasRestore(context, this.trace);
DSpFreqChart.ts97 let context: CanvasRenderingContext2D;
99 context = traceRow.currentContext;
101context = traceRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCtx!;
103 traceRow.canvasSave(context);
106 context: context,
112 traceRow.canvasRestore(context, this.trace);
162 let context: CanvasRenderingContext2D;
164 context = cpuStateRow.currentContext;
166context = cpuStateRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCtx!;
168 cpuStateRow.canvasSave(context);
[all …]
DSpHiSysEventChart.ts58 let context: CanvasRenderingContext2D;
60 context = hiSysEventRow.currentContext;
62context = hiSysEventRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCtx!;
64 hiSysEventRow!.canvasSave(context);
67 context: context,
73 hiSysEventRow!.canvasRestore(context, this.trace);
DSpFrameTimeChart.ts86 let context: CanvasRenderingContext2D;
88 context = frameTimeLineRow.currentContext;
90context = frameTimeLineRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPanelCt…
92 frameTimeLineRow!.canvasSave(context);
95 context: context,
101 frameTimeLineRow!.canvasRestore(context, this.trace);
140 let context: CanvasRenderingContext2D;
142 context = expectedTimeLineRow.currentContext;
144context = expectedTimeLineRow.collect ? this.trace.canvasFavoritePanelCtx! : this.trace.canvasPane…
146 expectedTimeLineRow!.canvasSave(context);
[all …]
/developtools/smartperf_host/ide/src/trace/database/ui-worker/
DProcedureWorkerEnergyPower.ts28 … powerReq: { useCache: boolean; context: CanvasRenderingContext2D; type: string; appName: string },
43 drawLoadingFrame(powerReq.context, row.dataListCache, row);
44 powerReq.context.beginPath();
58 let textMetrics = powerReq.context.measureText(s);
59 powerReq.context.globalAlpha = 1.0;
60 powerReq.context.fillStyle = '#f0f0f0';
61 powerReq.context.fillRect(0, 5, textMetrics.width + 8, 18);
62 powerReq.context.globalAlpha = 1;
63 powerReq.context.fillStyle = '#333';
64 powerReq.context.textBaseline = 'middle';
[all …]
DProcedureWorkerEnergyAnomaly.ts34 context: CanvasRenderingContext2D;
59 drawLoadingFrame(req.context, row.dataListCache, row);
60 req.context.beginPath();
66 EnergyAnomalyStruct.draw(req.context, re);
73 req.context.fillStyle = ColorUtils.FUNC_COLOR[0];
74 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0];
75 req.context.closePath();
82 req.context.font = '12px Arial';
83 let text = req.context.measureText('System Abnormality');
84 req.context.fillStyle = '#E64566';
[all …]
DProcedureWorkerNetworkAbility.ts29 context: CanvasRenderingContext2D;
49 drawLoadingFrame(req.context, networkAbilityRow.dataListCache, networkAbilityRow);
50 req.context.beginPath();
53 … NetworkAbilityMonitorStruct.draw(req.context, re, req.maxNetworkRate, networkAbilityRow.isHover);
66 req.context.closePath();
67 let textMetrics = req.context.measureText(req.maxNetworkRateName);
68 req.context.globalAlpha = 0.8;
69 req.context.fillStyle = '#f0f0f0';
70 req.context.fillRect(0, 5, textMetrics.width + 8, 18);
71 req.context.globalAlpha = 1;
[all …]
DProcedureWorkerFreq.ts31 context: CanvasRenderingContext2D;
49 drawLoadingFrame(freqReq.context, freqFilter, row);
50 freqReq.context.beginPath();
57 CpuFreqStruct.draw(freqReq.context, re);
60 freqReq.context.closePath();
62 let textMetrics = freqReq.context.measureText(s);
63 freqReq.context.globalAlpha = 0.8;
64 freqReq.context.fillStyle = '#f0f0f0';
65 freqReq.context.fillRect(0, 5, textMetrics.width + 8, 18);
66 freqReq.context.globalAlpha = 1;
[all …]
DProcedureWorkerCpuAbility.ts31 context: CanvasRenderingContext2D;
52 drawLoadingFrame(req.context, cpuAbilityRow.dataListCache, cpuAbilityRow);
53 req.context.beginPath();
55 CpuAbilityMonitorStruct.draw(req.context, re, req.maxCpuUtilization, cpuAbilityRow.isHover);
68 req.context.closePath();
69 let textMetrics = req.context.measureText(req.maxCpuUtilizationName);
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;
[all …]
DProcedureWorkerClock.ts24 context: CanvasRenderingContext2D;
46 drawLoadingFrame(clockReq.context, clockFilter, row);
47 clockReq.context.beginPath();
50 ClockStruct.draw(clockReq.context, re, clockReq.maxValue);
57 clockReq.context.closePath();
59 let textMetrics = clockReq.context.measureText(s);
60 clockReq.context.globalAlpha = 0.8;
61 clockReq.context.fillStyle = '#f0f0f0';
62 clockReq.context.fillRect(0, 5, textMetrics.width + 8, 18);
63 clockReq.context.globalAlpha = 1;
[all …]
/developtools/smartperf_host/ide/src/trace/database/ui-worker/hiperf/
DProcedureWorkerHiPerfEvent.ts51 hiPerfEventReq.context.beginPath();
52 hiPerfEventReq.context.fillStyle = ColorUtils.FUNC_COLOR[0];
53 hiPerfEventReq.context.strokeStyle = ColorUtils.FUNC_COLOR[0];
59 HiPerfEventStruct.draw(hiPerfEventReq.context, normalPath, specPath, re, groupBy10MS);
71 hiPerfEventReq.context.fill(normalPath);
73 hiPerfEventReq.context.stroke(normalPath);
74 HiPerfStruct.drawSpecialPath(hiPerfEventReq.context, specPath);
77 let textMetrics = hiPerfEventReq.context.measureText(maxEvent);
78 hiPerfEventReq.context.globalAlpha = 0.8;
79 hiPerfEventReq.context.fillStyle = '#f0f0f0';
[all …]
DProcedureWorkerHiPerfCPU2.ts26 req.context.font = 'normal 12px Arial';
27 textMetrics = req.context.measureText('��');
30 drawLoadingFrame(req.context, hiperfCpu2Filter, row);
31 req.context.beginPath();
32 req.context.fillStyle = ColorUtils.FUNC_COLOR[0];
33 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0];
47 HiPerfCpuStruct.draw(req.context, normalPath, normalPath, re, groupBy10MS, textMetrics);
51 req.context.fill(normalPath);
53 req.context.stroke(normalPath);
54 HiPerfStruct.drawSpecialPath(req.context, normalPath);
[all …]
DProcedureWorkerHiPerfThread2.ts26 req.context.font = 'normal 12px Arial';
27 textMetrics = req.context.measureText('��');
30 drawLoadingFrame(req.context, hiperfThreadFilter, row);
31 req.context.beginPath();
32 req.context.fillStyle = ColorUtils.FUNC_COLOR[0];
33 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0];
39 HiPerfThreadStruct.draw(req.context, normalPath, specPath, re, groupBy10MS, textMetrics);
51 req.context.fill(normalPath);
53 req.context.stroke(normalPath);
54 HiPerfStruct.drawSpecialPath(req.context, specPath);
[all …]
DProcedureWorkerHiPerfProcess2.ts26 req.context.font = 'normal 12px Arial';
27 textMetrics = req.context.measureText('��');
30 drawLoadingFrame(req.context, hiperfProcessFilter, row);
31 req.context.beginPath();
32 req.context.fillStyle = ColorUtils.FUNC_COLOR[0];
33 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0];
39 HiPerfProcessStruct.draw(req.context, normalPath, specPath, it, groupBy10MS, textMetrics);
51 req.context.fill(normalPath);
53 req.context.stroke(normalPath);
54 HiPerfStruct.drawSpecialPath(req.context, specPath);
[all …]
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/
DFloatWindowComponent.ets25 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 …]
/developtools/profiler/device/services/plugin_service/src/
Dplugin_service_impl.cpp26 bool PluginServiceImpl::RegisterPlugin(SocketContext& context, in RegisterPlugin() argument
39 pluginInfo.context = &context; in RegisterPlugin()
56 bool PluginServiceImpl::UnregisterPlugin(SocketContext& context, in UnregisterPlugin() argument
73 bool PluginServiceImpl::GetCommand(SocketContext& context, ::GetCommandRequest& request, ::GetComma… in GetCommand() argument
78 bool PluginServiceImpl::NotifyResult(SocketContext& context, in NotifyResult() argument
91 bool PluginServiceImpl::PushCommand(SocketContext& context, GetCommandResponsePtr command) in PushCommand() argument
93 SendResponseGetCommandResponse(context, *command.get()); in PushCommand()
97 bool PluginServiceImpl::SendHeartBeat(SocketContext& context) in SendHeartBeat() argument
99 return context.SendHeartBeat(); in SendHeartBeat()
Dplugin_service_impl.h30 bool RegisterPlugin(SocketContext& context, ::RegisterPluginRequest& request,
32 bool UnregisterPlugin(SocketContext& context, ::UnregisterPluginRequest& request,
34 …bool GetCommand(SocketContext& context, ::GetCommandRequest& request, ::GetCommandResponse& respon…
35 bool NotifyResult(SocketContext& context, ::NotifyResultRequest& request,
37 bool PushCommand(SocketContext& context, GetCommandResponsePtr command);
38 bool SendHeartBeat(SocketContext& context);
/developtools/integration_verification/tools/fotff/utils/
Dexec.go29 func ExecContext(ctx context.Context, name string, args ...string) error {
30 ctx, fn := context.WithTimeout(ctx, 6*time.Hour)
33 if errors.Is(err, context.Canceled) {
42 func execContext(ctx context.Context, name string, args ...string) error {
63 func ExecCombinedOutputContext(ctx context.Context, name string, args ...string) ([]byte, error) {
64 ctx, fn := context.WithTimeout(ctx, 6*time.Hour)
68 if errors.Is(err, context.Canceled) {
77 func execCombinedOutputContext(ctx context.Context, name string, args ...string) ([]byte, error) {
85 func SleepContext(duration time.Duration, ctx context.Context) {

12345678910