Lines Matching full:path
30 return [x for x in os.listdir(root) if os.path.isdir(os.path.join(root, x))]
37 makefile_path: Path to the make file.
64 print 'docletPath: Class path where the DescriptionGenerator doclet can be found.'
72 self.test_repository = os.path.join(self.out_dir, 'repository/testcases')
73 self.plan_repository = os.path.join(self.out_dir, 'repository/plans')
92 # subclasses of TestCase as well as the JUnit framework itself on the source path.
103 source_path = [os.path.join(self.android_root, x) for x in source_path]
110 sources.extend([os.path.join(folder, name) for name in names if name.endswith('.java')])
112 os.path.walk(os.path.join(self.android_root, source_root), AddFile, sources)
127 description = open(os.path.join(self.test_repository, 'SignatureTest.xml'), 'w')
140 description = open(os.path.join(self.test_repository, 'ApiDemosReferenceTest.xml'), 'w')
147 makefile_name = os.path.join(test_root, 'Android.mk')
152 temp_desc = os.path.join(self.temp_dir, 'description.xml')
153 self.RunDescriptionGeneratorDoclet(os.path.join(test_root, 'src'), temp_desc)
160 description = open(os.path.join(self.test_repository, package_name + '.xml'), 'w')
165 def RelPath(path, start=os.getcwd()):
166 """Get a relative version of a path.
168 This is equivalent to os.path.relpath, which is only available since Python 2.6.
171 path: The path to transform.
172 start: The base path. Defaults to the current working directory.
175 A transformed path that is relative to start.
177 path_dirs = os.path.abspath(path).split(os.path.sep)
178 start_dirs = os.path.abspath(start).split(os.path.sep)
180 num_common = len(os.path.commonprefix([start_dirs, path_dirs]))
184 return os.path.join(*result_dirs)
198 package_root = os.path.join(self.test_root, package)
200 makefile_name = os.path.join(package_root, 'Android.mk')
201 if not os.path.exists(makefile_name):
206 manifest_name = os.path.join(package_root, 'AndroidManifest.xml')
207 if not os.path.exists(manifest_name):
217 temp_desc = os.path.join(self.temp_dir, 'description.xml')
237 description = open(os.path.join(self.test_repository, package_name + '.xml'), 'w')
243 plan.Write(os.path.join(self.plan_repository, plan_name + '.xml'))
250 descriptions = sorted(glob.glob(os.path.join(self.test_repository, '*.xml')))