Google is committed to advancing racial equity for Black communities. See how.

IFormatterGenerator

public interface IFormatterGenerator

com.android.tradefed.result.suite.IFormatterGenerator


Interface describing a formatter for SuiteResultHolder.

Summary

Public methods

abstract SuiteResultHolder parseResults(File resultDir, boolean shallow)

Reverse operation of writeResults(com.android.tradefed.result.suite.SuiteResultHolder, File) which takes a result directory and create the SuiteResultHolder out of it.

abstract File writeResults(SuiteResultHolder holder, File resultDir)

Write the results into a particular format.

Public methods

parseResults

public abstract SuiteResultHolder parseResults (File resultDir, 
                boolean shallow)

Reverse operation of writeResults(com.android.tradefed.result.suite.SuiteResultHolder, File) which takes a result directory and create the SuiteResultHolder out of it.

Parameters
resultDir File: The directory where to find the results.

shallow boolean: only load the top level information of SuiteResultHolder.

Returns
SuiteResultHolder A SuiteResultHolder containing the results representation. Or null if anything goes wrong.

writeResults

public abstract File writeResults (SuiteResultHolder holder, 
                File resultDir)

Write the results into a particular format.

Parameters
holder SuiteResultHolder: The results held in SuiteResultHolder.

resultDir File: The directory where results should be stored.

Returns
File a ERROR(/File) containing the results in a formatted manner.