/developtools/ace_js2bundle/ace-loader/plugin/templater/ |
D | data.js | 23 function parseData(v) { argument 24 v.match(dataReg).forEach(element => { 26 v = v.replace(element, repElement) 29 if (!expressionReg.test(v)) { 36 for (let i = next; i < v.length; i++) { 37 let match = dataReg.exec(v) 42 getValue(next, start, v, res) 46 getValue(next, v.length, v, res) 50 function getValue(begin, end, v, res) { argument 53 value: v.slice(begin, end) [all …]
|
/developtools/hdc/hdc_rust/src/daemon/ |
D | sys_para.rs | 39 Ok(v) => v, in set_dev_item() 43 Ok(v) => v, in set_dev_item() 55 Ok(v) => v, in get_dev_item() 59 Ok(v) => v, in get_dev_item() 72 Ok(v) => v.trim().to_string(), in get_dev_item() 83 Ok(v) => v, in wait_dev_item() 87 Ok(v) => v, in wait_dev_item()
|
/developtools/smartperf_host/ide/src/trace/component/chart/ |
D | SpSegmentationChart.ts | 54 stateChartData = data.map((v) => { 56 dur: v.dur, 57 pid: v.pid, 58 tid: v.tid, 59 end_ts: v.ts + v.dur!, 60 id: v.id, 62 startTime: v.ts, 63 start_ts: v.ts, 64 state: v.state, 65 type: v.type, [all …]
|
/developtools/profiler/proto_encoder/include/ |
D | varint_encode.h | 68 inline typename std::make_unsigned<T>::type EncodeZigZag(T v) in EncodeZigZag() argument 70 if (v >= 0) { in EncodeZigZag() 71 return ((typename std::make_unsigned<T>::type)(v) << 1); in EncodeZigZag() 74 return ((typename std::make_unsigned<T>::type)(~v) << 1) + 1; in EncodeZigZag() 78 inline uint32_t EncodeVarint(uint8_t* buf, T v) in EncodeVarint() argument 82 uint64_t value = static_cast<uint64_t>(v); in EncodeVarint() 96 inline uint32_t EncodeZigZagVarint(uint8_t* buf, T v) in EncodeZigZagVarint() argument 98 return EncodeVarint(buf, EncodeZigZag(v)); in EncodeZigZagVarint() 102 inline void EncodeVarintPadding(uint8_t* buf, T v, uint32_t paddingSize) in EncodeVarintPadding() argument 107 buf[size] = (VARINT_MASK_PAYLOAD & v) | VARINT_MASK_MSB; in EncodeVarintPadding() [all …]
|
D | base_message.h | 113 void AddFixed32(uint32_t fieldId, T v) in AddFixed32() argument 134 if (memcpy_s(fieldMemory + tagSize, SIZE_FIXED32, &v, SIZE_FIXED32) != EOK) { in AddFixed32() 146 void AddFixed64(uint32_t fieldId, T v) in AddFixed64() argument 167 if (memcpy_s(fieldMemory + tagSize, SIZE_FIXED64, &v, SIZE_FIXED64) != EOK) { in AddFixed64() 179 void AddVarint(uint32_t fieldId, T v) in AddVarint() argument 198 fieldSize += EncodeVarint(fieldMemory + fieldSize, v); in AddVarint() 206 void AddZigZagVarint(uint32_t fieldId, T v) in AddZigZagVarint() argument 225 fieldSize += EncodeZigZagVarint(fieldMemory + fieldSize, v); in AddZigZagVarint()
|
/developtools/integration_verification/tools/fotff/utils/ |
D | ini.go | 42 var v string 44 v, err = conf.GetValue(section, key) 47 v = rt.Elem().Field(i).Tag.Get("default") 49 rv.Elem().Field(i).SetString(v) 58 var v string 60 v, err = conf.GetValue(section, key) 63 v = rt.Elem().Field(i).Tag.Get("default") 65 rv.Elem().Field(i).Set(reflect.ValueOf(strings.Split(v, ",")))
|
D | runtime.go | 41 func CacheGet(section string, k string) (v any, found bool) { 45 func CacheSet(section string, k string, v any) error { 46 runtimeCache.Set(sectionKey(section, k), v, cache.DefaultExpiration)
|
/developtools/smartperf_host/trace_streamer/src/base/ |
D | index_map.cpp | 114 auto v = static_cast<TableRowId>(sqlite3_value_int64(argv)); in FilterId() local 117 Intersect(v, v + 1); in FilterId() 120 Intersect(v, end_); in FilterId() 123 v++; in FilterId() 124 Intersect(v, end_); in FilterId() 127 v++; in FilterId() 128 Intersect(0, v); in FilterId() 131 Intersect(0, v); in FilterId() 141 auto v = static_cast<uint64_t>(sqlite3_value_int64(argv)); in FilterTS() local 145 IntersectabcEqual(times, v, getValue); in FilterTS() [all …]
|
D | index_map.h | 161 void IntersectabcEqual(const std::deque<Row> &rows, Val v, GetV getValue) in IntersectabcEqual() argument 163 auto start = std::lower_bound(rows.begin() + start_, rows.begin() + end_, v); in IntersectabcEqual() 164 auto end = std::upper_bound(start, rows.begin() + end_, v); in IntersectabcEqual() 172 void IntersectGreaterEqual(const std::deque<Row> &rows, Val v, GetV getValue) in IntersectGreaterEqual() argument 174 auto start = std::lower_bound(rows.begin() + start_, rows.begin() + end_, v, in IntersectGreaterEqual() 175 … [&](const Row &row, const Val &v) { return v > getValue(row); }); in IntersectGreaterEqual() 182 void IntersectLessEqual(const std::deque<Row> &rows, Val v, GetV getValue) in IntersectLessEqual() argument 184 auto end = std::upper_bound(rows.begin() + start_, rows.begin() + end_, v, in IntersectLessEqual() 185 … [&](const Row &row, const Val &v) { return v > getValue(row); }); in IntersectLessEqual() 191 void RemoveNullElements(const std::deque<T> &rows, T v) in RemoveNullElements() argument
|
/developtools/profiler/host/smartperf/client/client_command/include/ |
D | control_call_cmd.h | 25 double ColdStart(std::vector<std::string> v); 26 double ColdStartHM(std::vector<std::string> v) const; 27 double HotStart(std::vector<std::string> v); 30 double StartResponse(std::vector<std::string> v); 32 std::string StartFrameFps(std::vector<std::string> v); 33 std::string GetResult(std::vector<std::string> v);
|
/developtools/smartperf_host/ide/src/trace/component/ |
D | StackBar.ts | 30 for (let v of val) { 31 if (map.has(v.state)) { 32 let sv = map.get(v.state); 33 sv!.value = sv!.value + v.wallDuration; 34 sv!.state = `${v.state} : ${sv!.value.toFixed(5)}ms`; 37 sv.value = v.wallDuration; 38 sv.state = `${v.state} : ${sv.value.toFixed(5)}ms`; 39 sv.color = Utils.getStateColor(v.stateJX); 40 map.set(v.state, sv);
|
/developtools/smartperf_host/ide/src/base-ui/menu/ |
D | LitMainMenu.ts | 173 item.children?.forEach((v: unknown) => { 175 th.setAttribute('icon', v.icon || ''); // @ts-ignore 176 th.setAttribute('title', v.title || ''); 186 if (v.fileChoose) { 190 if (v.fileHandler && !th.disabled) { 192 v.fileHandler(e); 199 if (v.clickHandler && !th.disabled) { 201 v.clickHandler(v); 205 if (v.disabled !== undefined) { 207 th.disabled = v.disabled;
|
/developtools/profiler/host/smartperf/client/client_command/ |
D | control_call_cmd.cpp | 39 std::string ControlCallCmd::GetResult(std::vector<std::string> v) in GetResult() argument 41 if (v[ohType] == "ohtest") { in GetResult() 44 if (v[typeName] == "coldStart") { in GetResult() 45 time = SmartPerf::ControlCallCmd::ColdStart(v); in GetResult() 46 } else if (v[typeName] == "hotStart") { in GetResult() 47 time = SmartPerf::ControlCallCmd::HotStart(v); in GetResult() 48 } else if (v[typeName] == "responseTime") { in GetResult() 50 } else if (v[typeName] == "completeTime") { in GetResult() 52 } else if (v[typeName] == "startResponse") { in GetResult() 53 time = SmartPerf::ControlCallCmd::StartResponse(v); in GetResult() [all …]
|
D | editor_command.cpp | 27 EditorCommand::EditorCommand(int argc, const std::vector<std::string> &v) in EditorCommand() argument 30 controlCallCmd.GetResult(v); in EditorCommand()
|
/developtools/smartperf_host/trace_streamer/src/parser/pbreader_parser/arkts/ |
D | pbreader_js_memory_parser.cpp | 53 void from_json(const json &j, Meta &v) in from_json() argument 56 v.nodeFields.emplace_back(j["node_fields"][i]); in from_json() 65 v.nodeTypes.emplace_back(nodeTypes); in from_json() 68 v.nodeTypes.emplace_back(nodeTypes); in from_json() 72 v.edgeFields.emplace_back(j["edge_fields"][i]); in from_json() 80 v.edgeTypes.emplace_back(edgeTypes); in from_json() 83 v.edgeTypes.emplace_back(edgeTypes); in from_json() 87 v.traceFunctionInfoFields.emplace_back(j["trace_function_info_fields"][i]); in from_json() 90 v.traceNodeFields.emplace_back(j["trace_node_fields"][i]); in from_json() 93 v.sampleFields.emplace_back(j["sample_fields"][i]); in from_json() [all …]
|
/developtools/smartperf_host/trace_streamer/src/table/base/ |
D | table_base.cpp | 272 auto v = static_cast<uint64_t>(sqlite3_value_int64(argv)); in FilterTS() local 276 indexMap_->IntersectabcEqual(times, v, getValue); in FilterTS() 279 v++; in FilterTS() 281 indexMap_->IntersectGreaterEqual(times, v, getValue); in FilterTS() 285 v++; in FilterTS() 287 indexMap_->IntersectLessEqual(times, v, getValue); in FilterTS() 291 indexMap_->RemoveNullElements(times, v); in FilterTS() 319 auto v = static_cast<TableRowId>(sqlite3_value_int64(argv)); in FilterId() local 322 indexMap_->Intersect(v, v + 1); in FilterId() 325 indexMap_->Intersect(v, rowCount_); in FilterId() [all …]
|
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/utils/ |
D | ColorTemplate.ets | 47 let v = 0; 54 v = max / 255; 73 v = Math.floor(v * 100); 75 hsv.push(h, s, v); 81 let v = arr[2]; 83 v = v / 100; 89 var p = v * (1 - s); 90 var q = v * (1 - f * s); 91 var t = v * (1 - (1 - f) * s); 94 r = v; [all …]
|
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/pkgs/ |
D | gn_common_tool.py | 99 for v in var_name_tuple: 100 pv = v.strip('"').lstrip("${").rstrip('}') 112 var_val_dict[v] = output 113 GnCommonTool.__var_val_mem_dict[v] = output 131 for k, v in dict(zip(variable_list, value_list)).items(): 132 s = s.replace(k, v) 147 v = var_name.strip('"').lstrip("${").rstrip('}')
|
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/src/ |
D | rom_analysis.py | 162 for k, v in relative_dir.items(): 163 product_path_dit[k] = os.path.join(root_dir, v) 167 for k, v in product_path_dit.items(): 168 if not os.path.exists(v): 170 product_dict[k] = BasicTool.find_files_with_pattern(v) # v是全路径 174 for v in relative_dir.values(): 175 if v in rest_dir_list: 176 rest_dir_list.remove(v) 177 for v in relative_dir.values(): 178 if os.sep in v: [all …]
|
/developtools/smartperf_host/trace_streamer/src/table/ftrace/ |
D | system_event_filter_table.cpp | 137 auto v = static_cast<uint64_t>(sqlite3_value_int64(argv)); in FilterSorted() local 141 indexMap_->IntersectabcEqual(sysEventObj_.IdsData(), v, getValue); in FilterSorted() 144 v++; in FilterSorted() 146 indexMap_->IntersectGreaterEqual(sysEventObj_.IdsData(), v, getValue); in FilterSorted() 150 v++; in FilterSorted() 152 indexMap_->IntersectLessEqual(sysEventObj_.IdsData(), v, getValue); in FilterSorted()
|
D | cpu_measure_filter_table.cpp | 143 auto v = static_cast<uint64_t>(sqlite3_value_int64(argv)); in FilterSorted() local 147 indexMap_->IntersectabcEqual(cpuMeasureObj_.IdsData(), v, getValue); in FilterSorted() 150 v++; in FilterSorted() 152 indexMap_->IntersectGreaterEqual(cpuMeasureObj_.IdsData(), v, getValue); in FilterSorted() 156 v++; in FilterSorted() 158 indexMap_->IntersectLessEqual(cpuMeasureObj_.IdsData(), v, getValue); in FilterSorted()
|
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/states/ |
D | TabPaneFreqStatesDataCut.ts | 331 threadData.map((v) => { 333 …if (v.ts > this.funcNameCycleArr[i].cycleStartTime && v.dur + v.ts < this.funcNameCycleArr[i].endT… 335 v.state === 'R' 336 ? ((cycleItem.RunnableCount += 1), (cycleItem.RunnableDur += v.dur!)) 337 : v.state === 'Running' 338 ? ((cycleItem.RunningCount += 1), (cycleItem.RunningDur += v.dur!)) 339 : v.state === 'S' 340 ? ((cycleItem.SleepingCount += 1), (cycleItem.SleepingDur += v.dur!)) 341 : ((cycleItem.DCount += 1), (cycleItem.DDur += v.dur!)); 541 return this.filterState?.filter((v: StateGroup) => { [all …]
|
/developtools/smartperf_host/ide/test/trace/database/data-trafic/utils/ |
D | DataFilter.test.ts | 36 {startKey: 0, durKey: 100, startNS: 0, endNS: 1000, v: true}, 37 {startKey: 100, durKey: 200, startNS: 1001, endNS: 2000, v: true}, 53 {startKey: 0, durKey: 100, startNS: 0, endNS: 1000, v: true}, 54 {startKey: 100, durKey: 200, startNS: 1001, endNS: 2000, v: true},
|
/developtools/hapsigner/tools/ |
D | auto_test.py | 371 for k, v in test_case.get('required').items(): 374 cmd = cmd + ' -{} "{}" '.format(k, random.choice(v) if isinstance(v, list) else v) 378 for k, v in test_case.get('others').items(): 381 cmd = cmd + ' -{} "{}" '.format(k, random.choice(v) if isinstance(v, list) else v)
|
/developtools/syscap_codec/tools/ |
D | syscap_check.py | 109 for v in array_syscap_set: 110 array_syscap_dict.get(filepath).append(v) 143 for v in result_dict.values(): 144 result_set.update(v) 179 for v in syscap_dict.values(): 180 syscap_set.update(v) 192 for v in value_set: 195 if v in file_values_dict[file]: 198 value_files_dict[v] = filename_set
|