Add MTE Settings.
MTE is a technology to help prevent exploitation of some security bugs. We want to offer users that want to trade off a slight reduction in performance for higher security the option to do so from the settings menu. Test: make RunSettingsRoboTests check UI manually Bug: 245624194 Change-Id: Ifbb76e124142ae843ce90bd604ae8417d65fcc7b
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.settings.testutils.shadow;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.os.storage.DiskInfo;
|
||||
import android.os.storage.StorageManager;
|
||||
import android.os.storage.VolumeInfo;
|
||||
@@ -25,6 +26,9 @@ import org.robolectric.annotation.Implementation;
|
||||
import org.robolectric.annotation.Implements;
|
||||
import org.robolectric.annotation.Resetter;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Implements(StorageManager.class)
|
||||
public class ShadowStorageManager {
|
||||
|
||||
@@ -40,6 +44,10 @@ public class ShadowStorageManager {
|
||||
return sIsForgetCalled;
|
||||
}
|
||||
|
||||
public @NonNull List<VolumeInfo> getVolumes() {
|
||||
return new ArrayList<VolumeInfo>();
|
||||
}
|
||||
|
||||
@Resetter
|
||||
public static void reset() {
|
||||
sIsUnmountCalled = false;
|
||||
|
Reference in New Issue
Block a user