QuickSettings: onlongclick: Change autorotation tile longpress to enter display settings
Revert "Remove Slim QuietHours 1"

This reverts commit 82f7348338fcfabf382dd6f63b5ca468b20340c2.
[1/7] Base: Blacklist support

telephony: https://gerrit.omnirom.org/#/c/6347/
InCallUI: https://gerrit.omnirom.org/#/c/5669/
Mms: https://gerrit.omnirom.org/#/c/5671/
Settings: https://gerrit.omnirom.org/#/c/5011/
TelephonyProvider: https://gerrit.omnirom.org/#/c/5012/
Telephony: https://gerrit.omnirom.org/#/c/5010/

Change-Id: Ic5a59be11f76b4a9eba075d9c3525086b3ee389e

[1/7] Base: Blacklist permission

There is no permission check for blacklist.
So any app can edit the blacklist.
Add a system-only permission to prevent this.

Change-Id: I1d817e7127bb892aa6f4d4b22fdfd3efb4baa3fa

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/strings_custom.xml
Quick launch powerMenu action

Conflicts:
	core/java/com/android/internal/util/cm/NavigationRingConstants.java
	core/res/res/values/ras_symbols.xml
Use java.util.Objects instead on internal API

Not needed since java.util.Objects implements all the needed
functionality.

Change-Id: Icd31d49a9801d1705427f028e9ac927d58e7d34c

Conflicts:
	services/java/com/android/server/am/ActivityStack.java
Fix ressource leak in getFileCrC

Change-Id: If8a63fa355664d360aab6ecba92c82cd56b745b8
PowerManager : Make proximity check opt-in

Change-Id: I7cf64a82530da2e655018e43683ba7a5584d54f8

Conflicts:
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
	services/java/com/android/server/power/PowerManagerService.java

Conflicts:
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
	services/java/com/android/server/power/PowerManagerService.java
Merge branch 'kk' of github.com:SimpleAOSP/android_frameworks_base into kk
Make sure ThemeConfig is non-null when loading resources

When the device boots into safemode, the theme config will end up
being null and we need to check that prior to using it to retrieve
resources for the StatusBarIconView

This fixes CYAN-5009

Change-Id: I1a90bc9f9c65cb41a6e58947bbd1b6d7728a952b
Themes: Add ability to apply color filters to composed icons

Themes can include one or more of the following filter tags in
assets/icons/res/xml/appfilter.xml

    <!-- HUE filter
         Integer value between -180 and 180 representing the degree.
         0 = no change
    -->
    <filter name="hue">0</filter>

    <!-- SATURATION filter.
         0 = grayscale, 100 = no change, 200 = over saturated
    -->
    <filter name="saturation">0</filter>

    <!-- BRIGHTNESS filter.
         0 = pitch black, 100 = no change, 200 = 200% brightness
    -->
    <filter name="brightness">100</filter>

    <!-- CONTRAST filter.
         -100 = minimal contrast, 0 = no change, 100 = maximum contrast
    -->
    <filter name="contrast">100</filter>

    <!-- ALPHA filter.
         0 = transparent, 100 = opaque
    -->
    <filter name="alpha">75</filter>

    <!-- INVERT filter.
         Valid values are true or false
         true = invert colors
    -->
    <filter name="invert">false</filter>

    <!-- TINT filter.
         A hexadecimal value representing ARGB
    -->
    <filter name="tint">#ff0000ff</filter>

Change-Id: I2431237dd2766176be16c730020557ce87d623e4
Merge branch 'kk' of github.com:SimpleAOSP/android_frameworks_base into kk
Frameworks: network traffic color option (1/2)

Change-Id: I94f28e12cffb46fb36d2b311319bdbd7213d4d7c

Conflicts:
	core/java/android/provider/Settings.java
Over scroll effects [1/2]

Change-Id: I4cc67715f8f3bc67674782f08b9e363ee0e8ac9e

Conflicts:
	core/java/android/provider/Settings.java
	core/java/android/widget/AbsListView.java
StatusBarView: Ensure to not overload in/out animations

- Post animate call in main thread, thanks @David96
- Handle animation checking current view visibility

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Signed-off-by: David L.-W. <xD_e-mail@gmx.de>
StatusBarView: Avoid unnecessary calls to mHandler.post()

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Signed-off-by: David L.-W. <xD_e-mail@gmx.de>
Themes: Fix icon filters clamping to wrong values

Change-Id: Iab3cce465f8bdfd7c30a020fda254728349c5ebe
Themes: Make sure composed icon info is meaningful

We don't want to try and create a composed icon if the parts that
make up a composed icon are not valid or set.

Change-Id: I3d9e7432e4b351de9c0a4e662e028932ee7f08e2
    Show notification when charging.

    If user selects "Charging" option from
    USB computer conection, show the notification
    "Connected in charging mode", which will also
    prevent the pending intent from getting removed.
    CRs-Fixed: 641540

Change-Id: I93a04efe52e8280da95438ceb02b4054610a4d6e
Reduce memory leaks by removing all views.

Change-Id: I64b95981425840d101c8122421281976d0251bae
SystemUI: show statusbar icon if quiet hours is active

Reflects the 3 active modes we provide as status bar icon, similar to
android L.

Change-Id: Ic32242b0843f44de72174ee768ef04ee0f4535aa
Signed-off-by: Dan Trifan <jimsth@gmail.com>