This should work on all devices.
Recognize odex files in memory accounting.

Give odex files the same heap category as dex files.

Change-Id: I82539e20ac20a2b80c63c0cfceb266d9c59e22b7
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
Remove possible leak when exception occurred.

nameUtf8 is not released after exception.
In addtion, Fix code going down after ThrowException.

Change-Id: Id46e8ed55acd98e982ae532f7da2c0c48847f010
Fix for breakText returning count of glyphs not chars.

Paint.breakText should return the number of characters measured to a given maxWidth, but it returns the number of glyphs instead. The solution loops through the advances and whenever if finds an advance with length bigger than 0 decrements it until reaching zero or the end of the advances. The advance has a zero when a glyphs is for more than on character, for the subsequent characters. The width of the glyphs is added at the first character.

Change-Id: If26fca3a08133d08572dfda1e33536cc0bd8b1e5
Incorporate logo into default low-res framework boot animation.
Remove stupid apple directory crap.
Working boot animations for all devices.
services: don't clear wallpaper when SystemUI
disconnects.

When we restart SystemUI (or the user), sometimes
the wallpaper would get cleared. This patch just
captures its originating component and
if that is our SystemUI component, ignore the event.

Change-Id: I3e159dc2c013e7d7e552e3c0cef55e3ab970ca87
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Adjust margin of ActivityPreference

This will use all the space available in Settings and RC

Change-Id: I9c92770a5f4315eb50fb350d6a60d3789e424f59
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Low-end devices need help!

-> Check for wakelocks faster
-> More granular hidden apps selection
-> Kill hidden and service_b apps at higher lmk
-> Rearrange OOM values [similar to SuperCharger! But not exact]

Change-Id: If6163a8c15b8c3ec622a44124609be21b4359e36

Let's keep nocoast's suggested value for max hidden apps on >1.5gb devices
(55vs40).
SystemUI: Add LongClick to FastCharge Toggle

LongClick takes you to PerformanceControl

Change-Id: I6f4de9bccb99a471ab8cf35144be8cc1235a8e70
Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>
Fixed incorrect calculation of dirty invalidation area

Padding was already taken into consideration before calling
invalidateDrawable in ProgressBar.

Change-Id: Id7f23bd15bb19e2294c07adb2acb397100ea97e8
SystemUI: Update WiFi & Signal icons
Allow USB notification to show when primary SD allows UMS and MTP

Previously if primary SD is set to allowMassStorage="true" the USB
dialog would never show.  This checks if persist.sys.usb.config is
set to mtp,adb and then allows the USB notification to show. With
this you can then have the option to select from MTP, PTP and Mass
storage when clicking the pull down notification. When Mass Storage
is selected it activates the USB connected dialog to turn on USB
storage. When set back to MTP the USB connected notification disappears.

Change-Id: I2287075ec93cae75f19e8fb59965d9dddb234aca
SystemUI: fix memory leaks

ContentObservers are being registered without being unregistered,
causing old objects not to be garbage collected. This causes memory
leak if the classes are destroyed and recreated throughout the
device's uptime.

SearchPanelView is recreated every time the screen is turned on.
StatusBarIconView is created every time a notification is triggered.

JIRA: CYAN-650
Change-Id: Iabd3221fc2b0c848396af1790fd09424be602e7e

Conflicts:
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java
derp
this didnt work reverting for now Revert "derp"

This reverts commit f0cebf5050bc353a0a3c0dff3bf16b5b4db03da9.
this didnt work reveting for now Revert "SystemUI: fix memory leaks"

This reverts commit 73332c143dbb2ec5e2e2373ea12afc28d80d1af1.
activity manager tweak-a-roonie

Change-Id: Ic511257e8154610288019c52fb41cc6bf551ebd3

Conflicts:
	services/java/com/android/server/am/ActivityManagerService.java