Commit Graph

164750 Commits

Author SHA1 Message Date
Craig Mautner
b97b19f6a4 am 9052862e: Merge "[ActivityManager] Invalidate last screenshot when activity relaunched" into lmp-mr1-dev
* commit '9052862ebb64a0fdccc897d634eab20a1ad6debe':
  [ActivityManager] Invalidate last screenshot when activity relaunched
2014-12-04 21:58:24 +00:00
Craig Mautner
f6d03f3980 am 799cb730: Merge "[ActivityManager] Fix race condition in pss collection" into lmp-mr1-dev
* commit '799cb730298591a9d7303ea051451a3b6dc8e51f':
  [ActivityManager] Fix race condition in pss collection
2014-12-04 21:58:18 +00:00
Craig Mautner
a32933fdfe am e0dc40c0: Merge "ANR caused by incorrect cleanup in BroadcastQueue." into lmp-mr1-dev
* commit 'e0dc40c0f232ee2d7c5523f307781ccd3f7cb50b':
  ANR caused by incorrect cleanup in BroadcastQueue.
2014-12-04 21:58:13 +00:00
Craig Mautner
95cce9d57e am 93d47b4c: Merge "Avoid system server crash due to package removed" into lmp-mr1-dev
* commit '93d47b4c05585c37117ac5ac44d810de63f9d008':
  Avoid system server crash due to package removed
2014-12-04 21:58:07 +00:00
Craig Mautner
afca4dba31 Merge "bug fix possible NPE while startProcessLocked()" into lmp-mr1-dev 2014-12-04 21:55:02 +00:00
Craig Mautner
9052862ebb Merge "[ActivityManager] Invalidate last screenshot when activity relaunched" into lmp-mr1-dev 2014-12-04 21:53:42 +00:00
Craig Mautner
799cb73029 Merge "[ActivityManager] Fix race condition in pss collection" into lmp-mr1-dev 2014-12-04 21:52:06 +00:00
Craig Mautner
e0dc40c0f2 Merge "ANR caused by incorrect cleanup in BroadcastQueue." into lmp-mr1-dev 2014-12-04 21:50:46 +00:00
Craig Mautner
93d47b4c05 Merge "Avoid system server crash due to package removed" into lmp-mr1-dev 2014-12-04 21:50:15 +00:00
Craig Mautner
435496e1ac am c2cae50b: Merge "Reset killedByAm flag at attachApplicationLocked" into lmp-mr1-dev
* commit 'c2cae50b832753dea612db575c6d97b8d94eceea':
  Reset killedByAm flag at attachApplicationLocked
2014-12-04 21:49:50 +00:00
Winson Chung
860e2d86d8 Ensure that loading and unloading of tasks happen symmetrically with lifecycle events. (Bug 18574950)
Since we were unloading tasks when the activity was stopped, but only reloading
tasks on the next onCreate()/onNewIntent(), there were cases where the system 
would create the activity but then immediately stop and start it (ie. when the
screen is turned off while the activity has resumeWhilePausing=True set in its 
manifest).  This CL ensures that we reload the tasks with the same state used
the last time the Recents activity was started.

The CL also cleans up some visibility state that was confusing and is no longer
necessary, fixes a small issue with the dismiss button flashing when toggling
Recents quickly, and fixes some cases where the initial stack scroll is set
incorrectly.
2014-12-04 13:49:46 -08:00
Craig Mautner
1d8b27bced am 1289a3b2: Merge "[ActivityManager] Fix NPE when start activity" into lmp-mr1-dev
* commit '1289a3b2d3ae6ba67215d984c3302bfdcd69ae14':
  [ActivityManager] Fix NPE when start activity
2014-12-04 21:49:44 +00:00
Craig Mautner
c2cae50b83 Merge "Reset killedByAm flag at attachApplicationLocked" into lmp-mr1-dev 2014-12-04 21:45:21 +00:00
Craig Mautner
1289a3b2d3 Merge "[ActivityManager] Fix NPE when start activity" into lmp-mr1-dev 2014-12-04 21:44:39 +00:00
Sanket Padawe
a2bf987b74 Doing provisioning check for wifi tethering from SystemUI
+ Calling activity which calls provisioning app only if provisioning
is needed.
+ Hiding Hotspot tile from quick settings when screen is locked.

Bug: 18368949
Change-Id: I5b92a7f2d46c8b5d9b323d6a5d49315694c599f7
2014-12-04 13:41:17 -08:00
louis_chang
1864a509b0 [ActivityManager] Invalidate last screenshot when activity relaunched
Symptom:
The task thumbnail is not updated when activity relaunched.

Reproduce Steps:
1. Put device in portrait
2. Launch Calculator
3. Launch Recent App (the Calculator's screenshot is correct)
4. Rotate device to landscape
5. Click Calculator in Recent App to return to Calculator (Calculator has relaunched to landsacpe ui)
6. Launch Recent App again (the Calculator's screenshot is not updated)

Change-Id: I92e951ea2ee215c52ca6e50cf6f9e02deb787bce
2014-12-04 13:35:02 -08:00
younghwan1.kim
bc0975b3af bug fix possible NPE while startProcessLocked()
In case, process doesn't create well while startingProcessLocked().
There is possibility to make NPE.
Setting app's crash handler needs to be assigned after null check routine.

Change-Id: I67fb6427f72d93f79fed36eb44c47d37eafdac31
2014-12-04 13:32:41 -08:00
louis_chang
71e737c8e8 [ActivityManager] Fix race condition in pss collection
Symptom:
There has a race condition that two threads are accessing
the mPendingPssProcesses simultaneously. One of the thread
is collecting the process pss by looping the mPendingPssProcesses.
The other thread is requesting to collect pss of all processes,
which clears mPendingPssProcesses and adding processes back.

Solution:
Avoid race condition by adding synchornized protection.

Change-Id: Ifb090eda9c4a1b8e3fd980fe0171e9dd77773b46
2014-12-04 13:30:12 -08:00
Kazuki Nakayama
8920e1cabb Reset killedByAm flag at attachApplicationLocked
Cherry picked from aosp.

Fixes bug 18593309.

ActivityManager reuses a process record object that killed
by him under some situation. That reused process record inherits
a killedByAm flag unexpectedly.
The killedByAm flag must be reset otherwise ActivityManager can't
judge the process can be killed or not.

Change-Id: If95137d91939cc44882ad2813131bcde0edd0c1b
2014-12-04 13:28:10 -08:00
Jeff Davidson
7585c56fc8 Show "Connected via Wi-Fi assistant" for ephemeral networks.
Bug: 18525241
Change-Id: I0d2146ab47b82d32c50b2ef883f176a6b6066713
2014-12-04 13:17:10 -08:00
Dan Sandler
f5ba6bdafa RTL support for Lollipop Land.
Since the game randomly flips horizontally anyway, forcing
the game view to LTR fixes the coordinate math without
affecting gameplay. (The score view did need to move to
start instead of left, however.)

Bug: 18628150
Change-Id: I7cf8bd1e2b9a2316d30e17a9251173598c687c2b
2014-12-04 16:07:30 -05:00
Joe Fernandez
ae80fd42a4 am f5aa6752: am 709df4fa: Merge "docs: Fixes for App Indexing training class" into lmp-docs
* commit 'f5aa675294ef1c622ec369450e2b0bbaa839db6d':
  docs: Fixes for App Indexing training class
2014-12-04 21:06:21 +00:00
louis_chang
cd5d198d7e [ActivityManager] Fix NPE when start activity
Cherry picked from aosp.

Fixes bug 18593457.

Symptom:
NPE occurs in line 1184 (resultStack.sendActivityResultLocked)
because resultStack is null.

Root cause:
When starting activity with FLAG_ACTIVITY_FORWARD_RESULT flag,
the resultRecord could be updated, but the resultStack is not
updated as well. In that case, the resultStack is still be
null. The exception will occurs if the activity is not
granted to launch due to permission denied.

Solution:
Update resultStack when resultRecord updates.

Change-Id: I91634e4f713c2e8dbd1a71f358a8fd9beed83ec7
2014-12-04 13:06:05 -08:00
Joe Fernandez
f5aa675294 am 709df4fa: Merge "docs: Fixes for App Indexing training class" into lmp-docs
* commit '709df4fa2600d1d2ee2f686097e1c92b52b58d19':
  docs: Fixes for App Indexing training class
2014-12-04 21:00:30 +00:00
Alan Viverette
ebc9f2e773 Update locally cached drawables when constant state changes
Previously we were failing to update references to drawables that had
been pulled from constant state, so we were drawing the wrong ones.

Also fixes button Z translation on press, which was WAY too high.

BUG: 18542282
Change-Id: Ifde7d64e31d31737854cfcbe75777e5b07a06e3a
2014-12-04 12:54:46 -08:00
Joe Fernandez
709df4fa26 Merge "docs: Fixes for App Indexing training class" into lmp-docs 2014-12-04 20:50:49 +00:00
Joe Fernandez
71d58705d8 docs: Fixes for App Indexing training class
b/18244320
b/17982146

Change-Id: Ic095c3c73d09fa2d7f3c08fa47763fa8589683af
2014-12-04 12:49:45 -08:00
Wale Ogunwale
18795a2299 Add support from restoring recent's backup.
Bug: 15986349
Change-Id: I899f81d317fcd5277a75db7ba50ecca14112df26
2014-12-04 12:37:53 -08:00
David Friedman
753f4fc951 am 9c28ba76: am 47eddc7c: am bf6a4bfb: am 6e043e0c: Merge "Change notes for NDK r10d, to publish to DAC" into lmp-docs
* commit '9c28ba76f6865b3531b38e1d7f9be258571e9c2d':
  Change notes for NDK r10d, to publish to DAC
2014-12-04 20:37:08 +00:00
Geoff Mendal
135a576185 am 597a7531: (-s ours) am 9ece2e96: (-s ours) Merge "Import translations. DO NOT MERGE" into lmp-sprout-dev
* commit '597a75318e22ebebf9338f5dfc7d7c99aa3f23a2':
  Import translations. DO NOT MERGE
2014-12-04 20:37:03 +00:00
David Friedman
29b0400192 am 17904f8b: am 2d2e7bf3: am ed839a76: am 795db65e: Merge "Fixes a typo, in which the word "give" is repeated. Bug 18553334" into lmp-docs
* commit '17904f8b9c7553601d4ec1b24356c43cb80c318f':
  Fixes a typo, in which the word "give" is repeated. Bug 18553334
2014-12-04 20:36:58 +00:00
Svetoslav
8d9a06feee am 6e7bf935: Merge "Notify accessibility for window changes after an app animation end." into lmp-mr1-dev
* commit '6e7bf935b4adbfcc75c968f030f770af87bf6dbb':
  Notify accessibility for window changes after an app animation end.
2014-12-04 20:36:52 +00:00
David Friedman
9c28ba76f6 am 47eddc7c: am bf6a4bfb: am 6e043e0c: Merge "Change notes for NDK r10d, to publish to DAC" into lmp-docs
* commit '47eddc7cc98cb99b5820c07109337a1f5ea48c77':
  Change notes for NDK r10d, to publish to DAC
2014-12-04 20:31:32 +00:00
Geoff Mendal
597a75318e am 9ece2e96: (-s ours) Merge "Import translations. DO NOT MERGE" into lmp-sprout-dev
* commit '9ece2e960046a169ac30c4b23119052793c76d98':
  Import translations. DO NOT MERGE
2014-12-04 20:31:29 +00:00
David Friedman
17904f8b9c am 2d2e7bf3: am ed839a76: am 795db65e: Merge "Fixes a typo, in which the word "give" is repeated. Bug 18553334" into lmp-docs
* commit '2d2e7bf33f2e443a650fa29ee646055b231ea380':
  Fixes a typo, in which the word "give" is repeated. Bug 18553334
2014-12-04 20:30:57 +00:00
Svetoslav
6e7bf935b4 Merge "Notify accessibility for window changes after an app animation end." into lmp-mr1-dev 2014-12-04 20:29:57 +00:00
Guobin Zhang
53964dac4b ANR caused by incorrect cleanup in BroadcastQueue.
Pulled from aosp.

Fixes bug 18593454.

Two broadcasts could be sent to the same app simultaneously:
one foreground, one background. For example, LOCALE_CHANGED
and PACKAGE_CHANGED are delievered to com.android.vending
at the same time.
1. AMS started new vending process to handle LOCALE_CHANGED.
   And set app.curReceiver = LOCALE_CHANGED.
2. Before LOCALE_CHANGED is handled by vending process,
   PACKAGE_CHANGED was delievered to vending process too.
   AMS set app.curReceiver = PACKAGE_CHANGED. Bad!
3. Vending process finished handling LOCALE_CHANGED.
   AMS clear app.curReceiver = NULL. Bad!
   And Vending process  killed itself without handling
   PACKAGE_CHANGED.
4. AMS known vending process has died, but didn't know that
   BgBroadcastQueue was still waiting for finish message
   for PACKAGE_CHANGED.
At last, BgBroadcastQueue reported ANR for PACKAGE_CHANGED.

This patch adds protection before clearing app.curReceiver,
only set to NULL if the finishing receiver = app.curReceiver
So handleAppDied would know that PACKAGE_CHANGED was not
finished yet, it will abort the broadcast and continue.

Change-Id: Ic4f31b35e21823d4a3c27712391ecbede213a494
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
2014-12-04 12:26:53 -08:00
Justin Harrison
2b236ab30e am 70941f20: Merge "Revert "Revert "Improve fling physics for recents""" into lmp-mr1-dev
* commit '70941f203c13bbd475f2434b69155123cf5ae863':
  Revert "Revert "Improve fling physics for recents""
2014-12-04 20:10:32 +00:00
Justin Harrison
70941f203c Merge "Revert "Revert "Improve fling physics for recents""" into lmp-mr1-dev 2014-12-04 20:05:41 +00:00
Justin Harrison
31d9837284 Revert "Revert "Improve fling physics for recents""
This is now BC-triaged, so reverting the revert.

This reverts commit 3f7dac5a1c.

Change-Id: Iae9ffc74a44918a83d9cd4dfb7011810c770e135
2014-12-04 20:05:21 +00:00
Craig Mautner
8432cee04f am 224904e0: Merge "Prevent ANR when broadcast receiver is killed" into lmp-mr1-dev
* commit '224904e01a2efb01c6276eb64fba531a3d30a42b':
  Prevent ANR when broadcast receiver is killed
2014-12-04 19:52:21 +00:00
Craig Mautner
224904e01a Merge "Prevent ANR when broadcast receiver is killed" into lmp-mr1-dev 2014-12-04 19:46:20 +00:00
Paul Jensen
461e73677d am efb81b9e: Merge "Remember to cancel lingering when a network again satsifies a NetworkRequest." into lmp-mr1-dev
* commit 'efb81b9e965c4ba782151b6767e7e3df4f2cdfd2':
  Remember to cancel lingering when a network again satsifies a NetworkRequest.
2014-12-04 19:33:08 +00:00
Paul Jensen
efb81b9e96 Merge "Remember to cancel lingering when a network again satsifies a NetworkRequest." into lmp-mr1-dev 2014-12-04 19:27:52 +00:00
Prerepa Viswanadham
e21aafab0d am ff5e5db3: Fix BT crash due to unset value for BluetoothGattDescriptor from API user
* commit 'ff5e5db319785d23d672af95ac2dff3f37827cfd':
  Fix BT crash due to unset value for BluetoothGattDescriptor from API user
2014-12-04 19:25:02 +00:00
Luan Nguyen
0e597e9224 am 9b5de582: am daab7426: Merge "docs: Update MessageAPI notes to mention the unreliable transmission nature." into lmp-docs
* commit '9b5de582058d73fbc363028eae061979b6a093ee':
  docs: Update MessageAPI notes to mention the unreliable transmission nature.
2014-12-04 19:02:50 +00:00
Kenji Sugimoto
d088027ff1 Prevent ANR when broadcast receiver is killed
Cherry-picked from aosp

Fixes bug 18613138.

If the process of a BroacastReceiver is dying at the same time
as the system is trying to send an ordered broadcast to the
receiver, the system will try to start the process again. The
BroadcastQueue will store the BroadcastRecord in mPendingBroadcast
to be able to handle it again when the process is awake. A
timeout Message is posted to the handler of the BroadcastQueue.

As part of the shutdown sequence skipCurrentReceiver is called for
the ProcessRecord. This will check if there is a curReceiver set
for the application and make sure to finish the receiver.

Each of the foreground and background BroadcastQueues have their
own handler for managing broadcast timeouts. If the wrong
BroadcastQueue finishes the receiver, the pending timeout Message
will never be cancelled, leading to an ANR report for a receiver
that has already been finished.

Change-Id: I960c0d8f1a8b739b54a8f09f496b32a3498b9e9a
2014-12-04 11:02:36 -08:00
Luan Nguyen
9b5de58205 am daab7426: Merge "docs: Update MessageAPI notes to mention the unreliable transmission nature." into lmp-docs
* commit 'daab7426b254b57820f3e556960e9f5b20ba5bc6':
  docs: Update MessageAPI notes to mention the unreliable transmission nature.
2014-12-04 18:55:08 +00:00
Luan Nguyen
daab7426b2 Merge "docs: Update MessageAPI notes to mention the unreliable transmission nature." into lmp-docs 2014-12-04 18:50:44 +00:00
Adam Lesinski
0953ab2764 am 720beef2: Merge "AAPT: Move private attrs to new type for framework" into lmp-mr1-dev
* commit '720beef28dacc924d77576f63fced84e6a820dc6':
  AAPT: Move private attrs to new type for framework
2014-12-04 18:30:25 +00:00