Implement ShadowMotionEvent.getPointerIdBits.

This makes ViewGroup.dispatchTouchEvent correctly propagate the motion
events down to their children.

Closes #1394.