Quicksettings: Long press actions.

* Long click action for user tile (opens sync settings).
* Long click action for rotation tile (opens accessibility settings).
* General cleanup.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Quicksettings: Hardcode quick pulldown from right status bar side.

* Still works 2-fingers pull down.
* Quick pull available in the up-right 20% of status bar.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
PhoneWindowManager: fix navbar behavior in expanded mode after 4.4.2 merge.

Change-Id: I00f814db6c3800b8eb1cf20004ecdfb8d1ee7036
Fix: Ensure immersive tile state (on/off) persists after reboot

If immersive mode is enabled, the immersive tile icon should be white,
with the appropriate text "IMMERSIVE" as opposed to grey with text,
"IMMERSIVE OFF".
When rebooting the device, the tile shows "IMMERSIVE OFF" regardless
of if immersive mode is on or off.

Change-Id: Id805fcb6c6fded41e1d3a38e9a1bc46b7a2a7d1e
Status bar date/time actions (quick settings)

Separate clickable actions for the time and date on quick settings pulldown

We added a setting panel view to the quick settings pull down on tablets
in order to to facilitate our quick setting edit button.
This panel should work the same way as the panel for the notification
shade.

Bring this in line with https://github.com/AOSPA/android_frameworks_base/commit/135a1d48b924950d822e506be1a7c01833171d88

Change-Id: I30220fb7657d5de0c1dcce2ed92b6b52f2b1db9b
Fix: Ensure lockscreen see through setting persists after reboot

If see through was enabled and the device was rebooted,
the user had to toggle the setting off and on again to activate.

Change-Id: I726220a39ac61cf135e5c63a9dbb8def7ed6fa2e
Fix: Correct possible null pointer when enabling see through lockscreen

PS2: Remove unused variable

Change-Id: I28884cb18964b273539261b8c0f72cedf2e60666
QuickSettings: Tile Actions

    Mobile Data Tile:
        - Click to toggle mobile data
        - Long press to enter data usage statistics

   Alarm Tile:
	- Fix launching alarm on click

PS1: Edit mobile data tile actions
PS2: Fix type in commit message
PS3: Fix bug in Alarm tile implementation

Change-Id: I21eef91114a3119834db7181dc3b35d4eb56c90b
[2/3] Frameworks: Increasing Ringtone

      Option to set the incoming call ringtone volume to increase
      in pre-defined (user selected) increments.

Linked commits:
      Settings   - https://gerrit.paranoidandroid.co/#/c/447/
      Telephony  - https://gerrit.paranoidandroid.co/#/c/451/

Change-Id: I6314108033089c68c3bd6f716508f40fe863f630
[1/3] Frameworks: Add Network Tiles & Lightbulb Tile

      Add an LTE tile and a 2G/3G mobile network tile.

      The LTE tile requires that at least one (1) of the following configs
      be present in the device's build.prop in order to show:
          telephony.lteOnCdmaDevice=1
          telephony.lteOnGsmDevice=1

      The 2G/3G tile toggles between 3G Only, 2G Only and 2G/3G.

      If LTE is turned on the 2G/3G tile is disabled (shows unknown).
      The reverse is also true, turning on the 2G/3G tile disables LTE tile.

PS1  : Network tiles (LTE & 2G/3G)
PS2-3: Clean up
PS4  : Add Lightbulb tile
PS5  : Add lightbulb icons & permissions
PS6  : Check for LTE support only after device boot completes

Linked commits:
      frameworks/opt/telephony
      packages/services/Telephony

Change-Id: Id64c061227efd557416de312c4e5972725c29e71
Quicksettings: Sleep tile.

* Click goes to sleep.
* Long click opens display settings.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I3eeae514535e9edff72f233e18d8f8dfaadf3517
ZygoteInit: increase GC threshold amount when preloading to postpone GC

Patch Set 2: Hardcode it better to 1MB.

Change-Id: I7a6e195b82ebe2f4bd5bbb506e19200d452fa3e5
QS: Update edit mode icon

Uses the correct transparency so that it matches the rest of the pulldown icons.

Change-Id: I783c4b4038b536dfb6d3c73fac3c739895e9cac6
Signed-off-by: Evan Anderson <evan1124@gmail.com>
[1/2] Frameworks: Combine LTE & 2G/3G Tiles

This combines both network tiles into one tile.
2G -> 3G -> 2G3G -> LTE

Linked commit: packages/services/Telephony

Change-Id: Ia0d8edaec0e920b9ba174ec6ce49c5e7b832a5ab
Quicksettings: USB Tether tile

courtesy of OmniRom
based on: http://goo.gl/0RfbFy

PS3: add "private ConnectivityManager mCM;" variable
PS4: compiles, not yet tested
PS5: derp forgot to initialize mCM which caused a NPE
(http://developer.android.com/reference/android/net/ConnectivityManager.html)
PS6: fixed some connectivity manager redundancies in qs.java
PS8: make tile temporary, only appears when connected to usb.
PS10: fix conflicts in pa_strings and QuickSettingsModel after recents merges.
      clean up commit message's conflicts.
PS11: Remove unnecessary resources
PS12: Don't show tether tile is feature is not supported

Signed-off-by: Andre Saddler <dresadd09691@gmail.com>
Change-Id: I856f1a1f954544cb9e1b78f504fde8916b94235e
Fix: Don't disabe rotation lock tile

     Rotation lock tile was disabled if the user unchecked the Auto-rotate
     screen option directly from within the accessibilty settings.

Change-Id: I8a4fd11b9046507f8f07db515022ea6a4210bac5
Keyguard: don't refresh ui when screen off KeyguardStatusView is doing refresh all the time, which cause high power when screen off.

Original commit: https://android-review.googlesource.com/#/c/78853/

Change-Id: Iaca0c01947bb372f1c5a18c78a50ff788f89a53d
[2/3] Frameworks: Add AOSP Dialer check

Disable QS Network tile if Google dialer is used

Change-Id: I0f49b75429aa4e60794016f9d3d162cf086bba4c
[1/2] Frameworks: Add in-the-spot user preference dialog

This is a new way to setup your device, more intuitively, without diving into a sea of a hundred of menus
The basic idea is taken from TouchWiz roms (here: http://goo.gl/W40rF6)
Also create a helper class for implementing this easier all around the ROM and implement it for first time on Quick Pull down

Drawables by Arz Bhatia

PS2: Code style fixes

Change-Id: I95695a8cbbfea7740b6417ff9ba9ef84e0b7cdd7
Remove unnecessary return statements

Change-Id: I92501efcb180ac92b0675bdbf25a4f33b36bfb40