FileDocCategorySizeDatePackage
LayoutTestsAutoTest.javaAPI DocAndroid 1.5 API17578Wed May 06 22:42:02 BST 2009com.android.dumprendertree

MyTestRecorder

public class MyTestRecorder extends Object

Fields Summary
private BufferedOutputStream
mBufferedOutputPassedStream
private BufferedOutputStream
mBufferedOutputFailedStream
private BufferedOutputStream
mBufferedOutputNoresultStream
Constructors Summary
public MyTestRecorder(boolean resume)

        try {
            File resultsPassedFile = new File("/sdcard/layout_tests_passed.txt");
            File resultsFailedFile = new File("/sdcard/layout_tests_failed.txt");
            File noExpectedResultFile = new File("/sdcard/layout_tests_nontext.txt");
          
            mBufferedOutputPassedStream =
                new BufferedOutputStream(new FileOutputStream(resultsPassedFile, resume));
            mBufferedOutputFailedStream =
                new BufferedOutputStream(new FileOutputStream(resultsFailedFile, resume));
            mBufferedOutputNoresultStream =
                new BufferedOutputStream(new FileOutputStream(noExpectedResultFile, resume));
        } catch (Exception e) {
            e.printStackTrace();
        }
    
Methods Summary
public voidclose()

        try {
            mBufferedOutputPassedStream.close();
            mBufferedOutputFailedStream.close();
            mBufferedOutputNoresultStream.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    
public voidfailed(java.lang.String layout_file)

        try {
            mBufferedOutputFailedStream.write(layout_file.getBytes());
            mBufferedOutputFailedStream.write('\n");
            mBufferedOutputFailedStream.flush();
        } catch(Exception e) {
            e.printStackTrace();
        }
    
public voidnoresult(java.lang.String layout_file)

        try {
            mBufferedOutputNoresultStream.write(layout_file.getBytes());
            mBufferedOutputNoresultStream.write('\n");
            mBufferedOutputNoresultStream.flush();
        } catch(Exception e) {
            e.printStackTrace();
        }
    
public voidpassed(java.lang.String layout_file)

        try {
            mBufferedOutputPassedStream.write(layout_file.getBytes());
            mBufferedOutputPassedStream.write('\n");
            mBufferedOutputPassedStream.flush();
        } catch(Exception e) {
            e.printStackTrace();
        }