Home | History | Annotate | Download | only in test_defs

Lines Matching full:path

150       # need to parse test output to determine path to coverage file
212 def HasInstrumentationTest(path):
213 """Determine if given path defines an instrumentation test.
216 path: file system path to instrumentation test.
218 manifest_parser = android_manifest.CreateAndroidManifest(path)
241 # if path is java file, populate class name
285 def _IsJavaFile(self, path):
286 """Returns true if given file system path is a java file."""
287 return os.path.isfile(path) and self._IsJavaFileName(path)
291 return os.path.splitext(filename)[1] == '.java'
293 def _IsJavaPackage(self, path):
294 """Returns true if given file path is a java package.
300 path: file system path of directory to check
303 True if path is a java package
305 if not os.path.isdir(path):
307 for file_name in os.listdir(path):
313 """Gets the fully qualified java class name from path.
316 java_file_path: file system path of java file
323 filename = os.path.basename(java_file_path)
324 class_name = os.path.splitext(filename)[0]
328 def _GetPackageNameFromDir(self, path):
329 """Gets the java package name associated with given directory path.
335 path: file system path of directory
340 for filename in os.listdir(path):
342 return self._GetPackageNameFromFile(os.path.join(path, filename))
345 """Gets the java package name associated with given java file path.
348 java_file_path: file system path of java file