Merge "Reduce RBC test flakiness" into sc-dev am: 1908c5357c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13919447 Change-Id: I6db7640c76e6a9f86674e685b229e9f926115b42
This commit is contained in:
@@ -24,7 +24,6 @@ import static org.mockito.Mockito.when;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
import android.hardware.display.ColorDisplayManager;
|
||||
import android.provider.Settings;
|
||||
|
||||
import androidx.test.core.app.ApplicationProvider;
|
||||
@@ -83,8 +82,8 @@ public class ReduceBrightColorsIntensityPreferenceControllerTest {
|
||||
Settings.Secure.REDUCE_BRIGHT_COLORS_ACTIVATED, 1);
|
||||
mPreferenceController.onPreferenceChange(/* preference= */ null, 20);
|
||||
assertThat(
|
||||
mContext.getSystemService(
|
||||
ColorDisplayManager.class).getReduceBrightColorsStrength())
|
||||
Settings.Secure.getInt(mContext.getContentResolver(),
|
||||
Settings.Secure.REDUCE_BRIGHT_COLORS_LEVEL, 0))
|
||||
.isEqualTo(20);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user