Home
last modified time | relevance | path

Searched refs:utils (Results 1 – 25 of 231) sorted by relevance

12345678910

/developtools/integration_verification/tools/fotff/rec/
Dreport.go100 if utils.LogFile != nil {
101 if err := c.Compress(utils.LogFile.Name(), utils.LogFile.Name()+".tgz"); err != nil {
102 logrus.Errorf("failed to compress %s: %v", utils.LogFile.Name(), err)
104 attrs = append(attrs, utils.LogFile.Name()+".tgz")
107 if utils.StdoutFile != nil {
108 if err := c.Compress(utils.StdoutFile.Name(), utils.StdoutFile.Name()+".tgz"); err != nil {
109 logrus.Errorf("failed to compress %s: %v", utils.StdoutFile.Name(), err)
111 attrs = append(attrs, utils.StdoutFile.Name()+".tgz")
114 if err := utils.SendMail(subject, css+tb.RenderHTML(), attrs...); err != nil {
Dfotff.go133 if result, found := utils.CacheGet("testcase_result", testcase+"__at__"+pkg); found {
136 …if fellowResult, fellowFound := utils.CacheGet("testcase_result", fellow+"__at__"+pkg); fellowFoun…
165 utils.CacheSet("testcase_result", result.TestCaseName+"__at__"+pkg, result)
/developtools/integration_verification/tools/fotff/pkg/dayu200/
Dflash.go36 if err := utils.TryRebootToLoader(device, ctx); err != nil {
43 if connected := utils.WaitHDC(device, ctx); !connected {
56 data, _ := utils.ExecCombinedOutputContext(ctx, m.FlashTool, "LD")
60 data, _ := utils.ExecCombinedOutputContext(ctx, m.FlashTool, "LD")
65 …if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "UL", filepath.Join(m.Workspace, p…
71 …if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "UL", filepath.Join(m.Workspace, p…
80 …if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "DI", "-p", filepath.Join(m.Worksp…
88 …if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "DI", "-uboot", filepath.Join(m.Wo…
104 …if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "DI", "-"+part, filepath.Join(m.Wo…
110 …if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "DI", "-"+part, filepath.Join(m.Wo…
[all …]
/developtools/integration_verification/tools/fotff/pkg/gitee_common/
Dbuild.go72 …if err := utils.RunCmdViaSSHContext(ctx, server.Addr, server.User, server.Passwd, cmd); err != nil…
75 if err := utils.TransFileViaSSH(utils.Upload, server.Addr, server.User, server.Passwd,
81 …if err := utils.RunCmdViaSSHContext(ctx, server.Addr, server.User, server.Passwd, cmd); err != nil…
85 …if err := utils.RunCmdViaSSHContextNoRetry(ctx, server.Addr, server.User, server.Passwd, cmd); err…
90 …if err := utils.RunCmdViaSSHContext(ctx, server.Addr, server.User, server.Passwd, cmd); err != nil…
95 …if err := utils.RunCmdViaSSHContextNoRetry(ctx, server.Addr, server.User, server.Passwd, cmd); err…
101 if err := utils.TransFileViaSSH(utils.Download, server.Addr, server.User, server.Passwd,
/developtools/hdc/hdc_rust/src/transfer/
Dusb.rs26 use crate::utils;
28 use crate::utils::hdc_log::*;
78 return Err(utils::error_other("cannot access usb path".to_string())); in usb_init()
83 return Err(utils::error_other("cannot open usb ep0".to_string())); in usb_init()
88 return Err(utils::error_other("cannot open usb ep1".to_string())); in usb_init()
93 return Err(utils::error_other("cannot open usb ep2".to_string())); in usb_init()
122 return Err(utils::error_other("usb read error".to_string())); in read_frame()
153 Err(utils::error_other("usb write failed".to_string())) in write_all()
Duart.rs27 use crate::utils;
29 use crate::utils::hdc_log::*;
52 return Err(utils::error_other("cannot access uart node".to_string())); in uart_init()
56 return Err(utils::error_other("cannot open uart node".to_string())); in uart_init()
66 return Err(utils::error_other("set uart config failed".to_string())); in uart_init()
154 Err(utils::error_other("uart write failed".to_string())) in write_all()
Dbase.rs23 use crate::utils;
25 use crate::utils::hdc_log::*;
64 Err(utils::error_other("not implemeted".to_string())) in check_protocol_head()
/developtools/ace_js2bundle/ace-loader/src/
Dmanifest-loader.js16 const utils = require('./util'); constant
23 …const manifestPlugin = utils.stringifyLoaders([{ name: path.resolve(__dirname, 'manifest-plugin.js…
24 const queryString = utils.getRequireString(this, manifestPlugin, manifestFilePath);
/developtools/integration_verification/tools/fotff/vcs/gitee/
Dcommit.go28 if c, found := utils.CacheGet("gitee", url); found {
32 resp, err = utils.DoSimpleHttpReq(http.MethodGet, url, nil, nil)
36 utils.CacheSet("gitee", url, resp)
Dissue.go32 if c, found := utils.CacheGet("gitee", url); found {
36 resp, err = utils.DoSimpleHttpReq(http.MethodGet, url, nil, nil)
40 utils.CacheSet("gitee", url, resp)
Dcompare.go124 if c, found := utils.CacheGet("gitee", url); found {
128 resp, err = utils.DoSimpleHttpReq(http.MethodGet, url, nil, nil)
132 utils.CacheSet("gitee", url, resp)
/developtools/integration_verification/tools/fotff/tester/xdevice/
Dxdevice.go59 utils.ParseFromConfigFile("xdevice", ret)
69 if err := utils.HdcShell(enableTestModeScript, device, ctx); err != nil {
73 if connected := utils.WaitHDC(device, ctx); !connected {
88 if err := utils.ExecContext(ctx, "python", args...); err != nil {
104 if err := utils.ExecContext(ctx, "python", args...); err != nil {
128 if err := utils.ExecContext(ctx, "python", args...); err != nil {
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/test/java/com/ohos/hapsigntool/
DKeyStoreTest.java18 import com.ohos.hapsigntool.utils.KeyPairTools;
19 import com.ohos.hapsigntool.utils.KeyStoreHelper;
20 import com.ohos.hapsigntool.utils.FileUtils;
/developtools/integration_verification/tools/fotff/
Dmain.go130 utils.EnablePprof()
138 data, _ := utils.ReadRuntimeData("last_handled.rec")
141 utils.ResetLogOutput()
142 if err := utils.WriteRuntimeData("last_handled.rec", []byte(curPkg)); err != nil {
152 utils.SetLogOutput(filepath.Base(curPkg))
198 utils.ParseFromConfigFile("", &conf)
/developtools/hdc/hdc_rust/src/host/
Dserver.rs22 use hdc::utils;
46 let output = utils::execute_cmd(format!("tasklist | findstr hdc")); in get_process_pids()
59 let output = utils::execute_cmd(format!("ps -ef | grep hdc | awk '{{print $2}}'")); in get_process_pids()
98 utils::execute_cmd(format!("taskkill /pid {} /f", pid)); in server_kill()
100 utils::execute_cmd(format!("kill -9 {}", pid)); in server_kill()
189 let channel_id = utils::get_pseudo_random_u32(); in handshake_with_client()
Dparser.rs149 return Err(utils::error_other(translate::verbose())); in extract_global_params()
151 return Err(utils::error_other(translate::usage())); in extract_global_params()
154 return Err(utils::error_other(config::get_version())); in extract_global_params()
160 return Err(utils::error_other(format!( in extract_global_params()
166 return Err(utils::error_other(format!( in extract_global_params()
181 return Err(utils::error_other(format!( in extract_global_params()
/developtools/integration_verification/tools/fotff/tester/common/
Dcommon.go41 utils.ParseFromConfigFile("common", t)
61 if err := utils.ExecContext(ctx, t.Tool, args...); err != nil {
82 if err := utils.ExecContext(ctx, t.Tool, args...); err != nil {
115 if err := utils.ExecContext(ctx, t.Tool, args...); err != nil {
/developtools/profiler/device/services/shared_memory/
DBUILD.gn45 "c_utils:utils",
58 "c_utils:utils",
82 "c_utils:utils",
/developtools/integration_verification/tools/fotff/tester/smoke/
Dsmoke.go49 utils.ParseFromConfigFile("smoke", ret)
70 if err := utils.ExecContext(ctx, "python", args...); err != nil {
89 if err := utils.ExecContext(ctx, "python", args...); err != nil {
116 if err := utils.ExecContext(ctx, "python", args...); err != nil {
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/adapter/
DLocalizationAdapter.java22 import com.ohos.hapsigntool.utils.KeyPairTools;
23 import com.ohos.hapsigntool.utils.KeyStoreHelper;
24 import com.ohos.hapsigntool.utils.CertUtils;
25 import com.ohos.hapsigntool.utils.FileUtils;
26 import com.ohos.hapsigntool.utils.StringUtils;
27 import com.ohos.hapsigntool.utils.ValidateUtils;
/developtools/hdc/hdc_rust/src/
Dlib.rs23 pub mod utils; module
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/
DVerifyHelper.java24 import com.ohos.hapsigntool.utils.CertChainUtils;
25 import com.ohos.hapsigntool.utils.CertUtils;
26 import com.ohos.hapsigntool.utils.FileUtils;
27 import com.ohos.hapsigntool.utils.ValidateUtils;
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/renderer/
DXAxisRendererRadarChart.ets18 import MPPointF from '../utils/MPPointF';
19 import Utils from '../utils/Utils';
20 import ViewPortHandler from '../utils/ViewPortHandler';
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/utils/
DDigestUtils.java16 package com.ohos.hapsigntool.codesigning.utils;
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
DStringUtils.java16 package com.ohos.hapsigntool.utils;

12345678910