Revert "Auto-close if you swipe away the last notification."

This reverts commit 8cc36e572876f3bb9197f0109db3042466e5f917.

It didn't work as advertised anyway: It only worked if there are no
persistent notifications, and it also closes the notification area if
the notification is closed by the app itself.

Change-Id: I16f0fb6cf41d20c3a3bd4278446edab780c1fc77
Fix occasionally flickering music control widget.

The problem was seemingly related to the player abandoning audio focus
while the playback state was still set to 'playing'. In that case, the
transport control was removed from the keyguard host because it had no
listener anymore, but later was re-added due to isMusicPlaying() still
returning true. Re-adding it lead to it re-registering with audio
service, which cleared the display due to nothing being connected, which
lead to the detachment listener being called again, which in turned
closed the loop.

While this may be a sign of a buggy player app (it should stop its
playback prior to abandoning audio focus), this situation still should
be handled gracefully. Fix the problem by simply reporting no music
being played while no remote control client is connected.

Change-Id: Id6834d38bc6faa3b6455ac66b413443f85606785
systemui: Add CONNECTIVITY_INTERNAL permission

 * SystemUI needs to be able to list interfaces if tethering is in use
   and we ask for a second tethering path to be set up (BT+USB, etc).
 * Add permission to stop exceptions in the framework and enable
   tethering thru multiple paths.

Change-Id: If7a65c31557dc2f0451f0612fb109f61e8056368
Revert "PackageInfo class incorrectly referenced as a struct."

This reverts commit b9b5d8c32e738d3607eec61e5d5bd95ca1521c2e.
Fixes for clang:
PackageInfo is a class, not a struct.
String16 is contained in the android namespace. Do not namespace prefix it
within the android namespace.
Explicitly specify which std classes are necessary to prevent ambiguous
type errors. (map, set)

Change-Id: I0d01477a976e770821ebae8847f8d11b132a15d6
Avoid adding FORWARD_LOCK flag to an updated system app

Consider the following case:
1. An app exists in /system/app or /vendor/app. (i.e, it's a system app)
2. If the app would be updated as a forward-lock app by downloading from
   market(google play), then it would be installed in /data/app-private.
3. Moreover, if it would be updated by the whole system image (i.e, FOTA
   or something like that), then the app would be applied a FORWARD_LOCK
   flag.

The app SHOULD NOT have a FORWARD_LCOK flag. Because the resource path
of such app does not refer to the proper resources to access.

Change-Id: I0750f69a93a3115f4201029796b598507de3555f
The order of child windows is switched

By calling WindowManagerService#reAddWindowLocked(), the window object
in DisplayContent.mWindows is rearranged. If this window has children,
the window objects belonging to WindowState.mChildWindows are also
rearranged together. At this time, while DisplayContent.mWindows is
arranged in ascending order of Z-Order, WindowState.mChildWindows is
arranged in descending order. Therefore, if children
(= WindowState.mChildWindows) are added to DisplayContent.mWindows
in the original order, the order of children is switched. I think
that children must be sorted before they are added.

Change-Id: I28a506f17fcd99c801a3faa17cca66fffb291596
FastScroller: Fix to use appropriate index

Fix FastScroller to use appropriate index to determine the
the position of a section while calculating the y coordinates
of thumb. In case of last section, use totalItemCount to determine
next section position.

Change-Id: I89bfd483949b5c14f85303b50380a73b4a4e635e
Fix typo in AlertController.java

If whichButtons is BIT_BUTTON_NEGATIVE, the negative button should be centered.

Change-Id: Ia34daf8c80704204a4f1cf71c642114005559d5d
Signed-off-by: Sangkyu Lee <sk82.lee@lge.com>
Fix misspelling of getLteSignalStrenght.

Change to getLteSignalStrength.

Change-Id: Ie2acec9e01af0e64a61902383f06729a7cee1975
Revert "app loading: boost boost hints"

This reverts commit 630db3ff229e7df257c6903e2b7e2acdbaf78623.
Mass revert of commits that could cause problems.
Revert "Adjust kernel data stack TCP parameters to optimize performance"

This reverts commit f738aaa247f46251f06e038530b56dc7832fa48e.

Revert "One more fix for incorrect indices."

This reverts commit 3141fccc0a55367128cdb4708a2b042f7d1dc0cb.

Revert "Fix array index oob in Matrix3f.loadRotate()."

This reverts commit 35bd0680585833a3deb0e5c48b95f52e9814f1ee.

Revert "tune up boot animation"

This reverts commit 07166899a4a5819c7e0f7689144ff09fb7330d4d.

Revert "fix potential memory leak"

This reverts commit b716953f8a46abd02f6c04d1ec30ac51b738951a.

Revert "Fixed a leaked partial wakelock in AbstractThreadedSyncAdapter."

This reverts commit 84c49324c108ac036c7033a2267cf93890b6356c.

Revert "Fix deadlock of WebViewCoreThread"

This reverts commit 946aa4add7c9533dda3079f29ea7d621b28a0328.

Revert "Fix graphical artifact in the fisheye effect"

This reverts commit e3a583751097726cb19a9ab8f2dc323ba6a765ad.

Revert "Rethrow an exception with stack trace information."

This reverts commit 0e4bc236002df6390305f5772e05247e7bef0520.

Revert "Applying ChannelScrolling to remove calculateDragAngle"

This reverts commit 8b999697399f664944fc25f53060df5ab8b2a915.

Revert "KeyChain: return null instead of throw"

This reverts commit 9fce93e944c2a2d60aa7a44cefe518f78ac244fe.

Revert "StreamingZipInflater: fix mmap'd end of read"

This reverts commit fe4d93ce13800065ea7a916235ace9de522e7714.

Revert "BootReceiver: Skip subdirectories inside tombstones scan"

This reverts commit ae7b1b030a0c07085b9a2ac97a4e52186e332387.

Revert "remove some lag launching apps and improve scrolling"

This reverts commit 85c2a6d4eb27378548b243afdfad108f12a37d77.

Revert "Fix a programmatic smooth scroll bug"

This reverts commit 59b525cc21d6c270267ff6fb8b4ea3822c7b132c.

Revert "Add additional Method that check whether a table is empty or not"

This reverts commit 7e1152249b420ae5ef2139249272a77479415071.

Revert "Properly rotate full [-pi, +pi] orientation range if available"

This reverts commit fcf420fabc9ff42eee4365c3d5bfde952e077e22.

Revert "remove leak WaitResult List in startActivityMayWait"

This reverts commit 56fdadaacc77e6066f3edcfed7164788d663ecc0.

Revert "framework:base: iterator error in singletone provider"

This reverts commit 5e5a37e4e29199e3347eff25baaa73da0913316c.

Revert "Framework/base: Added synchronization block to avoid race condition"

This reverts commit 2db45d948c4bfce3a48854e090396109c9cbfd83.
app loading: boost boost hints

Change-Id: I56b49c61ccfa258880b7104470f9c2cdf4542184
HALO Style revamp

- speech bubbles are centered
- number batches are roundand simplified, same color as in g+
- markers appear as dots above the bubble
- hiding and dimissing triggers text hints
- couple of bugfixes

WARNING: some of the drawables are good for xhdpi only for now and must
be scaled down for the other resolutions

Change-Id: Ib656664f6f8c42b747df18d65d1e3fb40cb7480c
Finish the floating activity again

Change-Id: I1db29ddd2c056d7645f1028e084face815a44e0c
HALO hiddenstate-fix + smaller numberbatch

once HALO is hidden an orientationchange won't wake it up getting in
your way.

Change-Id: Id7c2232e4e3e6e49392becbdcddeb1a494faafc8
HALO cleanup & better drawables

Change-Id: I7afb5f1e473e9611059e1ea2acfaa9d307696449
HALO cleanup & better drawables

Change-Id: I7afb5f1e473e9611059e1ea2acfaa9d307696449
HALO hide bugfix, smaller numberbatch still

Change-Id: I5a94e0a7c39a7369cae2b0cabdbe8696eb15dbc5
HALO new vertical gestures (NOT READY FOR RELEASE)

itroduces step gestures

-- Clear all notifications
-- Clear current notification

(*)

-- Hide HALO
-- Silence HALO until woken

Change-Id: I4b5bb7ec612dc0eb1d95e970348b15fba1d79df0