SystemUI: Only show H+ if config_hspa_data_distinguishable is set

Currently the UI is not consistent. If config_hspa_data_distinguishable
is not set you get 3G icon on HSPA and H+ icon on HSAPP.

Change-Id: I09db3a2902e30290206eafd1f64c940bab5b89e6
Fix null check for BaseObj.equals.

Change-Id: I4f060697db175cbf0b5617c1220db853bbe53f1f
Avoid duplication of AppWindowToken in created Task

When WindowManagerService creates a new Task, it passes atoken to the
Task constructor. In this case atoken is added to mAppTokens list by
the Task constructor and then it is added manually again by calling
newTask.mAppTokens.add(atoken). As a result, the same atoken is present
in mAppTokens list twice.

When another window token is added to the list, it may be placed in
beetwen duplicated tokens and corresponding window will be hidden from
the screen by corresponding duplicated windows.
From user perspective it means that some windows will not be displayed
on the screen.

The issue is fixed by avoid adding atoken to mAppTokens list manually
when it was added already in Task constructor.

Change-Id: I10628e68186160fffdde07beb7d84ab3cecb7051
Harden NsdManager against null-dereference crashes

Due to race conditions or programming errors, the NsdManager
can attempt to process an asynchronous status message (and issue
a callback to the listener) after the listener has already been
removed from the NsdManager state.  This causes dereferencing of
null objects, and a crash.

Split out the three async-queue message cases:  these are ones
in which message.arg2 does not hold an NsdManager array index
and the code should not interpret this field as if it were.

Add an explicit check for "null listener" (the array index in the
message has already been released), log a warning, and exit early.

Safeguard accesses to the "NSD service type" string from a (possibly
null) NsdServiceInfo object... return a constant "?" string rather
than crashing.

Bug: 9016259

Change-Id: I40aabdfc65d86fdd0eaac7a1e7e56e6ff69796cf
Validate objects are from the correct context.

Change-Id: I7d87b0e253b8d2e36d1aed790cfe3a7dd23e158f
PackageManager: Fix reconnection logic in Installer.

Change-Id: Id4b352647ed51aaf64bb85dff9030a25e295758f
PanelView: DEBUG_NAN = false

Change-Id: I8c46e531b609e6138df10359126e231b35aa9eeb
Service: Keep services needing restart.

Services needing restart after crash include:
1) service with 'persistent == true'
2) service explicitly reuqired restart by returning START_STICKY
   or START_REDELIVER_INTENT from onStartCommand

Change-Id: Icda43d349faf344a8d022fc4ec5e928ec3399036
Round off when calculate next step in Seekbar

When the positions for the new step is calculated in
a Seekbar, a rounding error can appear.
This is fixed by round off before casting.

Change-Id: Ie2cf201ef670ccc2297e9bc4c7f415a826e44a41
take account of RotationVector's new extra parameter

Rotation vector has a new 5th parameter introduced in API 18. But the code classified the 5 parameter the same as it would be 3 and overriden the 4th parameter which is unnecessary and also caused an unexpected behavior.

Issue #63268:
https://code.google.com/p/android/issues/detail?id=63268
Signed-off-by: Balint Ureczky <ubalint@gmail.com>

Change-Id: I6f9a5fc401da655695ab03694b4a74dc5be936ed
[ScreentShot]: change the implementation of get image file size

Because File can't get permission to get file size of screenshot image.
So use InputStream to get file size correctly of screenshot image.

Change-Id: I1c3df40ddd526d3431bc899642d00f4021d7eeb3
Author: Bo Huang <bo.b.huang@intel.com>
Signed-off-by: Bo Huang <bo.b.huang@intel.com>
Signed-off-by: shi yang <yang.a.shi@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 30940

Conflicts:
	packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
Recycle previous background bitmap upon changing wallpaper

ImageWallpaper doesn't recycle old background bitmap before
setting it NULL.

Step to reproduce it on Nexus 10 with 4.4.2(KOT49H):
1. Long press on home screen.
2. Choose wallpaper from Wallpapers.
3. Select new wallpaper and set it.
4. Repeat step 1-3 several times.
See black background instead of the wallpaper.

Change-Id: I27f6971a3edd26472b69e59b542b27fd7c8e7b90
Signed-off-by: jshe32X<jianchunx.shen@intel.com>
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
Make menus and dialogs 90% transparent

Drawables by - Tun_SD (Daniel Seidel)

PS2: Add xhdpi normal and DarkUI ones

Change-Id: Ida77cee2c788505437e06262dc3ae9cbbc6cbe4d

Conflicts:
	core/res/res/drawable-holodark-xhdpi/dialog_bottom_holo_dark.9.png
	core/res/res/drawable-holodark-xhdpi/dialog_full_holo_dark.9.png
	core/res/res/drawable-holodark-xhdpi/dialog_middle_holo_dark.9.png
	core/res/res/drawable-holodark-xhdpi/dialog_top_holo_dark.9.png
	core/res/res/drawable-holodark-xhdpi/menu_dropdown_panel_holo_dark.9.png
	core/res/res/drawable-holodark-xhdpi/menu_hardkey_panel_holo_dark.9.png
	core/res/res/drawable-holodark-xhdpi/menu_popup_panel_holo_dark.9.png
	core/res/res/drawable-holodark-xxhdpi/dialog_bottom_holo_dark.9.png
	core/res/res/drawable-holodark-xxhdpi/dialog_full_holo_dark.9.png
	core/res/res/drawable-holodark-xxhdpi/dialog_middle_holo_dark.9.png
	core/res/res/drawable-holodark-xxhdpi/dialog_top_holo_dark.9.png
	core/res/res/drawable-holodark-xxhdpi/menu_dropdown_panel_holo_dark.9.png
	core/res/res/drawable-holodark-xxhdpi/menu_hardkey_panel_holo_dark.9.png
	core/res/res/drawable-holodark-xxhdpi/menu_popup_panel_holo_dark.9.png
Revert "Avoid possible memory leaks by ensuring stream closures"

This reverts commit 37b8e315aa30f90e1ca91382e9594aac957246f8.