FileDocCategorySizeDatePackage
TestBase.javaAPI DocAndroid 5.1 API4197Thu Mar 12 22:22:54 GMT 2015com.android.rs.image

TestBase

public class TestBase extends Object

Fields Summary
protected final String
TAG
protected android.renderscript.RenderScript
mRS
protected android.renderscript.Allocation
mInPixelsAllocation
protected android.renderscript.Allocation
mInPixelsAllocation2
protected android.renderscript.Allocation
mOutPixelsAllocation
protected ImageProcessingActivity
act
Constructors Summary
Methods Summary
public final voidcreateBaseTest(ImageProcessingActivity ipact)

        act = ipact;
        mRS = ipact.mRS;
        mRS.setMessageHandler(new MessageProcessor(act));

        mInPixelsAllocation = ipact.mInPixelsAllocation;
        mInPixelsAllocation2 = ipact.mInPixelsAllocation2;
        mOutPixelsAllocation = ipact.mOutPixelsAllocation;

        createTest(act.getResources());
    
public voidcreateTest(android.content.res.Resources res)

    
public voiddestroy()

        mRS.setMessageHandler(null);
    
public voidexitBenchmark()

    
public voidfinish()

        mRS.finish();
    
public voidonBar1Changed(int progress)

    
public booleanonBar1Setup(android.widget.SeekBar b, android.widget.TextView t)

        b.setVisibility(View.INVISIBLE);
        t.setVisibility(View.INVISIBLE);
        return false;
    
public voidonBar2Changed(int progress)

    
public booleanonBar2Setup(android.widget.SeekBar b, android.widget.TextView t)

        b.setVisibility(View.INVISIBLE);
        t.setVisibility(View.INVISIBLE);
        return false;
    
public voidonBar3Changed(int progress)

    
public booleanonBar3Setup(android.widget.SeekBar b, android.widget.TextView t)

        b.setVisibility(View.INVISIBLE);
        t.setVisibility(View.INVISIBLE);
        return false;
    
public voidonBar4Changed(int progress)

    
public booleanonBar4Setup(android.widget.SeekBar b, android.widget.TextView t)

        b.setVisibility(View.INVISIBLE);
        t.setVisibility(View.INVISIBLE);
        return false;
    
public voidonBar5Changed(int progress)

    
public booleanonBar5Setup(android.widget.SeekBar b, android.widget.TextView t)

        b.setVisibility(View.INVISIBLE);
        t.setVisibility(View.INVISIBLE);
        return false;
    
public booleanonSpinner1Setup(android.widget.Spinner s)

        s.setVisibility(View.INVISIBLE);
        return false;
    
public voidrunTest()

    
public final voidrunTestSendMessage()

        runTest();
        mRS.sendMessage(0, null);
    
public voidsetupBenchmark()

    
public voidupdateBitmap(android.graphics.Bitmap b)

        mOutPixelsAllocation.copyTo(b);