FWB: Fix FC on Floating window after tap outside

Speacial thanx to @pappschlumpf from XDA for derp hunting :)

Change-Id: I43e65d1c77d0e25dd8ee8e521e2f839612d16883
Signed-off-by: doc <doc.divxm@gmail.com>
App Circle Sidebar: Support for Configurable Trigger Region[1/2]

Change-Id: Ib89a98e607f48108b1a1fb54f00335a3bc4ff2e7

Conflicts:
	core/java/android/provider/Settings.java
Make sure we clean up

pruneDeadThumbnailFile need to close its cursor
in a finally block to avoid leak resouces.

Change-Id: I2646b91970e47ee80a721a2452215b7cae149d10
[ActivityManager] Ensure alive process is not killedByAm.

Symptom: Unable to kill by Am again and will be skipped updating its oom adj.

Root Cause:
A restarted process will reuse original process record.
The flag killedByAm will keep previous state.

Solution:
Reset the flag killedByAm to false when the process is started.

Note: Found another similiar patch If95137d91939cc44882ad2813131bcde0edd0c1b

Change-Id: I59a86648ca8d0aed4c489d92751af120aae5ef90
Fix issue when converting fil->tl.

We should call ResourceTable::getLocales directly,
and not AssetManager::getLocales. The latter will convert
"tl" to "fil" so we'll end up thinking we have resources
for "fil" when we don't really have any.

bug: 15873165

Change-Id: I9753e4608aaecede328a40ee1f3ee6b016d0dedc
Fix crash in widget pager

Fixes bug 14299491

Change-Id: I3c94cbd7f7923dc5a429c9929bc432a5dd29d04f
KeyChain: add explicit package for getPrivateKey.

Bug: 9964538
Change-Id: If67c1938e9506d4fa81b241bcbce2193d1b194ef
Use the correct package name for CHOOSER.

Bug: 13013106
Change-Id: I1f715de18e7108274f5a98234376d48c2d329438
frameworks/base: Fix binder parcel leak with getMetadata() API

When VideoView calls getMetadata API of MediaPlayer, parcel object
is getting allocated by MediaPlayer and metadata is created over
parcel object. This metadata object is returned to the VideoView
which is being GC without calling recycle on parcel which was
creating leak in binder virtual memory.

CRs-fixed: 669303
Change-Id: I1e265909ee42d4fabd8b2552668b3d84af994294
server: clear forwarding rules when tethering is disabled

Since disabling NAT needs tethered iface's address info,
but sometimes the iface goes down before disabling NAT, this fix
just caches the iface's address.

Change-Id: Ie3f14093e8673c34821a3c86d1470c7dda3f3a42
CRs-fixed: 672354
Use a content observer for getting the default APN

Instead of executing a query of the database for the
default APN on every network state change, an observer
is used on the database to be notifited when the apn
has changed. This prevents unneccesary queries on the
the database.

CRs-fixed: 662137

Change-Id: I3155bd8b53a1877413ed54a861df1bfb1853b9e4
[ActivityManager] Avoid mistaking visibility by finishing task.

Sympton:
Next activity only adds to history but does not launch/resume then results ANR.

Root Cause:
In a rare timing, some windows are switched at the same time,
it will cause some finishing records on the top temporarily,
then set startIt to false that skip to resume the real top activty.

Solution:
If all activities in a task are finishing, do not use it to check.
The behavior/checking is the same concept as in JellyBean:
            // If starting in an existing task, find where that is...
            boolean startIt = true;
            for (int i = NH-1; i >= 0; i--) {
                ActivityRecord p = mHistory.get(i);
                if (p.finishing) { // <--
                    continue;
                }

Change-Id: I9d81a7b5182400c52e173da23eee61c74692beee
Revert " Audio: SetForceUse config check in AudioService"

This reverts commit edc68a73f55f791738f76e5b3dc6ebce8dd81643.
Frameworks: doc comments and typo fixes

Fixed a typo in the permission string for "accessLocationExtraCommands".

Change-Id: I92fb402c56bd9e1bdf6f00d562888784e6d189e4
Signed-off-by: Glenn Sayers <glennsayers.gs@gmail.com>

Fix javadoc typo in Message.java: "arg1" -> "arg2"

Change-Id: I245eadaf322dce9e27af30d8dbb6d97ca0d296ce

Fix typo in DevicePolicyManager documentation

Typo in DevicePolicyManager documentation
See: http://code.google.com/p/android/issues/detail?id=60235

Change-Id: Ic120297cfdc46ec49f870e0750ec831ba6362399

Fix a typo in a javadoc comment

Change-Id: I7f3b5d3bf6ee2f966636a588c14908ee632a531a

Fix Issue 59989

Case typo in documentation for <application> tag

Signed-off-by: Paul Quei <paulquei@gmail.com>

On the page http://developer.android.com/guide/topics/manifest/application-element.html,
in the "ATTRIBUTES" section,
the heading "android:allowbackup" should be
"android:allowBackup" (ie. upper case "B").

Change-Id: I7cab16729ea2ffc653bc449009ff983a05f6e867

Fix a copy/paste typo in ViewPropertyAnimator

Change-Id: I149351f062e874fc11da61f416da5cfa5b1cb444

fix trivial typo: s/meansure/measure

Change-Id: I6d879a03f23fc9ad69b1d676bf7a0a08c1124524
Signed-off-by: SeongJae Park <sj38.park@gmail.com>

Fix typo - issue 56671

Fixes a typo where the word "or"
was typed as "of".

Change-Id: I856b00426a1f7c3324ed56ca98b09583d77f147f
Signed-off-by: Manuel R. Ciosici <manuelrciosici@gmail.com>

Added missing brace.

Fixed typo in documentation, that breaks layout and linking in NFC
documentation.

Change-Id: I1457b11a432311741e905a6dba3a2bb2356a2fb4
Signed-off-by: Tim Roes <tim.roes88@googlemail.com>

Fix typo in comment of FragmentTransaction

see: https://code.google.com/p/android/issues/detail?id=66201

Change-Id: Ieff88553d422f1f82629f1f6ae4d33c6454d6b3e
Signed-off-by: Paul Quei <paulquei@gmail.com>

Fix typo in the exception message.

Change-Id: I5e8c089dfd406af40c4eb3aa76af13398c05b7e6
Signed-off-by: Masaki Muranaka <monaka@monami-software.com>

Typo in method name: Clone

Change-Id: I2aa8fc2797278216fbc23dd0d94feb1a9bf8a5d6
Slim Heads up: change behaviour of back key

Currently back key hides the heads up. We change it that the back key is still
working for the app which has focus and not for the heads up at all.

Reasons:

1. A lot user requested this due that they often hide the heads up during they work
   on the phone, simply due that the back button is often pressed on a normal workflow.
   The results is indeed that a lot heads up windows are missed excidentaly.

2. First I thought to make it optional. But there is another big reason to do it this way. Current
   behaviour is that the heads up view gets focus...and that we dispatch the back key only. Thing is
   that other key events are still rooted to the heads up window. Well most things a user will not see.
   But eg on apps with input field some keys on the IME keyboard do not work during the heads up is showing
   which is a big no go when we assume that heads up needs to be as much non intrusive as possible.

That being said we remove the dispatch override and give the heads up window FLAG_NOT_FOCUSABLE flag
which will bypass any key events to the window behind which had focus before the heads up showed up.

FLAG_NOT_TOUCH_MODAL we can remove due that FLAG_NOT_FOCUSABLE automatically enables the FLAG_NOT_TOUCH_MODAL flag.

Change-Id: Ied4c7d2dd5b99f89af958f01db980a36d431bbc3
LN: bring inline with AOSPAL implementation

Change-Id: I1a8746fae482ab2ce6d1120564f48f3b31179e68

Conflicts:
	packages/Keyguard/res/layout-land/keyguard_host_view.xml
	packages/Keyguard/res/layout-port/keyguard_host_view.xml
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	packages/Keyguard/src/com/android/keyguard/NotificationHostView.java
	packages/Keyguard/src/com/android/keyguard/NotificationViewManager.java