Lines Matching refs:path

135         elif os.path.isabs(target):
137 rel_path = os.path.relpath(abs_path, get_android_root_dir())
143 abs_path = os.path.join(get_android_root_dir(), rel_path)
146 or os.path.isdir(os.path.join(get_android_root_dir(), target))):
148 abs_path = os.path.join(get_android_root_dir(), rel_path)
151 abs_path = os.path.abspath(os.path.join(os.getcwd(), target))
152 rel_path = os.path.relpath(abs_path, get_android_root_dir())
159 rel_path = os.path.relpath(abs_path, get_android_root_dir())
282 if not os.path.isdir(abs_path):
314 return os.path.join(get_android_root_dir(), rel_path)
365 return os.path.join(get_soong_out_path(), file_name)
399 android_out_dir_common_base = (os.path.join(
400 out_dir_common_base, os.path.basename(android_root_path))
427 return os.path.join(get_android_root_dir(), constant.AIDEGEN_ROOT_PATH)
442 return os.path.join(get_android_root_dir(), get_android_out_dir(), 'soong')
468 return os.path.isfile(os.path.join(abs_path, constant.ANDROID_BP))
480 return os.path.isfile(os.path.join(abs_path, constant.ANDROID_MK))
506 return str(data).replace(os.path.expanduser('~'), constant.USER_HOME)
623 def read_file_content(path, encode_type='utf8'): argument
633 with open(path, encoding=encode_type) as template:
638 def file_generate(path, content): argument
645 if not os.path.exists(os.path.dirname(path)):
646 os.makedirs(os.path.dirname(path))
647 with open(path, 'w') as target:
674 bp_java_path = os.path.join(
678 bp_cc_path = os.path.join(
681 data[constant.GEN_COMPDB] = os.path.join(get_soong_out_path(),
684 data[constant.GEN_RUST] = os.path.join(
730 real_path = os.path.join(get_android_root_dir(),
733 if os.path.exists(real_path):
734 return os.path.dirname(real_path)