/build/tools/atree/ |
D | fs.cpp | 21 is_dir(const string& path) in is_dir() argument 25 err = stat(path.c_str(), &st); in is_dir() 30 remove_file(const string& path) in remove_file() argument 32 int err = unlink(path.c_str()); in remove_file() 34 fprintf(stderr, "error deleting file %s (%s)\n", path.c_str(), in remove_file() 42 remove_recursively(const string& path) in remove_recursively() argument 46 if (is_dir(path)) { in remove_recursively() 47 DIR *d = opendir(path.c_str()); in remove_recursively() 50 path.c_str(), strerror(errno)); in remove_recursively() 63 string full = path; in remove_recursively() [all …]
|
D | fs.h | 8 int remove_recursively(const string& path); 9 int mkdir_recursively(const string& path); 11 int strip_file(const string& path);
|
D | files.cpp | 424 list_dir(const string& path, const FileRecord& rec, in list_dir() argument 431 full = path_append(full, path); in list_dir() 449 string entry = path_append(path, ent->d_name); in list_dir()
|
/build/tools/releasetools/ |
D | add_img_to_target_files.py | 55 prebuilt_path = os.path.join(OPTIONS.input_tmp, prefix, "system.img") 56 if os.path.exists(prebuilt_path): 61 ofile = open(os.path.join(OPTIONS.input_tmp,"SYSTEM",fn), "w") 89 prebuilt_path = os.path.join(OPTIONS.input_tmp, prefix, "vendor.img") 90 if os.path.exists(prebuilt_path): 118 os.symlink(os.path.join(input_dir, what.upper()), 119 os.path.join(input_dir, what)) 138 fs_config = os.path.join( 140 if not os.path.exists(fs_config): fs_config = None 142 fc_config = os.path.join(input_dir, "BOOT/RAMDISK/file_contexts") [all …]
|
D | add_img_to_target_files | 55 prebuilt_path = os.path.join(OPTIONS.input_tmp, prefix, "system.img") 56 if os.path.exists(prebuilt_path): 61 ofile = open(os.path.join(OPTIONS.input_tmp,"SYSTEM",fn), "w") 89 prebuilt_path = os.path.join(OPTIONS.input_tmp, prefix, "vendor.img") 90 if os.path.exists(prebuilt_path): 118 os.symlink(os.path.join(input_dir, what.upper()), 119 os.path.join(input_dir, what)) 138 fs_config = os.path.join( 140 if not os.path.exists(fs_config): fs_config = None 142 fc_config = os.path.join(input_dir, "BOOT/RAMDISK/file_contexts") [all …]
|
D | common.py | 105 path = os.path.join(input, *fn.split("/")) 107 with open(path) as f: 288 if (not os.access(os.path.join(sourcedir, "RAMDISK"), os.F_OK) or 289 not os.access(os.path.join(sourcedir, "kernel"), os.F_OK)): 299 cmd = ["mkbootfs", "-f", fs_config_file, os.path.join(sourcedir, "RAMDISK")] 301 cmd = ["mkbootfs", os.path.join(sourcedir, "RAMDISK")] 314 cmd = [mkbootimg, "--kernel", os.path.join(sourcedir, "kernel")] 316 fn = os.path.join(sourcedir, "second") 321 fn = os.path.join(sourcedir, "cmdline") 326 fn = os.path.join(sourcedir, "base") [all …]
|
D | img_from_target_files.py | 54 output_zip.write(os.path.join(OPTIONS.input_tmp, "OTA", "android-info.txt"), 85 images_path = os.path.join(OPTIONS.input_tmp, "IMAGES") 86 if os.path.exists(images_path): 94 with open(os.path.join(images_path, i), "r") as f: 111 OPTIONS.info_dict["selinux_fc"] = os.path.join(
|
D | img_from_target_files | 54 output_zip.write(os.path.join(OPTIONS.input_tmp, "OTA", "android-info.txt"), 85 images_path = os.path.join(OPTIONS.input_tmp, "IMAGES") 86 if os.path.exists(images_path): 94 with open(os.path.join(images_path, i), "r") as f: 111 OPTIONS.info_dict["selinux_fc"] = os.path.join(
|
D | build_image.py | 24 import os.path 136 img_dir = os.path.dirname(sparse_image_path) 137 unsparse_image_path = "unsparse_" + os.path.basename(sparse_image_path) 138 unsparse_image_path = os.path.join(img_dir, unsparse_image_path) 139 if os.path.exists(unsparse_image_path): 170 verity_image_path = os.path.join(tempdir_name, "verity.img") 171 verity_metadata_path = os.path.join(tempdir_name, "verity_metadata.img") 371 image_filename = os.path.basename(out_file)
|
D | sign_target_files_apks | 119 name = os.path.basename(info.filename) 149 maxsize = max([len(os.path.basename(i.filename)) 156 fn = os.path.join(tmpdir, fn) 158 fn = os.path.join(tmpdir, fn) 161 d = os.path.dirname(fn) 162 if d and not os.path.exists(d): 190 name = os.path.basename(info.filename) 369 os.path.join(OPTIONS.search_path, "framework", "dumpkey.jar")] 409 devkeydir = os.path.dirname(devkey)
|
D | ota_from_target_files | 236 self.parent = itemset.Get(os.path.dirname(name), dir=True) 437 path = os.path.join(tmpdir, "IMAGES", which + ".img") 438 mappath = os.path.join(tmpdir, "IMAGES", which + ".map") 439 if os.path.exists(path) and os.path.exists(mappath): 454 path = add_img_to_target_files.BuildSystem( 457 path = add_img_to_target_files.BuildVendor( 460 return sparse_img.SparseImage(path, mappath) 651 basename = os.path.basename(file_context) 688 path = "/".join(dirs) 689 if path in known_paths: [all …]
|
D | check_target_files_signatures | 131 certs = [os.path.join(dirpath, i) 140 name, _ = os.path.splitext(i) 141 name, _ = os.path.splitext(name) 244 fullname = os.path.join(dirpath, fn) 248 self.apks_by_basename[os.path.basename(apk.filename)] = apk
|
D | make_recovery_patch | 46 with open(os.path.join(output_dir, "SYSTEM", *fn.split("/")), "wb") as f:
|
/build/tools/ |
D | fileslist.py | 20 def get_file_size(path): argument 21 st = os.lstat(path) 28 base = len(root[:root.rfind(os.path.sep)]) 34 get_file_size(os.path.sep.join((dir, f))), 35 os.path.sep.join((relative, f)),
|
D | adbs | 18 import os.path 23 sys.path.insert(0, os.path.dirname(__file__) + "/../../development/scripts")
|
D | java-event-log-tags.py | 29 import os.path 98 basename, _ = os.path.splitext(os.path.basename(fn)) 148 output_dir = os.path.dirname(output_file) 149 if not os.path.exists(output_dir):
|
D | findleaves.py | 28 pruneleaves = set(map(lambda x: os.path.split(x)[1], prune)) 52 result.append(os.path.join(root, filename)) 65 "progName": os.path.split(sys.argv[0])[1],
|
D | generate-notice-files.py | 28 import os.path 172 input_dir = os.path.normpath(args[3]) 177 filename = os.path.join(root, file)
|
/build/core/ |
D | setup_one_odex.mk | 21 my_built_odex := $(call get-odex-file-path,$($(my_2nd_arch_prefix)DEX2OAT_TARGET_ARCH),$(LOCAL_BUIL… 27 my_dex_preopt_image_filename := $(call get-image-file-path,$($(my_2nd_arch_prefix)DEX2OAT_TARGET_AR… 35 my_installed_odex := $(call get-odex-file-path,$($(my_2nd_arch_prefix)DEX2OAT_TARGET_ARCH),$(LOCAL_…
|
D | pathmap.mk | 62 define include-path-for 70 JNI_H_INCLUDE := $(call include-path-for,libnativehelper)/nativehelper
|
D | dex_preopt_libart.mk | 57 define get-odex-file-path 64 define get-image-file-path
|
/build/core/tasks/ |
D | sdk-addon.mk | 77 …$(eval _dest := $(call append-path,$(call append-path,$(staging),$(_root)),$(call word-colon,3,$(c… 83 addon_img_source_prop := $(call append-path,$(staging),$(addon_dir_img))/images/$(TARGET_CPU_ABI)/s… 105 $(full_target): PRIVATE_STAGING_DIR := $(call append-path,$(staging),$(addon_dir_leaf)) 116 $(full_target_img): PRIVATE_STAGING_DIR := $(call append-path,$(staging),$(addon_dir_img))/images/$…
|
/build/libs/host/include/host/ |
D | Directories.h | 6 std::string parent_dir(const std::string& path); 8 extern "C" int mkdirs(const char* path);
|
/build/tools/droiddoc/templates-pdk/assets/ |
D | android-developer-docs.js | 224 .attr('href', toRoot + "resources/" + resource.path) 428 var path = getBaseUri(location.pathname); 429 if (path.indexOf("/reference/") != -1) { 430 writeCookie("lastpage", path, "reference", null); 431 } else if (path.indexOf("/guide/") != -1) { 432 writeCookie("lastpage", path, "guide", null); 433 } else if ((path.indexOf("/resources/") != -1) || (path.indexOf("/training/") != -1)) { 434 writeCookie("lastpage", path, "resources", null);
|
/build/core/tasks/check_boot_jars/ |
D | check_boot_jars.py | 9 import os.path 54 package_name = os.path.dirname(f)
|