Revert "PowerWidget : Update LTE Button"

This reverts commit bad8fa0a343acd21579f1049b6f46dae6013023d.
Get rid of noise during boot.

This log is not an error, it is a warning, don't spam a stack
crawl when it happens.

Change-Id: I6038e3625cc0c16af9e54887b5e7ec451d9f864d
SystemUI: Remove broadcast from QH toggles

Obsolete per this patch:
	https://gerrit.slimroms.net/#/c/5814/2

PS2: Forgot one

Change-Id: Iaf591304a8993710920149a77d15d29b22514211
Proper security labeling of multi-user data directories.

This patch covers 2 cases. When an app is installed
and the resulting data directory is created for all
existing users. And when a new user is created and
all existing app data directories are created for
the new user.

Change-Id: Iaba7c40645bc7b6cc823d613da0c3782acf6ddd5
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
Shorten app switch delay time

Change-Id: I8759c98e8bd03454fa7e86ab27b25743c9f73c5e
Do not show Home behind full screen activity

When ensureActivitiesVisibleLocked goes through foreground activity
stack and reaches non-fullscreen activity, it sets showHomeBehindStack
variable to true.

If there is a fullscreen activity behind, showHomeBehindStack remains
unchanged, which causes Home application to be displayed anyway.
In this case user will see a fullscreen activity and Home activity
simultaneously.

To fix the issue we set showHomeBehindStack to false when we reach
fullscreen activity in the activity stack.

This was made visible by the following commit:
446ef1de8d373c1b017df8d19ebf9a47811fb402

Change-Id: I535c1283a4e26f5cf606375b837d4b7195324af0
Avoid SystemUI crash due to NPE

BaseStatusBar.createNotificationViews() returns null
when it reports handleNotificationError(), leading to
a forced crash of the misbehaving app. However, it
should not add a null object of Notification.Entry
since it will also crash SystemUI (crashing at compare).

Change-Id: I86678c8024e931420b0fbab1f36b330e7e75d581
hide "paste" window when ActionBar is already active

Hide "paste" popup window when ActionBar already has a "paste" menu button.
- The "paste" popup window and "paste" ActionBar menu are duplicated.
- Due to "paste" popup window, hard to press the ActionBar menu.

steps to reproduce:
1. launch Browser and go to "google.com" in landscape mode.
2. long press on URL address (make "Select All") and select "Copy"
3. long press on URL address (make "Select All"), again
4. you can see the "paste" window, although actionbar already has a "paste"
   menu button.

Bug: 8080106
Change-Id: I9abe91cb2d39ea10dd28f72932700b810311b443
Fix 'input rotationevent' sometimes not working issue

Observers exist for both Settings.System.USER_ROTATION and
Settings.System.ACCELEROMETER_ROTATION config values, and
updateSettings() may get wrong rotation status if these two values are
set separately. Use "mLock" to protect this situation and make sure they
are set together.

Change-Id: Ic89e6f14b45ee839c518e135096ae18d27f0a809
Signed-off-by: Carton He <carton.he@marvell.com>
Insufficient ProcessRecord cleanup when persistent process is killed

When persistent process with Service restarts, ActivityManagerService
does not reset ProcessRecord#hasClientActivites to false
(because ProcessRecord of persistent process is continued using
after killing).

It disturbs updating LRU list in ActivityManagerService, and then,
when new process calls ActivityManagerProxy#publishContentProviders,
SecurityException happens because of no entry in the list.

Bug: 13517358

Change-Id: I46b064f71a4f7025ade1bf117801352a7ab22e6a
Fix "Email" App data lost when screen rotated.

Bug Description:
1.Open "Email" App contained in AOSP.
2.Setup your email account if not.
3.Click "Compose" button on the left bottom.
4.In "To", enter more than 3 email addresses, like "test1@gmail.com,test2@gmail.com,test3@gmail.com,test4@gmail.com,test5@gmail".
5.Click "Subject" or "Compose email", and the "To" data will be shrank.It will be like "test1@gmail.com test2@gmail.com +3". The "+3" means there are 3 more addresses shrank.
6.Rotate screen, either from vertical to horizontal or from horizontal to vertical.
7.The "To" data is lost, it will be "test1@gmail.com test2@gmail +1".When you click to expand, there are only 3 addresses left.
Why and how to solve:
Data lost when screen rotated because RecipientEditTextView doesn't save data on orientation changed.
So, create a static class save the data when needed and restore later on.

Change-Id: I0c709cbb59515338aa903c611139aee727785670
Signed-off-by: Paul Quei <paulquei@gmail.com>
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
Remove unused local variable (pkg) in ResTable::getEntry method.

Change-Id: Ibb40cdd3dc3d4611078e2d3e94695a65aae7c412
Disclosing statusbar ticker while DISABLE_NOTIFICATION_TICKER

When secure mode is enabled (pattern, pin or password) it is
disabling the StatusBarManager.DISABLE_NOTIFICATION_TICKER .
If an application is updating a notification, it should not
display the ticker out of security reasons.

But the haltTicker() will use an animation that displays
the old ticker text.

Change-Id: Ida7988ce03401af3ad9fd865bbad3d6ed46a6f38

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Fix never-ending SIM PIN/PUK unlock progress dialog

If a recreation of the keyguard UI is triggered while waiting
for the SIM PIN/PUK unlock response, the response will be posted
to Views which are not attached to any Window. Since the code
runs in a Binder thread, the work will end up in an unused
work-queue and never be run. This will cause the unlock dialog
to never go away.

The solution is to create a handler which is attached to the UI
thread. Instead of posting via the post method of the View class
we post directly to the handler - hence avoiding that some work
ends up in a unused queue in case of being in detached state.

Change-Id: I9781a1600865705949626f97eb3c7a4f952d2de9
Adding disconnect cause to the Android call log.

We'd like to add call disconnect cause codes to the Android call log
content provider.

As part of this work we're also consolidating the definition of call
disconnect codes in a single place. The integer constants defined in
android.telephony.DisconnectCause will be used everywhere and the
following two enums will be removed:
 - android.internal.telephony.Connection.DisconnectCause
 - com.android.services.telephony.common.Call.DisconnectCause

Change-Id: I84a3fd5182a51d07fc7d81076e4b2c15ff26c61c

Conflicts:
	telephony/java/android/telephony/DisconnectCause.java
WallpaperCropper: Fix crash when set .gif as wallpaper

It returns an equivalent scaled cropBounds as true
crop bounds, then it set the rounded rect by rounding
"out" the true crop rect, this make the rounded crop
rect may out range of the original bitmap, then an error
will happen.

We change to check the rounded crop rect, if it is out
the range of original bitmap, we set the original bitmap
bounds as rounded crop bounds.

CRs-Fixed: 622582

Change-Id: I215ef2a0165adaaadb05c62dee741a8ea6926144
DocumentsUI: Fix the issue of download status was displayed incompletely

The layout arrangement of date, size and summary are unreasonable.
Text was ellipsized when summary has too much characters.

Reconfigure "layout_weight" of date, size and summary can fix this
issue.

CRs-Fixed: 619201

Change-Id: I0c00d08d4793a38b80988378b4b510bdb3bf8720
Use checkOperation in BroadcastQueue.

ActivityManagerService uses NoteOperation before delivering a broadcast to
a package. NoteOperation can be blocking due to permisison dialog box.

Use non-blocking checkOperation in BroadcastQueue.

Change-Id: Iccded96217d99589aed771f2f3c15d0a39d9a340
Fix problem where PhoneWindowManager waits for keyguard to draw

This fixes a problem where PhoneWindowManager times out waiting
for keyguard to draw when it's disabled.  Instead, we pass a null
token back which allows PhoneWindowManager to continue.

Fixes bug 11190932

Change-Id: I041ea1d88dca681476d9477a3aab54559976b312

Conflicts:

	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java