Option to use volume keys to control media volume anytime (1/2)

Some users don't adjust ringtone volume often (e.g. only use toggle to
switch between silent and non-silent) mode. Having an option to
use the volume keys to control media volume anytime allows media
volume to be controllled/muted before entering a game or other apps
with sound in an undesirable location.

Change-Id: I6dbd25d1a14bcf5b1bf0b0468b96f4b4f8efdb14

Conflicts:
	res/values/cm_strings.xml
remove spaces
LastApp Toggle [2/2]
Provides option for new LastApp Action in frameworks.
Can be used as NavBar or NavRing.

PS2 : Add icons by Hoolm.
PS3 : Remove unnecessary dependency

Signed-off-by: Zaphod <mwilson@acesappraisal.com>
Change-Id: Icda3a83f6cd8378f57043678c4535dcb8f245eec
add recent apps GB style action to navbar buttons (2/2)
This will add the option to open the Gingerbread style
recent application dialog.
This is the dialog that will show when doing <Alt><Tab> with
a bluetooth keyboard.

Change-Id: If396c4b440d9b0a6a69cec22d81d418c7ea8ce3d
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Transparency control overhaul
Change-Id: If2e5745d92c3ec5b7e18cb2426268554293f004f
Signed-off-by: Roman Birg <romanbirg@gmail.com>
 QuickRecord Tile (3/3)
PS2: Change name of tile.
PS3: Rebase
PS4: Remove WIP from title.
Settings:  Toggle rewrite (2/2)
QuietHours Toggle (2/2)

Required for longpress action.

Reflect change in Settings.

Signed-off-by: Bajee11 <bajee11@gmail.com>
Change-Id: I2082e12fb2ce9e4063d960df540259eb6822fbcd

Conflicts:
	src/com/android/settings/Settings.java
	src/com/android/settings/cyanogenmod/QuietHours.java
Navbar and navring: remove screenshot option
Removed from awesome action.
rebase
RC: Navring rework.

PS1: Better interface for users.
     Get drawables from FW.

PS2: Added logic for tabletui and layouts (may need tweaking)

PS3: Cleaned up strings
     Added long and short discriptions to the pop up dialogs
     Since long press action have no icon I made a friend uri toast
     message to let user know a long press action was set.

PS4: simpify the dialogs a bit. still need to fix custom icons...

PS5: Fixed custom Icons did more dialog work.
     only 2 things left. tabletui/landscape layouts need tweaking
     need to move target selection and enable longpress inside the new
     ui. Getting close this is pretty functional.

PS6: Adjusted custom icons size.
     Moved Enable long press and amount inside the ui
     moved Navigation ring to its own header in main activity

PS7: Cleanup a bit.
     fixed crashing on changing target values
     Now using a spinner and switch for target number and longpress

pic https://dl.dropbox.com/u/31932935/Screenshot_2013-02-23-21-59-23.png

PS8: Comment clean up.

PS9: use one content resolver instead of like 12....
     Switched to enum and switch case for dialog functions

PS10; rebase off new awesome action. clean up things Jon pointed out
      added icons from Nitroz

ps11: get rid of one last hardcoded string

ps12: Rebase

Layouts:
- Phones: use portrait in any mode to configure. It is that simple:
the ring just cannot fit in landscape because the drag handler
is always in the middle of the glowpad and if we want one that fits,
that would be just too small.
- Tablets: tablet/phablet looks ok, phone mode is weird.
I bet nobody uses that anyways.

That's all I could do, tested on mako and grouper.

Change-Id: I33342f5e8bd3b88a56fb3cbbac2390a4cef1269f

Conflicts:
	AndroidManifest.xml
	res/values-sw600dp/dimens.xml
	res/values/dimens.xml
	res/values/strings.xml
	res/xml/preference_headers.xml
	res/xml/prefs_navring.xml
	src/com/android/settings/aokp/NavRingTargets.java
	src/com/android/settings/aokp/Navbar.java
RC: Fix toggle setup dialog width & move toggle option up in RC

Change-Id: Ib739f8759bd9d18c558e6c199a9d34734a52983e
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>

Conflicts:
	res/layout/fragment_configure_toggles.xml
	res/xml/preference_headers.xml
RC : Overhaul NavBar buttons UI

I decided to make some pretty heavy changes to the
resource allocation as well (using AwesomeAction/Constants).
Still need to move over the icons.  This will also require
modifying SystemUI to use the same sources.

ToDo:  Custom Icons part not working.
This allows **ALL** actions from AwesomeConstants. We need to
either make sure SystemUI can handle all of these actions, or
figure out a way to make it easy to filter out which ones we
don't want for the NavBar.

PS2:  Hopefully fixed the shortcut/app & icon pickers
(still compiling - haven't tested it yet)
Also moved icon resources over to frameworks and now getting
them from AwesomeConstant.

ps3:  Trying to make the NavBar Preview respect certain color
settings (NavBar Color, NavButton Color, etc).  Having limited
success so far.  Need to dig deeper.  Also, custom icons not
working quite yet.

ps4:  Realigned Preferences so that NavBar buttons is at the top
of the listview.
todo: Figure out why custome icons doesn't work.

ps5:  Couple of more visual tweaks

ps 6: Abandon the custom pref idea and re-integrate into NavBar.
Not sure if this works, but I need to rebase ... so pushing.

ps 7: Re-integrated back into NavBar preference.  Now inflates
custom layout so that NavBar UI stays at top of list and other
options scroll underneath.  I would like for the NavBar UI to
fully reflect other options (colors, menu layout, etc).  I'm
getting some of this to work, but background color and Alpha are
not working.

However, this is fully functional at this point.

ps 8: Fixed colors and alphas

ps 9: Fixed glow by using a state drawable instead of on touch listener.
      needs the glow alpha to get fixed what I have doesnt do anything...

ps 10:  fix background to be the full width (not just buttons).
	All other visual cues appear to be reflecting properly in
	the UI.  Moved the options around to be more consistent
	and set certain options to remove depending on UI mode.

ps 11: Fix preference derp and remove whitespace

Change-Id: I552faf3af08f7ae4ffb02b286871243f087c3e86

Conflicts:
	res/drawable-hdpi/ic_sysbar_menu.png
	res/layout/navbar_item_preference.xml
	res/values/strings.xml
	res/xml/prefs_navbar.xml
	src/com/android/settings/aokp/Navbar.java
	src/com/android/settings/aokp/widgets/NavBarItemPreference.java
RC : Bring back scrollable toggles

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

Conflicts:
	res/values/strings.xml
Toggles: Add screenshot delay option

PS2: Move individual Toggle options to the bottom
PS3: Swap screenshot/fav order

Change-Id: I7c821eac230392c577051cfec47255175019701a
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>

Conflicts:
	res/values/arrays.xml
	res/values/strings.xml
	res/xml/prefs_statusbar_toggles.xml
	src/com/android/settings/demented/StatusBarToggles.java
add a few things i left out in the madness of the last couple days
Touch up toggle setup dialog

Be consistent with other dialogs in android and match their style,
also added a close button for a better UX

Change-Id: Ifca3c9456bd2c685d66a6a056fd8047752dc8d3b
Signed-off-by: Roman Birg <romanbirg@gmail.com>

Conflicts:
	res/layout/fragment_configure_toggles.xml
	src/com/android/settings/demented/ArrangeTogglesFragment.java
ROMControl: CustomToggle [WIP]

PS1: This sucks...
PSWhatever: Blatant Kang of Mike "Zaphod" Wilson's
         Nav Logic.
PS6: Fix Strings
PS7: More Options && Break Things (probably)
PS8: Add Action Logic Option && Fix Advanced
         LongClick Removal
PS9: More Double-Click Actions
         More Toggle Actions (5)
         Collapse Shade Optional
PS10: Rewrote some strings and made action
         description refresh (to be more
         clear) on Advanced/Basic option
PS11: Re-write to follow new NavBar UI look & code.
PS12/13: Whitespace && Messy (but working)
            Fix for advanced/basic showing
            their actions correctly
PS14: Save FriendlyName to SystemUI
PS15: Update against new strings and mContentRes
PS16: Add back fav contact thanks burst.
PS17: Rebase
PS18: UserClarification
PS19: More User Clarification (remove null option)
PS20: Sorry, forgot to edit string for clarification
PS21: Formatting, a few other things will still come today
PS22: Amend howto a bit, switch to setItems instead of singleChoice

Change-Id: Id07d74394f35c2630822ca0d4b3e53231ca470d4

Conflicts:
	res/values/arrays.xml
	res/values/strings.xml
	src/com/android/settings/demented/StatusBarToggles.java