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
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
frameworks: translation - RU

If08904cb709b5969cac451515ec661adbcc1887c

Change-Id: I0cf3b28c7687c153609b7f9ec3afb5c80c4923ea
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
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
Revert "SystemUI: Remove broadcast from QH toggles"

This reverts commit 44ed8aa9a50854fe2c2a972cf3c942077700e18b.

Change-Id: I397c5a81d32243b0251e3c3350ed6f4c6720fd99
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: ES translations

PS2: Add more strings

Change-Id: I105fbd1533a508cdea89f97ca09816b3094a20fe
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
Frameworks: apple can do...we can do as well

incredible apple engineers speeded up the overall UI and reduced per default slightly
the animation scales. Well we do as well and reduce it from 1 to 0.75...smooth, looks well
and does not break anything

Change-Id: Icbcc889e49c8d3ab24cf2b1c10bbe0e8bf7e7637
Fix the value type of def_noise_suppression

Change-Id: I0b94e9b24af959fa1c16c807ba83890b2ce077ad

Conflicts:
	packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java

Change-Id: I0b94e9b24af959fa1c16c807ba83890b2ce077ad
Display: Dirty region propagation

Pass Dirty region values from HW renderer to Surface Texture.

Change-Id: Ibd121ed398a1319d3daf26f9fd39a03323bba666
frameworks/base: Call setDirtyRect to update dirty rectangle

This change updates dirty rectangle instead of dirty region of a
surface.

Change-Id: Ic5c6e68ff644911a596a2432fd14868edbff9b17
Make the default value of in-call noise suppression configurable.

Change-Id: I1dc0b6085807c49370a06243689b70ea4b91732b
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
[ActivityManager] Fix a bug: unable to start activity after starting activities during screen off.

Symptom: Unable to start any activity.
Root Cause: ActivityStack.mPausingActivity() points to a destroyed activity of a died process, so that ActivityStackSupervisor.allPausedActivitiesComplete() always returns false.
Solution: Set mPausingActivity to null in ActivityStack.cleanUpActivityLocked().
Reproduce steps:
    a. Turn screen off.
    b. A background service starts an activity X (in process X).
    c. A background service starts a no-history activity Y (in process Y), but the main thread of Y was blocked.
    d. A background service starts Y 3~4 times --> this causes am_failed_to_pause on X.
    e. Main thread of Y is freed finally --> this causes Y crash for android.view.WindowManager$BadTokenException.
    f. Turn screen on, X is shown on screen, but neither back key nor home key can work because mPausingActivity is Y.

Change-Id: I320b3db407e2d4cc745c8ca22a6e548742234242
Mark constructor as accessible in LayoutInflater.

Needed to bypass new access checks for fields, methods, and
constructors.

Change-Id: I8ff0b44a6cb4f4af1c72734bca366d8b89528030
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