Lockscreen: See through (1/2)

Add the ability to see through lockscreen.
Adapted to kitkat from jellybean by @BigBrother1984

Signed-off-by: D4rKn3sSyS <jesdga95@gmail.com>
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS2:

* Adding missing sem-colon.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: I9057a6e302a5a824799844f27e8f64ff677a520a

PS3:

* Replace and remove undefined mContext.
* Define the boolean enableScreenRotation inside new method.
* Whitespaces clean up.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS4:

* Restore mContext in setKeyguardParams().

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS5:

* Fixes for setKeyguardParams() and maybeCreateKeyguardLocked() methods, kitkat changed some things.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS6:

* Missing sem-colon.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS7: Fix all the things.

* Effects doesn't vanish after first unlock.
* Created condition in updateShowWallpaper() method that just return if see through is activated, he was restoring the wallpaper at second lock.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS8: Cosmetic changes.

* Correct java style name to seeThrough() and place it above updateShowWallpaper().

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS9: Other cosmetic changes.

* Better name to the see through boolean.
* Removed a space nitpick.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS10:

* We had two booleans for the same thing, ditch the one defined in one class only and take the global.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: I06d952f85baf284961a24c8c9f90b29f4aef719a

Conflicts:
	services/java/com/android/server/wm/WindowAnimator.java
Volume Rocker: Switch from Broadcast to Audioservice.

* Fix volume rocker music track seek.
* Minor fixes

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: If4afda046b9fbebda611615371a718122ffb57b6
frameworks/base: IPV6 tethering support

This patch adds two new API calls addUpstreamV6Interface and
removeUpstreamV6Interface to the tethering framework to pass the IPv6
upstream and downstream interfaces to netd if IPv6 is available.
Required to enable ICMPv6 forwarding.

[*]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: I1f4f6284b2f152d8b4f0fbd02ac5a17f57c71dd7
Volume Rocker: Do not wake up during track seek.

* After switching to Audioservice track seek works great but it woke the device too if we select both options. Wake only if we do not skip tracks (like raising the volume).

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Fix for Backup Services

Change-Id: I7cd572b85648bca6a7777f026be4933e7d71a9f0
Volume Rocker: Hardcode music track seek option (1/2).

* The feature is enabled by default but not configurable.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS2:

* Remove unneeded variables.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: I0c72dd00f8a161255a59330862fa69c66735a3e4
Use white switch thumb activated drawables, not holo blu light.

* These changes swithes like wifi/bluetooth in settings to white.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
fb: follow on seekbars new UI guideline for 4.4

google forgot some things.....seekbar is one example

Change-Id: I996062a978322c93694e360dff1e4f42dc589062
Core: Re-holoing whitened changes to follow google.

Revert "Use white switch thumb activated drawables, not holo blu light."

This reverts commit 81f32adcd03181bbf7b6b613878976857e84d3a4.

Revert "fb: follow on seekbars new UI guideline for 4.4"

This reverts commit 2c1bc7c710517eccdb3ff6812693bf3f6fe4d75d.

Revert "Change "No recent apps" color to white instead of holo blue to follow new UI colors."

This reverts commit db9776b3173ddd730a519cda5f971147c344340b.
GC triggering performance optimizations

Copy the correct starting heap size at process init.
Interfaces to set GC/managed heap parameters.

Change-Id: I0154d1523c3cfdb1214ed0315193cbb24704351f
Bring back two-line layout for status bar date.

Change-Id: I4bf7ce61b22da89b3b8c1a3f00e077461061f7b9
Notification LED Control (1/2).

[Original writen at CyanogenMod by David Van Tonder (DvTonder <david.vantonder@gmail.com>).]

* Make led color customizable.
* Global and per-app settings.
* Default led color is white.
* The option category replace old stock on/off checkbox.
* Remove useless code from display settings, the feature has its own java files.
* The java files in settings are stored into its own com/android/settings/notificationligh folder.
* Credits into code comments of each specific java file.

PS2/3/4:

* Fix code derps.
* Forget to define a method.
* Remove wrongly added code.

PS5/6:

* Move entries to pa_symbols and pa_config.
* Update description.

PS7:

* Use ArrayMap instead of HashMap (more memory efficient).
* Remove observer for medium battery level.

PS8:

* Correctly import ArrayMap.
* Didn't updated creating of ArrayMaps.

PS9/10:

* Fix defaults.
* Enable battery led.
* Update description.

PS11/12:

* Ditch battery led option.
* Update commit description.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: I34654992e0225c32413e6cbe9f0ca18c1729a186
Update reboot and screenshot power menu drawables with xxhdpi versions

Change-Id: I59fff6cf1621f59662408b8223a6582cdb54049e