Schematize Crypto state system property
Properties accessed across partitions are now schematized and will become APIs to make explicit interfaces among partitions. Bug: 117924132 Test: m -j Change-Id: I957a8e37a88f7bb6d5007a36c02952d3539580fe
This commit is contained in:
@@ -92,7 +92,7 @@ public class FileEncryptionPreferenceControllerTest {
|
||||
ReflectionHelpers.setField(mController, "mStorageManager", mStorageManager);
|
||||
when(mStorageManager.isConvertibleToFBE()).thenReturn(true);
|
||||
mController.displayPreference(mPreferenceScreen);
|
||||
CryptoProperties.type("foobar");
|
||||
CryptoProperties.type(CryptoProperties.type_values.NONE);
|
||||
|
||||
mController.updateState(mPreference);
|
||||
|
||||
@@ -106,7 +106,7 @@ public class FileEncryptionPreferenceControllerTest {
|
||||
ReflectionHelpers.setField(mController, "mStorageManager", mStorageManager);
|
||||
when(mStorageManager.isConvertibleToFBE()).thenReturn(true);
|
||||
mController.displayPreference(mPreferenceScreen);
|
||||
CryptoProperties.type("file");
|
||||
CryptoProperties.type(CryptoProperties.type_values.FILE);
|
||||
|
||||
mController.updateState(mPreference);
|
||||
|
||||
|
Reference in New Issue
Block a user