NavigationBar : Customization

Allows user to customize navigation bar.

Features :
- Choose from 1-6 # of buttons
- Re-arrange / assign buttons

Patchset 1  : Initial commit
Patchset 2  : Resize side drawables to avoid requestRelayout() [HACK]
Patchset 3  : Added extras to intent to explicity change state
Patchset 4  : New drawables (David Tonder)
              Fix button animation
Patchset 5  : Switch button layout to stock dimensions
              Adjust padding according to new layout
Patchset 6  : Change "Blank" to "Empty" where applicable
Patchset 7  : Lowercase key names (Will require a wipe of the database entry)
              Fix issue where during edit mode if screen turns off, layout gets distorted on restore
              Add "save" extra to intent to clarify whether to save the layout or not
Patchset 8  : Rebase for 4.0.4
Patchset 9  : Fix padding / lowLights
Patchset 10 : Minor fixes
Patchset 11 : Fix issue with losing edit mode after theme changes
	    : Fix whitespace issue
            : Fix low light gravity in landscape
            : Add regular menu button option (icons by DvTonder)
	    : Localize resources
            : Fix padding issue
Patchset 12 : Hide searchbutton like others on lockscreen
Patchset 13 : Fix lowLight padding
Patchset 14 : Code cleanup
Patchset 15 : Minor edit

Change-Id: If24a4413f99b8b4661ffd7ad9565c005fa22d7ba
More missing OMX

Conflicts:

	include/media/stagefright/OMXCodec.h

cherry-pick fro jb1tz
More verbose debugging
Support deprecated freeAllBuffersExceptCurrentLocked()

Borrowed from tpruvot

Conflicts:

	libs/gui/SurfaceTexture.cpp

cherry-pick from jb1tz
Issue: Foreground activity performs [Resume] and [Pause] when any process died in sleep mode.
Temporarily quiet our opengl rewrite
Overlay: add a warning on unhandled color formats

Conflicts:

	libs/ui/Overlay.cpp

	modified:   libs/ui/Overlay.cpp
Revert "temporary: disable hwui for launchers and systemui"

Conflicts:

	core/java/android/app/ActivityThread.java

	modified:   core/java/android/app/ActivityThread.java
Temporarily quiet our opengl rewrite
Allow theming of framework UI elements.

As the theme engine works by replacing resources while loading the APK,
framework UI couldn't be themed so far. Workaround that by manually
creating a com.android.systemui package context and using that for
showing the UI. This attempt is a bit hacky, but should be safe as
a) systemui should always be present
b) if it isn't, we fall back to no theming

Change-Id: I644e2e8d7d4abf07bae639b606197d691f16adac

Applying theming to more framework items.

All dialogs and notifications should be covered now.

Change-Id: If93f81991361165a00b5b1b03ffc323e3ab42c0b

Conflicts:

	policy/src/com/android/internal/policy/impl/SimUnlockScreen.java

	modified:   policy/src/com/android/internal/policy/impl/SimUnlockScreen.java
Camera: Handle error event from HAL + burst mode code clean up.

(a)Error mapping is not proper so change the error type from UNKNOWN_ERROR
   to CAMERA_ERROR_UNKNOWN.

(b)Ccde clean up for burst mode.

Change-Id: I9ba351eba9526f0f274f52b12003b7ea0aae12be
Only play sound effects if stream is not muted.

Calling playSoundEffect() currently results in audio data being sent to
audioflinger regardless of whether or not the system stream is muted.

Although this already produces no audio, when nothing else is using the
audio system it does have the less desirable effect of waking up the
hardware to play 3+ seconds of silence before audioflinger goes idle
again - probably a waste of power.

Change-Id: I81a6cb17efe4036285f4af0567c3f0a31dda1152
Signed-off-by: David Overton <therealdave32@gmail.com>
EGL: Fix reporting of incorrect extension string

When asking EGL for it's extension string it will return the string from
the Android software implementation and not the string associated with
the GPU thereby preventing well behaving software from utilizing such
features as GPU fence sync objects.

Change-Id: I78ed7a94d4322164331e52ab08c9b8c6163a3c40

Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
Revert "Added goToDeepSleep procedure."
This is incomplete

This reverts commit 4cb178ac8dc73d394088937e65d10275b5c9ab42.