Rename add* to update* and call setQuietMode() itself
bug: 341053089 Test: manually - presubmit Flag: Aconfig com.android.launcher3.enable_private_space Nextfood Change-Id: I7d88f18e08f45fc731f3122c55986a12e754d56a
This commit is contained in:
1 parent
c4c554139f
commit
16cb3efa1f
4 files changed
+19
-40
No files matched your search
@@ -133,7 +133,7 @@ public class PrivateSpaceHeaderViewTest {
|
||||
Bitmap unlockButton = getBitmap(mContext.getDrawable(R.drawable.ic_lock));
|
||||
PrivateProfileManager privateProfileManager = spy(mPrivateProfileManager);
|
||||
when(privateProfileManager.getCurrentState()).thenReturn(STATE_DISABLED);
|
||||
privateProfileManager.addPrivateSpaceHeaderViewElements(mPsHeaderLayout);
|
||||
privateProfileManager.bindPrivateSpaceHeaderViewElements(mPsHeaderLayout);
|
||||
awaitTasksCompleted();
|
||||
|
||||
int totalContainerHeaderView = 0;
|
||||
@@ -168,7 +168,7 @@ public class PrivateSpaceHeaderViewTest {
|
||||
PrivateProfileManager privateProfileManager = spy(mPrivateProfileManager);
|
||||
when(privateProfileManager.getCurrentState()).thenReturn(STATE_ENABLED);
|
||||
when(privateProfileManager.isPrivateSpaceSettingsAvailable()).thenReturn(true);
|
||||
privateProfileManager.addPrivateSpaceHeaderViewElements(mPsHeaderLayout);
|
||||
privateProfileManager.bindPrivateSpaceHeaderViewElements(mPsHeaderLayout);
|
||||
awaitTasksCompleted();
|
||||
|
||||
int totalContainerHeaderView = 0;
|
||||
@@ -210,7 +210,7 @@ public class PrivateSpaceHeaderViewTest {
|
||||
PrivateProfileManager privateProfileManager = spy(mPrivateProfileManager);
|
||||
when(privateProfileManager.getCurrentState()).thenReturn(STATE_ENABLED);
|
||||
when(privateProfileManager.isPrivateSpaceSettingsAvailable()).thenReturn(false);
|
||||
privateProfileManager.addPrivateSpaceHeaderViewElements(mPsHeaderLayout);
|
||||
privateProfileManager.bindPrivateSpaceHeaderViewElements(mPsHeaderLayout);
|
||||
awaitTasksCompleted();
|
||||
|
||||
int totalContainerHeaderView = 0;
|
||||
@@ -248,7 +248,7 @@ public class PrivateSpaceHeaderViewTest {
|
||||
Bitmap transitionImage = getBitmap(mContext.getDrawable(R.drawable.bg_ps_transition_image));
|
||||
PrivateProfileManager privateProfileManager = spy(mPrivateProfileManager);
|
||||
when(privateProfileManager.getCurrentState()).thenReturn(STATE_TRANSITION);
|
||||
privateProfileManager.addPrivateSpaceHeaderViewElements(mPsHeaderLayout);
|
||||
privateProfileManager.bindPrivateSpaceHeaderViewElements(mPsHeaderLayout);
|
||||
awaitTasksCompleted();
|
||||
|
||||
int totalContainerHeaderView = 0;
|
||||
|
||||
Reference in new issue
Block a user