FileDocCategorySizeDatePackage
UT_unsigned.javaAPI DocAndroid 5.1 API1706Thu Mar 12 22:22:54 GMT 2015com.android.rs.test_compat

UT_unsigned

public class UT_unsigned extends UnitTest

Fields Summary
private android.content.res.Resources
mRes
Constructors Summary
protected UT_unsigned(RSTestCore rstc, android.content.res.Resources res, android.content.Context ctx)

        super(rstc, "Unsigned", ctx);
        mRes = res;
    
Methods Summary
private booleaninitializeGlobals(ScriptC_unsigned s)

        short pUC = s.get_uc();
        if (pUC != 5) {
            return false;
        }
        s.set_uc((short)129);

        long pUI = s.get_ui();
        if (pUI != 37) {
            return false;
        }
        s.set_ui(0x7fffffff);

        return true;
    
public voidrun()

        RenderScript pRS = RenderScript.create(mCtx);
        ScriptC_unsigned s = new ScriptC_unsigned(pRS);
        pRS.setMessageHandler(mRsMessage);
        if (!initializeGlobals(s)) {
            failTest();
        } else {
            s.invoke_unsigned_test();
            pRS.finish();
            waitForMessage();
        }
        pRS.destroy();