Home | History | Annotate | Download | only in dexpreopt

Lines Matching full:path

45 def EnsureTempDir(path=None):
46 """Creates a temporary directory and returns its path.
51 path: If specified, used as the temporary directory. If not specified,
52 a safe temporary path is created. The caller is responsible for
56 The path to the new directory, or None if a problem occurred.
58 if path is None:
59 path = tempfile.mkdtemp('', 'dexpreopt-')
60 elif not os.path.exists(path):
61 os.makedirs(path)
62 elif not os.path.isdir(path):
64 return path
67 def CreateZeroedFile(path, length):
74 path: The path to the file to create.
80 subprocess.call(['rm', '-f', path])
81 d = os.path.dirname(path)
82 if d and not os.path.exists(d): os.makedirs(os.path.dirname(d))
84 ret = subprocess.call(['dd', 'if=/dev/zero', 'of=%s' % path,
448 src: The path on the emulator's filesystem to download from.
449 dest: The path on the local filesystem to download to.
458 if not os.path.exists(dest):
551 p = os.path.dirname(out_file_name)
552 if not os.path.exists(p): os.makedirs(p)
656 odex_file = os.path.join(root, name)
658 # Find the path to the .odex file's source apk/jar file.
662 if not os.path.exists(jar_file):
664 if not os.path.exists(jar_file):
682 jar_file = os.path.join(root, name)
684 if not os.path.exists(odex_file):
697 if os.path.getsize(odex_file) > 100:
816 -system <path> The product directory, which usually contains
820 -outsystemdir <path> A fully-populated /system directory, ready
828 -tmpdir <path> If specified, use this directory for