Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 9 of 9) sorted by relevance

/base/global/timezone/tool/update_tool/
Ddownload_iana.py41 file_name = file_type + try_version + '.tar.gz'
42 data = request.urlopen(parent_url + file_name, context=context)
45 print('start to download ' + file_name)
48 with open(save_path + file_name, 'wb+') as file:
74 file_name = file_type + str(year) + version_suffixes[version_index] + \
76 return file_name
79 def decompress(file_name, save_path): argument
80 tar = tarfile.open(save_path + file_name, "r:gz")
99 file_name = download(file_type, download_path, version)
101 if file_name != '':
[all …]
/base/security/huks/interfaces/innerkits/huks_lite/
Dhks_file_api.h37 int32_t (*read)(const char *file_name, uint32_t offset,
49 int32_t (*write)(const char *file_name, uint32_t offset,
59 int32_t (*file_size)(const char *file_name);
/base/update/packaging_tools/
Dtransfers_manager.py79 def simplify_file_name(file_name): argument
80 base_name = os.path.basename(file_name)
87 for file_name in self.src_img_obj.file_map.keys():
88 base_name, no_version_name = self.simplify_file_name(file_name)
89 base_names[base_name] = file_name
90 version_patterns[no_version_name] = file_name
Dutils.py572 def get_file_content(file_path, file_name=None): argument
581 "%s is not exist! path: %s" % (file_name, file_path),
587 "%s file parsing complete! path: %s" % (file_name, file_path))
/base/startup/init/services/modules/seccomp/scripts/
Dgenerate_code_from_policy.py863 def parse_syscall_file(self, file_name): argument
868 with open(file_name) as f:
884 def gen_syscall_nr_table(self, file_name): argument
885 s = re.search(r"libsyscall_to_nr_([^/]+)", file_name)
886 function_name_nr_table_dict[str(s.group(1))] = self.parse_syscall_file(file_name)
892 for file_name in args.srcfiles:
893 file_name_tmp = file_name.split('/')[-1]
896 if not self.gen_syscall_nr_table(file_name):
900 for file_name in args.srcfiles:
901 if file_name.lower().endswith('.policy'):
[all …]
/base/hiviewdfx/hidumper/test/unittest/common/
Dhidumper_dumpers_test.cpp75 std::string file_name = FILE_CPUINFO; variable
76 config->target_ = file_name;
106 std::string file_name = FILE_CPUINFO; variable
107 config->target_ = file_name;
135 std::string file_name = "/proc/%pid/smaps"; variable
136 config->target_ = file_name;
/base/security/selinux/scripts/
Dbuild_contexts.py62 file_name = os.path.basename(each_file)
63 if file_name == file_suffix:
/base/update/updater/utils/
Dutils.cpp549 auto file_name = strPath + std::string(dt->d_name); in RemoveDir() local
550 stat(file_name.c_str(), &st); in RemoveDir()
552 RemoveDir(file_name); in RemoveDir()
554 remove(file_name.c_str()); in RemoveDir()
/base/startup/hvb/tools/
Dhvbtool.py298 def __init__(self, file_name): argument
299 self.image_file = file_name