Lines Matching refs:target
100 def get_related_paths(atest_module_info, target=None): argument
127 if target == '.':
128 target = None
129 if target:
131 if target == constant.WHOLE_ANDROID_TREE_TARGET:
135 elif os.path.isabs(target):
136 abs_path = target
139 elif atest_module_info.is_module(target):
140 paths = atest_module_info.get_paths(target)
145 elif (atest_module_info.get_module_names(target)
146 or os.path.isdir(os.path.join(get_android_root_dir(), target))):
147 rel_path = target.strip(os.sep)
151 abs_path = os.path.abspath(os.path.join(os.getcwd(), target))
174 for target in targets:
175 _, abs_path = get_related_paths(atest_module_info, target)
230 for target in targets:
231 if not check_module(atest_module_info, target, raise_on_lost_module):
236 def check_module(atest_module_info, target, raise_on_lost_module=True): argument
273 rel_path, abs_path = get_related_paths(atest_module_info, target)
275 err = FAKE_MODULE_ERROR.format(target)
647 with open(path, 'w') as target:
648 target.write(content)