diff options
author | Alan Stokes <alanstokes@google.com> | 2020-02-18 13:25:43 +0000 |
---|---|---|
committer | Alan Stokes <alanstokes@google.com> | 2020-02-19 12:37:56 +0000 |
commit | 858ca2424b3e02243a731ddacb9eadb1f086481b (patch) | |
tree | 043b97bca927ecc5496fe16119128f87e193bd2b /libs/hwui/jni/CreateJavaOutputStreamAdaptor.cpp | |
parent | 16c028fe546c395698415f6860cfcbb03c7356b7 (diff) |
Don't kill a new process for the sins of an old process.
I have a test which instruments com.android.vending, which contains
some content providers. Each test case starts the app and then fairly
quickly kills it. I doubt it ever gets to the stage where the content
providers are working.
When the test runs slowly enough, a new instance of the app gets
killed 10s after an old instance was started, which breaks
things. That seems like the wrong behavior in general, although it
should be rare.
This change attempts to prevent that happening by cleaning up any old
timeout messages for the app when we restart it.
Bug: 149150665
Test: atest FrameworksCoreTests:android.content.ContentResolverTest
Change-Id: I1b04eab6b0fd3d24c0a2ee315818d58de4c5915d
Diffstat (limited to 'libs/hwui/jni/CreateJavaOutputStreamAdaptor.cpp')
0 files changed, 0 insertions, 0 deletions