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

TestBase

public class TestBase extends Object

Fields Summary
protected final String
TAG
protected RenderScript
mRS
protected Allocation
mInPixelsAllocation
protected Allocation
mInPixelsAllocation2
protected Allocation
mOutPixelsAllocation
protected ImageProcessingActivity2
act
Constructors Summary
Methods Summary
public final voidcreateBaseTest(ImageProcessingActivity2 ipact, android.graphics.Bitmap b, android.graphics.Bitmap b2, android.graphics.Bitmap outb)

        act = ipact;
        mRS = ipact.mRS;

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

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

    
public voiddestroy()

    
public voidexitBenchmark()

    
public voidfinish()

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


    // Override to use UI elements
        
    
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 voidsetupBenchmark()

    
public voidupdateBitmap(android.graphics.Bitmap b)

        mOutPixelsAllocation.copyTo(b);