Fix for ambiguous and broken disk formatting dialog

This patch ensures that the path-string from StorageNotification is converted
to the appropriate StorageVolume so that it can be correctly passed to the
formatting class. It also displays this path to the user so that it is clear
what will be deleted.

While trying to use a USB flash drive over OTG, the drive's FS somehow got
corrupted, so Android gave me a notification to re-format it. Okay, so then
a dialog pops up that doesn't specify what volume/device it will format, and
I incorrectly assumed it would be the USb drive. However this activity defaults
to the main internal memory for some reason, and wiped my data. Thank God for
them internets... (Dropbox)

Change-Id: I5621dff3cfd12a173b0d793398cf729333f97263
Framework: Fix button label toasts when layout is RTL

Google have decided to set their gravity "relatively", while they measure only from the left.
The result? Toasts appearing in the wrong side of the screen.

Change-Id: If5e9d5fc2751fbef3eb058b241168fb9d8bf4b98
Frameworks: Navigation bar button color mode (1/2)

due some user complains about the bad coloring of custom and app icons, a fix
became a feature.

- overworked colorizing more icon specific
- introduce color mode (0 = all icons, 1 = only system icons, 2 = system and custom icons)
- change porterduff mode for app and custom icons....now a lot better for most icons
- changed in settings to fit the other structure

cheers

Change-Id: Id24ac6e476d80ace2df08db12533142d0750e179
Fix on reboot navbar transparency doesn't respect user value

accidential removed standard value on last patch

sorry

cheers

Change-Id: Iced74128fc08a6413adc123c5cbf12a9797702fa
Fix Navbar longpress power button

custom lonpress action showed global power screen instead of doing
the right action in front. Due we called POWER_SERVICE it was clear that
longpress will open that windows. Using now Power Manager to get
phone into deep sleep

Change-Id: Idd760e99699beb558587338b76f5c39572c37828
Fix Navbar notification long press

didn't open custom app. Typing error in initial push.

Change-Id: I086d3a6bef41706e06d3b3890cc8ea2b5d132d35
Notification : Fix app info long-press

Addresses http://code.google.com/p/cyanogenmod/issues/detail?id=7060

Change-Id: I45c0e1b73c08ceffef02db244b947bfcedf3b20a
Keyguard: Reduce font size of clock in status keyguard (sw720dp)

When system clock is configure for a 24H clock, times like 22:22, overflows the clock
of the keyguard status view on sw720dp. This change reduces the font size of clock to
allow to fit all time formats.

Change-Id: I1416c2a0f9da039f4beb4cdb77dbc5069dc47671
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
power: Add panel auto-brightness configuration

 * Some panel hardware requires that we twiddle some knobs in sysfs to
   enable proper display calibration (gamma, etc) when auto-brightness
   is enabled. Add a configuration value to handle this.

Change-Id: I3c793c3520fc6f9a18d5a3abf1fe0df803c5e580

Conflicts:
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
Improve auto-brightness handling

- Add a setting to control the auto-brightness algorithm responsitivity
- Make the algorithm react much faster when the ambient brightness
  increases quickly, e.g. when receiving a call in bright sunlight.

Change-Id: Ic608901c476609dde69cae982228c09567140a83
PowerManager: Don't wake up device when charger is plugged/unplugged (1/2)

This will add the option to disable waking up the device when a charger
is plugged or unplugged.

Change-Id: I3367041a05931510f367dafe412b173c80b89df1
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Frameworks: Quick Settings pulldown without notifications (1/2)

If no notifications are present option to pulldown quick settings
directly. This options respects stock behaviour as well as left and
right edge quick pulldown.

Change-Id: I83435a4ffaab7199d29de51c8a1ab9e0429f8765
Frameworks: New battery style and changes (1/2)

after a lot user requests cause of only percentage battery icon
I integrated it with some changes

- add only percentage batter icon
- add dotted circle without percentage
- abbility to colorize all percentage texts on all battery icons
- changed reset logic (slimer)
- respect theme engine
- code clean up and optimzing as usual

cheers

Change-Id: I79bac44e779d303735aad83de0c60bcc67c6c3d2
Frameworks: Respect google on lower 14% battery

due that google guidelines say that battery icons should turn under a level
of 14% into red....percentage text (on percentage and percentage with icon) turns
now also red

Change-Id: I1808c40742bbf63227c27c6df7a8e05b9206fb0c
[2/3] mediaeditor: Allow custom DOMX source instead of Google DOMX default

Part 2 of 3 patches: To allow omap4 devices to use custom "domx" source
via a new BoardConfig.mk item:
TI_CUSTOM_DOMX_PATH := device/<manufacturer>/<device-name>/domx

This setting provides for 3 changes during the build:
1. In hardware/ti/omap4xxx this settings stops standard Google domx
source from being built and changes the domx reference for tiutils.
2. In frameworks/base it changes the default openmax references for
frameworks/base/media/jni/mediaeditor/Android.mk to the new location
3. In frameworks/av changes the openmax references in 5 places, and adds
new includes in ACodec.cpp, CameraSource.cpp and OMXCodec.cpp

This commit is based on cherry-pick from omapzoom (with a more descriptive
BoardConfig setting name):
http://www.omapzoom.org/?p=platform/frameworks/base.git;a=commit;h=f7f929ff477955333bf7e7413a81a66d683d1f3f

Change-Id: I76e558ce840ea45eec14194f2e9107fb83cebf8f
Signed-off-by: Hashcode <hashcode0f@gmail.com>
Fix Notification pile alpha background

had weird behaviour on reboot and sometimes on new notifications.

fixed.

Change-Id: Ic14fcc540021ae633c1c5ddfb577df9aa077dca3
Lockscreen: longpress on expand challenge handle

- Unsecure screen lock, long press will unlock the device
- Secure screen lock, long press and widget will fade into the background and secure method is displayed

Change-Id: I7d980f8e7e07226c97a64a63910a1410e6fb84c0

Conflicts:
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java
SystemUI QuickSettings: Allow more off-status localizations

Create strings for NFC off and Sync off so that they can be localized
appropriately.

also small fix for NFC tile

Change-Id: Ifb79b6819bbf6de96330e7760c2e3d071e70641d
Prevent audio players starting on startup.

Previously, (at least) Apollo was started on startup (in that it
appeared in the notification bar) because it listens to the AUDIO_BECOMING_NOISY
intent to silence itself in that case. This intent is broadcast by
AudioService when there's a user switch to silence any potential audio
players for the old user. As the system also sends around a
USER_SWITCHED intent on startup, this led to the aforementioned player
startup.
As the intent of AudioService was to act on a user backgrounding anyway,
send out AUDIO_BECOMING_NOISY as reaction to a USER_BACKGROUND intent
instead of the USER_SWITCHED intent.

Change-Id: Iba35844a1274c9dd195f104068304e6a7ffa809e
Last App Toggle [2/2]

Signed-off-by: Zaphod <mwilson@acesappraisal.com>

Change-Id: I7199c941f63ff83c22f30ff833aa36739b21e749