base: DocumentUI: handle NPE gracefully

http://jira.omnirom.org/browse/OMNI-956

Change-Id: I8d50d71a9c91486dfc9e5da01538c6b5a626f054
base: check also for mLayoutParams before calling checkForRelayout

http://jira.omnirom.org/browse/OMNI-976

This was introduced with
https://github.com/omnirom/android_frameworks_base/commit/b3670c54e60387fde633fb91c649c5b896f8b962

Change-Id: I06c1926c5b8102b336d128d9b411f74a9eff3ded
Delete duplicate SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION flag

AOSP gerrit: https://android-review.googlesource.com/#/c/96374/
Revert "Kitkat UI: Welcome back Holo"

This reverts commit a92f72cc164bbf0cdc770110e97118aacc4f1508.

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>

Conflicts:
	core/res/res/drawable-xhdpi/cab_background_top_holo_dark.9.png
	core/res/res/drawable-xhdpi/cab_background_top_holo_light.9.png
	core/res/res/drawable-xhdpi/ic_notification_cast_0.png
	core/res/res/drawable-xhdpi/ic_notification_cast_1.png
	core/res/res/drawable-xhdpi/ic_notification_cast_2.png
	core/res/res/drawable-xhdpi/ic_notification_cast_on.png
	core/res/res/drawable-xxhdpi/cab_background_top_holo_dark.9.png
	core/res/res/drawable-xxhdpi/cab_background_top_holo_light.9.png
	core/res/res/drawable-xxhdpi/ic_notification_cast_0.png
	core/res/res/drawable-xxhdpi/ic_notification_cast_1.png
	core/res/res/drawable-xxhdpi/ic_notification_cast_2.png
	core/res/res/drawable-xxhdpi/ic_notification_cast_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_cast_available.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_cast_connected.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_cast_connecting_0.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_cast_connecting_1.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_cast_connecting_2.png
	packages/SystemUI/res/drawable-xxhdpi/ic_qs_cast_available.png
	packages/SystemUI/res/drawable-xxhdpi/ic_qs_cast_connected.png
	packages/SystemUI/res/drawable-xxhdpi/ic_qs_cast_connecting_0.png
	packages/SystemUI/res/drawable-xxhdpi/ic_qs_cast_connecting_1.png
	packages/SystemUI/res/drawable-xxhdpi/ic_qs_cast_connecting_2.png
MtpDatabase JNI: Fixed a memory-leak in getObjectPropertyValue().

The jstring "stringValue" was not never freed.
In the case where "str" was NULL the whole cleanup part (see "goto out")
was even skipped.
This patch makes getObjectPropertyValue() behave like
getObjectPropertyList().

Change-Id: I5a7ec3611036f5253a054b00064999bcd1d1c29e
frameworks/base: Fix to avoid crash when the tab is not set from app

As the current tab is not set from application, getChildTabViewAt
returns Null value. Added a condition which checks whether mSelectTab
is set to first Tab.

Change-Id: I72313697e2c1c7b66a70078e82e509bfa244721b
CRs-Fixed: 321176
CRs-Fixed: 378466
Frameworks: Fix to avoid crash when the tab is not set.

Tab is not highlighted in Videoapp unlike Music app.
Instead the list is highlighted with mSelectedTab a negative value
when onFocusChange is called.
Add a check for mSelectedTab.

Change-Id: I930657b8a9be4be4d973f876242a15a667ec6f94
CRs-Fixed: 657606
hwui: Always enable the scissor while composing layer

Due to scissor optimization feature added in KK, scissor was disabled
all the time. Hence the undefined areas/region of textures are not
masking properly with GL_LINEAR filter mode.

Change-Id: Ifbbde2c67a4c01e45eda07ada709e066255fffcb
CRs-fixed: 645077
Add looper to the thread to fix system_server crash

Toast message internally creates handler and we can't create
handler inside thread that has not called Looper.prepare().
Thus, we added looper to the thread to avoid system_server
carsh.

Change-Id: I09b9c4923c109f0b2707f8346e091efbd24b5089
CRs-Fixed: 669467
Revert "memoize activity manager graphics acceleration check"

This reverts commit 4099dde20c18746437afc198f833f0425b39cc59.
Freeing frame map

FileMap memory is never released until application exit

Release it now as the texture is already loaded and the memory
used for the packed resource can be released.

Change-Id: Id08a1e466337b3a0179684eb6a444e18147ee343
CameraTile: Launch default gallery app when long pressing active camera tile

Currently long pressing this does nothing. It makes sense to launch the default
gallery app from here if a user long presses in order to see pictures that
they've taken from the smaller camera preview.

Change-Id: Iad73a291443eb2a12e1399f24eeeec61ec945bf5
hwui: Fix the texture ID reuse issue

fix: reset bound texture with clear texture.

Issue: When the layer of previous frame is destroyed, it doesn't clear the
texture id in mBoundTextures[mTextureUnit], so in the next frame, if
glGenTexture returns same texture ID of the previous frame,
the new texture is not bound.

CRs-fixed: 671736

Change-Id: Ifc5fd2115fb1863b3c006ab14b0faabeaeb4eab4
hwui: fix possible null pointer de-refrence

add layer check for  null before de-refrencing it.

issue link: http://code.google.com/p/android/issues/detail?id=61622

Change-Id: I54fc21ec594effcfb1eededd80dd5b0b52645c4c
Keyguard: fix NPE setting lockscreen wallpaper

After boot the view might not be laid out and so getWidth() and
getHeight() return 0 and will cause a NullPointerException in
createBitmap().

Change-Id: Ibacf4199a69709dc34d21695732c2a5360533a23
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
NavTargets : Show highlight for google search

- Show highlight for google now icon
- Update launching logic to upstream
- Don't hideTargets in doFinish

Change-Id: I6027bc30b4bc98bf1dbadd9cb02e46349745bfbb
Merge remote-tracking branch 'kitkatpurity/kitkat' into HEAD
Delete Media Tests

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
Speed up statusbar/notification drawer

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
GC triggering performance optimizations

Copy the correct starting heap size at process init.
Interfaces to set GC/managed heap parameters.

Change-Id: I0154d1523c3cfdb1214ed0315193cbb24704351f