Camera: add Smart capture

add back smart capture feature. Recoded and addapt to the
new aosp camera. This time each camera and video can set it
seperatly.

drawables by kbeezie

Change-Id: I87a895c21c53d11cab573df4fd76f1628ca03b1a

Conflicts:
	res/values/slim_strings.xml
Camera: ensure that camera exists to fix possible NPE

on keyguard it can happen that the camera already is released
but GET_PARAMATERS is accidentaly called after that
check for mCamera != null to avoid this scenario

Change-Id: I663674b516d9b9bd916456f6341ec2eecc33b299
Camera: add True View back

like smart capture recoded partly and changed to new aosp camera

drawables by kbeezie

Change-Id: I2e0a29a34da09eabad281c8173e42533ac580bb8
The cropped picture can't be saved if it is in /extsd

Add WRITE_MEDIA_STORAGE to access the non-primary storage

Change-Id: Ie245171e9e1e60e84a3cd17ce06793918152044c
Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
Camera: Add a GPS indicator

This will add a GPS indicator to the preview of the photo camera.
The indicator is placed as an overlay at the upper top corner
of the photo camera preview.

It shows one of three icons depending on the GPS state:
    - acquiring fix
    - GPS fix acquired
    - GPS disallowed in system settings

changes to 4.2.2 version
    - gps icon animates during getting a fix
    - show on video mode as well

Drawables by blunden.

Change-Id: I2f91d6aa12b2629f2c19c564cf646dcc385a7ab9
Camera: add color effects

drawables by kbeezie

Change-Id: I389d621e73bd14e6c85c62edc75c93b5282d4c3a
Camera: finish Settings in new google style

for whatever reason google missed to change the video camera
settings into the same conistent PIE style like camera. As well
with the comming features it is a bit complicated to add so much
icon in one PIE layer

This commit does:
- most common features are in first level
- second level more options are now in real more options which are less common
- settings is now a new 3rd PIE level where only real settings are included which
  the user normal just set one time
- Video settings completly overworked and have now same PIE style like
  Camera and no oldschool popup menu style.

Change-Id: I026099d3c530fe9a3d4dc877ff09e2896c0abdb3
Camera: add jpeg quality setting

Change-Id: I812203e6a020d31ac848fe8e5032fa53ac950239
Camera: add gallery shortcut into cameraswitcher

Change-Id: I0c7c93250a81b7c5e4fe65eb9515bf9d1f08af8c
Camera: seperate color effect for video and camera

more user friendly

Change-Id: I45443ac13b8ce7e6ca98f2c75e184579b2de9d9c
Camera: add jpeg quality option for video snapshots

and keep them seprate to the camera option

Change-Id: I74ee9e796e6fadb875ebe2a7dea955e6af97b5b2
Camera: Fix camcorder crash during pause and resume

When camcorder is suspended in background, if it receives resume
and pause event in very short interval, crash will happen.
After receiving resume event, the onresume method will be called,
and it will start another thread for starting preview. And soon,
the main thread receives pause event, the onpause method which will
close camera is called.
There will be a racing between the main thread and start preview
thread. If close camera get done first, crash will be observed.
To avoid the racing, the close camera operation should wait for the
start preview operation, and the join method is used here for
synchronization.

CRs-Fixed: 526007
Change-Id: Idf6a8660378bf1a65af1f5194a35d30822f1dcf6
Remove Gallery2 duplicate strings
Merge remote-tracking branch 'ls/jb3'; commit 'HEAD' into HEAD