Search in sources :

Example 1 with InputEvent

use of android.view.InputEvent in project android_frameworks_base by ResurrectionRemix.

the class TvView method dispatchTouchEvent.

@Override
public boolean dispatchTouchEvent(MotionEvent event) {
    if (super.dispatchTouchEvent(event)) {
        return true;
    }
    if (DEBUG)
        Log.d(TAG, "dispatchTouchEvent(" + event + ")");
    if (mSession == null) {
        return false;
    }
    InputEvent copiedEvent = event.copy();
    int ret = mSession.dispatchInputEvent(copiedEvent, copiedEvent, mFinishedInputEventCallback, mHandler);
    return ret != Session.DISPATCH_NOT_HANDLED;
}
Also used : InputEvent(android.view.InputEvent)

Example 2 with InputEvent

use of android.view.InputEvent in project android_frameworks_base by ResurrectionRemix.

the class TvView method dispatchGenericMotionEvent.

@Override
public boolean dispatchGenericMotionEvent(MotionEvent event) {
    if (super.dispatchGenericMotionEvent(event)) {
        return true;
    }
    if (DEBUG)
        Log.d(TAG, "dispatchGenericMotionEvent(" + event + ")");
    if (mSession == null) {
        return false;
    }
    InputEvent copiedEvent = event.copy();
    int ret = mSession.dispatchInputEvent(copiedEvent, copiedEvent, mFinishedInputEventCallback, mHandler);
    return ret != Session.DISPATCH_NOT_HANDLED;
}
Also used : InputEvent(android.view.InputEvent)

Example 3 with InputEvent

use of android.view.InputEvent in project android_frameworks_base by ResurrectionRemix.

the class TvView method dispatchTrackballEvent.

@Override
public boolean dispatchTrackballEvent(MotionEvent event) {
    if (super.dispatchTrackballEvent(event)) {
        return true;
    }
    if (DEBUG)
        Log.d(TAG, "dispatchTrackballEvent(" + event + ")");
    if (mSession == null) {
        return false;
    }
    InputEvent copiedEvent = event.copy();
    int ret = mSession.dispatchInputEvent(copiedEvent, copiedEvent, mFinishedInputEventCallback, mHandler);
    return ret != Session.DISPATCH_NOT_HANDLED;
}
Also used : InputEvent(android.view.InputEvent)

Example 4 with InputEvent

use of android.view.InputEvent in project android_frameworks_base by ResurrectionRemix.

the class TvView method dispatchKeyEvent.

@Override
public boolean dispatchKeyEvent(KeyEvent event) {
    if (super.dispatchKeyEvent(event)) {
        return true;
    }
    if (DEBUG)
        Log.d(TAG, "dispatchKeyEvent(" + event + ")");
    if (mSession == null) {
        return false;
    }
    InputEvent copiedEvent = event.copy();
    int ret = mSession.dispatchInputEvent(copiedEvent, copiedEvent, mFinishedInputEventCallback, mHandler);
    return ret != Session.DISPATCH_NOT_HANDLED;
}
Also used : InputEvent(android.view.InputEvent)

Example 5 with InputEvent

use of android.view.InputEvent in project android_frameworks_base by DirtyUnicorns.

the class TvView method dispatchTouchEvent.

@Override
public boolean dispatchTouchEvent(MotionEvent event) {
    if (super.dispatchTouchEvent(event)) {
        return true;
    }
    if (DEBUG)
        Log.d(TAG, "dispatchTouchEvent(" + event + ")");
    if (mSession == null) {
        return false;
    }
    InputEvent copiedEvent = event.copy();
    int ret = mSession.dispatchInputEvent(copiedEvent, copiedEvent, mFinishedInputEventCallback, mHandler);
    return ret != Session.DISPATCH_NOT_HANDLED;
}
Also used : InputEvent(android.view.InputEvent)

Aggregations

InputEvent (android.view.InputEvent)27 Message (android.os.Message)7 SuppressLint (android.annotation.SuppressLint)1 Activity (android.app.Activity)1 Bitmap (android.graphics.Bitmap)1 Uri (android.net.Uri)1 SslError (android.net.http.SslError)1 FragmentActivity (android.support.v4.app.FragmentActivity)1 KeyEvent (android.view.KeyEvent)1 View (android.view.View)1 ClientCertRequest (android.webkit.ClientCertRequest)1 ConsoleMessage (android.webkit.ConsoleMessage)1 DownloadListener (android.webkit.DownloadListener)1 Callback (android.webkit.GeolocationPermissions.Callback)1 HttpAuthHandler (android.webkit.HttpAuthHandler)1 JsPromptResult (android.webkit.JsPromptResult)1 JsResult (android.webkit.JsResult)1 PermissionRequest (android.webkit.PermissionRequest)1 SslErrorHandler (android.webkit.SslErrorHandler)1 ValueCallback (android.webkit.ValueCallback)1