Lines Matching refs:rel_path
124 rel_path = None
132 rel_path = ''
137 rel_path = os.path.relpath(abs_path, get_android_root_dir())
142 rel_path = paths[0].strip(os.sep)
143 abs_path = os.path.join(get_android_root_dir(), rel_path)
147 rel_path = target.strip(os.sep)
148 abs_path = os.path.join(get_android_root_dir(), rel_path)
152 rel_path = os.path.relpath(abs_path, get_android_root_dir())
157 rel_path = ''
159 rel_path = os.path.relpath(abs_path, get_android_root_dir())
160 return rel_path, abs_path
193 def has_build_target(atest_module_info, rel_path): argument
205 is_source_under_relative_path(mod_path, rel_path)
273 rel_path, abs_path = get_related_paths(atest_module_info, target)
283 err = PATH_NOT_EXISTS_ERROR.format(rel_path)
289 if (not has_build_target(atest_module_info, rel_path)
291 err = NO_MODULE_DEFINED_ERROR.format(rel_path)
300 def get_abs_path(rel_path): argument
310 if not rel_path:
312 if is_source_under_relative_path(rel_path, get_android_root_dir()):
313 return rel_path
314 return os.path.join(get_android_root_dir(), rel_path)