From 21da0ffff1424d2792564e785c981d3978c6450e Mon Sep 17 00:00:00 2001 From: Atif Niyaz Date: Fri, 28 Jun 2019 13:22:51 -0700 Subject: Remove handling of EV_MSC/MSC_TIMESTAMP in Input MSC_TIMESTAMP is not being utilized anymore to report timestamps from drivers. MSC_TIMESTAMP and all other utilizations of it are removed. Bug: 119840121 Test: No crashes happening after building and running on flame Change-Id: I4d9bec3d763bee3583c351b4240f145a21711e33 --- services/inputflinger/InputClassifierConverter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/inputflinger/InputClassifierConverter.cpp') diff --git a/services/inputflinger/InputClassifierConverter.cpp b/services/inputflinger/InputClassifierConverter.cpp index f82c8ef1fd..fc8c7c39f9 100644 --- a/services/inputflinger/InputClassifierConverter.cpp +++ b/services/inputflinger/InputClassifierConverter.cpp @@ -358,6 +358,7 @@ common::V1_0::MotionEvent notifyMotionArgsToHalMotionEvent(const NotifyMotionArg event.displayId = args.displayId; event.downTime = args.downTime; event.eventTime = args.eventTime; + event.deviceTimestamp = 0; event.action = getAction(args.action & AMOTION_EVENT_ACTION_MASK); event.actionIndex = getActionIndex(args.action); event.actionButton = getActionButton(args.actionButton); @@ -375,7 +376,6 @@ common::V1_0::MotionEvent notifyMotionArgsToHalMotionEvent(const NotifyMotionArg event.pointerProperties = pointerProperties; event.pointerCoords = pointerCoords; - event.deviceTimestamp = args.deviceTimestamp; event.frames = convertVideoFrames(args.videoFrames); return event; -- cgit v1.2.3-59-g8ed1b