MotionEvent#getDevice can return null when the device is unknown. Change-Id: I902a96300307e3b2d3b324a2998e470254388e27