FileDocCategorySizeDatePackage
InstrumentationUiAutomatorBridge.javaAPI DocAndroid 5.1 API1794Thu Mar 12 22:22:08 GMT 2015com.android.uiautomator.core

InstrumentationUiAutomatorBridge

public class InstrumentationUiAutomatorBridge extends UiAutomatorBridge
hide

Fields Summary
private final android.content.Context
mContext
Constructors Summary
public InstrumentationUiAutomatorBridge(android.content.Context context, android.app.UiAutomation uiAutomation)

        super(uiAutomation);
        mContext = context;
    
Methods Summary
public android.view.DisplaygetDefaultDisplay()

        WindowManager windowManager = (WindowManager)
                mContext.getSystemService(Service.WINDOW_SERVICE);
        return windowManager.getDefaultDisplay();
    
public intgetRotation()

        return getDefaultDisplay().getRotation();
    
public longgetSystemLongPressTime()

        return ViewConfiguration.getLongPressTimeout();
    
public booleanisScreenOn()

        PowerManager pm = (PowerManager)
                mContext.getSystemService(Service.POWER_SERVICE);
        return pm.isScreenOn();