SettingsRoboTests: fix device state rotation related tests
Fixes: 280015539 Test: atest SettingsRoboTests Change-Id: I0a3cc713f8df0477a172665a60551b456691b17c
This commit is contained in:
@@ -27,6 +27,7 @@ import org.robolectric.annotation.Implements;
|
||||
public class ShadowDeviceStateRotationLockSettingsManager {
|
||||
|
||||
private static boolean sDeviceStateRotationLockEnabled;
|
||||
private boolean mIsRotationLockedForAllStates;
|
||||
|
||||
@Implementation
|
||||
public static boolean isDeviceStateRotationLockEnabled(Context context) {
|
||||
@@ -36,4 +37,13 @@ public class ShadowDeviceStateRotationLockSettingsManager {
|
||||
public static void setDeviceStateRotationLockEnabled(boolean enabled) {
|
||||
sDeviceStateRotationLockEnabled = enabled;
|
||||
}
|
||||
|
||||
@Implementation
|
||||
public boolean isRotationLockedForAllStates() {
|
||||
return mIsRotationLockedForAllStates;
|
||||
}
|
||||
|
||||
public void setRotationLockedForAllStates(boolean value) {
|
||||
mIsRotationLockedForAllStates = value;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user