Camera2: Fix crash on cameras with 6mp 16:9 resolution

Change-Id: I54c8a8245905cc7dc5e09fac6a3edf55f839f4f9
Camera2: fix camera has stopped" after long press camera key

When Long press camera key to open camera, mRootView has not
been created in photoModule.init.

mRootView must be created before using it.

CRs-Fixed: 725790

Change-Id: I70cd4ac911c79a15c52d47147414bf1fcee65b53
Camera2: correct image size recorded in media provider db

Photos taken in camcorder can't be previewed on PC via MTP mode. The
root cause is that, the actual image file size does not always match
the _size column in media provider database. During the saving process,
EXIF data are rewritten, but the size sent to media provider is not
updated accordingly.

Record bytes written in ExifOutputStream and OrderedDataOutputStream so
that after rewritting, the correct image size could be sent to media
provider.

Change-Id: I74d91e86d712c121eb50daecaf879ab4f5be97fc
CRs-Fixed: 711522
Automatic translation import

Change-Id: I392a4e2fd9f2ed6451bfa87cb859ef20c5667293
Merge pull request #1 from CyanogenMod/cm-11.0

updates