On-The-Spot: Add clear all recents button to user preferences.

PS3: Add proper drawable thanks to / by Dani Rosenkamp @DaNi--
     Fix wrong change id (from abandoned commit)
PS4: More logic drawable

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I632730bee6b409072689e07fb1084ceaca5b1d49
SystemUI: Fix Quick Settings appear when disabled

If you tap the clock on the status bar, then the next time you pull down the status bar on the
right side it will show the quick settings. Even if the user disabled quick pulldown.

Bug: https://paranoidandroid.atlassian.net/browse/AOSPA-59

PS2: fixed spacing

Change-Id: Ibb2efd27a96898ff11640c7a58c0686e2fefc75f
Signed-off-by: Parthipan Ramesh <parthipan.ramesh@gmail.com>
frameworks/base: add "Accept all files" option for incoming files via Bluetooth [2/3]

This patch defines a key to store the option value in Settings Provider db.

Use together with https://gerrit.omnirom.org/6782/
 and https://gerrit.omnirom.org/6784/

Change-Id: I31275e3a88841891b9cd7c3109941821797cbab8
Keyguard: disable statusbar clock for dashclock, lockclock and desclock

afaik this was an original commit from Danesh and we extended it later.
Whatever thanks to him in this case :)

Change-Id: I67a370b0a76f938fa3e022e8c467f2d6ebca87c0
Attempt to fix Navring FC

leftover derp from CM's lockscreen targets

Change-Id: Iab633533a092688689b9fa524ed38a778b75f60e
Fragment animations are not being saved across configuration changes

As per comment #5 in issue #25994:

The problem here is not that the state isn't saved and restored, the problem is how the BackStackRecord is rebuilt.  The ops themselves do save and restore the state, the problem is in BackStackRecord#addOp.

    void addOp(Op op) {
        if (mHead == null) {
            mHead = mTail = op;
        } else {
            op.prev = mTail;
            mTail.next = op;
            mTail = op;
        }
        op.enterAnim = mEnterAnim;
        op.exitAnim = mExitAnim;
        op.popEnterAnim = mPopEnterAnim;
        op.popExitAnim = mPopExitAnim;
        mNumOp++;
    }

The enter, exit, popEnter and popExit animations are overwritten with whatever is currently in the record, which during the restoration process these are 0 so the values which were saved in the ops is lost.

Change-Id: I095cc7ff4ae65581d728f34217fb873ad2f0c574
Add config_batterySdCardAccessibility to symbols.xml

Change-Id: I0f9dc18ddaaa52d02ba547c827db62d1d765c37f
Fix API by adding hide declaration to BLUETOOTH_ACCEPT_ALL_FILES

Otherwise this will cause errors about API changes with make checkapi

Change-Id: I6275282630cd582aafd587adf81d50500f1ba844
Fix very long app_name crash.

http://ibrahimbalic.com/2014/android-os-memory-corruption-bug/ found an stack overflow bug.
The very long app_name make libandroid_runtime allocate a very large array on stack, the stack may overflow to other data areas in this situation.
This patch allocate large array on heap instead of on stack to avoid segment fault when doing memcpy.

Change-Id: I99999569b852d43a9c7a6eb1fa80e9f1a1f4e2b2
Revert "Dual panel for settings (1/2)"

This reverts commit 0e73bae1344e80f8f656dc1226b5edbaa471b67e.

Conflicts:
	core/java/android/provider/Settings.java
PIE: Disable orientation sensor when we don't need it

Orientation sensor always enabled causing some device keep awake and
battery drain. This commit fix this issue.

  * Disable/Enable orientation listener when screen turn off/on if PIE
is enabled.
  * If PIE is disabled, recycle it.

Change-Id: I6bda168b3fd62d9f7047ffc3a3c6bfd08e655543
SystemUI: Fix Removed USB Storage Notification

If you have connected a OTG USB Storage to your device an disconnect it
the Notification "Removed USB Storage" appears. But you can't swipe it
off, because the Notification intent is set with FLAG_ONGOING_EVENT and
not with FLAG_AUTO_CANCEL!
In my fix I changed the boolean function variable 'dismissable' from
"false" to "true" and so the Notofication will gets the flag
FLAG_AUTO_CANCEL, now the Notification can be swiped off.

Bug: https://paranoidandroid.atlassian.net/browse/AOSPA-191

Change-Id: I01713dbcbc025d0dd2df3e6d4359507e0e31a23f
Signed-off-by: Matthias Freund <matthias88freund@gmail.com>
Merge "On-The-Spot: Add clear all recents button to user preferences." into kitkat
[TEMP] PIE: fix a freezing bug

How to reproduce:
- Enable PIE;
- Toggle between on/of;
- Without close expanded status bar click any tile that use one of this methods -> private void startSettingsActivity(String action) or private void startSettingsActivity(Intent intent);
- System will freez for some seconds and soft reboot;

Solution:
- When deteced PIE mode enabled use a runnable with a less time possible to give time to system colapse panels and perform needed actions

Change-Id: Idc5f112873aa7a31993e7a3c82a1760bb45f8b9b
Merge "[TEMP] PIE: fix a freezing bug" into kitkat
Merge "SystemUI: Fix Removed USB Storage Notification" into kitkat
Merge "SystemUI: Fix Quick Settings appear when disabled" into kitkat
fix WRITE_SETTINGS to be "dangerous"

(see http://www.fireeye.com/blog/technical/2014/04/occupy_your_icons_silently_on_android.html for an explanation why this is dangerous)

Change-Id: I8f938dc4f528aa2ccbca3d4cec235feb0299c0bd
Fix very long app_name crash.

http://ibrahimbalic.com/2014/android-os-memory-corruption-bug/ found an stack overflow bug.
The very long app_name make libandroid_runtime allocate a very large array on stack, the stack may overflow to other data areas in this situation.
This patch allocate large array on heap instead of on stack to avoid segment fault when doing memcpy.

Change-Id: I99999569b852d43a9c7a6eb1fa80e9f1a1f4e2b2
Merge "PIE: Disable orientation sensor when we don't need it" into kitkat