use of android.view.InputEvent in project android_frameworks_base by DirtyUnicorns.
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;
}
use of android.view.InputEvent in project android_frameworks_base by DirtyUnicorns.
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;
}
use of android.view.InputEvent in project android_frameworks_base by AOSPA.
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;
}
use of android.view.InputEvent in project android_frameworks_base by AOSPA.
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;
}
use of android.view.InputEvent in project android_frameworks_base by AOSPA.
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;
}
Aggregations