commit | 4eefc3152cb95a09e82e7a9952a919b506b72a34 | [log] [tgz] |
---|---|---|
author | Pavel Grafov <pgrafov@google.com> | Tue Apr 12 11:43:57 2022 +0100 |
committer | Pavel Grafov <pgrafov@google.com> | Tue Apr 12 12:15:27 2022 +0100 |
tree | bd16d1002ec9a3feacd87f8ba078d4bfb719f643 | |
parent | 118e6bacdb7783fa38d7be1bd8c2ec498d06ace3 [diff] |
Fix DPMS unit tests. Currently these tests fail because of an attempt to register the same service more than once in a static map, which leads to an exception. Make DevicePolicyManagerTestable unregister them before constructing DPMS, so that it doesn't have to be done in every test. Bug: 228842216 Test: atest com.android.server.devicepolicy Change-Id: I43d10193779edf7909d77863f13ecdccfa383473