Commit Graph

252839 Commits

Author SHA1 Message Date
TreeHugger Robot
2bbfe98062 Merge "Eliminate next-alarm-clock broadcast flapping" into nyc-dev 2016-08-29 21:47:04 +00:00
Pankaj Kanwar
30fc10364a Merge "Update InCallService#onConnectionEvent comments." into nyc-dr1-dev
am: d5b8c80b51

Change-Id: I0381077c87e1c42594c4cae902f479c891f56ede
2016-08-29 21:45:07 +00:00
Tyler Gunn
e3222569c2 Update InCallService#onConnectionEvent comments.
am: 06f3fa66b7

Change-Id: I954dd7bd3079f33e5966a1998c4f676c98cbe0de
2016-08-29 21:45:04 +00:00
Pankaj Kanwar
d5b8c80b51 Merge "Update InCallService#onConnectionEvent comments." into nyc-dr1-dev 2016-08-29 21:37:42 +00:00
Andrii Kulian
26d5345d30 Merge "DO NOT MERGE -- Fix finishing activity in non-focused stack" into nyc-dev am: c8417676ed am: 2f1662f524
am: 6f200e6933

Change-Id: Ie16eea536c6dbb928af0cba8fb6ebec262b611b1
2016-08-29 21:33:06 +00:00
Andrii Kulian
2560a6cd2d DO NOT MERGE -- Fix finishing activity in non-focused stack am: 772c598f66 am: 35c3c8ee8d
am: 6a4d45f796

Change-Id: Idcd0fe8ed0f0b7f8d2965a087161d0084f557f98
2016-08-29 21:33:01 +00:00
Philip P. Moltmann
1d6e7cc536 Hold no locks when calling RemotePrintSpooler
The calls might be blocking and need the main thread of to be unblocked
to finish. Hence do not call while holding any monitors that might need
to be acquired the main thread.

The calls that have been moved out of the lock:
- Icon related calls: These are just caches. Hence we flush the cache we
  just request the icon again
- Prune call: This just removes not installed print service from some
  data structure. The order of two of these calls does not matter as
  the end result of both removals will be the same, regardless of order.

Testing done: Reinstalled a print service multiple times. Before the
first reinstallation locked up the userState, now not anymore

Change-Id: I4f4cdaba65132dc2ef054877cbb097b499a723f6
Fixes: 31043684
2016-08-29 21:29:34 +00:00
Andrii Kulian
6f200e6933 Merge "DO NOT MERGE -- Fix finishing activity in non-focused stack" into nyc-dev am: c8417676ed
am: 2f1662f524

Change-Id: I09187196f27c75e29de028cc7c344bffb5e0bd86
2016-08-29 21:25:08 +00:00
Andrii Kulian
6a4d45f796 DO NOT MERGE -- Fix finishing activity in non-focused stack am: 772c598f66
am: 35c3c8ee8d

Change-Id: I715699d15b312c5164d87827eb5a29e330f6f4d5
2016-08-29 21:25:05 +00:00
Chris Craik
2e8a8a2432 Cherry pick TextureView fixes
The following changes are in this commit:

Avoid destroying TextureView surfaces for onStop

bug:30238922

TextureViews will hold onto their backing surfaces, which will allow
them to resume gracefully when the app's surfaces are saved.

Now only resources that are destroyed for onStop are DisplayLists.

(cherry picked from commit 391d560402)

TextureView: destroy layer on destroyHardwareResources event

bug:30468770

(cherry picked from commit 1c16c37d86)

Fix NPE in TextureView

Bug: 30651595

(cherry picked from commit 3c2587f26e)

Fix NPE in TextureView

Bug: 30779663

(cherry picked from commit 7e237189c2)

Fix maps resume being blank

Bug: 30889568

Fixes an issue where mLayer didn't have
the mSurface set on it in certain resume
scenarios.

(cherry picked from commit 03df0834e6)
2016-08-29 14:22:13 -07:00
Andrii Kulian
2f1662f524 Merge "DO NOT MERGE -- Fix finishing activity in non-focused stack" into nyc-dev
am: c8417676ed

Change-Id: I74e1b45ce3eaf9edec6fb60394da3ad8a818d214
2016-08-29 21:17:02 +00:00
Andrii Kulian
35c3c8ee8d DO NOT MERGE -- Fix finishing activity in non-focused stack
am: 772c598f66

Change-Id: I890f3b460787682bbe0fdb4d8ce44364f1839dac
2016-08-29 21:16:59 +00:00
Jorim Jaggi
6626f54e65 Add animation when unoccluding windows (1/2)
Before there was a jump-cut when a window that was occluding Keyguard
was going away, leading to an ugly flicker. To fix this, we do the
following.

- Always show windows with FLAG_SHOW_WHEN_LOCKED above lockscreen, even
if they don't "match" the currently occluding app (which is null in the
animation case)
- Move wallpaper behind last window that is not hidden by policy, so the
window doesn't get occluded by the wallpaper.
- Add a flag in the setOccluded call whether to animate or not. SystemUI
then plays a nice animation when it's set.
- Override the animation to always be the animation that happens when we
exit a window which is revealing the wallpaper behind, to make it
consistent with the home screen case.

Fixes: 30829255
Change-Id: Ib3fe20fc9003a0f9f291c974740f044ed8707e75
2016-08-29 14:15:33 -07:00
TreeHugger Robot
c8417676ed Merge "DO NOT MERGE -- Fix finishing activity in non-focused stack" into nyc-dev 2016-08-29 21:10:34 +00:00
Ben Lin
86805aa3af Push delete notification when Bug reports are deleted.
Bug: 28768706
Change-Id: I6d3e91fe7d12be44918f97cef12c99d936401270
2016-08-29 14:08:32 -07:00
Jorim Jaggi
1236822121 Merge "Fix flicker while booting" into nyc-mr1-dev
am: 02405fb349

Change-Id: If348b1c1d1cc80ccda821e219a33b2d9f38233c0
2016-08-29 19:59:10 +00:00
Jorim Jaggi
49e5c88eda Fix flicker while booting
am: 77cbe79b74

Change-Id: Ib867c34cddaaa2f7877e93d31f8e959ab701859d
2016-08-29 19:59:07 +00:00
Tao Bao
7b0db6bf48 Bump up the uncrypt timeout to 30 min. am: 8abcfed8a4 am: c5a17fc39f am: 18f9533910
am: 40d926f4d4

Change-Id: I9d36d715d049d00a176175cebf02c8a8fed0a7b3
2016-08-29 19:53:54 +00:00
TreeHugger Robot
02405fb349 Merge "Fix flicker while booting" into nyc-mr1-dev 2016-08-29 19:51:31 +00:00
Tao Bao
40d926f4d4 Bump up the uncrypt timeout to 30 min. am: 8abcfed8a4 am: c5a17fc39f
am: 18f9533910

Change-Id: Ia41c67b41b9b89ac113f01e783edcbccae5a1cdc
2016-08-29 19:48:29 +00:00
Christopher Tate
c60da1edc1 Eliminate next-alarm-clock broadcast flapping
When multiple alarm clocks are scheduled at the same time, we would
flap among the alternatives for considering them the 'next upcoming
alarm clock', which in turn would generate [many] spurious broadcasts
about changes to the upcoming alarm situation.  This is now fixed;
once we have found the soonest upcoming alarm clock, we stick with
that one until it becomes unavailable, eliminating the spurious
broadcast traffic.

Bug 29501073

Change-Id: Ice1892490bb339e05fa8bd9d324fa1c6718b4942
(cherry picked from commit 76389c00d3)
2016-08-29 19:44:55 +00:00
Tao Bao
18f9533910 Bump up the uncrypt timeout to 30 min. am: 8abcfed8a4
am: c5a17fc39f

Change-Id: Ib637e1f00ddebbac5a3bea6ff31f08854a95b7ea
2016-08-29 19:34:23 +00:00
Jorim Jaggi
936aaeb878 Fix bug that apps are not unminimizing if recent tasks are empty
If an activity was launched in the docked stack and we weren't able
to retrace the launch back to an activity launch from the homescreen
in activity manager, nothing happened.

Now we try to do a better job by also checking some conditions when
the app transition is starting. Note that this might still be racy,
but in practice all activities are usually launched from the same
process so the app is done starting/finishing any activities when
the first frame is drawn, so we are able to catch the correct state
when we figure out that the app transition is starting.

In addition to that, we also need to not hide the docked stack while
lockscreen is showing. This doesn't make any sense anymore as we are
dismissing the docked stack when we show something above the lockscreen,
and this only lead to issues that triggered app visibility events
which triggered this special unnecessarily. This also fixes some flicker/
race-condition in the normal unlocking process I noticed a long time ago
but couldn't really reproduce.

Change-Id: I42683520ba9ee9fbd0c9920501387a573ac94655
Fixes: 30439313
2016-08-29 12:32:57 -07:00
Tao Bao
c5a17fc39f Bump up the uncrypt timeout to 30 min.
am: 8abcfed8a4

Change-Id: I35340614fe09f96f8c31cc53a99e366580294490
2016-08-29 19:26:43 +00:00
Andrii Kulian
e77dfe6c74 Merge "DO NOT MERGE -- Correctly finish activity in non-focused stack" into nyc-dev am: 128a4419e9 am: 934da4e400
am: 199d4902e2

Change-Id: I3c14b9567284d65dcb4427895fdc18886ad9929e
2016-08-29 19:05:59 +00:00
Andrii Kulian
91c0b43734 DO NOT MERGE -- Correctly finish activity in non-focused stack am: 620040db3f -s ours am: febd5c027c
am: 8428bfa6e5

Change-Id: I1f0b8af301e19a934c7c2b8e71374e3d89490cd2
2016-08-29 19:01:18 +00:00
Andrii Kulian
199d4902e2 Merge "DO NOT MERGE -- Correctly finish activity in non-focused stack" into nyc-dev am: 128a4419e9
am: 934da4e400

Change-Id: I9b8c06e89ce182b4fb47a74aaea3d501267add84
2016-08-29 19:01:16 +00:00
Andrii Kulian
934da4e400 Merge "DO NOT MERGE -- Correctly finish activity in non-focused stack" into nyc-dev
am: 128a4419e9

Change-Id: I6c28db82c53af5a68c3d875ecca920b9a1364b32
2016-08-29 18:51:55 +00:00
Andrii Kulian
8428bfa6e5 DO NOT MERGE -- Correctly finish activity in non-focused stack am: 620040db3f -s ours
am: febd5c027c

Change-Id: I658d45b3149128876240e41bbd16ad35951c6dfa
2016-08-29 18:51:53 +00:00
Andrii Kulian
febd5c027c DO NOT MERGE -- Correctly finish activity in non-focused stack
am: 620040db3f  -s ours

Change-Id: I62703cc7f62bf42967021ce8defa30669e096ec2
2016-08-29 18:44:11 +00:00
Jason Monk
566f34f617 Merge "Fix double status bar icons" into nyc-dev am: 2b4e612b10 am: db2d30e1b9
am: 1a5a746fa3

Change-Id: I6c3c1fc27c3f851b27d6036225a8c410b9972517
2016-08-29 18:43:19 +00:00
Jason Monk
5f3ddc7d6d Fix double status bar icons am: 12124d7eca am: 447991c67a
am: 9570287870

Change-Id: I29d3319ab271e1dd42f7af15f917f97619972cd5
2016-08-29 18:43:17 +00:00
Selim Cinek
ee8d1394e3 Merge "Fixed a bug where notifications could reappear" into nyc-dev am: 4226dcef1e am: c9c0bcf6a9
am: df8c802677

Change-Id: I3596b2d9182a967896b122c653b5a42c713838aa
2016-08-29 18:43:14 +00:00
Selim Cinek
169a18d87e Fixed a bug where notifications could reappear am: f3b64692a3 am: e90d6d682e
am: ed596e6836

Change-Id: I430e38bcba8b741fe2b43c5dba6f1d2a3f38d5a0
2016-08-29 18:43:11 +00:00
Selim Cinek
a17beb7869 Fixed a bug where the headsup would be stuck disappearing am: a4155bb7c0 am: c52edb4f24
am: b35ae808c0

Change-Id: If4057d8e392d19ba62f9365788628922b02d9173
2016-08-29 18:43:07 +00:00
Vineeta Srivastava
15f24a36d5 Merge "whitelist sms code for TMO-DE and TMO-MK." into nyc-dr1-dev am: 24b0486cdc
am: dd51fb20f3

Change-Id: I1189b69e2b38f36c805198e9dba105df4364f9e8
2016-08-29 18:34:03 +00:00
Vineeta Srivastava
30c49a0a1b whitelist sms code for TMO-DE and TMO-MK. am: 6af315af94
am: f4be3d2927

Change-Id: I75b17dff3fa7b255adb7ce7d705a2d65c1ad5347
2016-08-29 18:33:56 +00:00
Jason Monk
1a5a746fa3 Merge "Fix double status bar icons" into nyc-dev am: 2b4e612b10
am: db2d30e1b9

Change-Id: I707e1f8457e826d2d5b83ccc21668e5a786b28eb
2016-08-29 18:32:39 +00:00
Jason Monk
9570287870 Fix double status bar icons am: 12124d7eca
am: 447991c67a

Change-Id: Ic0a217f292dcf4a7d9b2b47c4d32438b436a77ad
2016-08-29 18:32:37 +00:00
Selim Cinek
df8c802677 Merge "Fixed a bug where notifications could reappear" into nyc-dev am: 4226dcef1e
am: c9c0bcf6a9

Change-Id: Ib517c495cd53a5ea0f14bb443b74d69d2efe8429
2016-08-29 18:32:35 +00:00
Selim Cinek
ed596e6836 Fixed a bug where notifications could reappear am: f3b64692a3
am: e90d6d682e

Change-Id: Ie08bd37033cd81ff0898a6766bd505e0f597d7fe
2016-08-29 18:32:33 +00:00
Selim Cinek
b35ae808c0 Fixed a bug where the headsup would be stuck disappearing am: a4155bb7c0
am: c52edb4f24

Change-Id: I94084878dec7952607572d3005a160cc74eb2a62
2016-08-29 18:32:31 +00:00
Andrii Kulian
772c598f66 DO NOT MERGE -- Fix finishing activity in non-focused stack
This CL explicitly checks if we're finishing activity in non-focused
stack as there are other cases except this one when we finish paused
activities in FINISH_AFTER_VISIBLE mode.

Bug: 29007436
Bug: 29458854
Change-Id: I67744d23cd72f2fe8861180008bfdd284a7b5e26
(cherry picked from commit 995fa2bd2d)
2016-08-29 18:30:46 +00:00
Andrii Kulian
128a4419e9 Merge "DO NOT MERGE -- Correctly finish activity in non-focused stack" into nyc-dev 2016-08-29 18:30:10 +00:00
Vineeta Srivastava
dd51fb20f3 Merge "whitelist sms code for TMO-DE and TMO-MK." into nyc-dr1-dev
am: 24b0486cdc

Change-Id: Id291ae046845660231be5b42473ef9b839055035
2016-08-29 18:26:02 +00:00
Jason Monk
db2d30e1b9 Merge "Fix double status bar icons" into nyc-dev
am: 2b4e612b10

Change-Id: Ib0d9e51d289215d96525b68d0432b959e9b58f2f
2016-08-29 18:26:00 +00:00
Vineeta Srivastava
f4be3d2927 whitelist sms code for TMO-DE and TMO-MK.
am: 6af315af94

Change-Id: Ib31807ae28fa798e6d359054d70f9adeaf2872a4
2016-08-29 18:26:00 +00:00
Jason Monk
447991c67a Fix double status bar icons
am: 12124d7eca

Change-Id: Ief00496f19d2e249129023a03cd9f53d76fa7bf8
2016-08-29 18:25:57 +00:00
Selim Cinek
c9c0bcf6a9 Merge "Fixed a bug where notifications could reappear" into nyc-dev
am: 4226dcef1e

Change-Id: I7c3c46bf360899387a0d2d33d4beb83a3b096aa0
2016-08-29 18:25:54 +00:00
Selim Cinek
e90d6d682e Fixed a bug where notifications could reappear
am: f3b64692a3

Change-Id: I19719fc6112e82d9600b4196570f571f87291530
2016-08-29 18:25:51 +00:00