AlarmMangerService: Fix the delay of ACTION_TIME_CHANGED for time-services

After boot completed, if low memory condition happens or some ordered
broadcasts have time out, it will cause delay for some receivers to
receive ordered broadcasts. Adding FLAG_RECEIVER_FOREGROUND into
time changed action will make TimeServiceBroadcastReceiver receive
ACTION_TIME_CHANGED in time.

CRs-Fixed: 630982
Change-Id: Id789d0b3c969af6b92f62612602ba119613382ab
(cherry picked from commit 606dd805b63da3c9239bfa0e04a87dc0f7e5e6aa)
Framework/base: Relocating GC calls at the end of loop during zygote init

Relocating explicit GC calls at the end of the loop during the preloading
the resources and preloading clases, with this changes boottime improved.

Change-Id: I2e05ef68578eddca8cd435b5186e198ee7d71739
(cherry picked from commit 50da0b4edcb30f82fb25b4584836d17dce9678b8)
 MTU should be 1358 as per 3GPP standards, especially for LTE radio interfaces.

Change-Id: I5d3601b05a41d4c59cff3b39ddfb66d00cb23c45
Signed-off-by: Stacy Devino <swylie@oceusnetworks.com>
(cherry picked from commit 20332521e141420575ca4ff51750fcc810594d6d)
base: add some iml files for easy opening in android studio

Change-Id: I0f71b451888c40cfbe92bab604e4d19ded13462b
(cherry picked from commit a5bf652ed15820c5ae899186c1438c3c96dd51aa)
Memory leak: parseObbFile.footer

Change-Id: Ia9e005e63fad7ab364f6c2c80cb98ec98f89b470
Signed-off-by: You Kim <you.kim72@gmail.com>
(cherry picked from commit 07b0ad38d53f622928ac561a8ce36ea18b1b4391)
[WebView] Interface to access hidden APIs. (DO NOT MERGE)

The WeView provider implementation needs access to
these APIs to implement the WebView functionality.

BUG:18152150

Change-Id: I6b41c623b1e8a776dcee8977d0d17259cb4b34f1
(cherry picked from commits 94ef789f0cf0387df20c2c602857ada1e5abfdd6
 and 53f256948724b8d4009d8a8a47da96a06402f9a2)

(cherry picked from commit 4aa02a5b0e47d2c533817cae01211f2d4b4ed70e)
Use parseColor instead of getHTMLColor

getHTMLColor is not aware of ARGB color format which is commonly used in
android xml files. This causes problem with coloring spans in resources.

Instead of above it should be changed to parseColor() with supported
formats: #RRGGBB #AARRGGBB

Bug: https://code.google.com/p/android/issues/detail?id=58192

Change-Id: I16bdf4c5c2a3b5e216b44e5c1955cac0104b3e12
(cherry picked from commit c6ae0ded81a1603ced48bf8921837eb95de59b74)
Fix error overwriting when restoring error

onRestoreInstanceState restores the old error, after layout has been
done. A new error may have been set before this is done, which thus
overwrites the new error.

This patch prevents the new error from being overwritten.

Change-Id: I8e7c91b5da27310fb6698e671d1f7d78ee268061
(cherry picked from commit b48de2e2772568de118b877d5eeea39c96dcbdb1)
    Improve scrolling cache

    Scrolling cache helps make short scrolls/flings smooth but will
    cause stutter when long flings are made. This patch disables
    scrolling cache when long flings are made.

    This patch also fixes a related bug where scrolling cache will
    not be enabled properly when transitioning from flinging to scrolling.

    Patch Set 2: Calculate threshold based on maximum velocity (Sang Tae Park)

    Credits: Pawit Pornkitprasan

Change-Id: Iad52a35120212c871ffd35df6184aeb678ee44aa
(cherry picked from commit 9ff98d98f968a23429f704706e7fd3286c0a54f5)
Remove test media

Change-Id: I2944486a6d168c9a6ab685988b261e8511e9d47d
(cherry picked from commit d77fff4cc8ffada5016f00d515e2c64031299a3d)
Disable debug music transport control

Change-Id: I5b458899b0ce5157980ee2fe406af2e2191ee0e2
(cherry picked from commit c6f9d2e0d5de61248b4a5019e5cdd2b54182a783)
Fix Google backup/restore

Change-Id: Idd5f63caf58742fc7a52d42e8e64731387983876
(cherry picked from commit b2a66f32c9b07a3656d5587de70507e500c72f2f)
Speed up a few animations

may need tweaking may have speed them up to much

(cherry picked from commit 01ac82090b2795c1a03808e7b586e883bb59c8dd)
Navigation bar custom height

Change-Id: I9ca00129929364bcbd7d6ea11b6d4220543303e4
(cherry picked from commit 36e5064a9d1f9353568d0ee2811bafee7b2ce74d)
Statusbar clock and date customizations

Some things changed on kitkat + our old code needed in general a bit
rework. All done with this patchset.

This commit add support for:

- Clock and date enable/disable
- Clock and date position
- AM/PM styles multilang support
- color
- Date format
- Date style

Change-Id: I02ecba75ecece70a50ed560834ec98b9afe6021a
(cherry picked from commit 86484dbfde27bb31963931583520595e57ce6364)
[1/2] SystemUI: Network speed indicator

Change-Id: I88e7cdfe20342c695a33383db36bf80bb4ffe009
(cherry picked from commit dedf659d96781770f73cfc97fc9e80ebfffb7f87)
[1/2] SystemUI: Update network traffic indicator

Android measures the amount of data transferred in bytes,
however, by convention, data rates should be measured in bits
per second.

*Convert the change in total data and time to bits and seconds,
and then divide the amount transferred by the number of
seconds that have elapsed.

*Update the labels and have them use the correct SI prefixes.

*Factor out or add @hide to public methods and constructors

*Remove all Runnables and Messages from Handler queue when
disabled

*Minor formatting changes to stay consistent with Android's
code-style guidelines.
https://source.android.com/source/code-style.html

PS2: Set maximum digits to prevent it from filling the statusbar
PS3: Rebase
PS4: Add ability to display either bits or bytes

Change-Id: I9add610a8d14f5a48f2af0a82ced0c186224e282
(cherry picked from commit 6461510ad60f3306637f0a6b2172f07c422a9cc3)
[1/2] Base: Upgrade network traffic meter

*Updated class name to be less ambiguous
*Replaced the multi-check in settings with a proper listview
*Added the ability to view up-stream, down-stream or both
*Added the option to change how often it refreshes
*Added a check before it updates the status bar to prevent it from
refreshing everything needlessly
*Added icons to show data direction
*Remove unused style attributes

Icon artwork is courtesy android design downloads
Some features were inspired by previous work done by 0xD34D

OmniGears: https://gerrit.omnirom.org/#/c/5130/

Change-Id: I9f86292a6adbc5e30967df76fae510be248fc38b
(cherry picked from commit dc6e75c1fbeb8a659f73bf4ac155aa188736d2db)
Add missing network indicator items

(cherry picked from commit c4393b91efa02b69f41b100c01eafb982e03134c)