commit | 3452b698ac717d4a88f5772363c547d77bc18b35 | [log] [tgz] |
---|---|---|
author | Jeremy Joslin <jjoslin@google.com> | Tue Jan 17 15:48:13 2017 -0800 |
committer | Jeremy Joslin <jjoslin@google.com> | Tue Jan 17 17:29:39 2017 -0800 |
tree | df63968205dd00260d932dbb9e69bfe1efd831b7 | |
parent | 8bd15d1df27f5bd6790955af0db47a78d3ca93ba [diff] |
Replace the RequestRecommendationCaller if the timeout changes. The timeout associated with a TimedRemoteCaller can't be changed after creation so we have to create a new instance anytime the timeout changes (which shouldn't be too often). The instance is stored and retrieved from an AtomicReference to avoid concurrency issues. Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest Bug: 34060959 Change-Id: I1662ac27f7442a16d2ffd7257469f1983b7f0e5c