policy: add missing spacer view

Statusbar and toggle views were squished together,
looks like this got left out.

Change-Id: I0a580662fa75d3b430536b6820df9d040eb51384
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Framework: CustomToggle [WIP]

Early Early Early stages.
Probably going to need A LOT of help here.

Also, Yes.  You're ALL being kanged <3

So far...SteveSpear426.
More WILL Follow.

PS4: Thanks to SteveSpear for Finding My Derp.
PS6: Fix States && LongClick Logic
PS7: Whoops.  Let's pretend PS6 never happened.
PS8: Added Some Options / Fixed State at Boot (maybe)
PS9: Actually set at boot (per option)
PS10: Option to Change Action Logic
PS11: More Options
PS12: Set On Boot Fix For "Basic" Toggle
PS13: Bothering me.  I'll get digging this weekend...
        Just a quick avoidance of runnable if not
        needed.
PS14: Refactored to follow the new NavBar UI in ROMControl.
PS15: commit message derp.
PS16: Rebase against dependcies
PS17: CustomState presists across death
PS18: Derp
PS19: Spacing errors
PS20: Rebased
PS21: Revise Option Default Per RC Update

Change-Id: I80f157d1a8d68ad0b21028aa7d730025e2ceea04
Fix a programmatic smooth scroll bug

Bug: smoothScrollToPosition() stops at child view of which height is
higher than list view itself.

Change-Id: I695ca9db4c706aa7f365967dd3916f9a01917346
Signed-off-by: Yongyi Li <yongyi.li.cn@gmail.com>
Remove the fixed-length buffer in DdmHandleNativeHeap.getLeakInfo.

It was possible to overrun this buffer, and even if you did fill
the buffer in a single read and exit the loop, the "string" still
wouldn't be terminated.

Bug: 8468088
Change-Id: Ia19f4d26dfd79e7b63807a7ec9540b932163d246
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: I1b2b7ab1425e9e531df4bf1515336bdbaa778c9d