Framework: Minor shake to secure fixes

Match insecure lockscreen feel completely:
	Allow camera roll to be viewed while
		shake to secure enabled and
		device is currently insecure
	Launch activities as though insecure
		which makes the process faster
		and uses the correct animation

Change-Id: I5752e68c022cdb9b9cbffa1bae4dcb901e23137b
Frameworks: IME cursor controll be consistent

If user has enabled volume button IME cursor control do not show
navbar IME cursor control. One is enough and can be asumed to be the
default one the user is using. So be consistent and just have one enabled.

Change-Id: I1981579ef3ced52ba94bd84d4f4675cea379562e

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Marquee text RTL improvements

Changed marquee text to scroll according to
the reading direction. Arabic text will
show the right edge and scroll towards
the left edge and vice versa for Latin.

Corrected marquee flicker when scroll animation
finished. The ghost scroll's x position was cast
to int and it made the text flicker when
marquee stops.

Ghost part didn't display for RTL languages.
Added multiplication with
getParagraphDirection to negate the ghost
offset.

Change-Id: I689039118df01a62f73ef0079c857fea1bfcc5a0
Always call super.onCreate().  Always.

Bug 12991134

(cherrypick of commit 9d6376a1d88ab5b3a41ee4400e3aaa4c4ee69e2a)

Change-Id: Ife16ef93408253e3318a06dc0206ab4b88c7f367
SystemUI: Fix Advanced Custom Tile location_mode

	location_mode resolver needs to be set
	to "location_last_mode" while the setting
	stored to update location method
	needs to be set to "location_mode"

Change-Id: I744b7c5ea87556825119a7f2bdae0fb988251a58
[1/2] Base: Hide power menu on lockscreen

Adds an option to enable/disable power menu on lockscreen.

Settings: https://gerrit.omnirom.org/#/c/4702/

Change-Id: I0de1501d0ecedb7b9b08fbb3aebaecd0e63cc09e

Conflicts:

	core/java/android/provider/Settings.java
StatusHeader: fix auto updating not working

Thanks to Nameless ROM

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Revert "Location Tile: add swipe actions to switch mode"

This reverts commit 4b871024631ac6da3450e68c3997d7fb70b353db.
Fix: Build errors

Signed-off-by: Chintan Shah <cgintan1998@gmail.com>
Revert "Screen recorder settings [2/2]"

This reverts commit 85e0f4f5704c371983f146acbe4c2aca444a7a95.