FileDocCategorySizeDatePackage
PowerTest.javaAPI DocAndroid 5.1 API3791Thu Mar 12 22:22:44 GMT 2015com.android.statusbartest

PowerTest

public class PowerTest extends TestActivity

Fields Summary
private static final String
TAG
android.os.IPowerManager
mPowerManager
int
mPokeState
android.os.IBinder
mPokeToken
android.os.Handler
mHandler
android.os.PowerManager
mPm
PowerManager.WakeLock
mProx
private Test[]
mTests
Constructors Summary
Methods Summary
protected java.lang.Stringtag()


    
       
        return TAG;
    
protected Test[]tests()

        mPowerManager = IPowerManager.Stub.asInterface(ServiceManager.getService("power"));
        mPm = (PowerManager)getSystemService("power");
        mProx = mPm.newWakeLock(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK, "PowerTest-prox");
        
        return mTests;