/developtools/hdc/src/common/ |
D | forward.cpp | 43 HCtxForward ctx = iter->second; in StopTask() local 44 ctxs.push_back(ctx); in StopTask() 49 for (auto ctx: ctxs) { in StopTask() local 50 FreeContext(ctx, 0, false); in StopTask() 111 HCtxForward ctx = nullptr; in MallocContext() local 112 if ((ctx = new ContextForward()) == nullptr) { in MallocContext() 115 ctx->id = Base::GetRuntimeMSec(); in MallocContext() 116 ctx->masterSlave = masterSlave; in MallocContext() 117 ctx->thisClass = this; in MallocContext() 118 ctx->fdClass = nullptr; in MallocContext() [all …]
|
/developtools/smartperf_host/ide/src/trace/database/ui-worker/ |
D | ProcedureWorkerFrameSpacing.ts | 96 private drawPoint(ctx: CanvasRenderingContext2D, currentStruct: FrameSpacingStruct, 101 ctx.beginPath(); 102 ctx.lineWidth = 1; 103 ctx.globalAlpha = 1; 104 ctx.arc(currentStruct.frame!.x, currentPointY, multiple, 0, multiple * Math.PI); 105 ctx.strokeStyle = ColorUtils.ANIMATION_COLOR[2]; 106 ctx.fillStyle = ColorUtils.ANIMATION_COLOR[2]; 107 ctx.stroke(); 108 ctx.fill(); 109 ctx.closePath(); [all …]
|
D | ProcedureWorkerIrq.ts | 83 static draw(ctx: CanvasRenderingContext2D, data: IrqStruct, isHover: boolean) { 85 ctx.fillStyle = ColorUtils.colorForName(data.name || ''); 86 ctx.strokeStyle = '#232c5d'; 88 ctx.lineWidth = 1; 89 ctx.globalAlpha = 0.6; 90 …ctx.fillRect(data.frame.x, data.frame.y + padding, data.frame.width, data.frame.height - padding *… 91 ctx.lineWidth = 2; 92 …ctx.strokeRect(data.frame.x, data.frame.y + padding, data.frame.width - 2, data.frame.height - pad… 94 ctx.globalAlpha = 0.6; 95 ctx.lineWidth = 1; [all …]
|
D | ProcedureWorkerFrameDynamic.ts | 166 ctx: CanvasRenderingContext2D, 178 ctx.beginPath(); 179 ctx.lineWidth = 1; 180 ctx.globalAlpha = 1; 181 ctx.arc(currDynamic.frame!.x, currDynamic.frame!.y, smallArcRadius, 0, multiple * Math.PI); 182 ctx.strokeStyle = ColorUtils.ANIMATION_COLOR[2]; 183 ctx.fillStyle = ColorUtils.ANIMATION_COLOR[2]; 184 ctx.stroke(); 185 ctx.fill(); 186 ctx.closePath(); [all …]
|
D | ProcedureWorkerJank.ts | 145 static draw(ctx: CanvasRenderingContext2D, data: JankStruct, nsScale: number): void { 149 ctx.globalAlpha = 1; 150 ctx.fillStyle = ColorUtils.JANK_COLOR[0]; 152 ctx.fillStyle = ColorUtils.JANK_COLOR[2]; 154 ctx.fillStyle = ColorUtils.JANK_COLOR[3]; 164 ctx.globalAlpha = 0.7; 167 this.drawActualFrame(ctx, data, miniHeight); 169 this.drawExpectedFrame(data, nsScale, ctx, miniHeight); 172 ctx.fillStyle = '#fff'; 173 drawString(ctx, `${ data.name || '' }`, 5, data.frame, data); [all …]
|
D | ProcedureWorkerHeapSnapshot.ts | 97 static draw(ctx: CanvasRenderingContext2D, data: HeapSnapshotStruct): void { 99 ctx.fillStyle = 'rgb(86,192,197)'; 100 …ctx!.fillRect(data.frame!.x, data.frame!.y + padding, data.frame!.width, data.frame!.height - padd… 102 ctx.globalAlpha = 1.0; 103 ctx.lineWidth = 1; 104 ctx.fillStyle = '#fff'; 105 ctx.textBaseline = 'middle'; 106 ctx.font = '12px sans-serif'; 107 HeapSnapshotStruct.drawString(ctx, data.name || '', 3, data.frame!, data, 4); 108 …HeapSnapshotStruct.drawString(ctx, Utils.getBinaryByteWithUnit(data.size) || '', 9, data.frame!, d… [all …]
|
D | ProcedureWorkerFunc.ts | 149 static draw(ctx: CanvasRenderingContext2D, data: FuncStruct) { 154 ctx.globalAlpha = 1; 155 …ctx.fillStyle = ColorUtils.FUNC_COLOR[ColorUtils.hashFunc(data.funName || '', 0, ColorUtils.FUNC_C… 159 ctx.globalAlpha = 0.7; 161 ctx.fillRect(data.frame.x, data.frame.y, data.frame.width, miniHeight - padding * 2); 163 ctx.strokeStyle = '#fff'; 164 ctx.lineWidth = 1; 165 ctx.strokeRect(data.frame.x, data.frame.y, data.frame.width, miniHeight - padding * 2); 166 ctx.fillStyle = ColorUtils.funcTextColor(textColor); 167 drawString(ctx, `${data.funName || ''}`, 5, data.frame, data); [all …]
|
D | ProcedureWorkerCpuFreqLimits.ts | 225 static draw(ctx: CanvasRenderingContext2D, data: CpuFreqLimitsStruct, maxFreq: number) { 232 ctx.fillStyle = ColorUtils.colorForTid(index); 233 ctx.strokeStyle = ColorUtils.colorForTid(index); 238 ctx.lineWidth = 1; 239 ctx.globalAlpha = this.minAlpha; 240 this.drawArcLine(ctx, data, drawMaxHeight, drawMaxHeight - drawMinHeight); 241 ctx.globalAlpha = this.maxAlpha; 242 this.drawArcLine(ctx, data, drawMinHeight, drawMinHeight); 244 ctx.globalAlpha = this.minAlpha; 245 ctx.lineWidth = 1; [all …]
|
D | ProcedureWorkerSnapshot.ts | 105 static draw(ctx: CanvasRenderingContext2D, data: SnapshotStruct): void { 107 ctx.fillStyle = 'rgb(86,192,197)'; 108 ctx!.fillRect(data.frame!.x, data.frame!.y + padding, data.frame!.width, data.frame!.height); 110 ctx.globalAlpha = 1.0; 111 ctx.lineWidth = 1; 112 ctx.fillStyle = '#fff'; 113 ctx.textBaseline = 'middle'; 115 SnapshotStruct.drawString(ctx, data.name || '', 4, data.frame!, data, 4); 117 SnapshotStruct.drawString(ctx, data.name || '', 4, data.frame!, data, 4); 118 …SnapshotStruct.drawString(ctx, Utils.getBinaryByteWithUnit(data.value || 0), 11, data.frame!, data… [all …]
|
D | ProcedureWorkerAppStartup.ts | 88 static draw(ctx: CanvasRenderingContext2D, data: AppStartupStruct): void { 90 ctx.globalAlpha = 1.0; 91 ctx.fillStyle = ColorUtils.colorForTid(data.startName!); 92 ctx.fillRect(data.frame.x, data.frame.y, data.frame.width, data.frame.height); 94 ctx.textBaseline = 'middle'; 95 ctx.lineWidth = 1; 100 ctx.fillStyle = ColorUtils.funcTextColor(textColor); 101 drawString(ctx, data.stepName, 2, data.frame, data); 104 ctx.strokeStyle = '#232c5d'; 105 ctx.lineWidth = 2; [all …]
|
/developtools/integration_verification/tools/fotff/utils/ |
D | hdc.go | 23 func WaitHDC(device string, ctx context.Context) bool { 24 ctx, cancelFn := context.WithTimeout(ctx, 20*time.Second) 28 case <-ctx.Done(): 32 ExecContext(ctx, hdc, "kill") 34 ExecContext(ctx, hdc, "start") 36 out, err := ExecCombinedOutputContext(ctx, hdc, "list", "targets") 58 func TryRebootToLoader(device string, ctx context.Context) error { 61 if connected := WaitHDC(device, ctx); connected { 63 return ExecContext(ctx, hdc, "shell", "reboot", "loader") 65 return ExecContext(ctx, hdc, "-t", device, "shell", "reboot", "loader") [all …]
|
D | exec.go | 29 func ExecContext(ctx context.Context, name string, args ...string) error { 30 ctx, fn := context.WithTimeout(ctx, 6*time.Hour) 32 if err := execContext(ctx, name, args...); err != nil { 37 return execContext(ctx, name, args...) 42 func execContext(ctx context.Context, name string, args ...string) error { 45 cmd := exec.CommandContext(ctx, name, args...) 63 func ExecCombinedOutputContext(ctx context.Context, name string, args ...string) ([]byte, error) { 64 ctx, fn := context.WithTimeout(ctx, 6*time.Hour) 66 out, err := execCombinedOutputContext(ctx, name, args...) 72 return execCombinedOutputContext(ctx, name, args...) [all …]
|
/developtools/profiler/device/base/src/ |
D | epoll_event_poller.cpp | 47 auto ctx = std::make_shared<EventContext>(); in AddFileDescriptor() local 48 CHECK_NOTNULL(ctx, false, "create EventContext FAILED!"); in AddFileDescriptor() 49 ctx->fd = fd; in AddFileDescriptor() 50 ctx->onReadable = onReadable; in AddFileDescriptor() 51 ctx->onWritable = onWritable; in AddFileDescriptor() 54 CHECK_TRUE(AddContextLocked(ctx), false, "add context for %d failed!", fd); in AddFileDescriptor() 64 auto ctx = it->second; in RemoveFileDescriptor() local 65 CHECK_NOTNULL(ctx, false, "ctx null!"); in RemoveFileDescriptor() 66 CHECK_TRUE(RemoveContextLocked(ctx), false, "remove context for %d failed!", fd); in RemoveFileDescriptor() 70 bool EpollEventPoller::AddContextLocked(const EventContextPtr& ctx) in AddContextLocked() argument [all …]
|
/developtools/profiler/host/smartperf/ide/src/trace/database/ui-worker/ |
D | ProcedureWorkerIrq.ts | 83 static draw(ctx: CanvasRenderingContext2D, data: IrqStruct, isHover: boolean) { 85 ctx.fillStyle = ColorUtils.colorForName(data.name || ''); 86 ctx.strokeStyle = '#232c5d'; 88 ctx.lineWidth = 1; 89 ctx.globalAlpha = 0.6; 90 …ctx.fillRect(data.frame.x, data.frame.y + padding, data.frame.width, data.frame.height - padding *… 91 ctx.lineWidth = 2; 92 …ctx.strokeRect(data.frame.x, data.frame.y + padding, data.frame.width - 2, data.frame.height - pad… 94 ctx.globalAlpha = 0.6; 95 ctx.lineWidth = 1; [all …]
|
D | ProcedureWorkerJank.ts | 146 static draw(ctx: CanvasRenderingContext2D, data: JankStruct, nsScale: number) { 150 ctx.globalAlpha = 1; 151 ctx.fillStyle = ColorUtils.JANK_COLOR[0]; 153 ctx.fillStyle = ColorUtils.JANK_COLOR[2]; 155 ctx.fillStyle = ColorUtils.JANK_COLOR[3]; 165 ctx.globalAlpha = 0.7; 168 this.drawActualFrame(ctx, data, miniHeight); 170 this.drawExpectedFrame(data, nsScale, ctx, miniHeight); 173 ctx.fillStyle = '#fff'; 174 drawString(ctx, `${data.name || ''}`, 5, data.frame, data); [all …]
|
D | ProcedureWorkerFunc.ts | 148 static draw(ctx: CanvasRenderingContext2D, data: FuncStruct) { 153 ctx.globalAlpha = 1; 154 …ctx.fillStyle = ColorUtils.FUNC_COLOR[ColorUtils.hashFunc(data.funName || '', 0, ColorUtils.FUNC_C… 158 ctx.globalAlpha = 0.7; 160 ctx.fillRect(data.frame.x, data.frame.y, data.frame.width, miniHeight - padding * 2); 162 ctx.strokeStyle = '#fff'; 163 ctx.lineWidth = 1; 164 ctx.strokeRect(data.frame.x, data.frame.y, data.frame.width, miniHeight - padding * 2); 165 ctx.fillStyle = ColorUtils.funcTextColor(textColor); 166 drawString(ctx, `${data.funName || ''}`, 5, data.frame, data); [all …]
|
D | ProcedureWorkerHeapSnapshot.ts | 104 static draw(ctx: CanvasRenderingContext2D, data: HeapSnapshotStruct): void { 106 ctx.fillStyle = 'rgb(86,192,197)'; 107 …ctx!.fillRect(data.frame!.x, data.frame!.y + padding, data.frame!.width, data.frame!.height - padd… 109 ctx.globalAlpha = 1.0; 110 ctx.lineWidth = 1; 111 ctx.fillStyle = '#fff'; 112 ctx.textBaseline = 'middle'; 113 ctx.font = '12px sans-serif'; 114 HeapSnapshotStruct.drawString(ctx, data.name || '', 3, data.frame!, data, 4); 115 …HeapSnapshotStruct.drawString(ctx, Utils.getBinaryByteWithUnit(data.size) || '', 9, data.frame!, d… [all …]
|
D | ProcedureWorkerAppStartup.ts | 86 static draw(ctx: CanvasRenderingContext2D, data: AppStartupStruct) { 88 ctx.globalAlpha = 1.0; 89 ctx.fillStyle = ColorUtils.colorForTid(data.startName!); 90 ctx.fillRect(data.frame.x, data.frame.y, data.frame.width, data.frame.height); 92 ctx.fillStyle = '#fff'; 93 ctx.textBaseline = 'middle'; 94 ctx.font = '8px sans-serif'; 98 drawString(ctx, data.stepName, 2, data.frame, data); 101 ctx.strokeStyle = '#232c5d'; 102 ctx.lineWidth = 2; [all …]
|
D | ProcedureWorkerCpuFreqLimits.ts | 225 static draw(ctx: CanvasRenderingContext2D, data: CpuFreqLimitsStruct, maxFreq: number) { 232 ctx.fillStyle = ColorUtils.colorForTid(index); 233 ctx.strokeStyle = ColorUtils.colorForTid(index); 238 ctx.lineWidth = 1; 239 ctx.globalAlpha = this.minAlpha; 240 this.drawArcLine(ctx, data, drawMaxHeight, drawMaxHeight - drawMinHeight); 241 ctx.globalAlpha = this.maxAlpha; 242 this.drawArcLine(ctx, data, drawMinHeight, drawMinHeight); 244 ctx.globalAlpha = this.minAlpha; 245 ctx.lineWidth = 1; [all …]
|
/developtools/integration_verification/tools/fotff/rec/ |
D | fotff.go | 32 ctx context.Context member 76 for _, ctx := range contexts { 77 if ctx.ctx.Value("index").(int) < success { 78 ctx.fn() 84 for _, ctx := range contexts { 85 if ctx.ctx.Value("index").(int) > fail { 86 ctx.fn() 101 ctx, fn := context.WithCancel(context.WithValue(context.TODO(), "index", index)) 102 contexts = append(contexts, cancelCtx{ctx: ctx, fn: fn}) 104 go func(index int, ctx context.Context) { [all …]
|
/developtools/profiler/host/smartperf/ide/src/base-ui/chart/pie/ |
D | LitChartPie.ts | 54 ctx: CanvasRenderingContext2D | undefined | null; property in LitChartPie 159 this.ctx = this.canvas!.getContext('2d', { alpha: true }); 164 this.ctx?.translate(this.centerX, this.centerY); 247 this.ctx?.translate(this.centerX, this.centerY); 257 this.ctx?.clearRect(0 - this.centerX!, 0 - this.centerY!, this.clientWidth, this.clientHeight); 259 this.ctx!.beginPath(); 260 this.ctx!.fillStyle = it.color as string; 261 this.ctx!.strokeStyle = this.data.length > 1 ? '#fff' : (it.color as string); 262 this.ctx?.moveTo(0, 0); 264 this.ctx!.lineWidth = 1; [all …]
|
/developtools/smartperf_host/ide/src/base-ui/chart/pie/ |
D | LitChartPie.ts | 54 ctx: CanvasRenderingContext2D | undefined | null; property in LitChartPie 163 this.ctx = this.canvas!.getContext('2d', { alpha: true }); 168 this.ctx?.translate(this.centerX, this.centerY); 251 this.ctx?.translate(this.centerX, this.centerY); 261 this.ctx?.clearRect(0 - this.centerX!, 0 - this.centerY!, this.clientWidth, this.clientHeight); 263 this.ctx!.beginPath(); 264 this.ctx!.fillStyle = it.color as string; 265 this.ctx!.strokeStyle = this.data.length > 1 ? '#fff' : (it.color as string); 266 this.ctx?.moveTo(0, 0); 268 this.ctx!.lineWidth = 1; [all …]
|
/developtools/profiler/host/smartperf/trace_streamer/src/base/sqlite_ext/ |
D | sqlite_ext_funcs.cpp | 204 void BuildJson(sqlite3_context* ctx, int32_t argc, sqlite3_value** argv) in BuildJson() argument 209 sqlite3_result_error(ctx, "BuildJson arg number error", -1); in BuildJson() 218 sqlite3_result_error(ctx, "BuildJson: Invalid args", -1); in BuildJson() 227 sqlite3_result_error(ctx, "AppendSqlValueError", -1); in BuildJson() 235 sqlite3_result_blob(ctx, "", 0, nullptr); in BuildJson() 240 sqlite3_result_blob(ctx, data.release(), static_cast<int32_t>(raw.size()), free); in BuildJson() 243 void RepeatedJsonStep(sqlite3_context* ctx, int32_t argc, sqlite3_value** argv) in RepeatedJsonStep() argument 246 auto** jsonBuild = static_cast<JsonBuild**>(sqlite3_aggregate_context(ctx, sizeof(JsonBuild*))); in RepeatedJsonStep() 256 sqlite3_result_error(ctx, "BuildJson: Invalid args", -1); in RepeatedJsonStep() 265 sqlite3_result_error(ctx, "AppendSqlValueError", -1); in RepeatedJsonStep() [all …]
|
/developtools/smartperf_host/trace_streamer/src/base/sqlite_ext/ |
D | sqlite_ext_funcs.cpp | 204 void BuildJson(sqlite3_context* ctx, int32_t argc, sqlite3_value** argv) in BuildJson() argument 209 sqlite3_result_error(ctx, "BuildJson arg number error", -1); in BuildJson() 218 sqlite3_result_error(ctx, "BuildJson: Invalid args", -1); in BuildJson() 227 sqlite3_result_error(ctx, "AppendSqlValueError", -1); in BuildJson() 235 sqlite3_result_blob(ctx, "", 0, nullptr); in BuildJson() 240 sqlite3_result_blob(ctx, data.release(), static_cast<int32_t>(raw.size()), free); in BuildJson() 243 void RepeatedJsonStep(sqlite3_context* ctx, int32_t argc, sqlite3_value** argv) in RepeatedJsonStep() argument 246 auto** jsonBuild = static_cast<JsonBuild**>(sqlite3_aggregate_context(ctx, sizeof(JsonBuild*))); in RepeatedJsonStep() 256 sqlite3_result_error(ctx, "BuildJson: Invalid args", -1); in RepeatedJsonStep() 265 sqlite3_result_error(ctx, "AppendSqlValueError", -1); in RepeatedJsonStep() [all …]
|
/developtools/profiler/device/services/profiler_service/src/ |
D | profiler_service.cpp | 147 if (auto ctx = weakCtx.lock(); ctx != nullptr) { in StartPluginSessions() local 148 ctx->StopPluginSessions(); in StartPluginSessions() 310 auto ctx = std::make_shared<SessionContext>(); in CreateSession() local 311 CHECK_POINTER_NOTNULL(ctx, "alloc SessionContext failed!"); in CreateSession() 314 ctx->service = this; in CreateSession() 316 ctx->dataRepeater = dataRepeater; in CreateSession() 319 ctx->traceFileWriter = traceWriter; in CreateSession() 321 ctx->sessionConfig = sessionConfig; in CreateSession() 322 ctx->pluginNames = std::move(pluginNames); in CreateSession() 323 ctx->pluginConfigs = std::move(pluginConfigs); in CreateSession() [all …]
|