Framework: Glowpad Torch (1/3)

PS2: Torch active? Keep screen on.

Change-Id: I39c319b28e31470925f3b3764043c63ce9d3557b

Conflicts:
	core/java/android/provider/Settings.java
	core/java/com/android/internal/util/slim/TorchConstants.java
WiFi label is not a Quote!

Cleanup the damn quotes around the WiFi label in the
notification panel. This only removes the quotes from the first
and last positions of the string.

PS 2 : WiFi name can have quotes!

Change-Id: I90badb7b2d8160e41da2632dac79042c4be37f2a

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java
Fix preference puts with "null" values.

Null values were being written out as <null /> elements in the
XML prefs file (as expected). This allowed the getFoo() functions
to work correctly because they treated null values as missing mappings
but containsKey would fail.

bug: https://code.google.com/p/android/issues/detail?id=64563
Change-Id: I1f466d01db96bf26e208d4fed3a6f257228bea5d
MountService listeners can not be unregistered

When unregistering MountService listeners, their Binder proxy
objects were compared to registered listeners instead of their
backing objects.

Change-Id: Ie98a686b1d17544f1eda59fb3eb0dc02d836c1b2
Add NULL check in updateProxyConfig

If the exclusionList was null in updateProxyConfig the VM would
crash when converting it to a UTF8 string. Avoid this by adding a
null check.

Change-Id: I0d8106fd54385bd9ae9c652a6c67d459a119cf2b
Before requerying a cursor, check if it is closed.

Before updating a cursor,
it needs to be checked if it is valid.
Currently a defence code only checks
if it is not null.
But in case of "Cursor", it is not valid,
if it is closed.
So just like in CursorAdapter.onContentChanged(),
add the additional defence code to check validation.

Change-Id: I1302f1b6d009897815d4bdb2f20f625688cf9901
fb: clean up our and AOSP code for wifi and carrier label animation

we introduced with this AOSP commit

https://github.com/SlimRoms/frameworks_base/commit/288e3ec70e866105ba61f9ebf259cad29786ad9c

the ability to keep wifi and carrier label up to date on every network
change which happens. The big advantage of this change is that all the
calls for updating the label which are present in PhoneStatusBar are not
needed anymore. We can reduce it to call only when we have animations in progress
or if notifications update and we must decide if the label is still visible or not.
This are way less animation calls then before and on clean AOSP

As well clean up some of our old code which workaround all this calls.

This commit fixes two present minor issues
- carrier label was visible behind notifications (AOSP behaviour but conflicts with our transparency settings)
- due of new updatehandling it happened sometimes that on switching to QS the label was a bit to long visible
- animations are now completly always in sync

PS:
- animate from qs to notification drawer a bit later

PS:
- simplify it more
- fix direct pulldown QS shows sometimes carrier label

Change-Id: I74b80b8b72817da460703635a027f57bb4858f32

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
fb: add bottom margin to stock default battery icon

We set the layout parameters programmatically so the fix from
google does not take effect. To solve set the bottom margin
programmatically based on the current display density

Change-Id: I9caa0e729afa19eb7cb852a1df6ad036a2839d1b

Conflicts:
	packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
Frameworks: Fix 0% battery QS tile

when tile is recreated. Fetch the values from
BatteryController

Change-Id: Id0539016e1c479ac1f75535647d91a26f69a76b5
Keyguard: fix codestyle

Change-Id: I3f1fbab0ae5434b09766cd69c39a133f4a7039d0

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardStatusView.java
fb: disable navigation bar camera button if widget carousel is enabled

Beside that the animation which starts when dragging the camera icon
to the left is broken if the user has enabled carousel animation like
tablets it does not feel natural even when we use the right animation for it.

So diable the camera button in this case and allow only swiping the camera widget on carousel mode

Change-Id: I6ba5eda7cd4603b1644ae088401b57861e4937a1

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
fb: Keyguard disable challenge drag down on slimpin/simpuk screen

On simpin, simpuck and as well account change screen it does not make
any sense to give the user the abillity to drag down the challenge to show
the widget maximized (neither if widgets are enabled or disabled)
Reason: simpin/simpuck widget is not shown due of security reasons
and on account change the next expected behaviour is that the user gets a new
setup. So it does not make in this case as well sense

Just check for current securityscreen selection to block this behaviour. As
well move the enable/disable code to a proper place

Change-Id: I0b16d1e590252b537d6c71c4aa9b133ed832be45
QuickSettings : Quick Collapse [1/2]

Credits: Danesh M

PS 3 : Implement override method for specific tiles
PS 4 : Create Dependency
PS 6 : Fix multi-user

Change-Id: I0257c7819cc1ccb5d0a092dc23fb9fa4ccec5c3b

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/quicksettings/QuickRecordTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/QuickSettingsTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/RebootTile.java