Lock more of the things

Specifically, access to PackagePreferences

Test: atest
Bug: 129444912
Change-Id: Ia2ff46fff433333c76f0898a68b9230dcfb253ee
This commit is contained in:
Julia Reynolds
2019-04-08 14:42:53 -04:00
parent 168f7e48ac
commit 5c399c60c1
2 changed files with 451 additions and 377 deletions

View File

@@ -940,12 +940,12 @@ public class PreferencesHelperTest extends UiServiceTestCase {
@Test
public void testClearLockedFields() {
final NotificationChannel channel = getChannel();
mHelper.clearLockedFields(channel);
mHelper.clearLockedFieldsLocked(channel);
assertEquals(0, channel.getUserLockedFields());
channel.lockFields(NotificationChannel.USER_LOCKED_PRIORITY
| NotificationChannel.USER_LOCKED_IMPORTANCE);
mHelper.clearLockedFields(channel);
mHelper.clearLockedFieldsLocked(channel);
assertEquals(0, channel.getUserLockedFields());
}