FileDocCategorySizeDatePackage
AndroidGraphicsTests.javaAPI DocAndroid 1.5 API1867Wed May 06 22:42:02 BST 2009com.android.layoutlib.bridge

AndroidGraphicsTests

public class AndroidGraphicsTests extends TestCase

Fields Summary
Constructors Summary
Methods Summary
protected voidsetUp()

        super.setUp();
    
protected voidtearDown()

        super.tearDown();
    
public voidtestMatrix()

        Matrix m1 = new Matrix();
        
        assertFalse(m1.isIdentity());
        
        m1.setValues(new float[] { 1,0,0, 0,1,0, 0,0,1 });
        assertTrue(m1.isIdentity());
        
        Matrix m2 = new Matrix(m1);
        
        float[] v1 = new float[9];
        float[] v2 = new float[9];
        m1.getValues(v1);
        m2.getValues(v2);
        
        for (int i = 0 ; i < 9; i++) {
            assertEquals(v1[i], v2[i]);
        }
    
public voidtestPaint()

        _Original_Paint o = new _Original_Paint();
        assertNotNull(o);

        Paint p = new Paint();
        assertNotNull(p);
    
public voidtextTextPaint()

        TextPaint p = new TextPaint();
        assertNotNull(p);