Squash commits: Various fixes from Vanir by nuclearmistake

resolver list is not cleared on rebuild

Refactoring ResolverActivity.java

Change-Id: I84e6420ff98ddcafd27a52b041ddb1c50e7d7362
Signed-off-by: You Kim <you.kim72@gmail.com>

Re-use existing thread

Bug: 7377541
Change-Id: I097f2288ebfc2b4a9782cbced19d9c36d0703acb

Reduce jankiness of the transition between a text field with FLAG_NO_FULLSCREEN and a text field with FLAG_NO_EXTRACT_UI

Bug: 7393485

Currently, the extract text view blinks at the transition of InputMethodService.
This change reduces this blinking by making the extract text view invisible when the extract text view is hidden.

Change-Id: I9af96058283a9a5b60707d025ad1abbbbc23c16f

Optimize drawHardwareAccelerated method in Editor class

When inserting a new line or breaking a line,
every display list was invalidated and rebuilt before.
However, we can reuse the display lists above intactly and also
reuse the display lists below with only updating drawing locations.

This patch reuses the display lists if possible.
The display lists above the inserted line are just reused
and the display lists below are reused with only updating
drawing locations not fullly rebuilt.

mIndexOfFirstChangedBlock is the index of the first block
which is moved by inserting or breaking a line.
So the display list whose index is >= mIndexOfFirstChangedBlock
only needs to update its drawing location.

Change-Id: Ica20deb0ebb5750de21356ed31fa9f86e657ff92
Signed-off-by: Sangkyu Lee <sk82.lee@lge.com>
Fix alt layout icon for H Data

thanks to AirOne70 for the heads up/fix

Change-Id: I4b881e3360477f92396c17a9b5efc489bf4ea500
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
fixes to make wifi priority work

Change-Id: Ia2832f8469808975ddd5d0f5104f9b9dc9ef6f9c
fix potential memory leak

use fclose() before return.

Change-Id: I3ed193464cc0dc90e9935ae19162667ad367628b
frameworks/base: Increase Zygote preload GC threshold to half the heapgrowthlimit.

Increase Zygote preload GC threshold to half the heapgrowthlimit,
to reduce boot up time.

ps2: add missing include

Change-Id: I6ea0f115e5f96836adec5ba9b796f54e6e898643
ActivityTrigger:  New class to invoke when activity starts/resumes

Change-Id: Ib57aa4d3767e27b5bba658b27e084fc3ef042c36
Add CPU boosting hooks

 * Boost CPU to max during scrolling
 * Boost CPU to max on activity start/resume
 * Inspired by a patch from CodeAuora.

Change-Id: I72f2c2851b01fbceabddead03a4c3a7a0526ca61
power: Add CPU boosting interface

 * Boosts CPU using Power HAL for the given duration.
 * Duration is given in microseconds.
 * Power HAL must implement POWER_HINT_CPU_BOOST.

Change-Id: Ic79baf7e3d0f75483c2fe8a242b4c3d93368b68b
Add Power Menu Tile

Click once: Brings up Power Menu.

Long click: Will let you reboot your device.

Ported from:

Rascarlo's (https://github.com/rascarlo/platform_frameworks_base/commit/d9dbc4f6f9bb78683c21f8d28fb35c54cfe323b1)
CyanogenMod (http://review.cyanogenmod.org/#/c/30502/)
Add Profile Tile
Fix spelling derp

Togle is now Toggle

Change-Id: I2ea69d49b60a1d51b2ed1a48841b79169ddd7a79
Signed-off-by: task650 <task650@gmail.com>
Fix alt layout icon for H Data

thanks to AirOne70 for the heads up/fix

Change-Id: I4b881e3360477f92396c17a9b5efc489bf4ea500
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
Lockscreen: respect global vibrate settings on longpress unlock

Change-Id: I5fd868b89236f1a3ca09d5f79530d841121516d0
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>