Frameworks: navigation bar IME cursor

Old idea from AOKP revamped for kk 4.4

- permanent option (not configurable) due it is very usefull
- left arrow single press = cursor left; longpress = cursor one line up; longpress hold = faster several lines up
- right arrow same as left arrow but opposite directions
- accessibility events added
- transistion added

PS;
- add other flag handling
PS
- enable haptic feedback

rebase

Change-Id: If08904cb709b5969cac451515ec661adbcc1887c
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/com/android/internal/util/beanstalk/SlimActions.java
	packages/SystemUI/res/values/bs_strings.xml
Frameworks: SlimRecents: user configurable default expanded mode (1/2)

A lot requests to customize the default behaviour

auto = like it is now....dependend on the overlay the first tasks are expanded other collapsed
always = always all expanded
never = always all collapsed

Of course still user changes directly in the recent panel counts more then the default settings
behaviour

PS
- correct code comment to new behaviour
PS
- fix typo

rebase

Change-Id: I468be296de3c50d0036d2805c0d0cb8e54248e57
SysUI: Don't recreate controllers.

The various controllers, such as mLocationController, get recreated
every time the status bar is recreated due to TRDS.  We
should only need to create these if they are null, otherwise use
the controller as is.  Also, each of these controlers registers
themselves as a broadcast receiver and are never unregistered before
recreating them.

Change-Id: I6215aae5a82b7ced8f0f25cf592a804d38825260
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
[1/2] Base: DownloadManager: add support pause/resume/stop notifications

Add pause, resume and stop functions to make user can pause, resume and stop downloads by manual in downloads application.

Change-Id: I82ffff5a539448faab8933e2b47591199bf24cb9
[1/4] Base: Smart Phone Call

Change-Id: I3570379431afd554d6fc0f6bf86f545c14be8adb
Signed-off-by: scott <scott@ubuntu>
fixup navbar commit

Change-Id: Ieec2178fd091fbc5f522168c3525380acc737971
Signed-off-by: scott <scott@ubuntu>
gps: fixed singleshot session that doesn't stop

When a single shot location is requested and a
location is returned, the location request is
not stopped and so it continues even when the
requestor has stopped listening. This can cause
gps tracking to continue in the backgroud and eat
up battery.

This is fixed by stoping the provider if there
are no more update record associated with it
when a location is returned.

Change-Id: Ie437732ff06231a46724843af30e21ca3a1694ab
Fix STE OMX
Fix STE "OK Google"

Thanks @C457 and @Meticulus
decouple SW FLP and HW FLP overlay flags

currently there is only overlay flag shared by SW FLP and HW FLP. This
change allows having different overlay setting for sw / hw FLPs.

Change-Id: I643fa70380e7568ae851d23e87917a5b4b599fe8
CRs-Fixed: 622338
Combo Provider: Get the package name from resource

Get the package name for combo provider from resouce
instead of hardcoding the name. Also, geofence services
provider is renamed to differentiate from the hal
geofence provider

CRs-fixed: 608477

Change-Id: I84739e440d688d6e1784aa5ab4e2074eaa740bab
Combo Provider: Specific location screening

Only screen network locations if Combo provider is
the connected network location provider.

CRs-fixed: 608477

Change-Id: I513bddae9cff493dd9aac4460168864548e4bfb4
Fix for crash in LocationManagerService

Resolved issue where MockProvider was being cast to
LocationProviderProxy and would cause a fatal exception.

Change-Id: I7c8c83961dd03d59292e773b01995ed6b3ac04c7
CRs-fixed: 619882
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
Framework: Shake to Temporarily Secure && Fixes(1/2)

PS2: Reduce bloat, grab correct user
	Dependency
PS3: Rebase correctly
PS4: Tired of working these commits into eachother
	correctly, merge into this one commit.
	Fix simpin && face unlock
	Disable shake security if device admin
	requires screen security of any sort
PS5: Hack to fix double-inflation on boot
	registers a listener that stays alive
	until you shake
PS6: Better logic from introduction in PS5
        && make the initial feature enabled
        boolean check for security enabled
        before processing everything else
        without reason.
PS7: Fix potential issue with timer
        && shake staying registered.  Still
        retains accuracy of  without
        unnecessary processing due to
        PS6's security check.

Commit changes: Shake to temporarily secure
	Fix all lock-before-unlock issues
	Shake to temporarily secure timer

Lock-Before-Unlock issues fixed:
	On rotate, secure lock is shown without
		slider.
	On boot, secure lock is shown without
		slider
	Widgets aren't focused correctly if
		screen is turned on twice
		without unlocking
	Unlock target cut-off in landscape
	Smaller unlock ring size && mismatched
		bouncer size

Change-Id: Id6b0b85d2c7d086e1bd1199d7206b1e96b345328
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardSecurityModel.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java
Revert "SystemUI: Remove broadcast from QH toggles"

This reverts commit 44ed8aa9a50854fe2c2a972cf3c942077700e18b.

Change-Id: I397c5a81d32243b0251e3c3350ed6f4c6720fd99
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/QuietHoursTile.java
Revert "Base: Check ProcessesReady before broadcast"

This reverts commit 5fdef9b4995ff513fd2cb0092ec98bad17b8e775.

Change-Id: I5988f8f9d7c46697d8f88b322667c1f56b41e5a2
Revert "Insufficient ProcessRecord cleanup when persistent process is killed"

This reverts commit 72e5fb0277ebb6149b31acc354c88dab40ce977f.

Change-Id: I7f9c3024b429a9667d8639f0a8804e21e77612f7
SlimRecents: fix sometimes missing first task

apply the fix for aosp recents

https://github.com/SlimRoms/frameworks_base/commit/760413134a5efe60c1d4473322e467152d71c80b

as well to slimrecents

Change-Id: Ibce0707cf516034675451d0440608bafe097c92d
SystemUI: Custom Tile - add Global && Create Small API

Add forgotten Global table to Custom tile
Adjust Advanced Tile to directly change
	settings rather than sending an
	intent to the Chamber to loop and parse...
	and return to loop and parse again...
	Cleaner and more efficient

API:
Intent Broadcasted:
"com.android.systemui.CHAMBER_FIRED"
Extras:
"setting_key" > Setting being resolved
"setting_value" > Value resolved setting is currently
	set to.
"%" must be added as a flag per the usual usage of getting
	Extras to allow correct parsing.
	I.E. "%setting_key" and "%setting_value"

Intent can be caught by many profile management apps
	such as tasker and llama.  This allows the
	user to catch this intent and change profiles
	update settings, etc. Given that only advanced
	users are using this process anyway, it will
	only be called by those who might take interest
	in using it.

rebase

Change-Id: I275f616977acacb5aa802f89ea019e986bd82844