Commit Graph

232320 Commits

Author SHA1 Message Date
Robert Carr
af444ef758 Ensure surfaces stay alive until activity stop.
am: e12aece4ca

* commit 'e12aece4cad849efbbe6a806f132613a56699230':
  Ensure surfaces stay alive until activity stop.
2016-02-08 20:56:09 +00:00
Robert Carr
e12aece4ca Ensure surfaces stay alive until activity stop.
Prior to this commit in this case of activity pause, with finishing=true
the activity manager will notify us of app visibility and we will begin
an exit animation. When this exit animation finishes, we will destroy
the application surface (unless its eligible for saving). However there
are two cases where this breaks down:

1. The exit animation finishes before the activity thread handles
the stop transition. Many activities stop rendering on Pause
but many do not and it is totally legal to do so. Sometimes this
results in non fatal dequeue buffer errors and sometimes results in
fatal errors with Pixel Buffers, etc...
2. We may resume the activity shortly after asking the window manager
to pause it. If the window wasn't eligible for animation, we will
immediately destroy it after being told of the visibility change
following PAUSE_FINISHING. It's possible for this to complete
before we process the resume. On the other hand the client
happilly processes the resume and transitions back from PAUSE
and then crashes once it attempts to use it's surface.

In this commit we have the activity manager notify the window manager
when an application has actually finished (or we have timed out
waiting). For windows which have not been explicitly removed by the
client, we defer destruction until we have received both this signal
and the animation has completed.

Bug: 26793431
Change-Id: Ib6ee8fbdd1f03450fbbfd62468a19e97774befab
2016-02-08 20:46:53 +00:00
George Mount
dd22f16e71 Fix Fade transition interrupt.
am: 5affef0773

* commit '5affef077316e73337eb42a098a126b01d20568e':
  Fix Fade transition interrupt.
2016-02-08 20:41:17 +00:00
George Mount
5affef0773 Fix Fade transition interrupt.
Bug 26963113

When a Fade transition is interrupted and reversed, the
View started the animation from the beginning. This change
captures the previous transitionAlpha and starts the animation
from the previous alpha state.

Change-Id: I801fe9ade6af4cf8446838e231bdc71841668a18
(cherry picked from commit 3cf9fa3db0)
2016-02-08 20:33:49 +00:00
Jeff Sharkey
13348d8c50 Merge "Move graphics and JIT caches to DE storage." into nyc-dev
am: 95728a5db6

* commit '95728a5db6595e473acf8f428f238afc2fdbbe80':
  Move graphics and JIT caches to DE storage.
2016-02-08 20:00:05 +00:00
Geoff Mendal
4772309519 Merge "Import translations. DO NOT MERGE" into nyc-dev
am: d1bbdeb86e  -s ours

* commit 'd1bbdeb86e5b6b83465440947dffc89de46a3f93':
  Import translations. DO NOT MERGE
2016-02-08 19:50:43 +00:00
Adam Powell
711ae546b3 Permit setRetainInstance(true) on nested fragments, framework edition
am: 44ba79e47d

* commit '44ba79e47d6db54e5501f994880fa09eb880c185':
  Permit setRetainInstance(true) on nested fragments, framework edition
2016-02-08 19:47:48 +00:00
Jeff Sharkey
95728a5db6 Merge "Move graphics and JIT caches to DE storage." into nyc-dev 2016-02-08 19:47:20 +00:00
Adam Powell
793cb962d4 FragmentTransaction.commitNow, framework edition
am: 8585ed66b9

* commit '8585ed66b947ef30d6a43f0bb91885ed0c5ebfb4':
  FragmentTransaction.commitNow, framework edition
2016-02-08 19:45:31 +00:00
Adam Powell
af6a103933 Preserve compatibility for ViewGroup#showContextMenuForChild
am: 2af189a0a7

* commit '2af189a0a7962501b808cd50499d978a7cd10d81':
  Preserve compatibility for ViewGroup#showContextMenuForChild
2016-02-08 19:42:31 +00:00
Philip P. Moltmann
e84c64c4a3 Merge branch 'nyc-dev-plus-aosp' of /usr/local/google/game/mirror/googleplex-android_googlesource_com/platform/frameworks/base into nyc-dev-plus-aosp 2016-02-08 19:41:15 +00:00
Philip P. Moltmann
e8273ad9ce Merge "Clarify synchronization between PrintActivity and RemotePrintDocument" into nyc-dev
am: 199cb4dfe5

* commit '199cb4dfe58bd5a4198cd414dcefd2b02d48548d':
  Clarify synchronization between PrintActivity and RemotePrintDocument
2016-02-08 19:38:56 +00:00
Philip P. Moltmann
ae4d6e4daf Merge "Clarify synchronization between PrintActivity and RemotePrintDocument" into nyc-dev
am: 199cb4dfe5

* commit '199cb4dfe58bd5a4198cd414dcefd2b02d48548d':
  Clarify synchronization between PrintActivity and RemotePrintDocument
2016-02-08 19:36:55 +00:00
Jae Seo
0303d85f3a Merge branch 'nyc-dev-plus-aosp' of /usr/local/google/game/mirror/googleplex-android_googlesource_com/platform/frameworks/base into nyc-dev-plus-aosp 2016-02-08 19:36:55 +00:00
Jae Seo
3b643cebd8 TIF: Update the internal input list with new TvInputInfo
am: abda420b9d

* commit 'abda420b9d2959776093230cd2e157a6080f2f64':
  TIF: Update the internal input list with new TvInputInfo
2016-02-08 19:35:44 +00:00
Jae Seo
214818f596 TIF: Update the internal input list with new TvInputInfo
am: abda420b9d

* commit 'abda420b9d2959776093230cd2e157a6080f2f64':
  TIF: Update the internal input list with new TvInputInfo
2016-02-08 19:34:55 +00:00
Felipe Leme
7a6a6d40dc Merge branch 'nyc-dev-plus-aosp' of /usr/local/google/game/mirror/googleplex-android_googlesource_com/platform/frameworks/base into nyc-dev-plus-aosp 2016-02-08 19:33:45 +00:00
Felipe Leme
78da2a0a2e Merge "Replaced \'touch\' by \'tap\'." into nyc-dev
am: ed330c7f7d

* commit 'ed330c7f7d98eabce8562ce34d5877a323c745ac':
  Replaced 'touch' by 'tap'.
2016-02-08 19:32:35 +00:00
Felipe Leme
ddbe34d8b5 Merge "Replaced \'touch\' by \'tap\'." into nyc-dev
am: ed330c7f7d

* commit 'ed330c7f7d98eabce8562ce34d5877a323c745ac':
  Replaced 'touch' by 'tap'.
2016-02-08 19:31:47 +00:00
Geoff Mendal
46f68a8dff Merge "Import translations. DO NOT MERGE" into nyc-dev
am: 83f7ae9628  -s ours

* commit '83f7ae9628f7514373a23b0e42ded71874731702':
  Import translations. DO NOT MERGE
2016-02-08 19:29:23 +00:00
Geoff Mendal
f7edd3accd Merge "Import translations. DO NOT MERGE" into nyc-dev
am: 0d005fee78  -s ours

* commit '0d005fee78039155779b155639e0b95c5cbc87c6':
  Import translations. DO NOT MERGE
2016-02-08 19:27:36 +00:00
Geoff Mendal
d1bbdeb86e Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-02-08 19:25:33 +00:00
Jeff Sharkey
e84bdd38ad Move graphics and JIT caches to DE storage.
We confirmed with the graphics and JIT teams that no sensitive
user data is written to these caches, so they're safe to point at DE
storage.

Since we don't have control over what is written by the app, we need
to keep the cache environment variable pointing at CE storage.

Fix ensurePrivateDirExists() to always return a path, instead of
returning null which can cause scary bugs.

Change packages.list to no longer canonicalize data paths, since
these fail when CE storage is still locked.

Bug: 27069522
Change-Id: Ifff64a036fa4aa1e61aa0dd98486bc711fbf8f4a
2016-02-08 12:24:05 -07:00
Geoff Mendal
c805b74a32 Merge "Import translations. DO NOT MERGE" into nyc-dev
am: f872232b45  -s ours

* commit 'f872232b454363fd0f23b2d40dd3b0983306ad4e':
  Import translations. DO NOT MERGE
2016-02-08 19:22:21 +00:00
Geoff Mendal
c2a4bddc05 Import translations. DO NOT MERGE
Change-Id: I14edb5a78192ca001f700de6dcc57c1c55b528fc
Auto-generated-cl: translation import
2016-02-08 11:22:17 -08:00
Geoff Mendal
ec19a0c8c3 Merge "Import translations. DO NOT MERGE" into nyc-dev
am: 1e2c97f9bc  -s ours

* commit '1e2c97f9bc194502d8d7d561b4c3a4a71ec62c0f':
  Import translations. DO NOT MERGE
2016-02-08 19:20:15 +00:00
Geoff Mendal
0a08b595d2 Import translations. DO NOT MERGE
am: 839aa9db82  -s ours

* commit '839aa9db820952cf58f5598cbdebd723310d885f':
  Import translations. DO NOT MERGE
2016-02-08 19:18:52 +00:00
Julia Reynolds
044bb48d71 Merge "Update DND visual interruption choices." into nyc-dev
am: ae0f0da91b

* commit 'ae0f0da91b4017a84665dbe51ce13c0af54d862c':
  Update DND visual interruption choices.
2016-02-08 19:11:54 +00:00
Adam Powell
44ba79e47d Permit setRetainInstance(true) on nested fragments, framework edition
Save arbitrarily nested fragments across config changes as
nonconfiguration objects. This permits the use of retain-instance
child fragments as arbitrary opaque dependencies within other
fragments.

Change-Id: Ia6640b76cfcf7ec28ba252628957a0c14863e957
(cherry picked from commit 7466be6626)
2016-02-08 19:10:44 +00:00
Geoff Mendal
157ee3c01c Merge "Import translations. DO NOT MERGE" into nyc-dev
am: d65d343481  -s ours

* commit 'd65d343481475625ac20ebf6eb5a72a4ae983146':
  Import translations. DO NOT MERGE
2016-02-08 19:09:29 +00:00
Adam Powell
8585ed66b9 FragmentTransaction.commitNow, framework edition
Offer commitNow and commitNowAllowingStateLoss methods on Fragment for
use by encapsulated components using fragments as implementation
details. This can help prevent unexpected ordering side effects at the
app level when a call to a library method wants to commit and
immediately initialize a fragment as an implementation detail.

Note that this change still does not permit reentrant FragmentManager
operations. It is still an error to add/remove/change fragments in the
same FragmentManager while a fragment transaction is being executed.

Have the commonly used ViewPager adapters use commitNow instead of
executePendingTransactions.

Change-Id: Ia37a871234a287423063f0c2c3e4c93d69116cad
(cherry picked from commit f6b30662f8)
2016-02-08 19:00:52 +00:00
Adam Powell
2af189a0a7 Preserve compatibility for ViewGroup#showContextMenuForChild
Have the new showContextMenuForChild(View, float, float) call through
to the old showContextMenuForChild(View) before recursing up to its
parent. This ensures that existing apps with custom views that
override the old method still get called as expected if they implement
custom behavior.

Unlike some other similar circumstances we aren't implementing this to
be bidirectional as the new behavior doesn't need to be triggered by
invoking the old. If the older method is invoked explicitly we will
still show old-style dialog context menus instead of the newer popup
style since we won't have a good place to visually anchor a popup.

Bug 26919262

Change-Id: Ie09f922d322b5a24789c7867820c4bc43824c385
(cherry picked from commit 759a4c5400)
2016-02-08 18:59:28 +00:00
Philip P. Moltmann
199cb4dfe5 Merge "Clarify synchronization between PrintActivity and RemotePrintDocument" into nyc-dev 2016-02-08 18:41:55 +00:00
Jae Seo
abda420b9d TIF: Update the internal input list with new TvInputInfo
Bug: 26864151, Bug: 26863281
Change-Id: I33e357aac74bceda50c794eb6057c363de9250b8
(cherry picked from commit 89a9937927)
2016-02-08 18:19:41 +00:00
Felipe Leme
ed330c7f7d Merge "Replaced 'touch' by 'tap'." into nyc-dev 2016-02-08 18:10:18 +00:00
Geoff Mendal
83f7ae9628 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-02-08 18:09:21 +00:00
Geoff Mendal
773a356e97 Import translations. DO NOT MERGE
Change-Id: I5c2b346ce87737f9e8077f014d52e0e908a43418
Auto-generated-cl: translation import
2016-02-08 23:24:37 +05:30
Geoff Mendal
0d005fee78 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-02-08 17:49:22 +00:00
Felipe Leme
8067aed5c7 Replaced 'touch' by 'tap'.
BUG: 26884266
Change-Id: Ic3d7be8a10b768101b161644e46c92cd872621db
2016-02-08 09:42:52 -08:00
Philip P. Moltmann
cc3fa0d295 Clarify synchronization between PrintActivity and RemotePrintDocument
The general theme of these changes is to always delay any action until
the printDocument finishes a command. This is done:
- Before callinng for into a different activity to select a name for the
  PDF
- Before finishing

The second theme is to fix the canceling behavior of
RemotePrintDocument.AsyncCommand.

There are four bugs fixed in this review:

(1)
When the RemotePrintDocument.AsyncCommand is canceled it goes into the
"canceling" state. When it is canceled again it should stay in this
state. Before it went to "canceled" but the command was still running.
(see AsyncCommand#cancel()).

(2)
When finishing the PrintActivity in PrintActivity.doFinish() we cancel
the RemotePrintDocument. If there is a command still in progress (i.e.
isUpdating()) and it finished as canceled we used to call doFinish()
again and then try to double-clean up which lead to exceptions.

The new behavior is that is the PrintActivity is calling doFinish()
while a command is still in progress (i.e. isUpdating()) we delay the
cleanup until the command finishes. The command might finish as
canceled, completed or failed. Hence we have to call doFinish() in the
callbacks for all three cases.

(3)
When canceling there might have still been a nextCommand ready, hence
canceling does not stop execution of the RemotePrintDocument which could
lead to running commands while finshing.

(4)
When getting the location to store the PDF at a command might still be
in progress. This lead to half executed commands and caused issues once
we try to continue after the select-location-activity returns

Bug: 24713704
Bug: 24973884
Change-Id: Ied90fe8dc9bd6ea7f8b3e4ce4f922e477015568d
2016-02-08 17:29:26 +00:00
Geoff Mendal
b727d99a5e Import translations. DO NOT MERGE
Change-Id: Ic6f472559385699038b2d8f5e63d2ed0d5752c4d
Auto-generated-cl: translation import
2016-02-08 22:52:34 +05:30
Geoff Mendal
f872232b45 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-02-08 16:46:58 +00:00
Geoff Mendal
5f346b6123 Import translations. DO NOT MERGE
Change-Id: I2fd0cda2b14b49646e59253e874cef28e84a5c2f
Auto-generated-cl: translation import
2016-02-08 22:16:31 +05:30
Geoff Mendal
1e2c97f9bc Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-02-08 16:37:32 +00:00
Geoff Mendal
52e62e55a8 Import translations. DO NOT MERGE
Change-Id: I4bf4fefbe2f02647922208fafaa23f70c2fe965a
Auto-generated-cl: translation import
2016-02-08 17:32:25 +01:00
Geoff Mendal
839aa9db82 Import translations. DO NOT MERGE
Change-Id: I70b1edaa1374eb469b691b3dc599f92d94762638
Auto-generated-cl: translation import
2016-02-08 21:58:20 +05:30
Julia Reynolds
ae0f0da91b Merge "Update DND visual interruption choices." into nyc-dev 2016-02-08 16:10:23 +00:00
Geoff Mendal
d65d343481 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-02-08 15:54:22 +00:00
Geoff Mendal
4f4b41911d Import translations. DO NOT MERGE
Change-Id: Ibace3035d3275c1fdbb39cd3769844dfaef35d00
Auto-generated-cl: translation import
2016-02-08 10:52:49 -05:00
Julia Reynolds
d560729ce3 Update DND visual interruption choices.
Change-Id: I7050264839c566dcef1dd01d155dda694a8d1ec0
2016-02-08 15:20:02 +00:00