Revert "Halo: allow choose notifications on floating window or not (1/2)"

This reverts commit 1cd476f3f09c6cd51069e2ab6a1ddd66fbcd14b5.
Revert "Bring floating window in line with ParanoidAndroid"

This reverts commit d79ed6b4896711b2a8a1060d7d84a7282efce4c1.
Revert "Kill floating activities running in the same thread when tapping outside"

This reverts commit c40fda1e25ce95c5f802e1c158a5fb95a0c990dd.
Revert "Floating window: Enable transparent layer"

This reverts commit 21e800205ef2939529cb56a9989801fe7a44a54c.
Revert "fix styles"

This reverts commit 725c13c73d4b738117d5050922ec1b835d7f6976.
Revert "Base: Floating window with multitasking"

This reverts commit 36af70f999454c36b45013dd27c2c8602354aba1.

Signed-off-by: aways <aways@c-rom.org>

Conflicts:
	core/res/res/values/crom_strings.xml

Conflicts:
	core/res/res/values/crom_strings.xml
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
fix styles

Change-Id: Iba1474de4a3b2c7430ca8eb7f5c9b12a0454211a
Floating window: Enable transparent layer

Halo: Re-enable transparent layer

Change-Id: I3af24ed40314ca5edb1e5157c0ad9df8ac89c99f

App sidebar: enable transparent layer for floating apps

+ cleanup

Change-Id: I6ae8209f7d7839c78840e69bc9597d43fbedc790

enable transparent layer on notification long click

Change-Id: I058a19776bd90d964b5d5df4fcf251c784b3ba8c
Floating window: Enable transparent layer

Halo: Re-enable transparent layer

App sidebar: enable transparent layer for floating apps

enable transparent layer on notification long click

Change-Id: I8b90a19689e8b448a7649ff4f1586fa3c7607cb9
Kill floating activities running in the same thread when tapping outside

This change makes all activities from the same app to be finished when we tap outside the halo window. Other apps running in different threads
(floating or not) won't be finished.

Port from here: https://github.com/ParanoidAndroid/android_frameworks_base/commit/f489f45ab2ba5dd4991c241917f7f4b0fd74b884

Change-Id: Ie6d6f46b2e23be60f991520ed480c2866fb2d0e3
Bring floating window in line with ParanoidAndroid

Change-Id: Id39b454ce58ff6071d2bb739cca4bb012039b2d5
Revert "Revert "Halo: allow choose notifications on floating window or not (1/2)""

This reverts commit c671129b08698b1e8b228684207bb4829fb382bf.
update animation scale defaults with the new slim/ios ones

Change-Id: If460e78d6be2cd2e00ebbb121d60f4055ca54993
Add the calling package name to requestRouteToHost

The calling package name will be used to check if an application is a
system application when deciding if a route should be exempt from VPN
routing rules...

Bug: 12937545
Change-Id: I2c09c875fe9bb9685871a0a801ddcbb32fc17405
Only allow System apps to make VPN exempt routes

requestRouteToHost will only allow system applications to make routes
exempt from the VPN's routing rules.

If a VPN is currently running and a non-system app requests a route it
will only succeed if that host is currently covered by a VPN exempt
routing rule. Otherwise it will fail.

For example, if a VPN is running and the MMS network is brought online
those routes will be added as VPN exempt. If an application then tries
to request a route to a MMS endpoint it will succeed because the routes
already exist. If an application tries to request a route to a host
covered by the VPN the call will fail.

Bug: 12937545
Change-Id: If7bcec91bbb96c62c8fb69748c975847e6c00b6f
Update LinkProperties with MTU value

Use the MTU provided by network as part of Data Call Response.
If it is not present, use the static value from config file

Change-Id: I9d03cc9b355d09a93883fbf4ddc93fae0077641c
CRs-Fixed: 634747
Connectivity: Set TCP delayed ACK and User Configuration Flag

Provide a Mechanism to set tcp delayed ack settings from
Connectivity Service. The tcp_use_userconfig flag is set to
override the default tcp delayed ack configuration in tcp stack.
tcp_use_userconfig flag is reset when the TCP stack is required
to use default delayed ack settings. Currently the delayed ack
settings are overridden for Wifi and LTE networks only. Other
network types continue to use default delayed ack settings

Change-Id: I282ef0f6b6278b6efcef3870242974f7ee93e508
CRs-Fixed: 628139
services: change default sampling interval to -1

Change default sampling interval to -1 to avoid sampling to resolve
power consumption issue. Original implement will keep UE wake up every
12 minutes, which will cause issue when doing power standby test.

Change-Id: I018e22a44259e94bce87ceaf04ff523f035183f8
Peek: adjust timeout and wakelock slightly

-7 seconds for timeout and 15 seconds for wakelock shouldnt effect battery too much