/build/make/tools/releasetools/ |
test_common.py | 46 def _verify(self, zip_file, zip_file_name, arcname, contents, 56 zip_file = zipfile.ZipFile(zip_file_name, "r") 59 info = zip_file.getinfo(arcname) 70 self.assertEqual(zip_file.read(arcname), contents) 71 self.assertIsNone(zip_file.testzip()) 79 zip_file = tempfile.NamedTemporaryFile(delete=False) 80 zip_file_name = zip_file.name 87 zip_file.close() 88 zip_file = zipfile.ZipFile(zip_file_name, "w") 100 common.ZipWrite(zip_file, test_file_name, **extra_zipwrite_args [all...] |
/external/chromium-trace/catapult/devil/devil/utils/ |
zip_utils.py | 12 def WriteToZipFile(zip_file, path, arc_path): 13 """Recursively write |path| to |zip_file| as |arc_path|. 15 zip_file: An open instance of zipfile.ZipFile. 24 zip_file.write(dir_path, dir_arc_path, zipfile.ZIP_STORED) 29 zip_file.write(file_path, file_arc_path, zipfile.ZIP_DEFLATED) 32 zip_file.write(path, arc_path, zipfile.ZIP_DEFLATED)
|
/external/libmojo/third_party/catapult/devil/devil/utils/ |
zip_utils.py | 10 def WriteToZipFile(zip_file, path, arc_path): 11 """Recursively write |path| to |zip_file| as |arc_path|. 13 zip_file: An open instance of zipfile.ZipFile. 22 zip_file.write(dir_path, dir_arc_path, zipfile.ZIP_STORED) 27 zip_file.write(file_path, file_arc_path, zipfile.ZIP_DEFLATED) 30 zip_file.write(path, arc_path, zipfile.ZIP_DEFLATED)
|
/bootable/recovery/tests/component/ |
install_test.cpp | 37 FILE* zip_file = fdopen(temp_file.fd, "w"); local 38 ZipWriter writer(zip_file); 43 ASSERT_EQ(0, fclose(zip_file)); 54 FILE* zip_file = fdopen(temp_file.fd, "w"); local 55 ZipWriter writer(zip_file); 59 ASSERT_EQ(0, fclose(zip_file)); 80 FILE* zip_file = fdopen(temp_file.fd, "w"); local 81 ZipWriter writer(zip_file); 90 ASSERT_EQ(0, fclose(zip_file)); 125 FILE* zip_file = fdopen(temp_file.fd, "w") local 152 FILE* zip_file = fdopen(temp_file.fd, "w"); local 196 FILE* zip_file = fdopen(temp_file.fd, "w"); local [all...] |
/external/skia/infra/bots/ |
zip_utils.py | 25 def zip(target_dir, zip_file, blacklist=None): # pylint: disable=W0622 30 with zipfile.ZipFile(zip_file, 'w', zipfile.ZIP_DEFLATED, True) as z: 48 def unzip(zip_file, target_dir): 52 with zipfile.ZipFile(zip_file, 'r', zipfile.ZIP_DEFLATED, True) as z:
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
script_helper.py | 119 zip_file = zipfile.ZipFile(zip_name, 'w')
122 zip_file.write(script_name, name_in_zip)
123 zip_file.close()
125 # zip_file = zipfile.ZipFile(zip_name, 'r')
127 # zip_file.printdir()
128 # zip_file.close()
151 zip_file = zipfile.ZipFile(zip_name, 'w')
154 zip_file.write(init_name, init_name_in_zip)
155 zip_file.write(script_name, script_name_in_zip)
156 zip_file.close() [all...] |
test_pkgutil.py | 61 zip_file = os.path.join(self.dirname, zip)
62 z = zipfile.ZipFile(zip_file, 'w')
72 sys.path.insert(0, zip_file)
|
test_zipimport_support.py | 114 zip_file = zipfile.ZipFile(zip_name, 'r')
116 zip_file.printdir()
117 zip_file.close()
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
script_helper.py | 125 zip_file = zipfile.ZipFile(zip_name, 'w') 128 zip_file.write(script_name, name_in_zip) 129 zip_file.close() 131 # zip_file = zipfile.ZipFile(zip_name, 'r') 133 # zip_file.printdir() 134 # zip_file.close() 157 zip_file = zipfile.ZipFile(zip_name, 'w') 160 zip_file.write(init_name, init_name_in_zip) 161 zip_file.write(script_name, script_name_in_zip) 162 zip_file.close( [all...] |
test_pkgutil.py | 61 zip_file = os.path.join(self.dirname, zip) 62 z = zipfile.ZipFile(zip_file, 'w') 72 sys.path.insert(0, zip_file)
|
test_zipimport_support.py | 125 zip_file = zipfile.ZipFile(zip_name, 'r') 127 zip_file.printdir() 128 zip_file.close()
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
script_helper.py | 125 zip_file = zipfile.ZipFile(zip_name, 'w') 128 zip_file.write(script_name, name_in_zip) 129 zip_file.close() 131 # zip_file = zipfile.ZipFile(zip_name, 'r') 133 # zip_file.printdir() 134 # zip_file.close() 157 zip_file = zipfile.ZipFile(zip_name, 'w') 160 zip_file.write(init_name, init_name_in_zip) 161 zip_file.write(script_name, script_name_in_zip) 162 zip_file.close( [all...] |
test_pkgutil.py | 61 zip_file = os.path.join(self.dirname, zip) 62 z = zipfile.ZipFile(zip_file, 'w') 72 sys.path.insert(0, zip_file)
|
test_zipimport_support.py | 125 zip_file = zipfile.ZipFile(zip_name, 'r') 127 zip_file.printdir() 128 zip_file.close()
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
script_helper.py | 125 zip_file = zipfile.ZipFile(zip_name, 'w') 128 zip_file.write(script_name, name_in_zip) 129 zip_file.close() 131 # zip_file = zipfile.ZipFile(zip_name, 'r') 133 # zip_file.printdir() 134 # zip_file.close() 157 zip_file = zipfile.ZipFile(zip_name, 'w') 160 zip_file.write(init_name, init_name_in_zip) 161 zip_file.write(script_name, script_name_in_zip) 162 zip_file.close( [all...] |
test_pkgutil.py | 61 zip_file = os.path.join(self.dirname, zip) 62 z = zipfile.ZipFile(zip_file, 'w') 72 sys.path.insert(0, zip_file)
|
test_zipimport_support.py | 125 zip_file = zipfile.ZipFile(zip_name, 'r') 127 zip_file.printdir() 128 zip_file.close()
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
script_helper.py | 125 zip_file = zipfile.ZipFile(zip_name, 'w') 128 zip_file.write(script_name, name_in_zip) 129 zip_file.close() 131 # zip_file = zipfile.ZipFile(zip_name, 'r') 133 # zip_file.printdir() 134 # zip_file.close() 157 zip_file = zipfile.ZipFile(zip_name, 'w') 160 zip_file.write(init_name, init_name_in_zip) 161 zip_file.write(script_name, script_name_in_zip) 162 zip_file.close( [all...] |
test_pkgutil.py | 61 zip_file = os.path.join(self.dirname, zip) 62 z = zipfile.ZipFile(zip_file, 'w') 72 sys.path.insert(0, zip_file)
|
/bootable/recovery/applypatch/ |
imgdiff.cpp | 467 static bool GetZipFileSize(const std::vector<uint8_t>& zip_file, size_t* input_file_size) { 468 if (zip_file.size() < 22) { 474 // zip_file size. 475 for (int i = zip_file.size() - 22; i >= 0; i--) { 476 if (zip_file[i] == 0x50) { 477 if (get_unaligned<uint32_t>(&zip_file[i]) == 0x06054b50) { 479 CHECK_EQ(get_unaligned<uint16_t>(&zip_file[i + 4]), 0); 481 uint16_t comment_length = get_unaligned<uint16_t>(&zip_file[i + 20]); 483 CHECK_LE(file_size, zip_file.size()); 495 std::vector<uint8_t>* zip_file, bool include_pseudo_chunk) [all...] |
/external/boringssl/src/util/bot/ |
extract.py | 45 with zipfile.ZipFile(path, 'r') as zip_file: 46 for info in zip_file.infolist(): 49 yield (info.filename, None, zip_file.open(info))
|
/build/make/tools/ijar/ |
zip.h | 96 // Create a new ZipBuilder writing the file zip_file and the size of the 101 static ZipBuilder* Create(const char* zip_file, u8 estimated_size);
|
/art/compiler/ |
oat_test.cc | 278 explicit ZipBuilder(File* zip_file) : zip_file_(zip_file) { } 677 ScratchFile zip_file; local 678 ZipBuilder zip_builder(zip_file.GetFile()); 723 std::vector<const char*> input_filenames { zip_file.GetFilename().c_str() }; // NOLINT [readability/braces] [4] 754 ASSERT_EQ(DexFile::GetMultiDexLocation(0, zip_file.GetFilename().c_str()), 761 ASSERT_EQ(DexFile::GetMultiDexLocation(1, zip_file.GetFilename().c_str()) 825 ScratchFile zip_file; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/ |
test_sdist.py | 130 zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
132 content = zip_file.namelist()
134 zip_file.close()
223 zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
225 content = zip_file.namelist()
227 zip_file.close()
|
/external/skia/infra/bots/assets/ |
asset_utils.py | 185 zip_file = os.path.join(os.getcwd(), '%d.zip' % version) 186 zip_utils.zip(target_dir, zip_file, blacklist=ZIP_BLACKLIST) 189 self.copy(zip_file, gs_path) 197 zip_file = os.path.join(os.getcwd(), '%d.zip' % version) 198 self.copy(gs_path, zip_file) 199 zip_utils.unzip(zip_file, target_dir)
|