Android: fix rotation vector exception on some Samsung devices.

On some Samsung devices (e.g. Galaxy Note 3 and Galaxy S4) the
SensorManager.getRotationMatrixFromVector() appears to throw an
exception when the passed rotation vector has length > 4.
To fix this a truncated version of the rotation vector is passed
to getRotationMatrixFromVector(). There is no loss of information
as the latter method only uses the first 4 elements anyway.

BUG=335298

Review URL: https://codereview.chromium.org/143993010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246398 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 246398