Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 142) sorted by relevance

123456

/developtools/integration_verification/tools/fotff/utils/
Dhdc.go23 func WaitHDC(device string, ctx context.Context) bool {
50 if device == "" || dev == device {
54 logrus.Infof("%s not found", device)
58 func TryRebootToLoader(device string, ctx context.Context) error {
59 logrus.Infof("try to reboot %s to loader...", device)
61 if connected := WaitHDC(device, ctx); connected {
62 if device == "" {
65 return ExecContext(ctx, hdc, "-t", device, "shell", "reboot", "loader")
75 func HdcShell(cmd, device string, ctx context.Context) error {
76 if device == "" {
[all …]
/developtools/profiler/device/plugins/native_daemon/
DBUILD.gn56 "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config",
88 "${OHOS_PROFILER_DIR}/device/services/ipc/include",
89 "${OHOS_PROFILER_DIR}/device/services/shared_memory/include",
95 "${OHOS_PROFILER_DIR}/device/plugins/native_daemon/native_memory_profiler_sa/include",
96 "${OHOS_PROFILER_DIR}/device/plugins/native_daemon/native_memory_profiler_sa/util/include",
97 "${OHOS_PROFILER_DIR}/device/services/profiler_service/src",
101 …"${OHOS_PROFILER_DIR}/device/plugins/native_daemon/native_memory_profiler_sa/src/native_memory_pro…
102 …"${OHOS_PROFILER_DIR}/device/plugins/native_daemon/native_memory_profiler_sa/src/native_memory_pro…
103 …"${OHOS_PROFILER_DIR}/device/plugins/native_daemon/native_memory_profiler_sa/src/native_memory_pro…
104 …"${OHOS_PROFILER_DIR}/device/plugins/native_daemon/native_memory_profiler_sa/src/native_memory_pro…
[all …]
/developtools/profiler/interfaces/kits/test/
DBUILD.gn15 import("../../../device/base/config.gni")
17 module_output_path = "${OHOS_PROFILER_TEST_MODULE_OUTPUT_PATH}/device"
37 "${OHOS_PROFILER_DIR}/device/plugins/memory_plugin/include",
38 "${OHOS_PROFILER_DIR}/device/plugins/sample_plugin/include",
39 "${OHOS_PROFILER_DIR}/device/plugins/stream_plugin/include",
40 "${OHOS_PROFILER_DIR}/device/plugins/api/include",
41 "${OHOS_PROFILER_DIR}/device/plugins/api/src",
42 "${OHOS_PROFILER_DIR}/device/base/include",
47 "${OHOS_PROFILER_DIR}/device/plugins/memory_plugin/src/buffer_splitter.cpp",
48 "${OHOS_PROFILER_DIR}/device/plugins/memory_plugin/src/memory_data_plugin.cpp",
[all …]
/developtools/integration_verification/tools/fotff/tester/common/
Dcommon.go49 func (t *Tester) Prepare(version string, device string, ctx context.Context) error {
54 func (t *Tester) DoTestTask(device string, ctx context.Context) ([]tester.Result, error) {
56 if device != "" {
57 args = append(args, []string{deviceFlag, device}...)
65 logrus.Errorf("Failed to do test task on device %s, error: %s", device, err.Error())
73 func (t *Tester) DoTestCase(device string, testCase string, ctx context.Context) (tester.Result, er…
76 if device != "" {
77 args = append(args, []string{deviceFlag, device}...)
86 logrus.Errorf("Failed to do test case %s on device %s, error: %s", testCase, device, err.Error())
101 …logrus.Infof("test case %s on device %s finished, the result is %s", testCase, device, rs[0].Statu…
[all …]
/developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/test/
DBUILD.gn18 module_output_path = "${OHOS_PROFILER_TEST_MODULE_OUTPUT_PATH}/device"
48 "${OHOS_PROFILER_DIR}/device/base/include",
55 "${OHOS_PROFILER_DIR}/device/services/ipc/include",
56 "${OHOS_PROFILER_DIR}/device/services/shared_memory/include",
60 "${OHOS_PROFILER_DIR}/device/plugins/native_daemon/native_memory_profiler_sa/include",
61 "${OHOS_PROFILER_DIR}/device/plugins/native_daemon/native_memory_profiler_sa/util/include",
62 "${OHOS_PROFILER_DIR}/device/services/profiler_service/src",
70 …"${OHOS_PROFILER_DIR}/device/plugins/native_daemon/native_memory_profiler_sa/src/native_memory_pro…
71 …"${OHOS_PROFILER_DIR}/device/plugins/native_daemon/native_memory_profiler_sa/src/native_memory_pro…
72 …"${OHOS_PROFILER_DIR}/device/plugins/native_daemon/native_memory_profiler_sa/src/native_memory_pro…
[all …]
/developtools/integration_verification/tools/fotff/
Dmain.go90 var flashPkg, device string
95 return m.Flash(device, flashPkg, context.TODO())
99 flashCmd.PersistentFlags().StringVarP(&device, "device", "d", "", "device sn")
105 var targetPkg, device, testCase string
114 Device: device,
121 testCmd.PersistentFlags().StringVarP(&device, "device", "d", "", "target device sn")
154 device := res.GetDevice()
155 if err := m.Flash(device, curPkg, context.TODO()); err != nil {
157 res.ReleaseDevice(device)
160 if err := t.Prepare(m.PkgDir(curPkg), device, context.TODO()); err != nil {
[all …]
/developtools/profiler/device/plugins/hiperf_plugin/test/fuzztest/hiperfstartplugin_fuzzer/
DBUILD.gn21 …fuzz_config_file = "${OHOS_PROFILER_DIR}/device/plugins/hiperf_plugin/test/fuzztest/hiperfstartplu…
30 "${OHOS_PROFILER_DIR}/device/plugins/hiperf_plugin/src/hiperf_module.cpp",
31 "${OHOS_PROFILER_DIR}/device/services/profiler_service/src/trace_file_helper.cpp",
32 "${OHOS_PROFILER_DIR}/device/services/profiler_service/src/trace_file_writer.cpp",
36 "${OHOS_PROFILER_DIR}/device/base:hiprofiler_base",
43 "${OHOS_PROFILER_DIR}/device/plugins/hiperf_plugin/include",
44 "${OHOS_PROFILER_DIR}/device/plugins/api/include",
46 "${OHOS_PROFILER_DIR}/device/base/include",
47 "${OHOS_PROFILER_DIR}/device/services/profiler_service/src",
/developtools/profiler/device/plugins/native_daemon/test/
DBUILD.gn18 module_output_path = "${OHOS_PROFILER_TEST_MODULE_OUTPUT_PATH}/device"
46 …"${OHOS_PROFILER_DIR}/device/plugins/native_daemon/native_memory_profiler_sa/src/native_memory_pro…
47 …"${OHOS_PROFILER_DIR}/device/plugins/native_daemon/native_memory_profiler_sa/src/native_memory_pro…
48 …"${OHOS_PROFILER_DIR}/device/plugins/native_daemon/native_memory_profiler_sa/src/native_memory_pro…
49 …"${OHOS_PROFILER_DIR}/device/plugins/native_daemon/native_memory_profiler_sa/src/native_memory_pro…
50 "${OHOS_PROFILER_DIR}/device/services/profiler_service/src/trace_file_helper.cpp",
51 "${OHOS_PROFILER_DIR}/device/services/profiler_service/src/trace_file_writer.cpp",
55 "${OHOS_PROFILER_DIR}/device/services/shared_memory:shared_memory_source",
100 "${OHOS_PROFILER_DIR}/device/services/ipc/include",
101 "${OHOS_PROFILER_DIR}/device/services/shared_memory/include",
[all …]
/developtools/integration_verification/tools/fotff/pkg/dayu200/
Dflash.go35 func (m *Manager) flashDevice(device string, pkg string, ctx context.Context) error {
36 if err := utils.TryRebootToLoader(device, ctx); err != nil {
39 if err := m.flashImages(device, pkg, ctx); err != nil {
43 if connected := utils.WaitHDC(device, ctx); !connected {
44 logrus.Errorf("flash device %s done, but boot unnormally, hdc connection fail", device)
45 return fmt.Errorf("flash device %s done, but boot unnormally, hdc connection fail", device)
48 logrus.Infof("flash device %s successfully", device)
52 func (m *Manager) flashImages(device string, pkg string, ctx context.Context) error {
53 logrus.Infof("calling flash tool to flash %s into %s...", pkg, device)
54 locationID := m.locations[device]
[all …]
/developtools/profiler/device/plugins/ftrace_plugin/tools/device_kernel_version/default/event_formatters/
DBUILD.gn25 "${OHOS_PROFILER_DIR}/device/plugins/ftrace_plugin/include",
26 "${OHOS_PROFILER_DIR}/device/plugins/ftrace_plugin/tools/trace_converter/",
27 "${OHOS_PROFILER_DIR}/device/plugins/ftrace_plugin/tools/trace_converter/include",
28 "${OHOS_PROFILER_DIR}/device/plugins/ftrace_plugin/tools/trace_converter/include/linux",
29 "${OHOS_PROFILER_DIR}/device/plugins/ftrace_plugin/tools/trace_converter/include/trace",
30 "${OHOS_PROFILER_DIR}/device/base/include",
43 [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
46 …"${OHOS_PROFILER_DIR}/device/plugins/ftrace_plugin/tools/trace_converter:trace_converter_inner_con…
/developtools/integration_verification/tools/fotff/tester/
Dtester.go37 Prepare(pkgDir string, device string, ctx context.Context) error
39 DoTestTask(device string, ctx context.Context) ([]Result, error)
41 DoTestCase(device string, testCase string, ctx context.Context) (Result, error)
43 DoTestCases(device string, testcases []string, ctx context.Context) ([]Result, error)
/developtools/integration_verification/tools/fotff/tester/mock/
Dmock.go34 func (t *Tester) Prepare(pkgDir string, device string, ctx context.Context) error {
38 func (t *Tester) DoTestTask(device string, ctx context.Context) ([]tester.Result, error) {
49 func (t *Tester) DoTestCase(device string, testCase string, ctx context.Context) (tester.Result, er…
54 func (t *Tester) DoTestCases(device string, testcases []string, ctx context.Context) ([]tester.Resu…
57 r, err := t.DoTestCase(device, testcase, ctx)
/developtools/integration_verification/tools/fotff/rec/
Dfotff_test.go68 func (f *FotffMocker) Prepare(pkgDir string, device string, ctx context.Context) error {
72 func (f *FotffMocker) DoTestTask(device string, ctx context.Context) ([]tester.Result, error) {
82 func (f *FotffMocker) DoTestCase(device string, testcase string, ctx context.Context) (tester.Resul…
90 _, pkgPrefix, _ := strings.Cut(f.runningPkg[device], "_")
94 logrus.Infof("mock: test %s at %s done, result is %s", testcase, device, tester.ResultFail)
97 logrus.Infof("mock: test %s at %s done, result is %s", testcase, device, tester.ResultPass)
101 func (f *FotffMocker) DoTestCases(device string, testcases []string, ctx context.Context) ([]tester…
104 r, err := f.DoTestCase(device, testcase, ctx)
113 func (f *FotffMocker) Flash(device string, pkg string, ctx context.Context) error {
121 f.runningPkg[device] = pkg
[all …]
/developtools/profiler/device/plugins/memory_plugin/test/
DBUILD.gn17 module_output_path = "${OHOS_PROFILER_TEST_MODULE_OUTPUT_PATH}/device"
32 "${OHOS_PROFILER_DIR}/device/plugins/memory_plugin:memdataplugin_source",
33 "${OHOS_PROFILER_DIR}/device/plugins/memory_plugin:memorytest",
41 "${OHOS_PROFILER_DIR}/device/base/include",
58 resource_config_file = "${OHOS_PROFILER_DIR}/device/ohos_test.xml"
65 "${OHOS_PROFILER_DIR}/device/plugins/memory_plugin:memdataplugin_source",
73 "${OHOS_PROFILER_DIR}/device/base/include",
89 resource_config_file = "${OHOS_PROFILER_DIR}/device/ohos_test.xml"
/developtools/profiler/device/plugins/native_hook/test/
DBUILD.gn16 module_output_path = "${OHOS_PROFILER_TEST_MODULE_OUTPUT_PATH}/device"
46 "${OHOS_PROFILER_DIR}/device/services/shared_memory:shared_memory_source",
50 "${OHOS_PROFILER_DIR}/device/plugins/native_daemon:native_daemon",
51 "${OHOS_PROFILER_DIR}/device/plugins/native_hook:native_hook_source",
65 "${OHOS_PROFILER_DIR}/device/services/ipc/include",
66 "${OHOS_PROFILER_DIR}/device/services/shared_memory/include",
67 "${OHOS_PROFILER_DIR}/device/services/profiler_service/include",
86 resource_config_file = "${OHOS_PROFILER_DIR}/device/ohos_test.xml"
/developtools/profiler/device/services/plugin_service/
DBUILD.gn21 "${OHOS_PROFILER_DIR}/device/services/profiler_service:profiler_service",
22 "${OHOS_PROFILER_DIR}/device/services/shared_memory:shared_memory",
28 "${OHOS_PROFILER_DIR}/device/services/ipc/include",
29 "${OHOS_PROFILER_DIR}/device/services/shared_memory/include",
30 "${OHOS_PROFILER_DIR}/device/services/profiler_service/include",
39 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
/developtools/profiler/device/plugins/arkts_plugin/test/
DBUILD.gn17 module_output_path = "${OHOS_PROFILER_TEST_MODULE_OUTPUT_PATH}/device"
29 "${OHOS_PROFILER_DIR}/device/plugins/arkts_plugin:arkts_source",
38 "${OHOS_PROFILER_DIR}/device/base/include",
39 "${OHOS_PROFILER_DIR}/device/plugins/api/include",
40 "${OHOS_PROFILER_DIR}/device/services/profiler_service/src",
52 resource_config_file = "${OHOS_PROFILER_DIR}/device/ohos_test.xml"
/developtools/profiler/device/plugins/arkts_plugin/
DBUILD.gn19 "${OHOS_PROFILER_DIR}/device/services/profiler_service/src/trace_file_helper.cpp",
20 "${OHOS_PROFILER_DIR}/device/services/profiler_service/src/trace_file_writer.cpp",
28 "${OHOS_PROFILER_DIR}/device/base/include",
29 "${OHOS_PROFILER_DIR}/device/plugins/api/include",
30 "${OHOS_PROFILER_DIR}/device/services/profiler_service/src",
47 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
/developtools/profiler/device/plugins/hiebpf_plugin/
DBUILD.gn19 "${OHOS_PROFILER_DIR}/device/services/profiler_service/src/trace_file_helper.cpp",
20 "${OHOS_PROFILER_DIR}/device/services/profiler_service/src/trace_file_writer.cpp",
26 "${OHOS_PROFILER_DIR}/device/base/include",
27 "${OHOS_PROFILER_DIR}/device/plugins/api/include",
28 "${OHOS_PROFILER_DIR}/device/services/profiler_service/src",
48 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
/developtools/profiler/device/plugins/ftrace_plugin/test/
DBUILD.gn18 module_output_path = "${OHOS_PROFILER_TEST_MODULE_OUTPUT_PATH}/device"
46 "${OHOS_PROFILER_DIR}/device/plugins/ftrace_plugin:ftrace_plugin_source",
56 "${OHOS_PROFILER_DIR}/device/base/include",
72 resource_config_file = "${OHOS_PROFILER_DIR}/device/ohos_test.xml"
77 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
85 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
93 public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
/developtools/profiler/device/plugins/hiperf_plugin/test/
DBUILD.gn17 module_output_path = "${OHOS_PROFILER_TEST_MODULE_OUTPUT_PATH}/device"
29 "${OHOS_PROFILER_DIR}/device/plugins/hiperf_plugin:hiperfplugin_source",
33 "${OHOS_PROFILER_DIR}/device/plugins/hiperf_plugin/include",
34 "${OHOS_PROFILER_DIR}/device/plugins/api/include",
36 "${OHOS_PROFILER_DIR}/device/base/include",
/developtools/profiler/device/plugins/diskio_plugin/test/
DBUILD.gn17 module_output_path = "${OHOS_PROFILER_TEST_MODULE_OUTPUT_PATH}/device"
29 "${OHOS_PROFILER_DIR}/device/plugins/diskio_plugin:diskiodataplugin_source",
30 "${OHOS_PROFILER_DIR}/device/plugins/diskio_plugin:diskiodataplugintest",
38 "${OHOS_PROFILER_DIR}/device/base/include",
50 resource_config_file = "${OHOS_PROFILER_DIR}/device/ohos_test.xml"
/developtools/profiler/device/plugins/cpu_plugin/test/
DBUILD.gn17 module_output_path = "${OHOS_PROFILER_TEST_MODULE_OUTPUT_PATH}/device"
32 "${OHOS_PROFILER_DIR}/device/plugins/cpu_plugin:cpudataplugin_source",
33 "${OHOS_PROFILER_DIR}/device/plugins/cpu_plugin:cpudataplugintest",
41 "${OHOS_PROFILER_DIR}/device/base/include",
53 resource_config_file = "${OHOS_PROFILER_DIR}/device/ohos_test.xml"
/developtools/profiler/device/plugins/gpu_plugin/test/
DBUILD.gn17 module_output_path = "${OHOS_PROFILER_TEST_MODULE_OUTPUT_PATH}/device"
29 "${OHOS_PROFILER_DIR}/device/plugins/gpu_plugin:gpudataplugin_source",
30 "${OHOS_PROFILER_DIR}/device/plugins/gpu_plugin:gpudataplugintest",
39 "${OHOS_PROFILER_DIR}/device/base/include",
51 resource_config_file = "${OHOS_PROFILER_DIR}/device/ohos_test.xml"
/developtools/integration_verification/DeployDevice/src/aw/Telnet/
DTelnetClient.py28 self.device = telnetlib.Telnet(self._host, port=self._port, timeout=self.__timeout)
32 rets = self.device.read_until(endwaittag, timeout)
50 self.device.write(send_cmd)
51 rets = self.device.read_until(endtag.encode('utf-8'), timeout)
112 self.device.write(sendcmd)
135 self.device.close()

123456