Merge "Update the default wellbeing package config." into udc-dev
This commit is contained in:
@@ -74,7 +74,7 @@ public class AmbientDisplayAlwaysOnPreferenceControllerTest {
|
||||
mController.setConfig(mConfig);
|
||||
|
||||
mApplicationInfo.uid = 1;
|
||||
when(mContext.getString(R.string.config_defaultWellbeingPackage)).thenReturn(TEST_PACKAGE);
|
||||
when(mContext.getString(R.string.config_systemWellbeing)).thenReturn(TEST_PACKAGE);
|
||||
|
||||
when(mContext.getPackageManager()).thenReturn(mPackageManager);
|
||||
doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo(
|
||||
|
@@ -77,7 +77,7 @@ public class DarkModeCustomBedtimePreferenceControllerTest {
|
||||
when(mContext.getSystemService(UiModeManager.class)).thenReturn(mService);
|
||||
|
||||
when(mContext.getResources()).thenReturn(mResources);
|
||||
when(mResources.getString(com.android.internal.R.string.config_defaultWellbeingPackage))
|
||||
when(mResources.getString(com.android.internal.R.string.config_systemWellbeing))
|
||||
.thenReturn("wellbeing");
|
||||
|
||||
when(mScreen.findPreference(anyString())).thenReturn(mFooterPreference);
|
||||
|
@@ -84,7 +84,7 @@ public class DarkModeScheduleSelectorControllerTest {
|
||||
when(mContext.getSystemService(LocationManager.class)).thenReturn(mLocationManager);
|
||||
when(mContext.getResources()).thenReturn(mResources);
|
||||
when(mResources.getConfiguration()).thenReturn(mConfigNightNo);
|
||||
when(mResources.getString(com.android.internal.R.string.config_defaultWellbeingPackage))
|
||||
when(mResources.getString(com.android.internal.R.string.config_systemWellbeing))
|
||||
.thenReturn("wellbeing");
|
||||
|
||||
when(mContext.getString(R.string.dark_ui_auto_mode_never)).thenReturn("never");
|
||||
|
@@ -72,7 +72,7 @@ public class WhenToDreamPreferenceControllerTest {
|
||||
|
||||
mApplicationInfo.uid = 1;
|
||||
when(mContext.getString(
|
||||
com.android.internal.R.string.config_defaultWellbeingPackage)).thenReturn(
|
||||
com.android.internal.R.string.config_systemWellbeing)).thenReturn(
|
||||
TEST_PACKAGE);
|
||||
|
||||
when(mContext.getPackageManager()).thenReturn(mPackageManager);
|
||||
|
Reference in New Issue
Block a user