commit | 0dbf959c73807a8f10424120f96583a87c23edea | [log] [tgz] |
---|---|---|
author | phweiss <phweiss@google.com> | Thu May 11 15:31:27 2017 +0200 |
committer | Philipp Weiß <phweiss@google.com> | Mon May 22 10:55:48 2017 +0000 |
tree | af45fe65a66616d1af54a64b5550d198fe5d66de | |
parent | f685344bb29efa91e083ef4f3d9d371518e1fe9c [diff] |
Fix and add unittests for SecurityController testCaCertLoader was flaky because a background task started in its constructor sometimes finished before the callback could be registered. With this change, the callback is registered in the constructor. Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/SecurityControllerTest.java Bug: 37535489 Bug: 38045871 Change-Id: I4f5de1e142cb6e892132d804658c9b89e558144f