/bootable/recovery/tests/unit/ |
zip_test.cpp | 32 std::string zip_path = from_testdata_base("ziptest_dummy-update.zip"); local 34 ASSERT_TRUE(map.MapFile(zip_path)); 38 ASSERT_EQ(0, OpenArchiveFromMemory(map.addr, map.length, zip_path.c_str(), &handle));
|
/bionic/linker/tests/ |
linker_utils_test.cpp | 89 std::string zip_path; local 92 ASSERT_FALSE(parse_zip_path("/not/a/zip/path/file.zip", &zip_path, &entry_path)); 93 ASSERT_FALSE(parse_zip_path("/not/a/zip/path/file.zip!path/in/zip", &zip_path, &entry_path)); 94 ASSERT_TRUE(parse_zip_path("/zip/path/file.zip!/path/in/zip", &zip_path, &entry_path)); 95 ASSERT_EQ("/zip/path/file.zip", zip_path); 98 ASSERT_TRUE(parse_zip_path("/zip/path/file2.zip!/", &zip_path, &entry_path)); 99 ASSERT_EQ("/zip/path/file2.zip", zip_path);
|
/external/python/cpython2/PC/os2emx/ |
getpathp.c | 266 char zip_path[MAXPATHLEN+1]; local 286 strncpy(zip_path, progpath, MAXPATHLEN); 287 zip_path[MAXPATHLEN] = '\0'; 288 len = strlen(zip_path); 290 zip_path[len-3] = 'z'; /* change ending to "zip" */ 291 zip_path[len-2] = 'i'; 292 zip_path[len-1] = 'p'; 295 zip_path[0] = 0; 321 bufsz += strlen(zip_path) + 1; 345 if (zip_path[0]) [all...] |
/frameworks/base/libs/androidfw/tests/ |
TestHelpers.cpp | 71 ::testing::AssertionResult ReadFileFromZipToString(const std::string& zip_path, 76 int32_t result = OpenArchive(zip_path.c_str(), &handle); 78 return ::testing::AssertionFailure() << "Failed to open zip '" << zip_path 88 << zip_path << "' : " << ::ErrorCodeString(result); 98 << zip_path << "': " << ::ErrorCodeString(result);
|
TestHelpers.h | 47 ::testing::AssertionResult ReadFileFromZipToString(const std::string& zip_path,
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Efi/ |
getpath.c | 472 char zip_path[MAXPATHLEN+1];
local 542 strncpy(zip_path, prefix, MAXPATHLEN);
543 zip_path[MAXPATHLEN] = '\0';
544 reduce(zip_path);
545 joinpath(zip_path, "python00.zip");
546 bufsz = strlen(zip_path); /* Replace "00" with version */
547 zip_path[bufsz - 6] = VERSION[0];
548 zip_path[bufsz - 5] = VERSION[1];
607 bufsz += strlen(zip_path) + 1;
629 strcat(buf, zip_path);
[all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/ |
getpath.c | 403 char zip_path[MAXPATHLEN+1];
local 473 strncpy(zip_path, prefix, MAXPATHLEN);
474 zip_path[MAXPATHLEN] = '\0';
475 reduce(zip_path);
476 joinpath(zip_path, "python00.zip");
477 bufsz = strlen(zip_path); /* Replace "00" with version */
478 zip_path[bufsz - 6] = VERSION[0];
479 zip_path[bufsz - 5] = VERSION[1];
538 bufsz += strlen(zip_path) + 1;
560 strcat(buf, zip_path);
[all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
getpath.c | 383 char zip_path[MAXPATHLEN+1];
local 523 strncpy(zip_path, prefix, MAXPATHLEN);
524 zip_path[MAXPATHLEN] = '\0';
526 reduce(zip_path);
527 reduce(zip_path);
530 strncpy(zip_path, PREFIX, MAXPATHLEN);
531 joinpath(zip_path, "lib/python00.zip");
532 bufsz = strlen(zip_path); /* Replace "00" with version */
533 zip_path[bufsz - 6] = VERSION[0];
534 zip_path[bufsz - 5] = VERSION[2]; [all...] |
/external/python/cpython2/Modules/ |
getpath.c | 375 char zip_path[MAXPATHLEN+1]; local 515 strncpy(zip_path, prefix, MAXPATHLEN); 516 zip_path[MAXPATHLEN] = '\0'; 518 reduce(zip_path); 519 reduce(zip_path); 522 strncpy(zip_path, PREFIX, MAXPATHLEN); 523 joinpath(zip_path, "lib/python00.zip"); 524 bufsz = strlen(zip_path); /* Replace "00" with version */ 525 zip_path[bufsz - 6] = VERSION[0]; 526 zip_path[bufsz - 5] = VERSION[2] [all...] |
/external/python/cpython2/PC/ |
getpathp.c | 475 char zip_path[MAXPATHLEN+1]; local 499 strncpy(zip_path, dllpath, MAXPATHLEN); 501 strncpy(zip_path, progpath, MAXPATHLEN); 502 zip_path[MAXPATHLEN] = '\0'; 503 len = strlen(zip_path); 505 zip_path[len-3] = 'z'; /* change ending to "zip" */ 506 zip_path[len-2] = 'i'; 507 zip_path[len-1] = 'p'; 510 zip_path[0] = 0; 556 bufsz += strlen(zip_path) + 1 [all...] |
/bionic/linker/ |
linker_utils.cpp | 140 bool parse_zip_path(const char* input_path, std::string* zip_path, std::string* entry_path) { 166 *zip_path = buf; 224 std::string zip_path; local 234 if (parse_zip_path(normalized_path.c_str(), &zip_path, &entry_path)) { 235 if (realpath(zip_path.c_str(), resolved_path) == nullptr) { 236 DL_WARN("Warning: unable to resolve \"%s\": %s", zip_path.c_str(), strerror(errno));
|
linker_utils.h | 42 bool parse_zip_path(const char* input_path, std::string* zip_path, std::string* entry_path);
|
linker.cpp | 897 bool get_or_open(const char* zip_path, ZipArchiveHandle* handle); 904 bool ZipArchiveCache::get_or_open(const char* zip_path, ZipArchiveHandle* handle) { 905 std::string key(zip_path); 913 int fd = TEMP_FAILURE_RETRY(open(zip_path, O_RDONLY | O_CLOEXEC)); 963 const char* zip_path = buf; local 965 int fd = TEMP_FAILURE_RETRY(open(zip_path, O_RDONLY | O_CLOEXEC)); 971 if (!zip_archive_cache->get_or_open(zip_path, &handle)) { [all...] |
/external/libmojo/build/android/gyp/util/ |
build_utils.py | 221 def ExtractAll(zip_path, path=None, no_clobber=True, pattern=None, 228 if not zipfile.is_zipfile(zip_path): 229 raise Exception('Invalid zip file: %s' % zip_path) 231 with zipfile.ZipFile(zip_path) as z: 246 % (zip_path, name, output_path)) 255 def AddToZipHermetic(zip_file, zip_path, src_path=None, data=None, 261 zip_path: Destination path within the zip file. 269 CheckZipPath(zip_path) 270 zipinfo = zipfile.ZipInfo(filename=zip_path, date_time=_HERMETIC_TIMESTAMP) 274 zipinfo.filename = zip_path [all...] |
/frameworks/base/cmds/idmap/ |
create.cpp | 16 int get_zip_entry_crc(const char *zip_path, const char *entry_name, uint32_t *crc) 18 std::unique_ptr<ZipFileRO> zip(ZipFileRO::open(zip_path));
|
/bootable/recovery/updater/ |
install.cpp | 432 const std::string& zip_path = args[0]; local 436 ZipString zip_string_path(zip_path.c_str()); 439 LOG(ERROR) << name << ": no " << zip_path << " in package"; local 453 LOG(ERROR) << name << ": Failed to extract entry \"" << zip_path << "\" (" 476 const std::string& zip_path = args[0]; local 479 ZipString zip_string_path(zip_path.c_str()); 483 zip_path.c_str()); 493 zip_path.c_str(), buffer.size(), ErrorCodeString(ret)); [all...] |
/prebuilts/sdk/ |
update_current.py | 245 zip_path = filter(lambda path: filename in path, paths)[0] 246 src_path = zip_file.extract(zip_path)
|
/bootable/recovery/tests/component/ |
updater_test.cpp | 236 std::string zip_path = from_testdata_base("ziptest_valid.zip"); local 238 ASSERT_EQ(0, OpenArchive(zip_path.c_str(), &handle));
|
/tools/test/connectivity/acts/framework/acts/ |
utils.py | 852 def unzip_maintain_permissions(zip_path, extract_location): 856 zip_path: The path to the zipped file. 859 with zipfile.ZipFile(zip_path, 'r') as zip_file:
|
/system/core/libziparchive/ |
zip_archive_test.cc | 489 const std::string zip_path = test_data_dir + "/" + kUpdateZip; local 490 android::base::unique_fd fd(open(zip_path.c_str(), O_RDONLY | O_BINARY)); 497 file_map.create(zip_path.c_str(), fd, 0 /*offset*/, sb.st_size, true); 500 zip_path.c_str(), &handle));
|
/external/chromium-trace/catapult/devil/devil/android/ |
device_utils.py | [all...] |
/external/libmojo/third_party/catapult/devil/devil/android/ |
device_utils.py | [all...] |