Code example for Context

Methods: getMainLoopergetSystemService

0
    private TouchExplorer mTouchExplorer;
 
    private int mTouchscreenSourceDeviceId;
 
    public AccessibilityInputFilter(Context context, AccessibilityManagerService service) {
        super(context.getMainLooper());
        mContext = context;
        mAms = service;
        mPm = (PowerManager)context.getSystemService(Context.POWER_SERVICE);
    } 
 
    @Override 
    public void onInstalled() { 
        if (DEBUG) {
            Slog.d(TAG, "Accessibility input filter installed.");
        } 
        mTouchExplorer = new TouchExplorer(this, mContext, mAms);
        super.onInstalled(); 
    }