Add missing software audio codecs for OMAP devices.

Fixes http://code.google.com/p/cyanogenmod/issues/detail?id=5290.
Fix wrong 'USB debugging connected' notify color

Change-Id: I8ad4ce8652325e2e10dd529a934c8928ee0b149c
Revert "Fix wrong 'USB debugging connected' notify color"

This reverts commit 6d70c41047314e8753b373bc92ae675bf580b641
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
Fix for disappearing status bar power widgets after changing theme

Backported from CM9:
Clean up existing widgets before creating new ones to prevent
dangling references to the previous dialog's context, which
broke the insertion of a new widget set into recently created
ExpandedDialog views.

Change-Id: I16a3bab85bcc07dcdb3b189809f5dae528eff66a
Make absolutely sure the theme change receivers are only unregistered if
they were registered before.
Manage buttons inside of PowerWidget instead of a static map.

Fixes disappearing widgets on theme change due to clashing accesses to
the static map by the old and the new widget instance.

Also convert static to member variables at a few other places.

Change-Id: I42b4ad02c4eb8b57a2f4cf51a31148c4b0546b81
add option to disable volume key beep sounds (2/2)

Change-Id: I35d940b6c37fe4125dcd6d6160ea3845f3f43fcd
Camera: Allow focus sound muting (1/3)

Allows muting of focus sound for silent camera operation
if shutter is also muted.

Change-Id: Iacc911df6dc279be648a15ded1b7a7ac066be0a8
Support for transparent statusbar.

This patch enables transparent statusbar in themes that support it,
and allows a different style for statusbar in 'date mode'.

There won't any visible changes to users who don't install these themes.

Patch 3: Now, The date is in the center of the status bar for better appearance.
Patch 4: Add mdpi devices

Change-Id: I22867350ce76c3e2793ca73850dcf3f35485ffad
Toggling the flashlight from the lock/pattern/sim unlock screens

by long pressing the HOME button (1/2)

Change-Id: I95c987f1908513eb7d91039ba66e735fba4551c2
Added option to hide alarm icon in status bar (1/2)

Change-Id: I2ad55454f29c104bcd6ab8e0f26ad8dc0924f03b

Fixed: Added option to hide alarm icon in status bar (1/2)

Change-Id: Icbdac9957bc517bd4a615b588a9d3c9b216afa6e
Added option to center Clock in Status Bar and set color (2/2)

Change-Id: I6e1f0cc747e14780ef5d90ae60ce39fd06fb58d4
Allow using PLMN and SPN text as part of Custom Carrier text (1/2)

  When the 'Custom carrier label' option is used this change supports
  the following special character sequences:
   - $n = replaced with a newline when displayed
   - $d = replaced with the 'default' carrier text when displayed
   - $p = replaced with the 'plmn' text when displayed
   - $s = replaced with the 'spn' text when displayed

   Here is an example. Let's assume that the plmn text is "TW Mobile" and
you enter
   this string in the custom text field:
     My DHD$n$p
   The the on the Status Bar it will show up on 2 lines like this:
     My DHD
     TW Mobile

   Note that when using a lockscreen that displays custom text any '$n' is
converted
   to a space instead of a newline in order to function in the same way as
other
   carrier text on that screen, such as the Default text. So the above
example would
   look like this on 1 line:
     My DHD TW Mobile

pushing as a fabor for Chezebel (Brian Larsen)

Change-Id: If7034665aca7c5528095c9993964f2e5fbd349f6
esp_mod: Personalización de la barra de estado (1/2)

Change-Id: Ie1f6be4950c5b9f6657d1c8104a5cf30dfee079e
esp-mod: Limpieza en centrado de reloj de la barra de estado

Change-Id: I9d3c8e890f76a91042889893779c3170fbaf8707
Close notification view when swiping away the last notification.

If the user swiped away all swipable notifications, chances are high he
expanded the notification area just for doing so.
Apply haptic feedback to all buttons, not just the sound button.

The feedback for all other buttons is significantly weaker. I've also
decreased strength of sound button feedback, as it was too strong.

Change-Id: Iaee471b29b306e9ebcc6a81799f7e36872951002
Fix lockscreen button behaviour.

Unlike the other buttons, the lockscreen disable button keeps the state
(disabled/enabled) in it instead of just displaying it, so in order to
make it reliable, a few things needed to be fixed:

- The actual lockscreen blocker was a member variable while the state
  information was static. This could lead to the two variables getting
  out of sync.
- On orientation or theme change, all widgets were destroyed and
  recreated. If that happened while the lockscreen was disabled, the
  blocker instance was lost, thus, there was no way to enable the
  lockscreen again. Fix that by only recreating the views, not the whole
  widgets.
- The lockscreen disable state wasn't stored persistently, thus didn't
  survive a reboot.

Fixes http://code.google.com/p/cyanogenmod/issues/detail?id=2978.

Change-Id: I6f619740659cfedec3a3c9517fb55275f601d792

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/PowerButton.java
	packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/PowerWidget.java
	packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/SoundButton.java