Home
last modified time | relevance | path

Searched refs:privateProfileManager (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Launcher3/tests/src/com/android/launcher3/allapps/
DPrivateSpaceHeaderViewTest.java134 PrivateProfileManager privateProfileManager = spy(mPrivateProfileManager); in privateProfileDisabled_psHeaderContainsLockedView() local
135 when(privateProfileManager.getCurrentState()).thenReturn(STATE_DISABLED); in privateProfileDisabled_psHeaderContainsLockedView()
136 privateProfileManager.bindPrivateSpaceHeaderViewElements(mPsHeaderLayout); in privateProfileDisabled_psHeaderContainsLockedView()
168 PrivateProfileManager privateProfileManager = spy(mPrivateProfileManager); in privateProfileEnabled_psHeaderContainsUnlockedView() local
169 when(privateProfileManager.getCurrentState()).thenReturn(STATE_ENABLED); in privateProfileEnabled_psHeaderContainsUnlockedView()
170 when(privateProfileManager.isPrivateSpaceSettingsAvailable()).thenReturn(true); in privateProfileEnabled_psHeaderContainsUnlockedView()
171 privateProfileManager.bindPrivateSpaceHeaderViewElements(mPsHeaderLayout); in privateProfileEnabled_psHeaderContainsUnlockedView()
210 PrivateProfileManager privateProfileManager = spy(mPrivateProfileManager); in privateProfileEnabledAndNoSettingsIntent_psHeaderContainsUnlockedView() local
211 when(privateProfileManager.getCurrentState()).thenReturn(STATE_ENABLED); in privateProfileEnabledAndNoSettingsIntent_psHeaderContainsUnlockedView()
212 when(privateProfileManager.isPrivateSpaceSettingsAvailable()).thenReturn(false); in privateProfileEnabledAndNoSettingsIntent_psHeaderContainsUnlockedView()
[all …]
DPrivateProfileManagerTest.java151 PrivateProfileManager privateProfileManager = spy(mPrivateProfileManager); in quietModeFlagPresent_privateSpaceIsResetToDisabled() local
152 doNothing().when(privateProfileManager).addPrivateSpaceDecorator(anyInt()); in quietModeFlagPresent_privateSpaceIsResetToDisabled()
153 doNothing().when(privateProfileManager).executeLock(); in quietModeFlagPresent_privateSpaceIsResetToDisabled()
154 doReturn(mAllAppsRecyclerView).when(privateProfileManager).getMainRecyclerView(); in quietModeFlagPresent_privateSpaceIsResetToDisabled()
159 privateProfileManager.reset(); in quietModeFlagPresent_privateSpaceIsResetToDisabled()
161 privateProfileManager.getCurrentState()); in quietModeFlagPresent_privateSpaceIsResetToDisabled()
164 privateProfileManager.reset(); in quietModeFlagPresent_privateSpaceIsResetToDisabled()
166 privateProfileManager.getCurrentState()); in quietModeFlagPresent_privateSpaceIsResetToDisabled()
171 PrivateProfileManager privateProfileManager = spy(mPrivateProfileManager); in transitioningToUnlocked_resetCallsPostUnlock() local
172 doNothing().when(privateProfileManager).addPrivateSpaceDecorator(anyInt()); in transitioningToUnlocked_resetCallsPostUnlock()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DBaseAllAppsAdapter.java267 PrivateProfileManager privateProfileManager = mApps.getPrivateProfileManager(); in onBindViewHolder() local
268 if (privateProfileManager != null) { in onBindViewHolder()
273 privateProfileManager.isPrivateSpaceItem(adapterItem); in onBindViewHolder()
276 && privateProfileManager.isStateTransitioning() in onBindViewHolder()
277 && (privateProfileManager.isScrolling() || in onBindViewHolder()
278 privateProfileManager.getReadyToAnimate()) in onBindViewHolder()
279 && privateProfileManager.getCurrentState() == STATE_ENABLED in onBindViewHolder()
284 if (privateProfileManager.getCurrentState() == STATE_DISABLED in onBindViewHolder()
DAlphabeticalAppsList.java107 WorkProfileManager workProfileManager, PrivateProfileManager privateProfileManager) { in AlphabeticalAppsList() argument
112 mPrivateProviderManager = privateProfileManager; in AlphabeticalAppsList()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DSystemShortcut.java216 PrivateProfileManager privateProfileManager =
218 if (privateProfileManager == null || !privateProfileManager.isEnabled()) {
222 UserHandle privateProfileUser = privateProfileManager.getProfileUser();