Home
last modified time | relevance | path

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

123456

/developtools/integration_verification/tools/startup_guard/config_parser_mgr/cfg/
Dconfig_parser.py37 def __init__(self, config): argument
38 self._config_parser = config
39 self["name"] = ""
40 def create(self, json_node, parent = None, fileId = None): argument
43 def update(self, json_node, parent = None, fileId = None): argument
46 def get_name(self): argument
47 return self["name"]
49 def get(self, key): argument
50 if self.__contains__(key):
51 return self[key]
[all …]
/developtools/integration_verification/tools/deps_guard/elf_file_mgr/
Delf_file_mgr.py27 def __init__(self, file, prefix): argument
28 super(ElfFileWithDepsInfo, self).__init__(file, prefix)
29 self["deps"] = []
30 self["dependedBy"] = []
32 def __eq__(self, other): argument
36 return self["id"] == other["id"]
38 def dependsOn(self, mod): argument
39 for dep in self["deps"]:
44 def __repr__(self): argument
45 return self.__str__()
[all …]
Delf_file.py25 def __init__(self, file, prefix): argument
26 self._f = file
27 self._f_safe = "'%s'" % file
29 self["name"] = os.path.basename(file)
30 self["size"] = os.stat(self._f)[ST_SIZE]
31 if self["name"].find(".so") > 0:
32 self["type"] = "lib"
34 self["type"] = "bin"
35 self["path"] = file[len(prefix):]
37 def __eq__(self, other): argument
[all …]
/developtools/profiler/device/plugins/ftrace_plugin/tools/
Dftrace_format_parser.py46 def __init__(self, format_path, event_category, event_name): argument
47 self.format_path = format_path
48 self.event_category = event_category
49 self.event_name = event_name
51 def __str__(self): argument
53 self.format_path, self.event_category, self.event_name
56 def __repr__(self): argument
57 return self.__str__()
63 def __init__(self, tid, size=0, signed=False): argument
64 self.tid = tid # type id
[all …]
/developtools/integration_verification/cases/smoke/basic/screenshot32/xdevice_smoke/testcases/
DCamera.py12 def __init__(self, controllers): argument
15 def setup(self): argument
16 self.step('前置条件1:回到桌面')
17 self.common_oh.goHome(self.Phone1)
18 self.step('前置条件2:检查当前界面是否在桌面')
19 self.common_oh.checkIfTextExist(self.Phone1, '相机')
21 def process(self): argument
22 self.step('步骤1:启动camera app')
23 self.common_oh.startAbility(self.Phone1, self.camera_ability_name, self.camera_bundle_name)
25 self.step('步骤2:点击拍照')
[all …]
DNote.py14 def __init__(self, controllers): argument
17 def setup(self): argument
18 self.step('前置条件1:回到桌面')
19 self.common_oh.goHome(self.Phone1)
20 self.step('前置条件2:检查当前界面是否在桌面')
21 self.common_oh.checkIfTextExist(self.Phone1, '相机')
22 self.step('预置条件:Note测试开始,启动app')
23 self.common_oh.startAbility(self.Phone1, self.ability_name, self.bundle_name)
25 def process(self): argument
26 self.step('步骤1:启动备忘录')
[all …]
DLauncher.py15 def __init__(self, controllers): argument
18 def setup(self): argument
19 self.step('预置条件1:点亮屏幕')
20 self.common_oh.wake(self.Phone1)
21 self.step('预置条件2:回到桌面')
22 self.common_oh.goHome(self.Phone1)
23 self.common_oh.wait(self.Phone1, 1)
25 def process(self): argument
28 self.step('步骤1:创建临时目录')
29 self.common_oh.shell(self.Phone1, 'mkdir -p /data/local/tmp/screen_test/train_set')
[all …]
DPhotos.py16 def __init__(self, controllers): argument
19 def setup(self): argument
20 self.step('前置条件1:回到桌面')
21 self.common_oh.goHome(self.Phone1)
22 self.step('前置条件2:检查当前界面是否在桌面')
23 self.common_oh.checkIfTextExist(self.Phone1, '相机')
25 def process(self): argument
26 self.step('步骤1:启动相册app')
27 self.common_oh.startAbility(self.Phone1, self.photo_ability_name, self.photo_bundle_name)
29 self.step('步骤2:控件检查')
[all …]
DSettingsWifi.py17 def __init__(self, controllers): argument
20 def setup(self): argument
21 self.step('前置条件1:回到桌面')
22 self.common_oh.goHome(self.Phone1)
23 self.step('前置条件2:检查当前界面是否在桌面')
24 self.common_oh.checkIfTextExist(self.Phone1, '相机')
26 def process(self): argument
27 self.step('步骤1:打开设置')
28 self.common_oh.startAbility(self.Phone1, self.ability_name, self.bundle_name)
29 self.step('步骤2:检查是否在设置界面')
[all …]
DDistributedMusicPlayer.py14 def __init__(self, controllers): argument
17 def setup(self): argument
18 self.step('前置条件1:回到桌面')
19 self.common_oh.goHome(self.Phone1)
20 self.step('前置条件2:检查当前界面是否在桌面')
21 self.common_oh.checkIfTextExist(self.Phone1, '相机')
24 def process(self): argument
25 self.step('步骤1:启动音乐应用')
26 self.common_oh.startAbility(self.Phone1, self.ability_name, self.bundle_name)
28 self.step('步骤2:点击弹窗的"允许"')
[all …]
DContacts.py14 def __init__(self, controllers): argument
17 def setup(self): argument
18 self.step('前置条件1:回到桌面')
19 self.common_oh.goHome(self.Phone1)
20 self.step('前置条件2:检查当前界面是否在桌面')
21 self.common_oh.checkIfTextExist(self.Phone1, '相机')
24 def process(self): argument
25 self.step('步骤1:启动联系人应用')
26 self.common_oh.startAbility(self.Phone1, self.ability_name, self.bundle_name)
29 self.step('步骤2:检查是否进入联系人')
[all …]
DNotificationBar.py12 def __init__(self, controllers): argument
15 def setup(self): argument
16 self.step('前置条件1:回到桌面')
17 self.common_oh.goHome(self.Phone1)
18 self.step('前置条件2:检查当前界面是否在桌面')
19 self.common_oh.checkIfTextExist(self.Phone1, '相机')
21 def process(self): argument
24 self.step('步骤1:第 {} 次下拉控制中心'.format(i))
25 self.common_oh.swipe(self.Phone1, x1=500, y1=0, x2=500, y2=80)
26 self.common_oh.wait(self.Phone1, 2)
[all …]
DMms.py14 def __init__(self, controllers): argument
17 def setup(self): argument
18 self.step('前置条件1:回到桌面')
19 self.common_oh.goHome(self.Phone1)
20 self.step('前置条件2:检查当前界面是否在桌面')
21 self.common_oh.checkIfTextExist(self.Phone1, '相机')
24 def process(self): argument
25 self.step('步骤1:启动短信应用')
26 self.common_oh.startAbility(self.Phone1, self.ability_name, self.bundle_name)
28 self.step('步骤2:检查"信息"是否存在')
[all …]
DProcessCheck.py9 def __init__(self, controllers): argument
12 def setup(self): argument
13 self.step('前置条件1: 检查process.txt配置文件是否存在')
14self.asserts.assert_true(os.path.exists(os.path.join(self.local_resource_path, 'process.txt')))
16 def process(self): argument
17 self.step('步骤1: 检查process是否存在')
18 with open(os.path.join(self.local_resource_path, 'process.txt'), 'r+') as f:
24 pids = self.common_oh.shell(self.Phone1, 'pidof {}'.format(pname))
29 self.step('{} pid is {}'.format(pname, pid))
32 self.common_oh.wait(self.Phone1, 1)
[all …]
DCrashCheck.py10 def __init__(self, controllers): argument
13 def setup(self): argument
14 self.step('前置条件1:开始crash测试')
15 self.common_oh.remount(self.Phone1)
16 self.common_oh.wait(self.Phone1, 1)
18 def process(self): argument
19 self.step('步骤1:获取crash信息')
20 …crashes = self.common_oh.shell(self.Phone1, 'cd /data/log/faultlog/temp && grep "Process name" -rn…
22 self.common_oh.wait(self.Phone1, 1)
23 self.asserts.assert_not_in('foundation', crashes)
[all …]
Dtest_case.py13 def __init__(self, controllers): argument
14 self.TAG = self.__class__.__name__
15 TestCase.__init__(self, self.TAG, controllers)
16 self.device_name = self.Phone1.device_sn
18 self.device_save_path = '/data/local/tmp/screen_test/'
19 self.testcases_path = os.path.dirname(__file__)
20 self.local_resource_path = os.path.join(os.path.dirname(self.testcases_path), 'resource')
21 self.local_save_path = self.cur_case.case_screenshot_dir
22 if not os.path.exists(self.local_save_path):
23 os.makedirs(self.local_save_path, exist_ok=True)
[all …]
/developtools/hiperf/script/
Dhiperf_utils.py194 def __init__(self, root_authority=True): argument
198 self.hdc_path = hdc_path
199 self.root_authority = root_authority
201 def run_hdc_cmd(self, hdc_args, log_output=True): argument
202 hdc_args = [self.hdc_path] + hdc_args
218 def check_run(self, hdc_args): argument
219 result, out = self.run_hdc_cmd(hdc_args)
224 def _not_use_root(self): argument
225 result, out = self.run_hdc_cmd(['shell', 'whoami'])
229 self.run_hdc_cmd(['unroot'])
[all …]
/developtools/integration_verification/tools/deps_guard/rules_checker/
Dchipsetsdk.py27 def __init__(self, mgr, args): argument
29 self.__out_path = mgr.get_product_out_path()
30 self.__white_lists = self.load_chipsetsdk_json("chipsetsdk_info.json")
32 def get_white_lists(self): argument
33 return self.__white_lists
35 def get_out_path(self): argument
36 return self.__out_path
38 def load_chipsetsdk_json(self, name): argument
41 if self._args and self._args.rules:
42 self.log("****add more ChipsetSDK info in:{}****".format(self._args.rules))
[all …]
/developtools/integration_verification/tools/startup_guard/config_parser_mgr/param/
Dsystem_parameter_parser.py22 def __init__(self, prefix, parameter = None): argument
23 self["prefix"] = prefix
25 self["type"] = "string"
26 self["dacUser"] = ""
27 self["dacGroup"] = ""
28 self["dacMode"] = 0
29 self["selinuxLabel"] = ""
30 self["value"] = ""
32 self["type"] = parameter.get("type")
33 self["dacUser"] = parameter.get("dacUser")
[all …]
/developtools/integration_verification/DeployDevice/resource/common/
Dportalocker.py16 def __init__(self, timeout=7200, delay=30): argument
20 self.is_locked = False
21 self.timeout = timeout
22 self.delay = delay
24 def _setLockFileName(self, file_name): argument
25 self.lockfile = file_name
27 def acquire(self): argument
34 if os.path.isfile(self.lockfile):
36 mark_file_mtime = os.path.getmtime(self.lockfile)
37 if (start_time - mark_file_mtime > self.timeout):
[all …]
/developtools/integration_verification/DeployDevice/src/util/
Dfile_locker.py17 def __init__(self, timeout=7200, delay=3): argument
21 self.is_locked = False
22 self.timeout = timeout
23 self.delay = delay
25 def _setLockFileName(self, file_name): argument
26 self.lockfile = file_name
28 def acquire(self): argument
35 if os.path.isfile(self.lockfile):
37 mark_file_mtime = os.path.getmtime(self.lockfile)
38 if (start_time - mark_file_mtime > self.timeout):
[all …]
/developtools/integration_verification/tools/startup_guard/startup_checker/
Dcmds_rule.py27 def __init__(self, mgr, args): argument
29 self._cmds = {}
30 self._start_modes = {}
31 self._boot_list = {}
32 self._condition_list = {}
33 self._start_cmd_list = {}
35 def _get_json_service(self): argument
36 for i in range(len(self._start_modes)):
37 if self._start_modes[i]["start-mode"] == "boot":
38 self._boot_list = self._start_modes[i]["service"]
[all …]
/developtools/integration_verification/tools/rom_ram_analyzer/standard/pkgs/
Dsimple_excel_writer.py10 def __init__(self, default_sheet_name: str = "sheet1"): argument
11 self.__book = xlwt.Workbook(encoding='utf-8', style_compression=0)
12 self.__sheet_dict = {
13 default_sheet_name: self.__book.add_sheet(
16 self.__sheet_pos = {
19 self.__default_sheet_name = default_sheet_name
21 self.__head_style = XFSTL()
23 self.__content_style = XFSTL()
38 self.__head_style.font = ft
39 self.__head_style.alignment = algmt
[all …]
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/pkgs/
Dsimple_excel_writer.py28 def __init__(self, default_sheet_name: str = "sheet1"): argument
29 self.__book = xlwt.Workbook(encoding='utf-8', style_compression=0)
30 self.__sheet_dict = {
31 default_sheet_name: self.__book.add_sheet(
34 self.__sheet_pos = {
37 self.__default_sheet_name = default_sheet_name
39 self.__head_style = XFSL()
41 self.__content_style = XFSL()
55 self.__head_style.font = ft
56 self.__head_style.alignment = algmt
[all …]
/developtools/smartperf_host/ide/server/
DsmarperfServer.py77 def log_message(self, format, *args): argument
80 def do_GET(self): argument
81 parse_result = urlparse(self.path)
83 self.serverInfo_handler()
85 self.application_handler(parse_result)
87 self.send_error(404, 'Not found')
89 def do_POST(self): argument
90 parse_result = urlparse(self.path)
92 self.console_handler()
98 self.download_handler()
[all …]

123456