Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 106) sorted by relevance

12345

/developtools/smartperf_host/trace_streamer/src/proto_reader/include/
Ddata_area.h151 void GetValue(bool *val) const in GetValue() argument
153 *val = ToBool(); in GetValue()
155 void GetValue(uint32_t *val) const in GetValue() argument
157 *val = ToUint32(); in GetValue()
159 void GetValue(int32_t *val) const in GetValue() argument
161 *val = ToInt32(); in GetValue()
163 void GetValue(uint64_t *val) const in GetValue() argument
165 *val = ToUint64(); in GetValue()
167 void GetValue(int64_t *val) const in GetValue() argument
169 *val = ToInt64(); in GetValue()
[all …]
/developtools/smartperf_host/ide/test/trace/component/trace/sheet/file-system/
DTabPaneIoCompletionTimes.test.ts60 let val = [ variable
66 expect(tabPaneIoCompletionTimes.initFilterTypes(val)).toBeTruthy();
69 let val = [ variable
76 expect(tabPaneIoCompletionTimes.fromStastics(val)).toBeTruthy();
79 let val = [ variable
85 expect(tabPaneIoCompletionTimes.queryData(val)).toBeUndefined();
88 let val = [ variable
95 expect(tabPaneIoCompletionTimes.filterTypeData(val)).toBeUndefined();
DTabPaneVMEvents.test.ts69 let val = [ variable
75 expect(tabPaneVMEvents.initFilterTypes(val)).toBeTruthy();
78 let val = [ variable
85 expect(tabPaneVMEvents.fromStastics(val)).toBeTruthy();
88 let val = [ variable
94 expect(tabPaneVMEvents.queryData(val)).toBeUndefined();
97 let val = [ variable
104 expect(tabPaneVMEvents.filterTypeData(val)).toBeUndefined();
DTabPaneVirtualMemoryStatistics.test.ts32 let val = [ variable
61 expect(tabPaneVirtualMemoryStatistics.queryDataByDB(val)).toBeUndefined();
/developtools/hdc/hdc_rust/src/cffi/
Dsys_para.cpp19 extern "C" int SetParameterEx(const char *key, const char *val) in SetParameterEx() argument
21 return SetParameter(key, val); in SetParameterEx()
24 extern "C" int GetParameterEx(const char *key, const char *def, char *val, unsigned int len) in GetParameterEx() argument
26 return GetParameter(key, def, val, len); in GetParameterEx()
29 extern "C" int WaitParameterEx(const char *key, const char *val, int timeout) in WaitParameterEx() argument
31 return WaitParameter(key, val, timeout); in WaitParameterEx()
/developtools/hdc/hdc_rust/src/daemon/
Dsys_para.rs22 fn SetParameterEx(key: *const libc::c_char, val: *const libc::c_char) -> libc::c_int; in SetParameterEx()
26 val: *mut libc::c_char, in GetParameterEx()
32 val: *const libc::c_char, in WaitParameterEx()
37 pub fn set_dev_item(key: &str, val: &str) -> bool { in set_dev_item()
42 let cval = match CString::new(val) { in set_dev_item()
75 let (val, _) = output.split_at(bytes as usize); in get_dev_item()
76 (bytes >= 0, val.to_string()) in get_dev_item()
81 pub fn wait_dev_item(key: &str, val: &str, timeout: i32) -> bool { in wait_dev_item()
86 let cval = match CString::new(val) { in wait_dev_item()
/developtools/ace_js2bundle/ace-loader/plugin/templater/
Dcomponent_validator.js928 function validateIf(val, out, flag, nodeLoc, relativePath) { argument
929 if (!REG_DATA_BINDING.test(val)) {
930 if (val.trim() === 'false') {
931 val = card ? false : '{{false}}'
932 } else if (val.trim() === 'true') {
933 val = card ? true : '{{true}}'
939 reason: 'ERROR: if value cannot be ' + val + '. The default value is true or false.'
944 const content = val.replace('{{', '').replace('}}', '')
945 val = !card ? '{{!(' + content + ')}}' :
946 REG_DATA_BINDING.test(val) ? '!{{' + content + '}}' : '!' + content
[all …]
/developtools/profiler/hiebpf/include/
Dcommandline_flags.h258 bool *val = (bool*) flags_[flag].addr_; in ParseBoolFlag() local
260 *val = false; in ParseBoolFlag()
262 *val = true; in ParseBoolFlag()
284 int8_t* val = (int8_t*) flags_[flag].addr_; in ParseInt8Flag() local
285 *val = static_cast<int8_t>(tmpVal); in ParseInt8Flag()
299 int16_t* val = (int16_t*) flags_[flag].addr_; in ParseInt16Flag() local
300 *val = static_cast<int16_t>(tmpVal); in ParseInt16Flag()
314 int32_t* val = (int32_t*) flags_[flag].addr_; in ParseInt32Flag() local
315 *val = static_cast<int32_t>(tmpVal); in ParseInt32Flag()
329 int64_t* val = (int64_t*) flags_[flag].addr_; in ParseInt64Flag() local
[all …]
/developtools/profiler/device/plugins/xpower_plugin/test/
Dxpower_main.cpp37 std::string val = argv[i]; in ParseArgs() local
39 params.insert(std::make_pair(key, val)); in ParseArgs()
44 int GetStringArg(const char* name, std::string& val, const char* defaultVal) in GetStringArg() argument
46 val = params[name]; in GetStringArg()
47 if (val.empty()) { in GetStringArg()
48 val = defaultVal; in GetStringArg()
50 return val.size(); in GetStringArg()
/developtools/smartperf_host/ide/src/base-ui/menu/
DLitMainMenuItem.ts101 set title(val: string) {
102 this.setAttribute('title', val);
109 set disabled(val: boolean) {
110 if (val) {
111 this.setAttribute('disabled', val.toString());
112 this.fileEL?.setAttribute('disabled', val.toString());
/developtools/profiler/hiebpf/scripts/
Dhiebpf_code_generator.py56 for opt, val in opts:
58 FSTRACE_PROGS_FILE = val
60 FSTRACE_TYPES_FILE = val
62 FSTRACE_TARGETS_FILE = val
63 if opt == opt_names[3] and val == "true":
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/native-memory/
DTabPaneNMemory.ts105 getDataByNativeMemoryWorker(val: SelectionParam | unknown, refresh = false): void {
110 args.set('leftNs', val.leftNs); //@ts-ignore
111 args.set('rightNs', val.rightNs);
177 fromStastics(val: SelectionParam | unknown): void {
179 if (this.currentSelection !== val) {
183 this.currentSelection = val;
188 this.queryData(val, false);
192 let typeIndexOf = this.setFilterNativeTypeSelection(val);
198 this.getDataByNativeMemoryWorker(val);
202 private setFilterNativeTypeSelection(val: SelectionParam): number {
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/cpu/
DTabPaneBoxChild.ts56 getDataByDB(val: BoxJumpParam): void {
58 …getTabBoxChildData(val.leftNs, val.rightNs, val.cpus, val.state, val.processId, val.threadId).then(
/developtools/smartperf_host/ide/src/base-ui/slicer/
Dlit-slicer.ts43 set direction(val: unknown) {
45 if (val.startsWith('h')) {
47 } else if (val.startsWith('v')) {
82 set rangeLeft(val: number) {
83 this.setAttribute('range-left', `${val}`);
90 set rangeRight(val: number) {
91 this.setAttribute('range-right', `${val}`);
/developtools/smartperf_host/ide/src/trace/bean/
DGpufreqBean.ts17 val: number = 0; property in GpuCountBean
28 val: number,
37 this.val = val;
55 val?: number = 0;
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/hiperf/
DTabPanePerfAnalysis.ts65 set data(val: SelectionParam) {
66 if (val === this.currentSelection) {
78 this.currentSelection = val;
85 ((val.rightNs - val.leftNs) / 1000000.0).toFixed(5)
88 this.getCallChainDataFromWorker(val);
317 private processPieChart(val: SelectionParam): void {
357 this.perfProcessLevelClickEvent(it, val);
385 private perfProcessLevelClickEvent(it: unknown, val: SelectionParam): void {
392 this.getHiperfThread(it, val);
401 private threadPieChart(val: SelectionParam): void {
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/file-system/
DTabPaneFileSystemEvents.ts195 fromStastics(val: SelectionParam | unknown): void {
197 if (val.fileSystemFsData === undefined) {
200 if (val.fileSystemFsData.title === 'All') {
203 } else if (val.fileSystemFsData.pid === undefined) {
205 this.filterEventType = `${val.fileSystemFsData.type + 1}`;
209 this.filterEventType = `${val.fileSystemFsData.type + 1}`;
213 if (this.currentSelection === val) {
217 … `${this.processList?.indexOf(`${val.fileSystemFsData.name}[${val.fileSystemFsData.pid}]`)}`;
225 this.currentSelection = val; // @ts-ignore
226 this.queryData(val);
DTabPaneFilesystemStatistics.ts95 queryDataByDB(val: SelectionParam | unknown): void {
101 val.leftNs + val.recordStartNs, // @ts-ignore
102 val.rightNs + val.recordStartNs, // @ts-ignore
103 val.fileSystemType
/developtools/smartperf_host/ide/test/trace/component/trace/sheet/ability/
DTabPaneHistoryProcesses.test.ts31 let val = [ variable
58 const val = { constant
68 expect(tabPaneHistoryProcesses.toProcessHistoryArray(val)).not.toBeUndefined();
123 expect(tabPaneHistoryProcesses.queryDataByDB(val)).toBeUndefined();
DTabPaneDiskAbility.test.ts31 let val = [ variable
60 const val = { constant
71 expect(tabPaneDiskAbility.toDiskAbilityArray(val)).not.toBeUndefined();
164 val
/developtools/profiler/device/plugins/native_daemon/include/
Dhashlist.h62 explicit LinkNode(const Key &key, const Val &val);
63 explicit LinkNode(const Key &key, Val &&val);
197 void push_front(const Key &key, const Val &val);
198 void push_front(const Key &key, Val &&val);
199 void push_back(const Key &key, const Val &val);
200 void push_back(const Key &key, Val &&val);
212 LinkNode<Key, Val> *AllocateNode(const Key &key, const Val &val);
213 LinkNode<Key, Val> *AllocateNode(const Key &key, Val &&val);
/developtools/hdc/hdc_rust/src/common/
Dbase.rs181 pub fn tlv_append(mut tlv: String, tag: &str, val: &str) -> String { in tlv_append()
191 let svlen = val.len().to_string(); in tlv_append()
198 tlv.push_str(val); in tlv_append()
222 let Some(val) = tlv.get(cur_index..(cur_index + vlen)) else { in tlv_to_stringmap()
225 let val = val.trim(); in tlv_to_stringmap() localVariable
228 tlvmap.insert(tag, val); in tlv_to_stringmap()
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/ability/
DTabPaneHistoryProcesses.ts85 queryDataByDB(val: SelectionParam | unknown): void {
87 …getTabProcessHistoryData(val.leftNs, val.rightNs, val.processId, val.threadId).then((item): void =…
/developtools/smartperf_host/ide/src/trace/component/trace/base/
DTraceSheet.ts653 let val = new SelectionParam();
654 val.nativeMemoryStatistic.push(rowType);
655 val.nativeMemoryCurrentIPid = ipid;
656 val.nativeMemory = [];
657 val.leftNs = data.startTime!;
658 val.rightNs = data.dur === 0 ? data.startTime! : data.startTime! + data.dur! - 1;
659 this.selection = val;
660 …Tab<TabPaneNMStatisticAnalysis>('box-native-statistic-analysis', 'box-native-calltree').data = val;
661 this.showUploadSoBt(val);
662 this.showSwitchProcessBt(val);
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/energy/
DTabPaneSystemDetails.ts125 queryDataByDB(val: SelectionParam | unknown): void {
128 querySystemWorkData(val.rightNs),
130 querySysLockDetailsData(val.rightNs, 'POWER_RUNNINGLOCK'),
132 querySysLocationDetailsData(val.rightNs, 'GNSS_STATE'),
136 let systemWorkData = this.getSystemWorkData(result[0], val.leftNs, val.rightNs);
143 let systemLockData = this.getSystemLockData(result[1], val.leftNs);
150 let systemLocationData = this.getSystemLocationData(result[2], val.leftNs);

12345