Spen Options 1/2: Enable Spen options

brought up from http://gerrit.sudoservers.com/#/c/4309/

Patchset 2: Add options for removing and inserting the spen
            Not working yet... Uploading to see it better.

Patchset 3: Rebase off romans toggles and the new awesome
            action awesomeness.

Patchset 4: Clean up and abandon insert and reomve actions for now

Change-Id: Id1e0280163bdb72bd1d38d6825b144e4c599e220
Include android.permission.ACCESS_SUPERUSER permission in the base API

Since we don't include this version of the su binary we need to
register this permission other wise if user installs Koush's Superuser
apk later all apps previously installed will not be granted
superuser permission as it, the permission, did not exist when apk
previously asked for permissions

This is a hack to avoid Android Issue 25906
 (https://code.google.com/p/android/issues/detail?id=25906)

Change-Id: I4bc044fa8808d7e11e8cc004f680a99d11d9b66d
derp can't have webaddress here

Change-Id: I6a158757f08445f51a893c513724e1332dc3434d
Toggles: fix silent off label

Change-Id: Id811af6599ca8466ba3af0dd555a4856863ef7fb
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Toggles: fix initial bluetooth icon

Change-Id: I7ceb1e382dce07bd4ccca0777535e49015a16070
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Toggle bug fixes

- battery info should be stored
- user/fav user should retain images after rotating
- new fast charge file reading impl
- bluetooth/wifiap logic improvements

PS2: Add method to set the ImageLevel for the ImageView drawable.
     This will fix the battery icon

PS8: - collapse status bar when clicking on ime tile
     - use proper color in tile text style

PS9: align text against bottom of toggles

Change-Id: I7646292b88f34cd3b1e23ba615d2c571ca22cb89
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Bring back powermenu, profile, quiethours, statushide, sleep toggle

Change-Id: I96ebb726c1c9623faa7b5fba6e6d3e9f679fc7a6
Final BT toggle fix!

Change-Id: I0c8f85ef87d1f359c18cab8c4d07f681fe2b5649
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>
Policy: fix keyguard statusbar showing while in ext desktop, fixes it in
apps like currents as well

Change-Id: Id3e4b99d60c33e4050e0e97c365d1ae739f603ec
pie alignment

Change-Id: I842b914ab7e8807a861e21695d96d2124ae9d142
Show Expanded Desktop Option in keyguard

Change-Id: I561ffa2151599f4277f08add3e9ee00f43900c74
Try to fix null window errors when hangling home action

Change-Id: I6b5cd4010fd619cbc9c1294d76d74b82f61f7839
Fix deskclock preload namespace

Change-Id: Ib277b52fd043eacde7cfc28588e4e2fdf93e275b
Fall back to software rendering of the wallpaper in case OpenGL rendering fails

This fixes an issue where OpenGL initialization succeeds but buffer allocation fails because the requested wallpaper size
is too large (or otherwise unsupported) by the graphics hardware. This fixes an issue where SystemUI crashes constantly
on the PandaBoard when connected to a full HD display. Tested only on PandaBoard, no access to alternative hardware.
Signed-off-by: Wim Vander Schelden <wim.vander.schelden@philips.com>

Change-Id: I8d2e1ae9fd9772977c4e365f23f2f58bbca3787c
Revert "use utf8_length() instead of local function, isValidUtf8()"

This reverts commit 1a8b6c29aaa5a1591097daca0876808cc029cbda

Reason for revert: utf8_length handles a slightly different range than the checkjni code, so it's possible for a given string to pass the utf8_length check, but then fail the jni  check.

Change-Id: I81e15c95edd8f89782d8ad9025e68502b9340f22
Applying ChannelScrolling to remove calculateDragAngle

To avoid angle calculation changed the logic to use virtual areas.
When try to drag or pan, check where the current touch point locates
and determine how to drag a page.

Change-Id: Id9bd08a69c4ac93ff385c8088e6c16bed5dc5f88
Signed-off-by: kiwon <kiwon98.lee@samsung.com>
suppress default string resources build warnings from aapt by default
    make bacon SHOW_DEFAULT_TRANSLATION_WARNINGS:=1       to see them
show non-default string resource build watnings from aapt by default
    make bacon HIDE_LOCALIZATION_WARNINGS:=1        to hide them

http://gerrit.sudoservers.com/#/c/4275/

Change-Id: I0f6e89dfc5fcbe2c11ecae800c990ba86f4b7b4b
StreamingZipInflater: fix mmap'd end of read

When reaching the end of a mmap'd segment, it was erroneously trying to
read more data. This is because we were reading data one character at a
time, so we never reached the Z_STREAM_END result without going through
the loop once more.

Bug: https://code.google.com/p/android/issues/detail?id=39041
Change-Id: I6c53b8187384a42217c32112d6a0c2857f471109
Account malloc mmaped pages as native heap.

Currently when malloc uses a page rather than brk the heap gets accounted as
ashmem memory. Previously the memory would be accounted as unknown but since
[1] it gets accounted as ashmem. This change makes the accounting see this
memory as being native, ie the same kind of memory we associate with brk.

[1] https://android-review.googlesource.com/#/c/49583/3

Change-Id: I6f496cfeb590268d41d8e047b12cd5c90359e2b0
Fix ListView is not scrolled properly with arrows

According to ListView's layoutChildren logic, it detaches all children
and rebuilds its children based on visible area which might omit
invisible elements in the adapter.

In this case, arrowScroll methods only tries to find next scroll
candidates from its children so user is unable to scroll more with
D-pad.

This fixes the issue by look forward next child among the adapter as
well as children.

Bug: 7346868
Change-Id: I01ab19ad899b5bcb5ab420ddf08c9ffd136933d1