Lines Matching refs:os
5 import os
11 sys.stderr.write(os.path.basename(sys.argv[0]) + ": error: ")
17 return os.path.join(get_android_root(), "external/kernel-headers")
21 return os.path.join(get_kernel_headers_dir(), "original")
25 return os.path.join(get_kernel_headers_dir(), "modified")
29 return os.path.join(get_android_root(), "bionic/libc/kernel")
33 if "ANDROID_BUILD_TOP" in os.environ:
36 cwd = os.getcwd()
37 root = os.environ["ANDROID_BUILD_TOP"]
40 return os.environ["ANDROID_BUILD_TOP"]
59 parent = os.path.dirname(path)
69 if os.path.isdir(dir):
71 os.mkdir(dir)
83 if os.path.exists(path):
88 for root, dirs, files in os.walk(path):
99 if os.path.exists(dst):
132 if not os.path.exists(os.path.dirname(dst)):
148 os.remove(dst)