SystemUI: Toggle Vibrate Duration

Increase to a more standard UI-touch
 25 (from 10) duration.

Change-Id: I4cdd45f2c5b85497771ff2dc57dbbcf4bc7348fb
IPV6 tethering: Check info for null before removeUpstreamV6Interface

When tethering on dual stack networks such as verizon wireless and
sending or recieving MMS you get an null pointer exception and hard
reboot.

It starts to go wrong here:
10-14 19:11:51.375: E/Mms/smil(28035): Failed to parse SMIL document.
10-14 19:11:51.375: E/Mms/smil(28035): org.xml.sax.SAXParseException:
expected start tag notEND_DOCUMENT null@1:1 in java.io.InputStreamReader
@4192ada0

And then:
10-14 19:11:55.559: E/AndroidRuntime(23125): java.lang.NullPointerException
10-14 19:11:55.559: E/AndroidRuntime(23125):    at com.android.server.
connectivity.Tethering$TetherMasterSM$TetherModeAliveState.processMessage
(Tethering.java:1573)

Which is line 1573 of:

https://github.com/CyanogenMod/android_frameworks_base/blob/cm-10.2/services/java/com/android/server/connectivity/Tethering.java#L1573

CMD_UPSTREAM_CHANGED's message.obj can be null (line 776).

Change-Id: I13d531d398f2e33a828c6e81f25f4b2a27518d34
Merge "SystemUI: Toggle Vibrate Duration" into jb-mr2
Frameworks: Minimum Vibration Duration

Adjust small vibration intensities

PS5: Adjust logic
    Still adjusts all "small" vibrations
    to unify them.  Now also checks if
    setting is larger than vibration
    to return a true minimal vibration.

Change-Id: Iabe5f1ba5272c98832624202214e140c54a1bab9
Add active display to AOKP [1/2]

This is the ChameleonOS implementation of the active
display feature, similar to that found on the Moto X.

When enabled the screen will turn on and display the
incoming notification.  The user can then open the app
for the notification, dismiss the notification or unlock
their device normally.

Additional notifications, if any exist, will be displayed
below the ring notification and can be viewed by touching
the notification icon.  The user can simply slide their
finger across these other notification to quickly view
them.  The last one touched will remain in the ring and
the user can then perform any of the actions listed above.

PS2-PS12:
All the changes that brought us to this current implementation.

Change-Id: I51c17cec33b65dc60111a10c5ca2c449596ebe63

Correct active display settings naming

Change-Id: Ibfa2d41eed01d8987df52f013b111a0ce4e70739

Active display: Add options for date and am/pm [1/2]

Change-Id: Idc09772829cc6aa9bcfb064459fb3557c7b37f6b

Active display: Add sunlight mode. [1/2]

Change-Id: I541e74c5a1a7e6ce5028ab00cf998bba1d4fe0f9

Delay hiding systemui by 100ms
When disabling the keyguard, the systemui visibility is
changed and can occur after we hide it so delaying this
a bit resolves that issue.

Change-Id: Iad432f75195983837d643fa38495e6beb54f3e22

Active display: make sure mNotificaiton is set correctly

Change-Id: I4111ca843e340cca4d6dac4b2c2922ce3039e487

Conflicts:
	packages/SystemUI/res/values/dimens.xml

Conflicts:
	packages/SystemUI/res/values/dimens.xml

Active display: register/unregister recievers and listeners when enabled/disabled

Change-Id: Ic73e63da2c9634bc864ab1a1387eb9145eb0b5b0

Active display: Unify (un)registering callbacks and add proper checks.

Change-Id: Ie4c4660a54d2c60831f7a3bcc66b3a9ca1d035f2

   rebase

Change-Id: I049a5d5945a578c17de02799ca92e4af6afcec1e
Active display: allow hiding low priority notifications [1/2]

Change-Id: I4831d6864b509e62b449c25619c59f5d6760ec47
Active display: Enable proximity sensor only when screen is off

This should ease people worried about cpu usage of the proximity
sensor while the screen is on.  The sensor listener will only be
registered when the screen goes off, and both active display and
pocket mode are enabled.  Once the screen turns on this listener
will be unregistered so no further updates are received when the
sensor values change.

Change-Id: I70979b5931815adb74bd8bc42e32886a6d829a12
Active display: Only fetch next notification if mNotification is null.

Change-Id: Ife8511d4a4b8c448bc7aa8997a250068bec5fae7
Active display: Don't show active display if call state is not idle.

This will prevent active display from displaying when a call is
coming in and let the call screen show up instead of active display.

Change-Id: I2cb79e097ae24dc6ad6c8a33be88eb19f7d8d235
Active display: Allow apps to be excluded from being displayed [1/2]

This has been a highly requested feature so I guess it's about time
we implement it :).

Change-Id: I5c334833b78325733ae076c07afccebb02758ead

Conflicts:
	core/java/android/provider/Settings.java
Active Display: Force portrait orientation

Change-Id: I5047444b9b0ef4278375cb07d28fbf476f2e386e
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
Active Display: Catch possible NPE during handleDismissNotification()

* AD doesn't register if notification has been cleared on different device
  (computer) so catch the NPE that would ensue

Change-Id: Ibdb7f526d2c709ebf7a888de717247b7a6114e3e
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
Active Display: Force fullscreen

* ActiveDisplay (AD) isn't as appealing when transparent navbar shows.
  Force FULLSCREEN and hide all decorations

Change-Id: Iddce1a6143044d73492c32501295cbf1fc8b6500
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
Active Display: send unlock broadcast

This will unregister the receiver and fix the memory leak.

Change-Id: Ib99c27c6ad57eaf14d7e9f1adf2a651133ed2503
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Merge "IPV6 tethering: Check info for null before removeUpstreamV6Interface" into jb-mr2
Merge remote-tracking branch 'aokp/jb-mr2' into wip

Conflicts:
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
FIX
Framework: Port CM9 features to CM10
This commit includes:
 - Profiles

Change-Id: Ibd63116df90b06f6ce6adb8a0343059bbb999bfb
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	Android.mk
	core/java/android/app/ContextImpl.java
	core/res/res/values/strings.xml
	core/res/res/values/symbols.xml
	policy/src/com/android/internal/policy/impl/GlobalActions.java

Conflicts:
	core/java/android/app/ContextImpl.java
	core/res/res/values/strings.xml
	core/res/res/values/symbols.xml
	policy/src/com/android/internal/policy/impl/GlobalActions.java

Conflicts:
	core/java/android/app/ContextImpl.java
	core/java/android/provider/Settings.java
	core/res/res/values/strings.xml
	core/res/res/values/symbols.xml
	policy/src/com/android/internal/policy/impl/GlobalActions.java

Conflicts:
	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/GlobalActions.java
Profiles: Airplanmode Settings with Checkbox (1/2)

Change Airplanemode Settings to look like Connection/SilentMode etc.

Change-Id: Ic340c4eac22b1c94dd5f7a94a9608e98c76a0e98

Conflicts:
	core/java/android/app/Profile.java
Fix airplane mode

Change-Id: I9259e6e90c7f67cf5fc31a8a3626917e41214379