/build/tools/ |
H A D | fileslist.py | 18 import operator, os, sys namespace 21 st = os.lstat(path) 28 base = len(root[:root.rfind(os.path.sep)]) 29 for dir, dirs, files in os.walk(root): 34 get_file_size(os.path.sep.join((dir, f))), 35 os.path.sep.join((relative, f)), 38 except os.error:
|
H A D | findleaves.py | 23 import os namespace 28 pruneleaves = set(map(lambda x: os.path.split(x)[1], prune)) 31 for root, dirs, files in os.walk(rootdir, followlinks=True): 52 result.append(os.path.join(root, filename)) 65 "progName": os.path.split(sys.argv[0])[1],
|
H A D | compare_fileslist.py | 18 import cgi, os, string, sys namespace 85 combo = input.split(os.path.sep)[1]
|
H A D | check_radio_versions.py | 18 import os namespace
|
H A D | adbs | 17 import os namespace 36 stream = os.popen(cmd) 46 stream = os.popen(cmd) 64 uname = os.uname()[0] 66 proc = os.uname()[-1] 79 stream = os.popen(cmd) 113 path = os.environ['ANDROID_PRODUCT_OUT'] + "/symbols" 118 stream = os.popen(cmd) 123 if (not os.path.exists(path)): 138 uname = os [all...] |
H A D | generate-notice-files.py | 27 import os namespace 28 import os.path namespace 172 input_dir = os.path.normpath(args[3]) 174 for root, dir, files in os.walk(input_dir): 177 filename = os.path.join(root, file)
|
H A D | product_debug.py | 17 import os namespace
|
H A D | java-event-log-tags.py | 28 import os namespace 29 import os.path namespace 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): 150 os.makedirs(output_dir)
|
H A D | java-layers.py | 3 import os namespace 179 for root, dirs, files in os.walk(d): 180 result.extend([os.sep.join((root,f)) for f in files
|
/build/tools/releasetools/ |
H A D | build_image.py | 23 import os namespace 24 import os.path namespace 82 unsparse_image = os.path.join( 83 os.path.dirname(out_file), "unsparse_" + os.path.basename(out_file)) 87 os.remove(unsparse_image) 94 os.remove(unsparse_image) 162 image_filename = os.path.basename(out_file)
|
H A D | img_from_target_files | 39 import os namespace 47 if not hasattr(os, "SEEK_SET"): 48 os.SEEK_SET = 0 68 os.symlink(os.path.join(OPTIONS.input_tmp, "SYSTEM"), 69 os.path.join(OPTIONS.input_tmp, "system")) 73 # os.path.join(OPTIONS.input_tmp, "system")) 83 succ = build_image.BuildImage(os.path.join(OPTIONS.input_tmp, "system"), 87 img.seek(os.SEEK_SET, 0) 113 if not os [all...] |
H A D | sign_target_files_apks | 78 import os namespace 115 name = os.path.basename(info.filename) 143 maxsize = max([len(os.path.basename(i.filename)) 151 name = os.path.basename(info.filename) 286 os.path.join(OPTIONS.search_path, "framework", "dumpkey.jar")] 312 devkeydir = os.path.dirname(devkey)
|
H A D | check_target_files_signatures | 48 import os namespace 130 for dirpath, dirnames, filenames in os.walk(top): 131 certs = [os.path.join(dirpath, i) 140 name, _ = os.path.splitext(i) 141 name, _ = os.path.splitext(name) 241 for dirpath, dirnames, filenames in os.walk(d): 244 fullname = os.path.join(dirpath, fn) 248 self.apks_by_basename[os.path.basename(apk.filename)] = apk
|
H A D | edify_generator.py | 15 import os namespace 296 data = open(os.path.join(input_path, "updater")).read()
|
H A D | ota_from_target_files | 70 import os namespace 156 self.parent = Item.Get(os.path.dirname(name), dir=True) 371 path = os.path.join(input_tmp, "SYSTEM", "etc", "recovery-resource.dat") 372 if os.path.exists(path): 535 basename = os.path.basename(file_context) 1007 OPTIONS.info_dict["selinux_fc"] = os.path.join(OPTIONS.input_tmp, "BOOT", "RAMDISK", 1017 OPTIONS.device_specific = os.path.normpath(OPTIONS.device_specific)
|
H A D | common.py | 20 import os namespace 38 if not hasattr(os, "SEEK_SET"): 39 os.SEEK_SET = 0 78 stat = os.fstat(d) 82 os.close(d) 267 if (not os.access(os.path.join(sourcedir, "RAMDISK"), os.F_OK) or 268 not os.access(os [all...] |
/build/core/ |
H A D | checktree | 3 import sys, os, re namespace 53 fd = os.popen(command); 80 cwd = os.getcwd()
|