Camera2: Fix concurrency issues with camera messages

Without this, multiple threads are
trying to access same data and
resulting in crash.

( cherrypicked from commit d11040c561e9add30768947aa93235ff08de03b1 )

Change-Id: Ib09950d6640afcd7962cba9ea5385d778f022abe
CRs-Fixed: 542706
Camera2: Check mCameradevice before setting skinToneEnhancement

Null pointer exception in app is observed when we open camera
and immediately press home/back button. This is because
mCameradevice will be null by the time handler thread gets a
message to setskinToneEnhancement parameter.

( cherrypicked from commit 06fee777df529fa53ac5c5305e7324ad1baf085d )

Change-Id: I7f216a11a29b6b205be4c2d0ca8f1c346284c294
CRs-Fixed: 547522

Conflicts:
	src/com/android/camera/PhotoModule.java
Camera2: Synchronize access to camera parameters

- Concurrent access between the main handler
  thread and the camera start-up thread w.r.t.
  'mParameters' is possible. This change will
  synchronize the two threads in order to avoid
  any exceptions.

( cherrypicked from commit e988411c441410f270fe0b98dfd0d9b1f033503f )

Change-Id: I290452723b3687eba5240f451cc94aef175a9fc4
CRs-Fixed: 539634

Conflicts:
	src/com/android/camera/PhotoModule.java
Update settings pref values when BSM is not auto.

When BSM mode is set to a value other than auto, flash mode, white
balance and few more settings will not be based on user preferred
settings. So mParameter object will have default values. Updating
those values in the list will over write the preferences.
To preserve settings from preferences, we need to pass the same
values.

CRs-Fixed: 573584
Change-Id: Ic62dc537250468f189374fae9a897ee46d40e3a1

Conflicts:
	src/com/android/camera/PhotoModule.java
Camera2: Added pause button in Camcorder

- Added pause button in camcorder app.so that user pause
  recording and resume later which results in a single
  recorded clip.
CRs-Fixed: 587051

Change-Id: I2a7d8af7fcea74fe8af62c44119c3c1fa0c13e85
Camera: Disable livesnapshot for 4kx2k video

1) Since livesnapshot is not supported for 4kx2k video size,
   disable it from the UI.
2) Revert parts of commit 2c309499e60120ec513f51bfab02e7d54237af0a
   to get 4kx2k video recording working.

Change-Id: I837f242d505d2c2f07aeb33d81c2560f5b645a39
Camera2: Crowdin fixes

Change-Id: I7ad3baeb8645aaba75643886b23ff5a780bbd867

Conflicts:
	res/values-nl/qcomstrings.xml
	res/values-ru/cm_strings.xml