/build/soong/scripts/ |
H A D | reverse_path.py | 8 # Find the best reverse path to reference the current directory from another 12 # If the directory is given as an absolute path, return an absolute path to the 15 # If there's a symlink involved, and the same relative path would not work if 17 # path. This handles paths like out -> /mnt/ssd/out 19 # For symlinks that can use the same relative path (out -> out.1), just return 20 # the relative path. That way out.1 can be renamed as long as the symlink is 23 # For everything else, just return the relative path. That allows the source and 26 def reverse_path(path): 27 if path [all...] |
/build/make/tools/atree/ |
H A D | fs.h | 8 int remove_recursively(const string& path); 9 int mkdir_recursively(const string& path); 11 int strip_file(const string& path);
|
H A D | fs.cpp | 21 is_dir(const string& path) argument 25 err = stat(path.c_str(), &st); 30 remove_file(const string& path) argument 32 int err = unlink(path.c_str()); 34 fprintf(stderr, "error deleting file %s (%s)\n", path.c_str(), 42 remove_recursively(const string& path) argument 46 if (is_dir(path)) { 47 DIR *d = opendir(path.c_str()); 50 path.c_str(), strerror(errno)); 63 string full = path; 102 mkdir_recursively(const string& path) argument 146 strip_file(const string& path) argument [all...] |
/build/tools/atree/ |
H A D | fs.h | 8 int remove_recursively(const string& path); 9 int mkdir_recursively(const string& path); 11 int strip_file(const string& path);
|
H A D | fs.cpp | 21 is_dir(const string& path) argument 25 err = stat(path.c_str(), &st); 30 remove_file(const string& path) argument 32 int err = unlink(path.c_str()); 34 fprintf(stderr, "error deleting file %s (%s)\n", path.c_str(), 42 remove_recursively(const string& path) argument 46 if (is_dir(path)) { 47 DIR *d = opendir(path.c_str()); 50 path.c_str(), strerror(errno)); 63 string full = path; 102 mkdir_recursively(const string& path) argument 146 strip_file(const string& path) argument [all...] |
/build/make/tools/ |
H A D | normalize_path.py | 20 import os.path namespace 25 print os.path.normpath(p) 29 print os.path.normpath(line.strip())
|
H A D | adbs | 18 import os.path namespace 23 sys.path.insert(0, os.path.dirname(__file__) + "/../../development/scripts")
|
H A D | fileslist_util.py | 20 def PrintFileNames(path): 21 with open(path) as jf: 26 def PrintCanonicalList(path): 27 with open(path) as jf:
|
/build/tools/ |
H A D | normalize_path.py | 20 import os.path namespace 25 print os.path.normpath(p) 29 print os.path.normpath(line.strip())
|
H A D | adbs | 18 import os.path namespace 23 sys.path.insert(0, os.path.dirname(__file__) + "/../../development/scripts")
|
H A D | fileslist_util.py | 20 def PrintFileNames(path): 21 with open(path) as jf: 26 def PrintCanonicalList(path): 27 with open(path) as jf:
|
/build/kati/ |
H A D | find.cc | 41 virtual bool IsTrue(const string& path, unsigned char type) const = 0; 56 virtual bool IsTrue(const string& path, unsigned char) const override { 57 return fnmatch(name_.c_str(), Basename(path).data(), 0) == 0; 93 virtual bool IsTrue(const string& path, unsigned char type) const override { 94 return !c_->IsTrue(path, type); 111 virtual bool IsTrue(const string& path, unsigned char type) const override { 112 if (c1_->IsTrue(path, type)) 113 return c2_->IsTrue(path, type); 131 virtual bool IsTrue(const string& path, unsigned char type) const override { 132 if (!c1_->IsTrue(path, typ 167 PrintIfNecessary(const FindCommand& fc, const string& path, unsigned char type, int d, vector<string>& out) const argument 204 ScopedReadDirTracker(const DirentNode* n, const string& path, unordered_map<const DirentNode*, string>* cur_read_dirs) argument 859 string path = finddir; variable 910 GetDtType(const string& path) argument 918 ConstructDirectoryTree(const string& path) argument 974 const string& path = p.first; local [all...] |
/build/make/tools/ijar/ |
H A D | zip_main.cc | 70 // Concatene 2 path, path1 and path2, using / as a directory separator and 88 // Do a recursive mkdir of all folders of path except the last path 89 // segment (if path ends with a / then the last path segment is empty). 91 void mkdirs(const char *path, mode_t mode) { argument 94 strncpy(path_, path, PATH_MAX); 127 char path[PATH_MAX]; local 129 concat_path(path, PATH_MAX, output_root_, filename); 130 mkdirs(path, per 146 basename(const char *path, char *output, size_t output_size) argument 195 char path[PATH_MAX]; local [all...] |
/build/tools/ijar/ |
H A D | zip_main.cc | 70 // Concatene 2 path, path1 and path2, using / as a directory separator and 88 // Do a recursive mkdir of all folders of path except the last path 89 // segment (if path ends with a / then the last path segment is empty). 91 void mkdirs(const char *path, mode_t mode) { argument 94 strncpy(path_, path, PATH_MAX); 127 char path[PATH_MAX]; local 129 concat_path(path, PATH_MAX, output_root_, filename); 130 mkdirs(path, per 146 basename(const char *path, char *output, size_t output_size) argument 195 char path[PATH_MAX]; local [all...] |
/build/make/tools/releasetools/ |
H A D | add_img_to_target_files | 80 self.input_name = os.path.join(input_dir, prefix, name) 83 self._zip_name = os.path.join(prefix, name) 85 root, suffix = os.path.splitext(name) 121 if os.path.exists(img.input_name): 126 ofile = open(os.path.join(OPTIONS.input_tmp, "SYSTEM", fn), "w") 147 if os.path.exists(img.input_name): 160 if os.path.exists(img.input_name): 179 os.symlink(os.path.join(input_dir, what.upper()), 180 os.path.join(temp_dir, what)) 184 # os.path [all...] |
H A D | add_img_to_target_files.py | 80 self.input_name = os.path.join(input_dir, prefix, name) 83 self._zip_name = os.path.join(prefix, name) 85 root, suffix = os.path.splitext(name) 121 if os.path.exists(img.input_name): 126 ofile = open(os.path.join(OPTIONS.input_tmp, "SYSTEM", fn), "w") 147 if os.path.exists(img.input_name): 160 if os.path.exists(img.input_name): 179 os.symlink(os.path.join(input_dir, what.upper()), 180 os.path.join(temp_dir, what)) 184 # os.path [all...] |
H A D | target_files_diff.py | 163 name = os.path.join(prefix, entry) 164 name1 = os.path.join(dir1, entry) 165 name2 = os.path.join(dir2, entry) 171 if os.path.islink(name1) and os.path.islink(name2): 178 elif os.path.islink(name1) or os.path.islink(name2): 195 if os.path.isdir(name1): 197 elif os.path.isfile(name1): 205 name = os.path [all...] |
H A D | common.py | 50 self.java_path = "java" # Use the one on the path by default. 142 path = os.path.join(input_file, *fn.split("/")) 144 with open(path) as f: 169 fc_basename = os.path.basename(d.get("selinux_fc", "file_contexts")) 170 fc_config = os.path.join(input_dir, "META", fc_basename) 172 assert os.path.exists(fc_config) 173 if not os.path.exists(fc_config): 174 fc_config = os.path.join(input_dir, "BOOT", "RAMDISK", fc_basename) 175 if not os.path [all...] |
/build/tools/releasetools/ |
H A D | add_img_to_target_files | 80 self.input_name = os.path.join(input_dir, prefix, name) 83 self._zip_name = os.path.join(prefix, name) 85 root, suffix = os.path.splitext(name) 121 if os.path.exists(img.input_name): 126 ofile = open(os.path.join(OPTIONS.input_tmp, "SYSTEM", fn), "w") 147 if os.path.exists(img.input_name): 160 if os.path.exists(img.input_name): 179 os.symlink(os.path.join(input_dir, what.upper()), 180 os.path.join(temp_dir, what)) 184 # os.path [all...] |
H A D | add_img_to_target_files.py | 80 self.input_name = os.path.join(input_dir, prefix, name) 83 self._zip_name = os.path.join(prefix, name) 85 root, suffix = os.path.splitext(name) 121 if os.path.exists(img.input_name): 126 ofile = open(os.path.join(OPTIONS.input_tmp, "SYSTEM", fn), "w") 147 if os.path.exists(img.input_name): 160 if os.path.exists(img.input_name): 179 os.symlink(os.path.join(input_dir, what.upper()), 180 os.path.join(temp_dir, what)) 184 # os.path [all...] |
H A D | target_files_diff.py | 163 name = os.path.join(prefix, entry) 164 name1 = os.path.join(dir1, entry) 165 name2 = os.path.join(dir2, entry) 171 if os.path.islink(name1) and os.path.islink(name2): 178 elif os.path.islink(name1) or os.path.islink(name2): 195 if os.path.isdir(name1): 197 elif os.path.isfile(name1): 205 name = os.path [all...] |
H A D | common.py | 50 self.java_path = "java" # Use the one on the path by default. 142 path = os.path.join(input_file, *fn.split("/")) 144 with open(path) as f: 169 fc_basename = os.path.basename(d.get("selinux_fc", "file_contexts")) 170 fc_config = os.path.join(input_dir, "META", fc_basename) 172 assert os.path.exists(fc_config) 173 if not os.path.exists(fc_config): 174 fc_config = os.path.join(input_dir, "BOOT", "RAMDISK", fc_basename) 175 if not os.path [all...] |
/build/core/ |
H A D | dex_preopt_libart.mk | 50 # Returns the path to the .odex file 52 # $(2): the full path (including file name) of the corresponding .jar or .apk. 53 define get-odex-file-path 57 # Returns the full path to the installed .odex file. 61 # $(2): the full install path (including file name) of the corresponding .apk. 63 define get-odex-installed-file-path 65 $(call get-odex-file-path,$(1),$(patsubst $(TARGET_OUT)/%,$(TARGET_OUT_SYSTEM_OTHER)/%,$(2))), 66 $(call get-odex-file-path,$(1),$(2))) 69 get-odex-installed-file-path = $(get-odex-file-path) [all...] |
H A D | setup_one_odex.mk | 21 my_built_odex := $(call get-odex-file-path,$($(my_2nd_arch_prefix)DEX2OAT_TARGET_ARCH),$(LOCAL_BUILT_MODULE)) 27 my_dex_preopt_image_filename := $(call get-image-file-path,$($(my_2nd_arch_prefix)DEX2OAT_TARGET_ARCH),$(my_dex_preopt_image_location)) 35 my_installed_odex := $(call get-odex-installed-file-path,$($(my_2nd_arch_prefix)DEX2OAT_TARGET_ARCH),$(LOCAL_INSTALLED_MODULE))
|
/build/make/core/ |
H A D | dex_preopt_libart.mk | 50 # Returns the path to the .odex file 52 # $(2): the full path (including file name) of the corresponding .jar or .apk. 53 define get-odex-file-path 57 # Returns the full path to the installed .odex file. 61 # $(2): the full install path (including file name) of the corresponding .apk. 63 define get-odex-installed-file-path 65 $(call get-odex-file-path,$(1),$(patsubst $(TARGET_OUT)/%,$(TARGET_OUT_SYSTEM_OTHER)/%,$(2))), 66 $(call get-odex-file-path,$(1),$(2))) 69 get-odex-installed-file-path = $(get-odex-file-path) [all...] |