Merge "Makes screen attention unsearchable on the devices that don't have the feature" into sc-dev

This commit is contained in:
Yi Jiang
2021-02-02 22:29:54 +00:00
committed by Android (Google) Code Review
2 changed files with 10 additions and 7 deletions

View File

@@ -87,6 +87,7 @@ public class ScreenTimeoutSettingsTest {
com.android.internal.R.bool.config_adaptive_sleep_available);
doReturn(null).when(mContext).getSystemService(DevicePolicyManager.class);
doReturn(mResources).when(mContext).getResources();
doReturn(mResources).when(mSettings).getResources();
doReturn(mContext).when(mSettings).getContext();