Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 403) sorted by relevance

12345678910>>...17

/developtools/hiperf/demo/js/entry/src/main/js/MainAbility/pages/index/
Dindex.js44 let result;
47 result = hiperf.resetOption();
48 this.output += ('ResetOption: ' + result + '\n');
50result = hiperf.setOutputFilename('/data/accounts/account_0/appdata/com.example.hiperfdemo/files/p…
51 this.output += ('SetOutputFilename: ' + result + '\n');
53 result = hiperf.getOutputFileName();
54 this.output += ('GetOutputFileName: ' + result + '\n');
56 result = hiperf.setTargetSystemWide(true);
58 result = hiperf.setCompressData(true);
60 result = hiperf.setSelectCpus('1,2,3,4');
[all …]
/developtools/smartperf_host/ide/test/base-ui/untils/
DExcelFormater.test.ts22 const result = ExcelFormater.format(s, c); constant
23 expect(result).toBe('Hello, Alice!');
31 const result = ExcelFormater.createExcelRow(columns, data); constant
32 expect(result).toContain('<Row>');
33 expect(result).toContain('<Cell><Data ss:Type="String">Alice</Data></Cell>');
34 expect(result).toContain('<Cell><Data ss:Type="String">30</Data></Cell>');
47 const result = ExcelFormater.createExcelRow(columns, data); constant
48 expect(result).toContain('<Row>');
49 expect(result).toContain('<Cell><Data ss:Type="String">Parent 1</Data></Cell>');
50 …expect(result).toContain('<Row><Cell><Data ss:Type=\"String\">Parent 1</Data></Cell></Row><Row><Ce…
[all …]
/developtools/hiperf/interfaces/kits/js/napi/
Dhiperf_client_napi.cpp36 std::vector<std::string> result; in StringSplit() local
43 result.push_back(token); in StringSplit()
49 result.push_back(source); in StringSplit()
51 return result; in StringSplit()
57 std::vector<int> result; in StringSplitToInt() local
64 result.push_back(std::stoi(token)); in StringSplitToInt()
70 result.push_back(std::stoi(source)); in StringSplitToInt()
72 return result; in StringSplitToInt()
104 bool result = false; in GetBoolFromOption() local
105 napi_get_value_bool(env, args[0], &result); in GetBoolFromOption()
[all …]
/developtools/smartperf_host/trace_streamer/src/proto_reader/
Dproto_reader.cpp62 bool ProtoReaderBase::ParseVarIntValue(ParseDataAreaResult& result, in ParseVarIntValue() argument
71 result.dataArea.SetDataAreaIntValue(intValue); in ParseVarIntValue()
72 result.next = cursor; in ParseVarIntValue()
73 result.status = OK; in ParseVarIntValue()
77 bool ProtoReaderBase::ParseLengthDelimitedValue(ParseDataAreaResult& result, in ParseLengthDelimitedValue() argument
87 result.dataArea.SetDataAreaIntValue(dataStartAddr); in ParseLengthDelimitedValue()
88 result.dataArea.SetDataAreaSize(length); in ParseLengthDelimitedValue()
89 result.next = cursor + length; in ParseLengthDelimitedValue()
92 result.status = SKIP; in ParseLengthDelimitedValue()
95 result.status = OK; in ParseLengthDelimitedValue()
[all …]
/developtools/hiperf/script/test/
Dtest_utils.py38 result = True if lib else False
39 self.assertEqual(result, True)
42 result = is_elf_file('libhiperf_report.z.so')
43 self.assertEqual(result, True)
48 result = True if not os.path.exists('remove_test') else False
49 self.assertEqual(result, True)
52 result = get_hiperf_binary_path('arm', 'hiperf')
53 print(result)
54 self.assertEqual(result, 'D:\\tool_third\perf_data\\'
58 result = str_to_bytes('test')
[all …]
Dtest_command_script.py50 result = HostElfEntry('test_path', 'test_lib_name').__str__()
51 self.assertEqual(result, '[path: test_path, name test_lib_name,'
57 result = args.pid
58 self.assertEqual(result, '14')
62 result = check_args(self.args)
63 self.assertEqual(result, True)
70 result = True
72 result = False
73 self.assertEqual(result, True)
/developtools/smartperf_host/ide/test/trace/component/trace/sheet/
DTabPaneCurrentSelection.test.ts295 let result = tabPaneCurrentSelection.setFunctionData(functionData); variable
296 expect(result).toBeUndefined();
300 let result = tabPaneCurrentSelection.setMemData(memData); variable
301 expect(result).toBeUndefined();
305 let result = getTimeString(3600_000_000_002); variable
306 expect(result).toBe('1h 2ns ');
310 let result = getTimeString(60000000001); variable
311 expect(result).toBe('1m 1ns ');
315 let result = getTimeString(1000000001); variable
316 expect(result).toBe('1s 1ns ');
[all …]
/developtools/ace_js2bundle/ace-loader/src/
Dresource-reference-script.js18 let result
22 while (result = ResourceRefReg.exec(source)) {
23 const resourceName = result.groups['resName']
26 source = source.replace(result[0], resourceId)
28 ResourceRefReg.lastIndex -= result[0].length - resourceId.length
36 while (result = SysResourceTypeRefReg.exec(source)) {
37 const resourceName = result.groups['resName']
38 const resourceType = result.groups['resType']
41 source = source.replace(result[0], resourceId)
43 SysResourceTypeRefReg.lastIndex -= result[0].length - resourceId.length
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/process/
DTabPaneThreadUsage.ts69 (result) => {
75 let sum = judgement(result, leftStartNs, rightEndNs);
81 (result) => {
83 this.threadStatesCpuDataHandler(result, threadUsageParam);
88 private threadStatesCpuDataHandler(result: any[], threadUsageParam: SelectionParam | any): void{
89 if (result !== null && result.length > 0) {
90 log(`getTabThreadStates result size : ${ result.length}`);
91 let filterArr = result.filter((it) => threadUsageParam.processIds.includes(it.pid));
230 export function judgement(result: Array<any>, leftStart: any, rightEnd: any): number {
232 if (result !== null && result.length > 0) {
[all …]
/developtools/profiler/host/smartperf/client/client_command/
DGPU.cpp30 std::map<std::string, std::string> result; in ItemData() local
33 result["gpuFrequency"] = std::to_string(freq); in ItemData()
34 result["gpuLoad"] = std::to_string(load); in ItemData()
35 return result; in ItemData()
41 CollectResult<GpuFreq> result = collector->CollectGpuFrequency(); in GetGpuFreq() local
42 LOGI("GpuFrequency: %s", std::to_string(result.data.curFeq).c_str()); in GetGpuFreq()
43 return result.data.curFeq; in GetGpuFreq()
49 CollectResult<SysGpuLoad> result = collector->CollectSysGpuLoad(); in GetGpuLoad() local
50 LOGI("SysGpuLoad: %s", std::to_string(result.data.gpuLoad).c_str()); in GetGpuLoad()
51 return float(result.data.gpuLoad); in GetGpuLoad()
DDubai.cpp24 std::string result; in DumpDubaiBegin() local
25 SPUtils::LoadCmd("hidumper -s 1213 -a '-b'", result); in DumpDubaiBegin()
29 std::string result; in DumpDubaiFinish() local
30 SPUtils::LoadCmd("hidumper -s 1213 -a '-f'", result); in DumpDubaiFinish()
35 std::string result; in MoveDubaiDb() local
39 SPUtils::LoadCmd("rm -rf " + devicePath + "/dubai.*", result); in MoveDubaiDb()
40 SPUtils::LoadCmd("cp " + dubaiPath + " " + devicePath, result); in MoveDubaiDb()
41 SPUtils::LoadCmd("chmod 777 " + devicePath + "/" + dubaiName, result); in MoveDubaiDb()
/developtools/integration_verification/tools/fotff/rec/
Drecord.go55 for _, result := range results {
56 switch result.Status {
58 passes = append(passes, result)
60 fails = append(fails, result)
68 for _, result := range results {
69 …logrus.Infof("recording [%s] as a success, the lastest success package is [%s]", result.TestCaseNa…
70 Records[result.TestCaseName] = Record{
82 for _, result := range results {
83 if record, ok := Records[result.TestCaseName]; ok && record.Status != tester.ResultPass {
84 logrus.Warnf("test case %s had failed before, skip handle it", result.TestCaseName)
[all …]
Dfotff.go133 if result, found := utils.CacheGet("testcase_result", testcase+"__at__"+pkg); found {
134 …get testcase result %s from cache done, result is %s", result.(tester.Result).TestCaseName, result
138 if fellowResult.(tester.Result).Status == result.(tester.Result).Status {
143 return result.(tester.Result).Status == tester.ResultPass, newFellows, nil
160 for _, result := range results {
161 …logrus.Infof("do testcase %s at %s done, result is %s", result.TestCaseName, device, result.Status)
162 if result.TestCaseName == testcase {
163 testcaseStatus = result.Status
165 utils.CacheSet("testcase_result", result.TestCaseName+"__at__"+pkg, result)
167 for _, result := range results {
[all …]
/developtools/hiperf/test/unittest/common/native/
Dhiperf_libreport_test.cpp239 const char *result = EchoLoopBack("123"); variable
240 EXPECT_EQ(result, "123");
245 const char *result = EchoLoopBack("test"); variable
246 EXPECT_EQ(result, "test");
251 const char *result = EchoLoopBack("test123"); variable
252 EXPECT_EQ(result, "test123");
256 const char *result = EchoLoopBack(""); variable
257 EXPECT_EQ(result, "");
262 const char *result = EchoLoopBack(nullptr); variable
263 EXPECT_EQ(result, nullptr);
[all …]
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dstring_utils.cpp56 std::string result; in Join() local
58 result += s; in Join()
59 result += sep; in Join()
61 if (result.size() > sep.size()) { in Join()
62 result.resize(result.size() - sep.size()); in Join()
64 return result; in Join()
69 std::vector<std::string> result; in Split() local
71 return result; in Split()
78 result.push_back(str.substr(start, pos - start)); in Split()
82 result.push_back(str.substr(start)); in Split()
[all …]
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
DParamProcessUtil.java79 SignatureAlgorithm result; in getSignatureAlgorithm() local
81 result = SignatureAlgorithm.ECDSA_WITH_SHA256; in getSignatureAlgorithm()
83 result = SignatureAlgorithm.ECDSA_WITH_SHA384; in getSignatureAlgorithm()
85 result = SignatureAlgorithm.ECDSA_WITH_SHA512; in getSignatureAlgorithm()
87 result = SignatureAlgorithm.RSA_PSS_WITH_SHA256; in getSignatureAlgorithm()
89 result = SignatureAlgorithm.RSA_PSS_WITH_SHA384; in getSignatureAlgorithm()
91 result = SignatureAlgorithm.RSA_PSS_WITH_SHA512; in getSignatureAlgorithm()
93 result = SignatureAlgorithm.RSA_PSS_WITH_SHA256; in getSignatureAlgorithm()
95 result = SignatureAlgorithm.RSA_PSS_WITH_SHA384; in getSignatureAlgorithm()
97 result = SignatureAlgorithm.RSA_PSS_WITH_SHA512; in getSignatureAlgorithm()
[all …]
/developtools/hapsigner/hapsigntool/hap_sign_tool/src/test/java/com/ohos/hapsigntoolcmd/
DCmdUnitTest.java414 boolean result = HapSignTool.processCmd(new String[]{CmdUtil.Method.GENERATE_KEYPAIR}); in testCmdKeypair()
415 assertFalse(result); in testCmdKeypair()
423 boolean result = HapSignTool.processCmd(new String[]{ in testCmdKeypair()
431 assertTrue(result); in testCmdKeypair()
434 result = HapSignTool.processCmd(new String[]{ in testCmdKeypair()
442 assertTrue(result); in testCmdKeypair()
456 boolean result = HapSignTool.processCmd(new String[]{CmdUtil.Method.GENERATE_CSR}); in testCmdCsr()
457 assertFalse(result); in testCmdCsr()
464 boolean result = HapSignTool.processCmd(new String[]{ in testCmdCsr()
473 assertTrue(result); in testCmdCsr()
[all …]
/developtools/global_resource_tool/src/
Dresource_util.cpp152 string result; in ComposeStrings() local
162 result.append(sizeof(char), (size & 0xff)); in ComposeStrings()
163 result.append(sizeof(char), (size >> 8)); // Move 8 bits to the right in ComposeStrings()
164 result.append(iter); in ComposeStrings()
165 result.append(sizeof(char), '\0'); in ComposeStrings()
166 if (result.length() > UINT16_MAX) { in ComposeStrings()
170 return result; in ComposeStrings()
175 vector<string> result; in DecomposeStrings() local
181 result.clear(); in DecomposeStrings()
182 return result; in DecomposeStrings()
[all …]
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/utils/
DStringUtils.ts21 let result = -1;
23 return result;
26 result = parseInt(src);
27 return result;
30 return result;
/developtools/syscap_codec/test/unittest/common/
Dsyscap_codec_test.cpp134 CompareError result = {{0}, 0, 0}; variable
145 int32_t ret = ComparePcidString(pcidString, rpcidString, &result);
147 EXPECT_EQ(result.targetApiVersion, 7);
148 EXPECT_EQ(result.missSyscapNum, 4);
149 for (int i = 0; i < result.missSyscapNum; i++) {
150 EXPECT_STREQ(result.syscap[i], expect[i]);
152 (void)FreeCompareError(&result);
153 EXPECT_EQ(result.targetApiVersion, 0);
154 EXPECT_EQ(result.missSyscapNum, 0);
156 EXPECT_EQ((void *)result.syscap[i], (void *)nullptr);
/developtools/smartperf_host/trace_streamer/src/metrics/
Dmetrics.cpp45 void Metrics::ParserJson(const std::string& metrics, std::string& result) in ParserJson() argument
47 result = result.substr(EXTRA_CHAR, result.size()); in ParserJson()
53 it->second(result); in ParserJson()
56 void Metrics::InitMemoryStrategy(const std::string& result) in InitMemoryStrategy() argument
58 json jMessage = json::parse(result); in InitMemoryStrategy()
75 void Metrics::InitMemoryUnAggStrategy(const std::string& result) in InitMemoryUnAggStrategy() argument
77 json jMessage = json::parse(result); in InitMemoryUnAggStrategy()
115 void Metrics::InitMemoryTaskNameStrategy(const std::string& result) in InitMemoryTaskNameStrategy() argument
117 json jMessage = json::parse(result); in InitMemoryTaskNameStrategy()
137 void Metrics::InitTraceStatsStrategy(const std::string& result) in InitTraceStatsStrategy() argument
[all …]
/developtools/integration_verification/DeployDevice/src/util/
Dtime_info.py26 result = time.strftime("%Y-%m-%d %H:%M:%S", st)
27 return result
37 result = "%s,%s" % (time_str, microsecond)
38 return result
85 def _new_func(oldfunc, result, oldfunc_args, oldfunc_kwargs): argument
86 result.append(oldfunc(*oldfunc_args, **oldfunc_kwargs))
89 result = []
92 "result": result,
105 if len(result) == 0:
109 return result[0]
/developtools/hdc/hdc_rust/src/daemon/
Ddaemon_unity.rs43 async fn echo_device_mode_result(session_id: u32, channel_id: u32, result: bool, message: Vec<u8>) { in echo_device_mode_result()
44 if result { in echo_device_mode_result()
56 async fn echo_reboot_result(session_id: u32, channel_id: u32, result: bool, message: Vec<u8>) { in echo_reboot_result()
57 if result { in echo_reboot_result()
69 result: bool, in echo_root_run_mode_result()
72 if result { in echo_root_run_mode_result()
92 let (result, message) = execute_shell_cmd(shell_command); in set_root_run_enable()
93 echo_root_run_mode_result(session_id, channel_id, result, message).await; in set_root_run_enable()
94 if result { in set_root_run_enable()
101 let (result, message) = execute_shell_cmd(shell_command); in set_root_run()
[all …]
/developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/test/unittest/
Dnative_memory_profiler_sa_config_test.cpp53 …std::shared_ptr<NativeMemoryProfilerSaConfig> result = std::make_shared<NativeMemoryProfilerSaConf… variable
54 EXPECT_NE(result, nullptr);
55 EXPECT_EQ(NativeMemoryProfilerSaConfig::Unmarshalling(parcel, result), true);
56 EXPECT_EQ(result->duration_, 100);
57 EXPECT_EQ(result->filePath_, filePath);
58 EXPECT_EQ(result->fpUnwind_, false);
/developtools/hiperf/src/
Dhiperf_libreport.cpp119 static std::string result; // static for hold the c_str buffer in ReportGetSymbolFiles() local
120 result.clear(); in ReportGetSymbolFiles()
122 return result.c_str(); in ReportGetSymbolFiles()
127 return result.c_str(); in ReportGetSymbolFiles()
138 result.append("["); in ReportGetSymbolFiles()
139 result.append(it->filePath_.c_str()); in ReportGetSymbolFiles()
140 result.append(","); in ReportGetSymbolFiles()
141 result.append(it->buildId_.c_str()); in ReportGetSymbolFiles()
142 result.append("]"); in ReportGetSymbolFiles()
143 result.append(","); in ReportGetSymbolFiles()
[all …]

12345678910>>...17