Fix some leaks
Make sure focus points are valid
Merge pull request #20 from adneal/focuspoints

Make sure focus points are valid
Merge pull request #19 from adneal/plumber

Fix some leaks
Fix bad import

Change-Id: I5a31b017b64dc9206ae61f9c009807b608ec7de9
PicSphere: Hack the hack

cpfind uses ./ instead of the actual image path.
It causes a few troubles on devices not using multiuser,
or simply not having emulated storage. We just hardcode
/sdcard/ for now, and rely on the system backcompat.
This is highly ugly, but it's 2am and I just want this
fixed :)

Change-Id: I1a04a85d86957611c3b787ef877f24fa3d5edcec
CameraManager: Turn off preview when shooting on old devices

Old devices need their preview to be turned off
when they shoot. I'll need your help to build a list
of all the devices that need this behavior :)

Change-Id: Iaf76a3abaaffd9821bbef301ab2b812e46112ba2
HudRings: Fix exposure and focus point maths

Change-Id: I4fcdf91733a042d982f644c1693330795859c2be
Optimize app startup and add Profiler class

Removed unneeded sounds that were preloaded,
as well as a few unneeded things.
Added a profiler class to log time used by certain
parts of the code.
Fixes a bug also where the app would enter
an infinite loop of NPE in CameraApplication
when the app crashes before mCamManager is
set.

Change-Id: If41b9c8cd0ae075084508d66ee4b4f50451cfd97
Upstream changes