Implement ShadowMotionEvent.getPointerIdBits.

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

Closes #1394.
Add missing constructor for ShadowResourceCursorAdapter.

Closes #1393.