Frameworks: SlimRecents - add <Crimson>

replaced xml drawable with 9patch drawable to remove the overdraw

moved opt cards drawables into opt cards repo

Change-Id: I8ca379337298dcfc33b9ea288ea15440a2e0b0b4
(cherry picked from commit 38bfc7aaeb60acb40f5ae94d640996f3639a17b8)
Recents: Launch as Floating App

Change-Id: Id087a3a0b38ffa637ad9d97647eff6a02d241006

Conflicts:
	packages/SystemUI/res/values/cr_strings.xml
fb: restore navbar compatibility with several xposed modules
I am tired of the complains....

Xposed use the emulator overwrite to enable/disable navbar...this results
into showing up navbar on reboot even if the user has set it to off in settings.

This fixes the issue and still keeps for emulator tests the basic overwrite functionallity
alive as long the provider value was not set.

We may should reflect that in settings as well.

Change-Id: I99f04da8110bbcfcdba62604610d1f4330aea4d0
Frameworks: Notification Reminders (1/2)

Click notification header to set a reminder
Long-click to dismiss current

Change-Id: I3ee914b7dd2381632cc3fceca3edc447ac36aaa9

Conflicts:
	packages/SystemUI/res/values/cr_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/Android.mk
	packages/SystemUI/res/values/cr_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Frameworks: Notification Reminder Interval && Fixes (1/2)

Calculate actual length acceptable for the
	flipper to flip through per device,
	dpi, shade type, etc. A crespo user
	emailed me and said they were having
	issues in this area... Added benefit
	is we can now have separate
	flippers for landscape on devices
	where landscape shade is longer than
	portrait shade (non-tablets).
	Create second flipper and set
	visibility rather than doing the
	complex string breaking on each rotation.

Change EditText type to capitalize sentences
	by default when setting message.

Notification updated to allow user to stop
	the sound by clicking and dismiss
	with a button.  Allows a user to
	cancel the sound but keep the
	notification around.

Also add Flip Interval option since (device dependant)
	the strings parts can potentially be a
	lot longer with this method.

PS2: Oops forgot to git add and ammend lol
PS3: Update file name so I don't conflict with
	mnazim's upcoming feature lol
PS4: Set title limit as well.  Use marquee
	in the case that user's input is too
	large to fit the view.
PS6: Bad math is bad for layout padding

Change-Id: I6375b7b3ac1ce97a6f628e0f8428a8a329b699e9

Conflicts:
	packages/SystemUI/res/values-pt-rBR/cr_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/cr_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
SystemUI: Notification Reminder New Layout && Fixes

Set mCurrOrientation on init

Reimagine Notification Reminder:
	Set beneath normal header.
	No more need to guess size...
	Needed update since apparently
	many users have issues here.

Change-Id: I184e94784ee68cdc218bc2fd2417fc2d93fadb22

Conflicts:
	packages/SystemUI/res/values/cr_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	packages/SystemUI/res/values/axxion_colors.xml
Framework: Allow All Widgets On Keyguard (1/2)

Change-Id: I2f25d403740a9ee8822c684436bc28283c356f6c
Fix Red Dialogs and fix uncrimson

Conflicts:
	core/res/res/drawable-inverted-xhdpi/dialog_full_holo_dark.9.png
	core/res/res/drawable-inverted-xhdpi/dialog_middle_holo_dark.9.png
	core/res/res/drawable-inverted-xhdpi/menu_dropdown_panel_holo_dark.9.png
	core/res/res/drawable-inverted-xhdpi/menu_hardkey_panel_holo_dark.9.png
	core/res/res/drawable-inverted-xhdpi/menu_popup_panel_holo_dark.9.png
Power menu into navring targets (1/2)

- This commit use the intent added here: 0efd6981a6c4b299204b8d4f5495bddb5049f30e

The intent added in  core/java/android/content/Intent.java is called when power menu is choosed

Change-Id: Ifcf898ce7e3221fc67c18b2a54806ef344f68e7f
Signed-off-by: siracuervo <fl.siracusa@outlook.com.ar>

Conflicts:
	core/java/com/android/internal/util/cm/NavigationRingConstants.java
	core/res/res/values/cr_symbols.xml

Conflicts:
	core/java/com/android/internal/util/cm/NavigationRingConstants.java
	core/java/com/android/internal/util/cm/NavigationRingHelpers.java
	core/res/res/values/axxion_symbols.xml
	packages/SystemUI/src/com/android/systemui/cm/ActionTarget.java
Navring last app toggle (1/2)

Change-Id: I5f744732f39cd33c0ec7dcae23da0295f945c9a1

Conflicts:
	core/java/com/android/internal/util/cm/NavigationRingConstants.java
	core/res/res/values/axxion_symbols.xml

Conflicts:
	core/java/com/android/internal/util/cm/NavigationRingConstants.java
	packages/SystemUI/src/com/android/systemui/cm/ActionTarget.java
Fix soft reboot using power menu through tile, navring and recent long press

- Using slim roms idea of this commit: https://github.com/SlimRoms/frameworks_base/commit/2d7b1afb903858bf26ac98dc9de64924a5ce9a05 and calling all power menu actions from the same thread

Change-Id: Ie4768a1722a41164474ef300f4a1b67c535349f6

Conflicts:
	core/java/com/android/internal/statusbar/IStatusBar.aidl
	core/java/com/android/internal/util/cm/QSConstants.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	services/java/com/android/server/wm/WindowManagerService.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/cm/ActionTarget.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
	services/java/com/android/server/wm/WindowManagerService.java
Toggle to switch recent panels styles (1/2)
- Allows us to switch between Stock or Slim recent panles;
- Made TRDS work in theme changes;
- Some minor codes improvments;

This was based on: https://github.com/AOSB/android_frameworks_base/commit/dbb5540884826786bfec9f7ea42a515a09c4094e
Thanks @codex-corp

Change-Id: Ie4c7497de93f1cbdec077657c21bed3766043187

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Bring floating window in line with ParanoidAndroid

Change-Id: Id39b454ce58ff6071d2bb739cca4bb012039b2d5

Conflicts:
	core/java/android/app/Activity.java
 [1/2] base: Add Haptic Feedback to quicktiles
Fix build after merge of equalizer tile

Change-Id: I48551abc060569444f9785a3ef659fb2dc3f2138

Conflicts:
	packages/SystemUI/Android.mk
Toggle Last App: move toggle last app method to a separate class

&&& Fix derp in PhoneStatusBar
Base: Floating window with multitasking

basic floating window are taken from AOSPA (HALO) by @D4rKn3sSyS

Drawables courtesy of @Alex Cruz thanks to him :)

with heavy change to get this work for multitasking

this feature, has ability to:
1. Moveable window to various position
2. Scaling window with 2 finger like zoom in/out
3. Double tap in actionbar or above window to fullscreen or back to floating window
4. Automatically resize when Snapping into one of side (Top, Bottom, Left, Right)
   (taken from xhalofloatingwindow by @zst123)
5. Automatically switch focus from other app (taken from multiwindow by @xplodwild)
6. Unlimited floating window app (depends on RAM)

this is still under testing, to make fully works
so if there any bug because of this, DO NOT REPORT INTO OMNIROM JIRA

to make app launch using Floating window feature

you must add Intent.FLAG_FLOATING_WINDOW
before start an activity

for example you can look at https://gerrit.omnirom.org/6515

need https://gerrit.omnirom.org/#/c/6561

PS.17 : fix scaling

Change-Id: Iad00c239de7d66e8bb45205ce626d4f08417b7cd

Conflicts:
	core/java/android/app/IActivityManager.java
	core/java/android/content/Intent.java
	core/java/android/view/IWindowManager.aidl
	core/res/res/values/strings_custom.xml
	core/res/res/values/symbols_custom.xml
	services/java/com/android/server/wm/WindowManagerService.java

Conflicts:
	core/java/android/app/Activity.java

Conflicts:
	core/res/res/values/liquid_strings.xml
	core/res/res/values/liquid_symbols.xml

Conflicts:
	core/java/android/app/Activity.java
	core/java/android/view/IWindowManager.aidl
	core/res/res/values/liquid_strings.xml
	core/res/res/values/liquid_symbols.xml
	services/java/com/android/server/wm/WindowManagerService.java

(cherry picked from commit 3f7f0a7b010173dd0ef639467a3c0b7fbe9ee00a)
Signed-off-by: siracuervo <fl.siracusa@outlook.com.ar>

Conflicts:
	core/res/res/values/axxion_strings.xml
Quick Settings: Option to use floating window (1/2)

Allows the option of launching preferences from the quicksettings menu in a
floating window

Change-Id: Ie54545a4dc423484b6106a540f106467c25d8c49
Signed-off-by: Evan Anderson <evan1124@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
Fixes

Conflicts:
	services/java/com/android/server/ThemeService.java
	services/java/com/android/server/am/ActivityStack.java
	services/java/com/android/server/pm/PackageManagerService.java
New Halo drawables thanks to Arz Bhatia and PA team

Change-Id: Ic63b433466d686a645133d987bfc17ba4b6ff42d

Conflicts:
	packages/SystemUI/res/drawable-hdpi/ic_notify_halo_normal.png
	packages/SystemUI/res/drawable-hdpi/ic_notify_halo_pressed.png
	packages/SystemUI/res/drawable-mdpi/ic_notify_halo_normal.png
	packages/SystemUI/res/drawable-mdpi/ic_notify_halo_pressed.png
	packages/SystemUI/res/drawable-xhdpi/ic_notify_halo_normal.png
	packages/SystemUI/res/drawable-xhdpi/ic_notify_halo_pressed.png