fix potential memory leak

use delete before return

Change-Id: I5449ad90bb6910f057bd825b722c9803a7343c34
Remove cm clock code
Add center clock. Thx aokp Thx vanir team

Squashed commit of the following:

commit 15159b30fa44e575073617814918734dcee0e7d6
Author: nuclearmistake <nuclearmistake@gmail.com>
Date:   Mon Oct 29 13:09:26 2012 -0400

    Unbroke center clock.

    Removed fail inheritance, making the clock on the expanded notifications bar, the right clock, and the center clock, all instances of Clock. Internally, behavior is regulated based on the tags given to the individual clocks in the appropriate layout files.

    Change-Id: Ia87553a06217ab1b8f6cb06247e3a91c74c9cae0

commit d1592b1dfba4a699e5c73394dd164bd824f69ddb
Author: nuclearmistake <nuclearmistake@gmail.com>
Date:   Fri Sep 14 09:52:02 2012 -0400

    Statusbar Clock Mods (1/2)

    commit b241b11a0224cbefe1f4e786c31f7b3b4152096b
    Author: nuclearmistake <nuclearmistake@gmail.com>
    Date:   Fri Sep 14 09:49:45 2012 -0400

        actually builds and works

        Change-Id: Ic2cbbfae2c3d0c466b65ae1d0addc06d551d4118

    commit 4fd6fc8128c3d51f4987f10aaee153fa96b9f659
    Author: Adam Fisch <adammfisch@gmail.com>
    Date:   Sat Sep 8 00:44:59 2012 -0400

        SystemUI: Clock - right/center/off (Part 1 of 2)

        Allow for clock to be placed to the right/centered/off

        Ported from AOKP clock mod by Adam Fisch
        http://gerrit.sudoservers.com/#/c/1963/

        Change-Id: Ia06708f4ba7629d76d6625b87b22cca999d01e1b
        Signed-off-by: Desterly <d3s7royer@gmail.com>

        Conflicts:

        	core/java/android/provider/Settings.java
        	packages/SystemUI/res/layout/status_bar_expanded_header.xml
        	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
        	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java

    Change-Id: Ia51e59ff12e7d50cf82734d158255153573065f5

Change-Id: Id11848757aae484680194fafb8cc63db35f06840

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout/status_bar.xml
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java
Make Clock stfu in logcat... no more debugging needed

it works like a bauss.

Change-Id: Ia314849e6996d4bbd0f644202ab2f179dddeeef5
Click a clock -> deskclock.  click a date -> calendar

Change-Id: I04559ec283fc827ed7b63fc2072a655eaccd8ce1

Conflicts:
	packages/SystemUI/res/values/styles.xml
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java
Fix derp
Fixed typo in Recreating an Activity documentation

The word although was spelled as althought. This is now fixed.
Signed-off-by: Gulshan Singh <gsingh2011@gmail.com>

Change-Id: Ia28a081bf9d8ab8be831c685cbfa4ddad3618a87
Fix logging typos in GpsLocationProvider

Change-Id: Ibf12947f3758defee990fbf685323334b8d1eeda
Signed-off-by: Magnus Eriksson <eriksson.mag@gmail.com>
Framework: Add option to always show battery status on lockscreen (1/2)

Based on the feature by burnsra in CM7

Authored by Blunden
Tweaked by DvTonder

Screenshot: https://dl.dropbox.com/u/50993944/Screenshot_2012-08-03-08-47-10.png

Patchset 1-8: Initial code
Patchset 9  : Minor tweaks

Change-Id: I642da4dcd82a776a74d77031d37acc76f97b25af

Conflicts:
	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java
	policy/src/com/android/internal/policy/impl/KeyguardUpdateMonitor.java

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/symbols.xml
Fix aliasing and C++11 issues.

frameworks/base: Fix various aliasing violations

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

frameworks/base: Fix aliasing violations

Fix violations of strict aliasing rules

Change-Id: Ia83db6a0be18f52e8f274c581c3b42f031b39247
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

frameworks/base: Fix build in ISO C++11 mode

Fix various incompatibilities with ISO C++11:
- Assumption that char16_t is defined to uint16_t
- constexpr usage
- macro constructs that could be interpreted as string literals
- enum typesafety

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Signed-off-by: Evan McClain <aeroevan@gmail.com>

Conflicts:
	cmds/stagefright/SineSource.h
	core/jni/android/graphics/TextLayoutCache.cpp
	core/jni/android_util_Binder.cpp
	core/jni/android_view_KeyCharacterMap.cpp
	libs/gui/SurfaceTexture.cpp
	media/libstagefright/OMXCodec.cpp
	services/audioflinger/AudioResampler.h
	core/jni/android_server_BluetoothEventLoop.cpp

Change-Id: I185b97f07e89bed93b92546bc0fdf895bd0cc92d

Conflicts:

	core/jni/android/graphics/TextLayoutCache.cpp
	core/jni/android/graphics/TextLayoutCache.h
	core/jni/android_os_FileUtils.cpp
	core/jni/android_server_BluetoothEventLoop.cpp
	core/jni/android_view_Surface.cpp

Signed-off-by: Stevespear426 <stephen.k.spear@gmail.com>
Change-Id: If0a59e0bd6a89025dd7e0a0efaaf8d55a952ef34
Optimized png