Merge "Update the default wellbeing package config." into udc-dev am: 4cf335d53c am: 1d00be1ad5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/22532865 Change-Id: If3aaeebba9ebde14a1a7f04a570a515b23b36234 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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