/developtools/hdc/src/common/ |
D | file.cpp | 37 bool HdcFile::BeginTransfer(CtxFile *context, const string &command) in BeginTransfer() argument 49 if (!SetMasterParameters(context, command.c_str(), argc, argv)) { in BeginTransfer() 55 …uv_fs_open(loopTask, &context->fsOpenReq, context->localPath.c_str(), O_RDONLY, S_IWUSR | S_IRUSR,… in BeginTransfer() 56 context->master = true; in BeginTransfer() 60 LogMsg(MSG_FAIL, "Transfer path failed, Master:%s Slave:%s", context->localPath.c_str(), in BeginTransfer() 61 context->remotePath.c_str()); in BeginTransfer() 67 bool HdcFile::SetMasterParameters(CtxFile *context, const char *command, int argc, char **argv) in SetMasterParameters() argument 78 context->transferConfig.compressType = COMPRESS_LZ4; in SetMasterParameters() 81 context->transferConfig.updateIfNew = true; in SetMasterParameters() 88 context->transferConfig.holdTimestamp = true; in SetMasterParameters() [all …]
|
D | transfer.cpp | 41 bool HdcTransferBase::ResetCtx(CtxFile *context, bool full) in ResetCtx() argument 44 *context = {}; in ResetCtx() 45 context->fsOpenReq.data = context; in ResetCtx() 46 context->fsCloseReq.data = context; in ResetCtx() 47 context->thisClass = this; in ResetCtx() 48 context->loop = loopTask; in ResetCtx() 49 context->cb = OnFileIO; in ResetCtx() 51 context->closeNotify = false; in ResetCtx() 52 context->indexIO = 0; in ResetCtx() 53 context->lastErrno = 0; in ResetCtx() [all …]
|
D | file.h | 30 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);
|
D | transfer.h | 43 string context; member 103 virtual void CheckMaster(CtxFile *context) in CheckMaster() argument 106 virtual void WhenTransferFinish(CtxFile *context) in WhenTransferFinish() argument 110 bool ResetCtx(CtxFile *context, bool full = false); 114 void SetFileTime(CtxFile *context); 127 CtxFile *context; member 131 int SimpleFileIO(CtxFile *context, uint64_t index, uint8_t *sendBuf, int bytes); 132 bool SendIOPayload(CtxFile *context, uint64_t index, uint8_t *data, int dataSize); 133 bool RecvIOPayload(CtxFile *context, uint8_t *data, int dataSize);
|
/developtools/profiler/host/smartperf/ide/src/trace/database/ |
D | ProcedureWorker.ts | 44 function drawSelection(context: any, params: any) { 48 if (context) { 49 context.globalAlpha = 0.5 50 context.fillStyle = "#666666" 51 …context.fillRect(params.rangeSelectObject!.startX!, params.frame.y, params.rangeSelectObject!.endX… 52 context.globalAlpha = 1 57 function drawWakeUp(context: CanvasRenderingContext2D | any, wake: WakeupBean | null, startNS: numb… 60 context.beginPath(); 61 context.lineWidth = 2; 62 context.fillStyle = "#000000"; [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 | ProcedureWorkerEnergyPower.ts | 37 req.context.clearRect(0, 0, req.canvas.width, EnergyPowerStruct.rowHeight); 40 … drawLoading(req.context, req.startNS, req.endNS, req.totalNS, req.frame, arr[0].startNS, 43 drawLines(req.context, req.xs, req.frame.height, req.lineColor) 44 req.context.beginPath(); 58 req.context.stroke(); 59 drawSelection(req.context, req.params); 60 req.context.closePath(); 63 let textMetrics = req.context.measureText(s); 64 req.context.globalAlpha = 1.0 65 req.context.fillStyle = "#f0f0f0" [all …]
|
D | ProcedureWorkerEnergyAnomaly.ts | 37 req.context.clearRect(0, 0, req.canvas.width, req.canvas.height); 40 …drawLoading(req.context, req.startNS, req.endNS, req.totalNS, req.frame, arr[0].startNS, arr[arr.l… 42 drawLines(req.context, req.xs, req.frame.height, req.lineColor) 43 req.context.stroke(); 44 req.context.beginPath(); 58 req.context.fillStyle = ColorUtils.FUNC_COLOR[0] 59 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0]; 62 EnergyAnomalyStruct.draw(req.context, path, re); 64 req.context.fillStyle = "#E64566"; 65 req.context.strokeStyle = "#E64566"; [all …]
|
D | ProcedureWorkerCommon.ts | 31 context: any; 235 export function drawSelection(context: any, params: any) { 239 if (context) { 240 context.globalAlpha = 0.5 241 context.fillStyle = "#666666" 242 …context.fillRect(params.rangeSelectObject!.startX!, params.frame.y, params.rangeSelectObject!.endX… 243 context.globalAlpha = 1 248 export function drawWakeUp(context: CanvasRenderingContext2D | any, wake: WakeupBean | undefined | … 251 context.beginPath(); 252 context.lineWidth = 2; [all …]
|
D | ProcedureWorkerEnergySystem.ts | 36 req.context.clearRect(0, 0, req.canvas.width, req.canvas.height); 39 …drawLoading(req.context, req.startNS, req.endNS, req.totalNS, req.frame, arr[0].startNS, arr[arr.l… 41 drawLines(req.context, req.xs, req.frame.height, req.lineColor) 42 req.context.beginPath(); 74 EnergySystemStruct.draw(req.context, re) 77 drawSelection(req.context, req.params); 78 req.context.closePath(); 79 …drawFlagLine(req.context, req.flagMoveInfo, req.flagSelectedInfo, req.startNS, req.endNS, req.tota… 94 let text = req.context.measureText(textList[index]); 95 req.context.fillStyle = EnergySystemStruct.getColor(index); [all …]
|
D | ProcedureWorkerCpuAbility.ts | 36 req.context.clearRect(0, 0, req.frame.width, req.frame.height); 39 …drawLoading(req.context, req.startNS, req.endNS, req.totalNS, req.frame, arr[0].startNS, arr[arr.l… 41 req.context.beginPath(); 44 drawLines(req.context, req.xs, req.frame.height, req.lineColor) 56 CpuAbilityMonitorStruct.draw(req.context, re) 58 drawSelection(req.context, req.params); 59 req.context.closePath(); 61 let textMetrics = req.context.measureText(s); 62 req.context.globalAlpha = 0.8 63 req.context.fillStyle = "#f0f0f0" [all …]
|
D | ProcedureWorkerHiPerfEvent.ts | 38 req.context.clearRect(0, 0, req.frame.width, req.frame.height); 41 …drawLoading(req.context, req.startNS, req.endNS, req.totalNS, req.frame, arr[0].startNS, arr[arr.l… 43 drawLines(req.context, req.xs, req.frame.height, req.lineColor) 44 req.context.stroke(); 45 req.context.beginPath(); 47 req.context.fillStyle = ColorUtils.FUNC_COLOR[0]; 48 req.context.strokeStyle = ColorUtils.FUNC_COLOR[0]; 63 HiPerfEventStruct.draw(req.context, path, re, groupBy10MS); 65 groupBy10MS ? req.context.fill(path) : req.context.stroke(path); 66 drawSelection(req.context, req.params); [all …]
|
D | ProduceWorkerSdkCounter.ts | 38 req.context.clearRect(0, 0, req.frame.width, req.frame.height); 41 …drawLoading(req.context, req.startNS, req.endNS, req.totalNS, req.frame, arr[0].startNS, arr[arr.l… 43 req.context.beginPath(); 46 drawLines(req.context, req.xs, req.frame.height, req.lineColor) 58 CounterStruct.draw(req.context, re, maxCounter) 60 drawSelection(req.context, req.params); 61 req.context.closePath(); 62 let textMetrics = req.context.measureText(maxCounterName); 63 req.context.globalAlpha = 0.8 64 req.context.fillStyle = "#f0f0f0" [all …]
|
D | ProcedureWorkerFPS.ts | 36 req.context.clearRect(0, 0, req.frame.width, req.frame.height); 39 …drawLoading(req.context, req.startNS, req.endNS, req.totalNS, req.frame, arr[0].startNS, arr[arr.l… 41 req.context.beginPath(); 42 drawLines(req.context, req.xs, req.frame.height, req.lineColor) 55 FpsStruct.draw(req.context, re) 57 drawSelection(req.context, req.params); 58 req.context.closePath(); 60 let textMetrics = req.context.measureText(maxFps); 61 req.context.globalAlpha = 0.8 62 req.context.fillStyle = "#f0f0f0" [all …]
|
D | ProcedureWorkerNetworkAbility.ts | 36 req.context.clearRect(0, 0, req.frame.width, req.frame.height); 39 …drawLoading(req.context, req.startNS, req.endNS, req.totalNS, req.frame, arr[0].startNS, arr[arr.l… 41 req.context.beginPath(); 44 drawLines(req.context, req.xs, req.frame.height, req.lineColor) 56 NetworkAbilityMonitorStruct.draw(req.context, re, maxNetworkRate) 58 drawSelection(req.context, req.params); 59 req.context.closePath(); 60 let textMetrics = req.context.measureText(maxNetworkRateName); 61 req.context.globalAlpha = 0.8 62 req.context.fillStyle = "#f0f0f0" [all …]
|
D | ProcedureWorkerFreq.ts | 37 req.context.clearRect(0, 0, req.frame.width, req.frame.height); 40 …drawLoading(req.context, req.startNS, req.endNS, req.totalNS, req.frame, arr[0].startNS, arr[arr.l… 42 req.context.beginPath(); 45 drawLines(req.context, req.xs, req.frame.height, req.lineColor) 59 CpuFreqStruct.draw(req.context, re) 61 drawSelection(req.context, req.params); 62 req.context.closePath(); 64 let textMetrics = req.context.measureText(s); 65 req.context.globalAlpha = 0.8 66 req.context.fillStyle = "#f0f0f0" [all …]
|
D | ProcedureWorkerDiskIoAbility.ts | 37 req.context.clearRect(0, 0, req.frame.width, req.frame.height); 40 …drawLoading(req.context, req.startNS, req.endNS, req.totalNS, req.frame, arr[0].startNS, arr[arr.l… 42 req.context.beginPath(); 45 drawLines(req.context, req.xs, req.frame.height, req.lineColor) 57 DiskAbilityMonitorStruct.draw(req.context, re, maxDiskRate) 59 drawSelection(req.context, req.params); 60 req.context.closePath(); 61 let textMetrics = req.context.measureText(maxDiskRateName); 62 req.context.globalAlpha = 0.8 63 req.context.fillStyle = "#f0f0f0" [all …]
|
D | ProcedureWorkerMemoryAbility.ts | 37 req.context.clearRect(0, 0, req.frame.width, req.frame.height); 40 …drawLoading(req.context, req.startNS, req.endNS, req.totalNS, req.frame, arr[0].startNS, arr[arr.l… 42 req.context.beginPath(); 45 drawLines(req.context, req.xs, req.frame.height, req.lineColor) 57 MemoryAbilityMonitorStruct.draw(req.context, re) 59 drawSelection(req.context, req.params); 60 req.context.closePath(); 62 let textMetrics = req.context.measureText(s); 63 req.context.globalAlpha = 0.8 64 req.context.fillStyle = "#f0f0f0" [all …]
|
D | ProcedureWorkerEnergyState.ts | 37 req.context.clearRect(0, 0, req.canvas.width, req.canvas.height); 40 … drawLoading(req.context, req.startNS, req.endNS, req.totalNS, req.frame, arr[0].startNS, 43 drawLines(req.context, req.xs, req.frame.height, req.lineColor) 44 req.context.beginPath(); 47 drawLines(req.context, req.xs, req.frame.height, req.lineColor) 59 EnergyStateStruct.draw(req.context, re) 61 drawSelection(req.context, req.params); 62 req.context.closePath(); 65 let textMetrics = req.context.measureText(s); 66 req.context.globalAlpha = 1.0 [all …]
|
/developtools/ace_ets2bundle/compiler/src/ |
D | process_ui_syntax.ts | 110 return (context: ts.TransformationContext) => { 111 contextGlobal = context; 122 node = ts.visitEachChild(node, processResourceNode, context); 133 node = ts.visitEachChild(node, processAllNodes, context); 134 node = createEntryNode(node, context, entryNodeKey, id); 178 node = processComponentClass(node, context, transformLog.errors, program); 199 node = processBuildMember(node, context, transformLog.errors, true); 223 return ts.visitEachChild(node, processAllNodes, context); 229 return ts.visitEachChild(node, processResourceNode, context); 658 function createEntryNode(node: ts.SourceFile, context: ts.TransformationContext, [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 …]
|
/developtools/profiler/host/smartperf/ide/src/trace/component/trace/sheet/ |
D | TabPaneCurrentSelection.ts | 480 let context = cavs.getContext("2d"); 481 if (context != null) { 484 context.strokeStyle = "#ffffff"; 485 context.fillStyle = "#ffffff"; 487 context.strokeStyle = "#000000"; 488 context.fillStyle = "#000000"; 490 context.lineWidth = 2; 491 context.moveTo(10, 15); 492 context.lineTo(10, 125); 493 context.stroke(); [all …]
|
/developtools/profiler/device/services/plugin_service/src/ |
D | plugin_service_impl.cpp | 26 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()
|
D | plugin_service_impl.h | 30 bool RegisterPlugin(SocketContext& context, 33 bool UnregisterPlugin(SocketContext& context, 36 …bool GetCommand(SocketContext& context, ::GetCommandRequest& request, ::GetCommandResponse& respon… 38 …NotifyResult(SocketContext& context, ::NotifyResultRequest& request, ::NotifyResultResponse& respo… 40 bool PushCommand(SocketContext& context, GetCommandResponsePtr command);
|
/developtools/hdc/scripts/ |
D | hdc_hash_gen.py | 57 context = "{}{}{}".format("#define HDC_MSG_HASH \"", str(algorithm.hexdigest())[0:16], "\"") 58 fd_hdc.write(context) 74 context = file_line.strip() 76 struct_vals.append(context) 77 if context.find("{") != -1: 79 if context.find("}") != -1: 85 if context.find("struct") != -1: 88 struct_vals.append(context) 89 if context.find("{") != -1:
|