parameters: (path)
docstring: Returns a list of files to scan for check annotations in the given path.
        Path to a file is returned as a single-element list, directories are
        recursively traversed and all '.java' and '.smali' files returned.
docstring_summary: Returns a list of files to scan for check annotations in the given path.
        Path to a file is returned as a single-element list, directories are
        recursively traversed and all '.java' and '.smali' files returned.
docstring_tokens: Returns a list of files to scan for check annotations in the given path . Path to a file is returned as a single - element list directories are recursively traversed and all . java and . smali files returned .
function: def FindCheckerFiles(path):
    """ Returns a list of files to scan for check annotations in the given path.
        Path to a file is returned as a single-element list, directories are
        recursively traversed and all '.java' and '.smali' files returned.
    """
    if not path:
      Logger.fail("No source path provided")
    elif os.path.isfile(path):
      return [ path ]
    elif os.path.isdir(path):
      foundFiles = []
      for root, dirs, files in os.walk(path):
        for file in files:
          extension = os.path.splitext(file)[1]
          if extension in [".java", ".smali"]:
            foundFiles.append(os.path.join(root, file))
      return foundFiles
    else:
      Logger.fail("Source path \"" + path + "\" not found")
function_tokens: def FindCheckerFiles ( path ) : if not path : Logger . fail ( "No source path provided" ) elif os . path . isfile ( path ) : return [ path ] elif os . path . isdir ( path ) : foundFiles = [ ] for root , dirs , files in os . walk ( path ) : for file in files : extension = os . path . splitext ( file ) [ 1 ] if extension in [ ".java" , ".smali" ] : foundFiles . append ( os . path . join ( root , file ) ) return foundFiles else : Logger . fail ( "Source path \"" + path + "\" not found" )