Home
last modified time | relevance | path

Searched refs:windowManager (Results 1 – 25 of 139) sorted by relevance

123456

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/
DLetterboxEduWindowManagerTest.java157 LetterboxEduWindowManager windowManager = createWindowManager(/* eligible= */ false); in testCreateLayout_notEligible_doesNotCreateLayout() local
159 assertFalse(windowManager.createLayout(/* canShow= */ true)); in testCreateLayout_notEligible_doesNotCreateLayout()
161 assertNull(windowManager.mLayout); in testCreateLayout_notEligible_doesNotCreateLayout()
166 LetterboxEduWindowManager windowManager = createWindowManager(/* eligible= */ in testCreateLayout_eligibleAndDocked_doesNotCreateLayout() local
169 assertFalse(windowManager.createLayout(/* canShow= */ true)); in testCreateLayout_eligibleAndDocked_doesNotCreateLayout()
171 assertNull(windowManager.mLayout); in testCreateLayout_eligibleAndDocked_doesNotCreateLayout()
176 LetterboxEduWindowManager windowManager = createWindowManager(/* eligible= */ true, in testCreateLayout_taskBarEducationIsShowing_doesNotCreateLayout() local
179 assertFalse(windowManager.createLayout(/* canShow= */ true)); in testCreateLayout_taskBarEducationIsShowing_doesNotCreateLayout()
181 assertNull(windowManager.mLayout); in testCreateLayout_taskBarEducationIsShowing_doesNotCreateLayout()
186 LetterboxEduWindowManager windowManager = createWindowManager(/* eligible= */ true); in testCreateLayout_canShowFalse_returnsTrueButDoesNotCreateLayout() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/
DTemporaryViewDisplayControllerTest.kt77 private lateinit var windowManager: WindowManager variable in com.android.systemui.temporarydisplay.TemporaryViewDisplayControllerTest
101 windowManager, in setUp()
124 verify(windowManager).addView(any(), capture(windowParamsCaptor)) in displayView_viewAddedWithCorrectTitle()
181 reset(windowManager) in displayView_twice_viewNotAddedTwice()
184 verify(windowManager, never()).addView(any(), any()) in displayView_twice_viewNotAddedTwice()
210 verify(windowManager, times(2)).addView(capture(viewCaptor), capture(windowParamsCaptor)) in displayView_twiceWithDifferentIds_oldViewRemovedNewViewAdded()
214 verify(windowManager).removeView(viewCaptor.allValues[0]) in displayView_twiceWithDifferentIds_oldViewRemovedNewViewAdded()
226 reset(windowManager) in displayView_viewDoesNotDisappearsBeforeTimeout()
230 verify(windowManager, never()).removeView(any()) in displayView_viewDoesNotDisappearsBeforeTimeout()
240 reset(windowManager) in displayView_viewDisappearsAfterTimeout()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DLetterboxBackgroundProviderTest.kt53 @Mock private lateinit var windowManager: IWindowManager in <lambda>() variable in com.android.systemui.statusbar.phone.LetterboxBackgroundProviderTest
66 LetterboxBackgroundProvider(windowManager, fakeExecutor, wallpaperManager, mainHandler) in <lambda>()
91 whenever(windowManager.letterboxBackgroundColorInArgb).thenReturn(Color.RED) in <lambda>()
100 whenever(windowManager.letterboxBackgroundColorInArgb).thenReturn(Color.RED) in <lambda>()
110 whenever(windowManager.letterboxBackgroundColorInArgb).thenReturn(Color.RED) in <lambda>()
115 whenever(windowManager.letterboxBackgroundColorInArgb).thenReturn(Color.GREEN) in <lambda>()
122 whenever(windowManager.letterboxBackgroundColorInArgb).thenReturn(Color.RED) in <lambda>()
126 whenever(windowManager.letterboxBackgroundColorInArgb).thenReturn(Color.GREEN) in <lambda>()
139 whenever(windowManager.isLetterboxBackgroundMultiColored).thenReturn(true) in <lambda>()
148 whenever(windowManager.isLetterboxBackgroundMultiColored).thenReturn(true) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ui/binder/
DSideFpsOverlayViewBinderTest.kt34 import android.view.windowManager
125 context.addMockSystemService(WindowManager::class.java, kosmos.windowManager) in setup()
164 verify(kosmos.windowManager, never()).addView(any(), any()) in verifyIndicatorNotAdded_whenInRearDisplayMode()
189 verify(kosmos.windowManager).addView(any(), any()) in verifyIndicatorShowAndHide_onPrimaryBouncerShowAndHide()
200 verify(kosmos.windowManager).removeView(any()) in verifyIndicatorShowAndHide_onPrimaryBouncerShowAndHide()
220 verify(kosmos.windowManager).addView(any(), any()) in verifyIndicatorShowAndHide_onAlternateBouncerShowAndHide()
223 verify(kosmos.windowManager).addView(viewCaptor.capture(), any()) in verifyIndicatorShowAndHide_onAlternateBouncerShowAndHide()
233 verify(kosmos.windowManager).removeView(any()) in verifyIndicatorShowAndHide_onAlternateBouncerShowAndHide()
258 verify(kosmos.windowManager).addView(any(), any()) in verifyIndicatorShownAndHidden_onSystemServerAuthenticationStartedAndStopped()
266 verify(kosmos.windowManager).removeView(any()) in verifyIndicatorShownAndHidden_onSystemServerAuthenticationStartedAndStopped()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/view/
DWindowMetricsProviderImplTest.kt18 private val windowManager = mock<WindowManager>() constant
19 private val windowMetricsProvider = WindowMetricsProviderImpl(windowManager)
26 whenever(windowManager.maximumWindowMetrics).thenReturn(metrics) in getMaximumWindowBounds_returnsValueFromWMMaxWindowMetrics()
40 whenever(windowManager.currentWindowMetrics).thenReturn(WindowMetrics(bounds, windowInsets)) in getCurrentWindowInsets_returnsFromWMCurrentWindowMetrics()
DTaskPreviewSizeProviderTest.kt48 private val windowManager = mock<WindowManager>() constant
56 .thenReturn(windowManager) in setup()
118 val windowMetrics = WindowMetrics(windowManager.maximumWindowMetrics.bounds, windowInsets) in givenTaskbarSize()
119 whenever(windowManager.maximumWindowMetrics).thenReturn(windowMetrics) in givenTaskbarSize()
120 whenever(windowManager.currentWindowMetrics).thenReturn(windowMetrics) in givenTaskbarSize()
127 whenever(windowManager.maximumWindowMetrics).thenReturn(windowMetrics) in givenDisplay()
128 whenever(windowManager.currentWindowMetrics).thenReturn(windowMetrics) in givenDisplay()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/taptotransfer/receiver/
DMediaTttChipControllerReceiverTest.kt86 private lateinit var windowManager: WindowManager variable in com.android.systemui.media.taptotransfer.receiver.MediaTttChipControllerReceiverTest
129 windowManager, in setUp()
160 windowManager, in commandQueueCallback_flagOff_noCallbackAdded()
206 verify(windowManager, never()).addView(any(), any()) in commandQueueCallback_farFromSender_noChipShown()
222 verify(windowManager, never()).addView(any(), any()) in commandQueueCallback_transferToReceiverSucceeded_noChipShown()
238 verify(windowManager, never()).addView(any(), any()) in commandQueueCallback_transferToReceiverFailed_noChipShown()
262 verify(windowManager).addView(viewCaptor.capture(), any()) in commandQueueCallback_closeThenFar_chipShownThenHidden()
263 verify(windowManager).removeView(viewCaptor.value) in commandQueueCallback_closeThenFar_chipShownThenHidden()
283 verify(windowManager).addView(viewCaptor.capture(), any()) in commandQueueCallback_closeThenSucceeded_chipShownThenHidden()
284 verify(windowManager).removeView(viewCaptor.value) in commandQueueCallback_closeThenSucceeded_chipShownThenHidden()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/
DWindowMetricsProvider.kt20 private val windowManager: WindowManager, constant in com.android.systemui.mediaprojection.appselector.view.WindowMetricsProviderImpl
23 get() = windowManager.maximumWindowMetrics.bounds
27 windowManager.currentWindowMetrics.windowInsets.getInsets(
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/docking/ui/viewmodel/
DKeyboardDockingIndicationViewModelTest.kt50 private lateinit var windowManager: WindowManager variable in com.android.systemui.keyboard.docking.ui.viewmodel.KeyboardDockingIndicationViewModelTest
58 windowManager = spy(context.getSystemService(WindowManager::class.java)!!) in setup()
66 windowManager, in setup()
82 .whenever(windowManager) in onConfigurationChanged_createsNewConfig()
91 .whenever(windowManager) in onConfigurationChanged_createsNewConfig()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuViewLayerController.java37 MenuViewLayerController(Context context, WindowManager windowManager, in MenuViewLayerController() argument
39 mWindowManager = windowManager; in MenuViewLayerController()
43 MenuViewAppearance menuViewAppearance = new MenuViewAppearance(context, windowManager); in MenuViewLayerController()
45 mMenuViewLayer = new MenuViewLayer(context, windowManager, accessibilityManager, in MenuViewLayerController()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/
DUdfpsControllerOverlayTest.kt110 @Mock private lateinit var windowManager: WindowManager in <lambda>() variable in com.android.systemui.biometrics.UdfpsControllerOverlayTest
195 windowManager, in <lambda>()
260 verify(windowManager) in <lambda>()
277 verify(windowManager) in <lambda>()
294 verify(windowManager) in <lambda>()
311 verify(windowManager) in <lambda>()
336 verify(windowManager).addView(any(), any()) in <lambda>()
362 verify(windowManager, never()).addView(any(), any()) in <lambda>()
391 verify(windowManager, never()).addView(any(), any()) in <lambda>()
409 verify(windowManager, never()).removeView(eq(view)) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DScreenshotDetectionControllerTest.kt49 @Mock lateinit var windowManager: IWindowManager variable in com.android.systemui.screenshot.ScreenshotDetectionControllerTest
59 controller = ScreenshotDetectionController(windowManager, packageManager) in setup()
70 verify(windowManager, never()).notifyScreenshotListeners(any()) in testMaybeNotifyOfScreenshot_ignoresOverview()
78 whenever(windowManager.notifyScreenshotListeners(eq(Display.DEFAULT_DISPLAY))) in testMaybeNotifyOfScreenshot_emptySet()
104 whenever(windowManager.notifyScreenshotListeners(eq(Display.DEFAULT_DISPLAY))) in testMaybeNotifyOfScreenshot_oneApp()
155 whenever(windowManager.notifyScreenshotListeners(eq(Display.DEFAULT_DISPLAY))) in testMaybeNotifyOfScreenshot_multipleApps()
206 whenever(windowManager.notifyScreenshotListeners(eq(Display.DEFAULT_DISPLAY))) in testMaybeNotifyOfScreenshot_disabledApp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLetterboxBackgroundProvider.kt39 private val windowManager: IWindowManager, in <lambda>() constant in com.android.systemui.statusbar.phone.LetterboxBackgroundProvider
65 isLetterboxBackgroundMultiColored = windowManager.isLetterboxBackgroundMultiColored in <lambda>()
66 letterboxBackgroundColor = windowManager.letterboxBackgroundColorInArgb in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/
DSideFpsOverlayViewBinder.kt70 private val windowManager: Lazy<WindowManager> in <lambda>() constant in com.android.systemui.biometrics.ui.binder.SideFpsOverlayViewBinder
138 bind(overlayView!!, overlayViewModel, windowManager.get()) in <lambda>()
141 windowManager.get().addView(overlayView, overlayViewModel.defaultOverlayViewParams) in <lambda>()
156 windowManager.get().removeView(overlayView) in <lambda>()
168 windowManager: WindowManager in <lambda>()
215 windowManager.updateViewLayout(it, params) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/charging/
DWiredChargingRippleControllerTest.kt60 @Mock private lateinit var windowManager: WindowManager variable in com.android.systemui.charging.WiredChargingRippleControllerTest
71 featureFlags, context, windowManager, systemClock, uiEventLogger) in setUp()
77 `when`(windowManager.currentWindowMetrics).thenReturn(windowMetrics) in setUp()
94 verify(windowManager).addView(eq(rippleView), any<WindowManager.LayoutParams>()) in testTriggerRipple_UnlockedState()
104 verify(windowManager).removeView(rippleView) in testTriggerRipple_UnlockedState()
174 verify(windowManager, never()).addView(eq(rippleView), any<WindowManager.LayoutParams>()) in testRipple_whenDocked_doesNotPlayRipple()
197 verify(windowManager).addView(eq(rippleView), any<WindowManager.LayoutParams>()) in testRipple_layoutsCorrectly()
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/display/
DDisplayOrientationController.kt69 val windowManager = context.getSystemService(Context.WINDOW_SERVICE) as WindowManager constant
73 context.display ?: windowManager.defaultDisplay
75 windowManager.defaultDisplay
/frameworks/base/tests/TrustTests/src/android/trust/test/lib/
DLockStateTrackingRule.kt38 private val windowManager = checkNotNull(WindowManagerGlobal.getWindowManagerService()) constant
63 wait("keyguard locked") { windowManager.isKeyguardLocked } in assertLocked()
71 wait("keyguard locked") { windowManager.isKeyguardLocked } in assertUnlockedButNotReally()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/docking/binder/
DKeyboardDockingIndicationViewBinder.kt40 private val windowManager: WindowManager in <lambda>() constant
70 windowManager.addView(glowEffectView, windowLayoutParams) in <lambda>()
74 windowManager.removeView(glowEffectView) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
DTestableBubblePositioner.java31 WindowManager windowManager) { in TestableBubblePositioner() argument
32 super(context, windowManager); in TestableBubblePositioner()
/frameworks/base/core/java/android/widget/
DToastPresenter.java275 final WindowManager windowManager = getWindowManager(mView); in hide() local
276 if (mView.getParent() != null && windowManager != null) { in hide()
277 windowManager.removeViewImmediate(mView); in hide()
343 final WindowManager windowManager = getWindowManager(mView); in addToastView() local
344 if (windowManager == null) { in addToastView()
348 windowManager.removeView(mView); in addToastView()
351 windowManager.addView(mView, mParams); in addToastView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/display/
DDisplayHelper.java48 WindowManager windowManager = mContext.createDisplayContext(display) in getMaxBounds() local
51 return windowManager.getMaximumWindowMetrics().getBounds(); in getMaxBounds()
/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/core/
DInstrumentationUiAutomatorBridge.java40 WindowManager windowManager = (WindowManager) in getDefaultDisplay() local
42 return windowManager.getDefaultDisplay(); in getDefaultDisplay()
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/backup/
DLargeScreenSettings.java42 final WindowManager windowManager = context.getSystemService(WindowManager.class); in isLargeScreen() local
43 final Rect bounds = windowManager.getCurrentWindowMetrics().getBounds(); in isLargeScreen()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
DTestableBubblePositioner.java33 WindowManager windowManager) { in TestableBubblePositioner() argument
34 super(context, windowManager); in TestableBubblePositioner()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/biometrics/domain/interactor/
DSideFpsSensorInteractorKosmos.kt20 import android.view.windowManager
35 windowManager, in <lambda>()

123456