frameworks/base: translation - RU

I68d6eab8893419e8ec192d45f1e6b42ddff3e62b

Removed whitespace :-[

Change-Id: I21331da48224ec3f91fc25da9bce6f8a61ebb35a
Finish fixing Zygote descriptor leakage problem

In order to prevent Zygote descriptors from leaking into the child
environment, they should be closed by the forked-off child process
before the child switches to the application UID.  These changes close
the descriptors via dup2(), substituting a descriptor open to
/dev/null in their place; this allows the Zygote Java code to close
the FileDescriptor objects cleanly.

This is a multi-project change: dalvik, art, libcore, frameworks/base,
and external/sepolicy are affected.  The CLs need to be approved
together, lest the build break or the software fail to boot.

Round 2: indent change

Bug: 12114500
Change-Id: I090402136a8a8b7d6aad6eb153026e85d7cf6ad3
Merge branch 'kk4.4' of https://github.com/SlimRoms/frameworks_base into kk4.4
wifistatetracker: silence more logging

Change-Id: I3d8e7cf0ed028b1213149d89088a2021c838e433
ProcessCpuTracker: Fix ArrayIndexOutofBoundsException in tempSpeeds

If time_in_state file is not available mCpuSpeeds is created with size 0
and subsequent call if the file becomes available there is an
ArrayIndexOutofBoundsException.
This change avoids the crash by breaking out of the loop, also adds error
logging

CRs-Fixed: 553569
Change-Id: Id5e219ca1cd3f058f714aecd5902ec2f6c11ae03
ZygoteInit: increase GC threshold amount when preloading to postpone GC

Patch Set 2: Hardcode it better to 1MB.

Change-Id: I7a6e195b82ebe2f4bd5bbb506e19200d452fa3e5
MediaMetadataRetriever: Catch uncatched JNI exceptions

Change-Id: Idd8511e56b18101c83acd723f729ea9a27df2295
Revert "Fix memory leak in PatchCache"

This reverts commit e769cd63f2da8ed554cc902c6897ab434b840d95.
Revert "Force Enable ADB on Boot"

This reverts commit 5b074f584ed0aafde4bf042b71f0b6c105e02af5.
Revert "BootMessage: show more info in boot dialog"

This reverts commit 13d94bbd31ed8abbbc1b365b652bdff9b1f68ce1.
Fix graphics corruption caused by HWUI caches

Some caches(PatchCache, TextureCache, PathCache) for HWUI
uses deferred removal for their cache entries even though
actual resource objects are immediately freed by
ResourceCache.
For this reason, the uniqueness of a resource address in
the caches is not guaranteed in specific cases.
(Because malloc() can return the same address when malloc()
and free() called very frequently.)

So it can be possible the cache have two cache entries for
two different resources but the same memory address.
(Of course one of the resources is already freed.)
It also can be possible mGarbage vector in PatchCache has
duplicated addresses and this can lead to duplicated free
blocks in the free block list and graphics corruption.
(Deferred removal was implmeneted based on an assumption of
unique resource addresses.)

So this patch makes sure resource objects are freed after
the resources are removed from the caches to guarantee
the uniqueness of a resource address and prevent graphics
corruption.

Change-Id: I040f033a4fc783d2c4bc04b113589657c36fb15b
Signed-off-by: Sangkyu Lee <sk82.lee@lge.com>
[1/2] Add network stats to status bar

Also includes
http://gerrit.aokp.co/#/c/13356/
http://gerrit.aokp.co/#/c/13360/

PS2:
Get the time delta between updates and use that to show
average bytes per second.

Change-Id: Ib06a713e6d93649ae8c8e5be5fd62c4f44a48416

PS3:
Code cleanup, change default text color and size to fit
AOKP and add ability to change text color.

PS4:
Fix up layout for cleaner spacing and add for tablets

PS8: Moved indicator before status icons

Change-Id: Ie3cdb038fecfe8cbb9b7a670c50dc7ebd22690e1

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/dimens_custom.xml
	packages/SystemUI/res/values/styles_custom.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarTransitions.java
Network stats: Improved codes

* Format speed text using Formatter.formatFileSize
* Set speed text to empty if speed below 1 KB
* Don't do unnecessary things if network stats is disabled
* Address appropriate task for each intent
* SettingsObserver should only observe settings part

Change-Id: I02f7bbb3f911569d2227e3df21e5c72456a157c4
[1/2] Base: Configurable overflow menu button

Forward port from SlimBean. It was part of the hardware key custom rebinding.

Change-Id: I9c6307041a4580ae85c27e3f979721c96a7ae219

Revert "Always show overflow buttons on action bars"

This reverts commit ea04f3cfc6e245fb415fd352ed0048cd940a46fe.
AOKP custom system animations (1/2)

Ported from here: http://gerrit.aokp.co/#/c/12304/

Thanks to Steve Spear

PS2: Clean tabs

Change-Id: I190044f3fdb166beb8a620bc4b5f91784d6398b8

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/cm_strings.xml
[1/2] Home button unlock

Forward port from SlimBean.

Change-Id: Id755685d737828420eb968ac5ca86d8b1e300cab
Dynamic data usage [2/2]

Change-Id: Ibd0067418435442d8cff922faf8ef0f6a5a28761

Conflicts:
	core/java/android/net/NetworkPolicy.java
Frameworks: Adds ability to answer call with hardware HOME button (1/2)

Port of CM commit: 8c5ef198bd4031d11691daef34d9f5f2b1354da3
Full Credit to CM team

fusionjack: Forward port from SlimBean commit 28a02614d7ff67e15ab07798dd3e0080ad00a0b7

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Change-Id: I15e2e2ea5961a71d3fe132820355e39729954c46
Bring back the status bar activity indicators for mobile data and wifi

Google were nice enough to create xxhdpi drawables for us before removing them.

Reverts "Remove signal/wifi activity indicator icon overlays."

This reverts commit fcc901c10bffdfb9c6b31e676dec36b47d949979.

Change-Id: I7aa85f7c8442c45d17e42cac7823dfe93e3f24c1
Avoid layout passes when updating data activity indicators.

ImageView can optimize out layout passes if old and new drawable have
equal sizes. Take advantage of that by displaying a transparent drawable
with the same size as the in/out drawables when there's no activity
instead of clearing out the drawable in that case.

Change-Id: Iaaa556ffab3ed4be1da8016ed40d0a9c2efcde01