Home
last modified time | relevance | path

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

12345678910>>...18

/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/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.cpp65 bool ProtoReaderBase::ParseVarIntValue(ParseDataAreaResult& result, in ParseVarIntValue() argument
74 result.dataArea.SetDataAreaIntValue(intValue); in ParseVarIntValue()
75 result.next = cursor; in ParseVarIntValue()
76 result.status = OK; in ParseVarIntValue()
80 bool ProtoReaderBase::ParseLengthDelimitedValue(ParseDataAreaResult& result, in ParseLengthDelimitedValue() argument
90 result.dataArea.SetDataAreaIntValue(dataStartAddr); in ParseLengthDelimitedValue()
91 result.dataArea.SetDataAreaSize(length); in ParseLengthDelimitedValue()
92 result.next = cursor + length; in ParseLengthDelimitedValue()
95 result.status = SKIP; in ParseLengthDelimitedValue()
98 result.status = OK; in ParseLengthDelimitedValue()
[all …]
/developtools/profiler/host/smartperf/trace_streamer/src/proto_reader/
Dproto_reader.cpp65 bool ProtoReaderBase::ParseVarIntValue(ParseDataAreaResult& result, in ParseVarIntValue() argument
74 result.dataArea.SetDataAreaIntValue(intValue); in ParseVarIntValue()
75 result.next = cursor; in ParseVarIntValue()
76 result.status = OK; in ParseVarIntValue()
80 bool ProtoReaderBase::ParseLengthDelimitedValue(ParseDataAreaResult& result, in ParseLengthDelimitedValue() argument
90 result.dataArea.SetDataAreaIntValue(dataStartAddr); in ParseLengthDelimitedValue()
91 result.dataArea.SetDataAreaSize(length); in ParseLengthDelimitedValue()
92 result.next = cursor + length; in ParseLengthDelimitedValue()
95 result.status = SKIP; in ParseLengthDelimitedValue()
98 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/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/test/trace/component/trace/sheet/
DTabPaneCurrentSelection.test.ts296 let result = tabPaneCurrentSelection.setFunctionData(functionData); variable
297 expect(result).toBeUndefined();
301 let result = tabPaneCurrentSelection.setMemData(memData); variable
302 expect(result).toBeUndefined();
306 let result = getTimeString(3600_000_000_002); variable
307 expect(result).toBe('1h 2ns ');
311 let result = getTimeString(60000000001); variable
312 expect(result).toBe('1m 1ns ');
316 let result = getTimeString(1000000001); variable
317 expect(result).toBe('1s 1ns ');
[all …]
/developtools/hapsigner/hapsigntool/hap_sign_tool/src/test/java/com/ohos/hapsigntoolcmd/
DCmdUnitTest.java383 boolean result = HapSignTool.processCmd(new String[]{CmdUtil.Method.GENERATE_KEYPAIR}); in testCmdKeypair()
384 assertFalse(result); in testCmdKeypair()
392 boolean result = HapSignTool.processCmd(new String[]{ in testCmdKeypair()
400 assertTrue(result); in testCmdKeypair()
403 result = HapSignTool.processCmd(new String[]{ in testCmdKeypair()
411 assertTrue(result); in testCmdKeypair()
425 boolean result = HapSignTool.processCmd(new String[]{CmdUtil.Method.GENERATE_CSR}); in testCmdCsr()
426 assertFalse(result); in testCmdCsr()
433 boolean result = HapSignTool.processCmd(new String[]{ in testCmdCsr()
442 assertTrue(result); in testCmdCsr()
[all …]
/developtools/profiler/host/smartperf/client/client_command/
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()
DByTrace.cpp31 std::string result; in ThreadGetTrace() local
32 SPUtils::LoadCmd(std::string("bytrace --trace_begin --overwrite"), result); in ThreadGetTrace()
37 std::string result; in ThreadEndTrace() local
38 SPUtils::LoadCmd(std::string("bytrace --trace_finish --overwrite"), result); in ThreadEndTrace()
43 std::string result; in ThreadFinishTrace() local
50 SPUtils::LoadCmd(cmdTraceOverwrite, result); in ThreadFinishTrace()
69 std::string result; in CheckFpsJitters() local
70 SPUtils::LoadCmd(std::string("bytrace --trace_finish"), result); in CheckFpsJitters()
/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.cpp240 const char *result = EchoLoopBack("123"); variable
241 EXPECT_EQ(result, "123");
246 const char *result = EchoLoopBack("test"); variable
247 EXPECT_EQ(result, "test");
252 const char *result = EchoLoopBack("test123"); variable
253 EXPECT_EQ(result, "test123");
257 const char *result = EchoLoopBack(""); variable
258 EXPECT_EQ(result, "");
263 const char *result = EchoLoopBack(nullptr); variable
264 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 …]
Dftrace_module.cpp37 int result = g_mainController->SetWriter(const_cast<WriterStructPtr>(writer)); in TracePluginRegisterWriter() local
39 return result; in TracePluginRegisterWriter()
52 int result = g_mainController->StartCapture(); in TracePluginStartSession() local
54 return result; in TracePluginStartSession()
63 int result = g_mainController->ParseBasicData(); in TracePluginReportBasicData() local
65 return result; in TracePluginReportBasicData()
74 int result = g_mainController->StopCapture(); in TracePluginStopSession() local
78 return result; in TracePluginStopSession()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
DParamProcessUtil.java78 SignatureAlgorithm result; in getSignatureAlgorithm() local
80 result = SignatureAlgorithm.ECDSA_WITH_SHA256; in getSignatureAlgorithm()
82 result = SignatureAlgorithm.ECDSA_WITH_SHA384; in getSignatureAlgorithm()
84 result = SignatureAlgorithm.ECDSA_WITH_SHA512; in getSignatureAlgorithm()
86 result = SignatureAlgorithm.RSA_PSS_WITH_SHA256; in getSignatureAlgorithm()
88 result = SignatureAlgorithm.RSA_PSS_WITH_SHA384; in getSignatureAlgorithm()
90 result = SignatureAlgorithm.RSA_PSS_WITH_SHA512; in getSignatureAlgorithm()
92 result = SignatureAlgorithm.RSA_PSS_WITH_SHA256; in getSignatureAlgorithm()
94 result = SignatureAlgorithm.RSA_PSS_WITH_SHA384; in getSignatureAlgorithm()
96 result = SignatureAlgorithm.RSA_PSS_WITH_SHA512; in getSignatureAlgorithm()
[all …]
/developtools/global_resource_tool/src/
Dresource_util.cpp153 string result; in ComposeStrings() local
163 result.append(sizeof(char), (size & 0xff)); in ComposeStrings()
164 result.append(sizeof(char), (size >> 8)); // Move 8 bits to the right in ComposeStrings()
165 result.append(iter); in ComposeStrings()
166 result.append(sizeof(char), '\0'); in ComposeStrings()
167 if (result.length() > UINT16_MAX) { in ComposeStrings()
171 return result; in ComposeStrings()
176 vector<string> result; in DecomposeStrings() local
182 result.clear(); in DecomposeStrings()
183 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/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/smartperf_host/trace_streamer/test/unittest/
Devent_parser_test.cpp670 int32_t result = eventParser.SchedSwitchEvent(args, bytraceLine); variable
672 EXPECT_EQ(result, true);
689 int32_t result = eventParser.SchedSwitchEvent(args, bytraceLine); variable
691 EXPECT_EQ(result, false);
705 int32_t result = eventParser.TaskRenameEvent(args, bytraceLine); variable
707 EXPECT_EQ(result, true);
722 int32_t result = eventParser.TaskNewtaskEvent(args, bytraceLine); variable
724 EXPECT_EQ(result, true);
741 int32_t result = eventParser.TracingMarkWriteOrPrintEvent(args, bytraceLine); variable
743 EXPECT_EQ(result, true);
[all …]
/developtools/profiler/host/smartperf/trace_streamer/doc/
Djs_memory.md7 数据采集时,Snapshot和Timeline只能选择其中一种,其中Snapshot为堆内存数据,可设置数据采集间隔,上报的数据为多组,以{"id":1,"result":{}}做为一次数据的结束标…
13 Timeline为时间轴数据,一个数据文件中只存在一组Timeline数据。以{"id":1,"result":{}}作为数据采集起始,{"id":2,"result":{}}作为数据采集结束。
31 …hot数据,每一组以{"id":1,"result":{}}作为结束标识,Snapshot数据包含在json[params][ chunk]节点下,一条完整的Snapshot的数据会发送多次res…
35 …组Timeline数据,以{"id":1,"result":{}}作为起始标识,以{"id":2,"result":{}}作为结束标识。Timeline数据包含在json[params][chun…
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/
DVerifyResult.java93 private boolean result; field in VerifyResult
122 public VerifyResult(boolean result, int code, String message) { in VerifyResult() argument
123 this.result = result; in VerifyResult()
129 return result; in isVerified()
132 public void setResult(boolean result) { in setResult() argument
133 this.result = result; in setResult()
/developtools/integration_verification/cases/smoke/basic/screenshot32/APL_compare_03/
Dcommon.py54 self.result = None
56 self.result = self.func(*self.args)
60 return self.result
82 for result in results:
83 res_map[result[0]] = set_value(result[1:])
86 def set_value(result): argument
88 for res in result:

12345678910>>...18