def GetVintfFileList():
    '\n  Returns a list of VINTF metadata files that should be read from a target files\n  package before executing checkvintf.\n  '

    def PathToPatterns(path):
        if (path[(- 1)] == '/'):
            path += '*'
        for (device_path, target_files_rel_paths) in DIR_SEARCH_PATHS.items():
            if path.startswith(device_path):
                suffix = path[len(device_path):]
                return [(rel_path + suffix) for rel_path in target_files_rel_paths]
        raise RuntimeError(('Unrecognized path from checkvintf --dump-file-list: ' + path))
    out = common.RunAndCheckOutput(['checkvintf', '--dump-file-list'])
    paths = out.strip().split('\n')
    paths = sum((PathToPatterns(path) for path in paths if path), [])
    return paths
Returns a list of VINTF metadata files that should be read from a target files
package before executing checkvintf.
def GetVintfFileList():
    '\n  Returns a list of VINTF metadata files that should be read from a target files\n  package before executing checkvintf.\n  '

    def PathToPatterns(path):
        if (path[(- 1)] == '/'):
            path += '*'
        for (device_path, target_files_rel_paths) in DIR_SEARCH_PATHS.items():
            if path.startswith(device_path):
                suffix = path[len(device_path):]
                return [(rel_path + suffix) for rel_path in target_files_rel_paths]
        raise RuntimeError(('Unrecognized path from checkvintf --dump-file-list: ' + path))
    out = common.RunAndCheckOutput(['checkvintf', '--dump-file-list'])
    paths = out.strip().split('\n')
    paths = sum((PathToPatterns(path) for path in paths if path), [])
    return paths