New function: Change the default audio stream which's volume is changed when using the volume rocker.

The standard default audio stream is STREAM_RING. When the user uses the volume rocker and no special stream is active (no app requested a audio stream change, e.g. no audio is playing) the ringer volume is changed.
So the ringer volume is often changed accidentally. This change gives the user the option to change the default stream between STREAM_RING and STREAM_MUSIC in Audio Settings.
Fix NullPointerException at RunningState

getServiceInfo returns null if you have a service defined in the
manifest as: <service android:name=".Xxx" android:exported="false" />
or and in an <application> with no label or icon.
Dont crash the Settings application because of that.

Change-Id: I6f9f69c130e610b7e4ab66426177b7bade1e1515
Check if the Activity is finishing before showDialog()

Check if the Activity is going through its finishing phase before
displaying the Dialog, because Showing dialog once the activity
is no longer in context will cause BadTokenException.

Change-Id: I58940e694f61cd79536abe2df60a0b745a7b806f
AOKP Ribbons
Signed-off-by: igio90 <giovanni.rocca.90@gmail.com>
WLAN configuration (static address): reject IPv6 addresses.

Without this, entering an IPv6 address as the interface address (or possibly
also others, such as gateway address) will, on connection to that WLAN,
trigger an uncaught exception:

*** FATAL EXCEPTION IN SYSTEM PROCESS: WifiStateMachine
java.lang.IllegalArgumentException: command '59 interface setcfg wlan0 2001:db8::ffff 24 up' failed with '501 59 Flag unsupported'
	at com.android.server.NetworkManagementService.setInterfaceConfig(NetworkManagementService.java:546)
	at android.net.wifi.WifiStateMachine$ObtainingIpState.enter(WifiStateMachine.java:3449)
	at com.android.internal.util.StateMachine$SmHandler.invokeEnterMethods(StateMachine.java:958)
[etc.]

followed by a restart of the UI then another connection attempt. So long as
the misconfigured-for AP is present (and preferred?), this will continue to
happen.

Change-Id: I524480339c37ad079fd21d90a6b1fc5864089cb5
Ribbons: Tracking the right package
Signed-off-by: igio90 <giovanni.rocca.90@gmail.com>
Using the right performance icon
Signed-off-by: igio90 <giovanni.rocca.90@gmail.com>
More battery styles (2/2)

Signed-off-by: igio90 <giovanni.rocca.90@gmail.com>
Development Settings: Don't reset root access when disabled

Root access is now managed by the Superuser settings menu.
Resetting this here is arbitrary and misleading.

Signed-off-by: igio90 <giovanni.rocca.90@gmail.com>
BAMControl: Added Ribbons Icons

Added Ribbons icons
- mdpi - mdpi inverted
- hdpi - hdpi inverted
- xhdpi - xhdpi inverted
BAMControl: Added Permissions icons

Added Permissions Icons
1. mdpi - mdpi inverted (holo)
2. hdpi - hdpi inverted (holo)
3. xhdpi - xhdpi inverted (holo)
Merge branch 'bam6' of github.com:iGio90/android_packages_apps_Settings into bam6
tracking the right icons

Signed-off-by: igio90 <giovanni.rocca.90@gmail.com>
derp
Signed-off-by: igio90 <giovanni.rocca.90@gmail.com>
BamQuickSettings: Tracking the right package
Signed-off-by: igio90 <giovanni.rocca.90@gmail.com>
Merge branch 'mediaVolumeDefault' into bam6