Commit Graph

322782 Commits

Author SHA1 Message Date
TreeHugger Robot
ffa79fb26b Merge "Optimize hot launching recents" 2017-05-16 17:15:22 +00:00
Rubin Xu
b3b6f79e8b Merge "Invoke BLKSECDISCARD to securely delete sensitive data" into oc-dev am: 28f0fd7a2d
am: 321063daa1  -s ours

Change-Id: I16f97108f9c629c3f034772b4b201df4a7b109d0
2017-05-16 16:43:43 +00:00
Rubin Xu
321063daa1 Merge "Invoke BLKSECDISCARD to securely delete sensitive data" into oc-dev
am: 28f0fd7a2d

Change-Id: I9e0ffce82703793004b6900db39ad7b5c5500ec3
2017-05-16 16:35:16 +00:00
Jorim Jaggi
eb2a28e127 Merge "Also add starting window when activity is not alive" into oc-dev am: 6a5e68f784
am: e88251c80d

Change-Id: I6b345aa34942934fe988a172786859dadcc821c2
2017-05-16 16:29:42 +00:00
TreeHugger Robot
28f0fd7a2d Merge "Invoke BLKSECDISCARD to securely delete sensitive data" into oc-dev 2017-05-16 16:26:47 +00:00
Jorim Jaggi
e88251c80d Merge "Also add starting window when activity is not alive" into oc-dev
am: 6a5e68f784

Change-Id: Ic72ff004aec348af6100c4f20e4d9a4909c78e94
2017-05-16 16:20:12 +00:00
TreeHugger Robot
6a5e68f784 Merge "Also add starting window when activity is not alive" into oc-dev 2017-05-16 16:13:22 +00:00
Aurimas Liutikas
01e1b8550d Merge "Remove internal listener when cloning" into oc-dev am: a7dde34a81
am: c59f75af1d

Change-Id: Ia44c46f0784c412d71956c9e7f1e17533c991b9c
2017-05-16 16:00:56 +00:00
Aurimas Liutikas
c59f75af1d Merge "Remove internal listener when cloning" into oc-dev
am: a7dde34a81

Change-Id: Ieac61647ed17450141516473768b8881ecfa072b
2017-05-16 15:51:07 +00:00
Aurimas Liutikas
a7dde34a81 Merge "Remove internal listener when cloning" into oc-dev 2017-05-16 15:43:50 +00:00
Jorim Jaggi
c79b375d00 Merge "Fix spinning TaskPersister" into oc-dev am: 88c6ec9f17
am: d520726f8e

Change-Id: I50c7d13e1408bd4437aced277fffd2f172af8c0d
2017-05-16 15:28:05 +00:00
Jorim Jaggi
cf4411df43 Optimize hot launching recents
Rearrange how we generate the transition specs, which involves
creating a thumbnail on the mainthread (about 10ms on large
devices): First, we put launching the activity onto a handler
thread (with default priority), to free up the main thread. Then,
we immediately start generating the thumbnail such that when the
future calls us we have the generated spec already handy.

For that we need to be able to supply a specs future into
ActivityOptions, to avoid race conditions. Furthermore we need to
make sure not to call into WM while creating specs, to avoid WM
lock contention.

Test: App -> Recents -> Same app, inspect app transition logs
Test: Double tap recents for quick switching

Bug: 32668632
Change-Id: Ic6ec65c2560f67cade3b5ddde9f79ee13e9ba32c
2017-05-16 17:26:54 +02:00
Jorim Jaggi
d520726f8e Merge "Fix spinning TaskPersister" into oc-dev
am: 88c6ec9f17

Change-Id: Ia8a1eeefd133621d1dc47b13fc5e7940c3a215b7
2017-05-16 15:19:02 +00:00
Jorim Jaggi
d5f195fdb2 Merge "Immediately report drawing" into oc-dev am: ba21a120c1
am: 46ccc64f72

Change-Id: Iea70deb7afeccce902988a8bc881d66fdfcee942
2017-05-16 15:15:42 +00:00
Jorim Jaggi
88c6ec9f17 Merge "Fix spinning TaskPersister" into oc-dev 2017-05-16 15:13:34 +00:00
Jorim Jaggi
46ccc64f72 Merge "Immediately report drawing" into oc-dev
am: ba21a120c1

Change-Id: Ib38c4093090a2b12d6fb29af20e59aaf1cfe9ae1
2017-05-16 15:09:33 +00:00
Jorim Jaggi
ba21a120c1 Merge "Immediately report drawing" into oc-dev 2017-05-16 15:01:36 +00:00
George Mount
beece1ae4b Merge "Fix back stack problems due to postponed transitions" into oc-dev am: ce50eb2d17
am: c091a649ad

Change-Id: If14705a262ea3ee35d626f7e3d2deb6ddc035682
2017-05-16 14:47:40 +00:00
Android Build Merger (Role)
c271fd4425 Merge "Merge "Merge "Set the decay timer for all forked apps." am: 232ce7868d am: 241fb2fc53 am: 50ee43bbfa" into oc-dev-plus-aosp am: 5deb5277f5" 2017-05-16 14:37:56 +00:00
George Mount
c091a649ad Merge "Fix back stack problems due to postponed transitions" into oc-dev
am: ce50eb2d17

Change-Id: I8ef9d7f968541dea17198aac89441f2617fab828
2017-05-16 14:37:23 +00:00
Christopher Ferris
060b50b028 Merge "Merge "Set the decay timer for all forked apps." am: 232ce7868d am: 241fb2fc53 am: 50ee43bbfa" into oc-dev-plus-aosp
am: 5deb5277f5

Change-Id: I8f96bfcb9f9126e2617d2183a08a00293a253dce
2017-05-16 14:36:35 +00:00
Android Build Merger (Role)
e701ade39d Merge "Merge "Fixes crash (race cond) when using toast that is immediately cancelled" into oc-dev am: 2df0155a97 am: c4996bd89c" 2017-05-16 14:34:00 +00:00
Svet Ganov
f137102968 Merge "Fixes crash (race cond) when using toast that is immediately cancelled" into oc-dev am: 2df0155a97
am: c4996bd89c

Change-Id: I6ab834ef0b291e24cdc67b885bcd5c6230a82cb1
2017-05-16 14:32:58 +00:00
TreeHugger Robot
76700b56ec Merge "ConnectivityManager: fix documentation" 2017-05-16 14:31:28 +00:00
Android Build Merger (Role)
5deb5277f5 Merge "Merge "Set the decay timer for all forked apps." am: 232ce7868d am: 241fb2fc53 am: 50ee43bbfa" into oc-dev-plus-aosp 2017-05-16 14:29:13 +00:00
Christopher Ferris
dc433b78e6 Merge "Set the decay timer for all forked apps." am: 232ce7868d am: 241fb2fc53
am: 50ee43bbfa

Change-Id: I407053978d2467f9275a29a9e47e8d41c6343aff
2017-05-16 14:28:00 +00:00
Svet Ganov
c4996bd89c Merge "Fixes crash (race cond) when using toast that is immediately cancelled" into oc-dev
am: 2df0155a97

Change-Id: I6cb947b8c42298c7cff1932031faec362b99a354
2017-05-16 14:26:00 +00:00
TreeHugger Robot
b05e8176bb Merge "Invoke BLKSECDISCARD to securely delete sensitive data" 2017-05-16 14:23:06 +00:00
TreeHugger Robot
ce50eb2d17 Merge "Fix back stack problems due to postponed transitions" into oc-dev 2017-05-16 14:22:08 +00:00
Christopher Ferris
50ee43bbfa Merge "Set the decay timer for all forked apps." am: 232ce7868d
am: 241fb2fc53

Change-Id: I1e27ac03777f99cc3e71935fcdfb7ea10d5bfbf4
2017-05-16 14:18:57 +00:00
TreeHugger Robot
2df0155a97 Merge "Fixes crash (race cond) when using toast that is immediately cancelled" into oc-dev 2017-05-16 14:16:01 +00:00
Jorim Jaggi
70aa4d18be Also add starting window when activity is not alive
The fact whether the process is running or not is not necessarily
a reason to not show a starting window. Sometimes the process with
an activity gets killed, but later gets restarted because of some
broadcast or service without recreating the activity. In this
case, we still need a splash screen to hide the recreation delay,
which is usually as expensive as if the process is not running.

Test: Open Calendar, kill `pid calendar`, reopen it, make sure
starting window is shown.
Test: As above but with a couple of other apps - with and widhout
trampoline activities.
Test: Boot freshly and open a couple of apps from recents

Change-Id: I8c4f928fca77b5446cab55c89bc69adbaaaa8da3
Fixes: 37951698
2017-05-16 16:10:27 +02:00
Christopher Ferris
241fb2fc53 Merge "Set the decay timer for all forked apps."
am: 232ce7868d

Change-Id: Ia6e16a2f6b8e551a48d6f3ab4472d097284436f4
2017-05-16 14:10:18 +00:00
Christopher Ferris
232ce7868d Merge "Set the decay timer for all forked apps." 2017-05-16 14:02:53 +00:00
Hugo Benichi
bd4317f754 Merge "Remove unused import in ConnectivityManager" am: db6fc1afe8 am: fe098f8207 am: e13c192d0f
am: 36d913c7b9

Change-Id: I455d9712ad7f60f7474077435ff977c95b3b48c3
2017-05-16 13:34:37 +00:00
Hugo Benichi
36d913c7b9 Merge "Remove unused import in ConnectivityManager" am: db6fc1afe8 am: fe098f8207
am: e13c192d0f

Change-Id: Ib8368c5a8538914cba2723368c03618401ac159f
2017-05-16 13:25:09 +00:00
Hugo Benichi
e13c192d0f Merge "Remove unused import in ConnectivityManager" am: db6fc1afe8
am: fe098f8207

Change-Id: I64a2a607769d7194161e7728465c38cabbfa9345
2017-05-16 13:18:33 +00:00
Hugo Benichi
fe098f8207 Merge "Remove unused import in ConnectivityManager"
am: db6fc1afe8

Change-Id: I1a7ce964c66e0204bfcc69948f7bed23ab498c81
2017-05-16 13:11:58 +00:00
Treehugger Robot
db6fc1afe8 Merge "Remove unused import in ConnectivityManager" 2017-05-16 13:04:37 +00:00
Jorim Jaggi
dc9385aad4 Immediately report drawing
No need to wait on the next relayout - this can only delay the
transition. Makes hot launches a lot more consistent.

However, this made it too fast! We then hit a race condition when
the app transition was already starting but no other layout was
done yet. When another layout was executed we noticed that we need
to report resized for the starting window, clearing it's drawn
state, which set startingDisplayed=false, which jumped the app
window animation to the end.

To fix this, make sure not to report another resized immediately
after the initial layout, as the client already knows the latest
(because it calls relayout at some point before it starts drawing).

Also fix "animating" async systrace for better analysis.

Test: Open/close size-mismatching task snapshot 100 times, ensure
no animation skipped.
Test: Look at app transition logs, ensure more consistent.
Test: Overall system sanity testing (open a couple of apps/dialogs
etc).

Bug: 32668632
Change-Id: Id795cd6a84f22e6a619089cb9554fc5033477ad2
2017-05-16 14:32:22 +02:00
Rubin Xu
ee67b61bb0 Invoke BLKSECDISCARD to securely delete sensitive data
Bug: 34600579
Test: manual - change device lock under synthetic password, verify
      old data on disk is erased.

Change-Id: I247bd1f095dd27335e671981f9e2d77e149af84f
Merged-In: I247bd1f095dd27335e671981f9e2d77e149af84f
2017-05-16 13:30:05 +01:00
Jorim Jaggi
2f9c7a2f14 Fix spinning TaskPersister
Wait on the lock if the queue is paused instead of
just spin-looping.

Test: Close app, make sure screenshot gets persisted.
Bug: 36631902
Change-Id: Id7940468391d6cdfc74bb9341c1639f72d469387
2017-05-16 14:13:08 +02:00
Rubin Xu
aa32d15305 Invoke BLKSECDISCARD to securely delete sensitive data
Bug: 34600579
Test: manual - change device lock under synthetic password, verify
      old data on disk is erased.

Change-Id: I247bd1f095dd27335e671981f9e2d77e149af84f
2017-05-16 12:44:02 +01:00
Erik Kline
74fa79e6d6 Fix broken DUN evaluation logic am: 5afccc6251 -s ours
am: 80284de16b  -s ours

Change-Id: Iedfaa176b70765a9c4489442e37d879c28c04995
2017-05-16 10:42:22 +00:00
Erik Kline
80284de16b Fix broken DUN evaluation logic
am: 5afccc6251  -s ours

Change-Id: I72aaa6c86fa9cda9625334e8989dcc540867bdea
2017-05-16 10:36:13 +00:00
TreeHugger Robot
dfa8e745e8 Merge "ActivityManagerService: Rework dumping of top CPU processes." 2017-05-16 10:02:32 +00:00
Erik Kline
5afccc6251 Fix broken DUN evaluation logic
Test: as follows
    - built
    - booted
    - flashed
    - runtest frameworks-net passes
Bug: 32163131
Bug: 38152109
Bug: 38186915
Merged-In: Ib9a469b16a598c47b615a15fc7cce420bfe4b8b7
Merged-In: I293b4cd57dcd1968c2b38f4e92e24cc0d2e135a9
Change-Id: Id4803504e825290d62c0b51a2b9bd664dcef30b1
(cherry picked from commit 54f2f3704e)
2017-05-16 17:31:14 +09:00
Erik Kline
7f75a7fc6d Merge "Fix broken DUN evaluation logic" am: b0daeeb879 am: dd76dd1eea am: 5d1bcf5bca
am: 260fa1dd9e

Change-Id: I293b4cd57dcd1968c2b38f4e92e24cc0d2e135a9
2017-05-16 08:25:47 +00:00
Erik Kline
260fa1dd9e Merge "Fix broken DUN evaluation logic" am: b0daeeb879 am: dd76dd1eea
am: 5d1bcf5bca

Change-Id: Ib9a469b16a598c47b615a15fc7cce420bfe4b8b7
2017-05-16 08:19:22 +00:00
Erik Kline
5d1bcf5bca Merge "Fix broken DUN evaluation logic" am: b0daeeb879
am: dd76dd1eea

Change-Id: I7e194d1c17df7770706e3c80e587ce296f1e40f8
2017-05-16 08:13:14 +00:00