/developtools/smartperf_host/trace_streamer/src/proto_reader/include/ |
H A D | data_area.h | 151 void GetValue(bool *val) const in GetValue() 153 *val = ToBool(); in GetValue() 155 void GetValue(uint32_t *val) const in GetValue() 157 *val = ToUint32(); in GetValue() 159 void GetValue(int32_t *val) const in GetValue() 161 *val = ToInt32(); in GetValue() 163 void GetValue(uint64_t *val) const in GetValue() 165 *val = ToUint64(); in GetValue() 167 void GetValue(int64_t *val) const in GetValue() 169 *val in GetValue() [all...] |
/developtools/hdc/hdc_rust/src/cffi/ |
H A D | sys_para.cpp | 19 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/hapsigner/hapsigntool_cpp/cmd/src/ |
H A D | cmd_util.cpp | 29 std::string val = options->GetString(option); in String2Bool() local 30 if (val == "1" || val == "true" || val == "TRUE") { in String2Bool() 32 } else if (val == "0" || val == "false" || val == "FALSE") { in String2Bool() 36 val + "is not valid value for " + "-" + option); in String2Bool() 48 std::string val = options->GetString(Options::VALIDITY); in UpdateParamForVariantCertInt() local 49 for (char x : val) { in UpdateParamForVariantCertInt() 92 std::string val = options->GetString(Options::BASIC_CONSTRAINTS_PATH_LEN); UpdateParamForVariantInt() local 138 std::string val = options->GetString(Options::PROFILE_SIGNED); UpdateParamForVariantBoolProfileSigned() local [all...] |
/developtools/profiler/device/plugins/xpower_plugin/test/ |
H A D | xpower_main.cpp | 37 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/hdc/hdc_rust/src/daemon_lib/ |
H A D | sys_para.rs | 22 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()
|
H A D | shell.rs | 210 Ok(val) => { 211 if val[..].contains(&0x4_u8) { 215 } else if val[..].contains(&0x3_u8) { 225 } else if val[..].contains(&0x11_u8) { 239 if let Err(e) = pty_process.pty.write_all(&val).await { 561 Ok(val) => { 562 crate::debug!("pipe recv {:?}", val); 563 let _ = child_in.write_all(&val).await;
|
/developtools/profiler/hiebpf/scripts/ |
H A D | hiebpf_code_generator.py | 56 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/profiler/hiebpf/include/ |
H A D | commandline_flags.h | 258 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 in ParseInt64Flag() local 344 uint8_t* val = (uint8_t*) flags_[flag].addr_; ParseUint8Flag() local 359 uint16_t* val = (uint16_t*) flags_[flag].addr_; ParseUint16Flag() local 374 uint32_t* val = (uint32_t*) flags_[flag].addr_; ParseUint32Flag() local 389 uint64_t* val = (uint64_t*) flags_[flag].addr_; ParseUint64Flag() local 404 double* val = (double*) flags_[flag].addr_; ParseDoubleFlag() local 411 std::string* val = (std::string*) flags_[flag].addr_; ParseStringFlag() local 418 std::vector<bool>* val = (std::vector<bool>*) flags_[flag].addr_; ParseBoolArrayFlag() local 445 std::vector<int8_t>* val = (std::vector<int8_t>*) flags_[flag].addr_; ParseInt8ArrayFlag() local 471 std::vector<int16_t>* val = (std::vector<int16_t>*) flags_[flag].addr_; ParseInt16ArrayFlag() local 497 std::vector<int32_t>* val = (std::vector<int32_t>*) flags_[flag].addr_; ParseInt32ArrayFlag() local 523 std::vector<int64_t>* val = (std::vector<int64_t>*) flags_[flag].addr_; ParseInt64ArrayFlag() local 549 std::vector<uint8_t>* val = (std::vector<uint8_t>*) flags_[flag].addr_; ParseUint8ArrayFlag() local 575 std::vector<uint16_t>* val = (std::vector<uint16_t>*) flags_[flag].addr_; ParseUint16ArrayFlag() local 601 std::vector<uint32_t>* val = (std::vector<uint32_t>*) flags_[flag].addr_; ParseUint32ArrayFlag() local 627 std::vector<uint64_t>* val = (std::vector<uint64_t>*) flags_[flag].addr_; ParseUint64ArrayFlag() local 653 std::vector<double>* val = (std::vector<double>*) flags_[flag].addr_; ParseDoubleArrayFlag() local 679 std::vector<std::string>* val = (std::vector<std::string>*) flags_[flag].addr_; ParseStringArrayFlag() local [all...] |
/developtools/profiler/device/plugins/native_daemon/include/ |
H A D | hashlist.h | 62 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);
|
H A D | hashlistpp.h | 28 LinkNode<Key, Val>::LinkNode(const Key &key, const Val &val) : key_ {key}, val_ {val} {}
in LinkNode() argument 31 LinkNode<Key, Val>::LinkNode(const Key &key, Val &&val) : key_ {key}, val_ {std::move(val)} {}
in LinkNode() argument 713 void HashList<Key, Val>::push_front(const Key& key, const Val& val)
in push_front() argument 716 LinkNode<Key, Val>* pnode = AllocateNode(key, val);
in push_front() 721 this->operator[](key) = val;
in push_front() 726 void HashList<Key, Val>::push_front(const Key& key, Val&& val)
in push_front() argument 729 LinkNode<Key, Val>* pnode = AllocateNode(key, std::move(val));
in push_front() 734 this->operator[](key) = val;
in push_front() 739 push_back(const Key& key, const Val& val) push_back() argument 752 push_back(const Key& key, Val&& val) push_back() argument [all...] |
/developtools/hapsigner/hapsigntool_cpp_test/unittest/elfVerify/ |
H A D | signing_block_test.cpp | 62 std::vector<int8_t> val = signingBlock.GetValue(); in HWTEST_F() local 63 int size = val.size(); in HWTEST_F()
|
/developtools/integration_verification/tools/deps_guard/elf_file_mgr/ |
H A D | elf_file_mgr.py | 201 for bname, val in self._basename_dict.items(): 202 if len(val) < 2: 204 self._basename_dict[bname] = self.__reorder_library(val) 206 def __reorder_library(self, val): 209 for p in val: 216 res.append(val[item[1]])
|
/developtools/syscap_codec/tools/ |
H A D | syscap_collector.py | 257 for key, val in subsystem_infos.items(): 259 if not isinstance(val, list): 260 val = [val] 262 if not _check_path_prefix(val): 264 _info = {'path': val} 265 for _path in val: 273 no_src_subsystem[key] = val 291 for key, val in subsystem_config.items(): 292 if 'path' not in val [all...] |
/developtools/hiperf/include/ |
H A D | hashlist.h | 62 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); 228 LinkNode<Key, Val>::LinkNode(const Key &key, const Val &val) : key_ {key}, val_ {val} {} in LinkNode() argument 231 LinkNode(const Key &key, Val &&val) LinkNode() argument 896 static Val val = Val(); operator []() local 916 push_front(const Key& key, const Val& val) push_front() argument 929 push_front(const Key& key, Val&& val) push_front() argument 942 push_back(const Key& key, const Val& val) push_back() argument 955 push_back(const Key& key, Val&& val) push_back() argument [all...] |
/developtools/global_resource_tool/src/ |
H A D | resource_util.cpp | 313 string val; in GetKeyParamValue() local 316 val = KeyParam.value == static_cast<const uint32_t>(OrientationType::VERTICAL) ? "vertical" : "horizontal"; in GetKeyParamValue() 319 val = KeyParam.value == static_cast<const uint32_t>(NightMode::DARK) ? "dark" : "light"; in GetKeyParamValue() 322 val = GetDeviceTypeLimitkey(KeyParam); in GetKeyParamValue() 325 val = GetResolutionLimitkey(KeyParam); in GetKeyParamValue() 329 val = GetLocaleLimitkey(KeyParam); in GetKeyParamValue() 332 val = to_string(KeyParam.value); in GetKeyParamValue() 335 return val; in GetKeyParamValue()
|
/developtools/profiler/device/plugins/native_daemon/src/ |
H A D | call_stack.cpp | 281 HLOGM("access_mem addr get val 0x%" UNW_WORD_PFLAG ", from mmap", *valuePoint);
in AccessMem() 292 HLOGM("access_mem addr val %" UNW_WORD_PFLAG ", from stack offset %zu", *valuePoint, stackOffset);
in AccessMem() 302 uint64_t val;
in AccessReg() local 315 RegisterGetValue(val, unwindInfoPtr->callStack.regs_, perfRegIndex, unwindInfoPtr->callStack.regsNum_),
in AccessReg() 317 *valuePoint = (unw_word_t)val;
in AccessReg() 318 HLOGV("reg %d:%s, val 0x%" UNW_WORD_PFLAG "", regnum, RegisterGetName(perfRegIndex).c_str(), *valuePoint);
in AccessReg() 328 [[maybe_unused]] unw_fpreg_t *val, [[maybe_unused]] int writeOperation,
in AccessFpreg() 617 int CallStack::AccessMem2(uintptr_t addr, uintptr_t *val, void *arg)
in AccessMem2() argument 620 *val = 0;
in AccessMem2() 630 if (ReadVirtualThreadMemory(*unwindInfoPtr, addr, val)) {
in AccessMem2() 327 AccessFpreg([[maybe_unused]] unw_addr_space_t as, [[maybe_unused]] unw_regnum_t num, [[maybe_unused]] unw_fpreg_t *val, [[maybe_unused]] int writeOperation, [[maybe_unused]] void *arg) AccessFpreg() argument [all...] |
H A D | stack_preprocess.cpp | 1421 unsigned StackPreprocess::LgFloor(unsigned long val) in LgFloor() argument 1423 val |= (val >> RIGHT_MOVE_1); in LgFloor() 1424 val |= (val >> RIGHT_MOVE_2); in LgFloor() 1425 val |= (val >> RIGHT_MOVE_4); in LgFloor() 1426 val |= (val >> RIGHT_MOVE_8); in LgFloor() 1427 val | in LgFloor() 1439 PowCeil(uint64_t val) PowCeil() argument [all...] |
/developtools/hiperf/src/ |
H A D | callstack.cpp | 298 HLOGM("access_mem addr get val 0x%" UNW_WORD_PFLAG ", from mmap", *valuePoint); in AccessMem() 308 HLOGM("access_mem addr %p val %" UNW_WORD_PFLAG ", from stack offset %zu", in AccessMem() 319 uint64_t val; in AccessReg() local 335 if (!RegisterGetValue(val, unwindInfoPtr->callStack.regs_, static_cast<size_t>(perfRegIndex), in AccessReg() 341 *valuePoint = (unw_word_t)val; in AccessReg() 342 HLOGM("reg %d:%s, val 0x%" UNW_WORD_PFLAG "", regnum, RegisterGetName(static_cast<size_t>(perfRegIndex)).c_str(), in AccessReg() 353 [[maybe_unused]] unw_fpreg_t *val, [[maybe_unused]] int writeOperation, in AccessFpreg() 770 int CallStack::AccessMem2(uintptr_t addr, uintptr_t *val, void *arg) in AccessMem2() argument 773 *val = 0; in AccessMem2() 782 if (ReadVirtualThreadMemory(*unwindInfoPtr, addr, val)) { in AccessMem2() 352 AccessFpreg([[maybe_unused]] unw_addr_space_t as, [[maybe_unused]] unw_regnum_t num, [[maybe_unused]] unw_fpreg_t *val, [[maybe_unused]] int writeOperation, [[maybe_unused]] void *arg) AccessFpreg() argument [all...] |
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/pkgs/ |
H A D | gn_common_tool.py | 94 val = GnCommonTool.__var_val_mem_dict[var] 95 if val: 97 var_val_dict[var] = val
|
/developtools/integration_verification/tools/rom_ram_analyzer/standard/pkgs/ |
H A D | gn_common_tool.py | 73 val = GnCommonTool.__var_val_mem_dict.get(var) 74 if val is not None: 76 var_val_dict[var] = val
|
/developtools/bytrace/script/ |
H A D | bytrace_multi.py | 115 for i, val in enumerate(files): 117 all_traces_dict[device_name] = read_files(val, device_name)
|
/developtools/hapsigner/hapsigntool_cpp/utils/src/ |
H A D | string_utils.cpp | 35 for (const std::string& val : strs) { in ContainsCase() 36 if (val == fileSuffix) in ContainsCase()
|
/developtools/hapsigner/hapsigntool_cpp/api/src/ |
H A D | cert_tools.cpp | 857 std::string val = options->GetString(option); in String2Bool() local 858 if (val == "1" || val == "true" || val == "TRUE") { in String2Bool() 860 } else if (val == "0" || val == "false" || val == "FALSE") { in String2Bool() 864 val + "is not valid value for " + "-" + option); in String2Bool()
|
/developtools/profiler/hiebpf/src/ |
H A D | bpf_controller.cpp | 311 uint32_t val {1}; // target_pid_Map[0] = 1 means tracing all processes in FillTargetPidMap() 317 err = bpf_map_update_elem(fd, &index, &val, BPF_ANY); in FillTargetPidMap() 318 CHECK_TRUE(!err, -1, "failed to set target pid = %u", val); in FillTargetPidMap() 326 val = static_cast<uint32_t>(config_.targetPids_[index - 1]); in FillTargetPidMap() 327 HHLOGD(true, "target pid = %u", val); in FillTargetPidMap() 328 std::cout << "target pid = " << val << std::endl; in FillTargetPidMap() 329 err = bpf_map_update_elem(fd, &index, &val, BPF_ANY); in FillTargetPidMap() 330 CHECK_TRUE(!err, -1, "failed to set target pid = %d", val); in FillTargetPidMap()
|
/developtools/hdc/src/common/ |
H A D | base.h | 93 uint64_t HostToNet(uint64_t val); 94 uint64_t NetToHost(uint64_t val); 271 bool TlvAppend(string &tlv, string tag, string val);
|