Home
last modified time | relevance | path

Searched refs:displayManager (Results 1 – 25 of 78) sorted by relevance

1234

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayManagerServiceTest.java442 DisplayManagerService displayManager = new DisplayManagerService(mContext, mBasicInjector);
443 registerDefaultDisplays(displayManager);
444 displayManager.systemReady(false /* safeMode */);
445 displayManager.windowManagerAndInputReady();
448 DisplayManagerService.BinderService bs = displayManager.new BinderService();
467 performTraversalInternal(displayManager);
470 displayManager.getDisplayHandler().runWithScissors(() -> {}, 0 /* now */);
519 DisplayManagerService displayManager = new DisplayManagerService(mContext, mBasicInjector);
520 registerDefaultDisplays(displayManager);
521 displayManager.systemReady(false /* safeMode */);
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/display/data/repository/
DDisplayRepositoryTest.kt55 private val displayManager = mock<DisplayManager>() in <lambda>() constant in com.android.systemui.display.data.repository.DisplayRepositoryTest
70 displayManager, in <lambda>()
75 verify(displayManager, never()).registerDisplayListener(any(), any()) in <lambda>()
76 verify(displayManager, never()).getDisplays(any()) in <lambda>()
86 verify(displayManager).registerDisplayListener(any(), eq(testHandler), anyLong()) in <lambda>()
96 verify(displayManager).registerDisplayListener(any(), eq(testHandler), anyLong()) in <lambda>()
98 verify(displayManager).unregisterDisplayListener(any()) in <lambda>()
107 verify(displayManager, times(1)) in <lambda>()
116 verify(displayManager, times(1)) in <lambda>()
127 verify(displayManager).unregisterDisplayListener(any()) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/data/repository/
DScreenBrightnessDisplayManagerRepositoryTest.kt67 @Mock private lateinit var displayManager: DisplayManager variable in com.android.systemui.brightness.data.repository.ScreenBrightnessDisplayManagerRepositoryTest
79 displayManager, in setUp()
86 whenever(displayManager.getDisplay(displayId)).thenReturn(display) in setUp()
119 verify(displayManager) in followsChangingBrightnessInfo()
157 verify(displayManager) in minMaxWhenCollecting()
184 verify(displayManager).setTemporaryBrightness(displayId, brightness) in setTemporaryBrightness_insideBounds()
185 verify(displayManager, never()).setBrightness(anyInt(), anyFloat()) in setTemporaryBrightness_insideBounds()
197 verify(displayManager) in setTemporaryBrightness_outsideBounds()
199 verify(displayManager, never()).setBrightness(anyInt(), anyFloat()) in setTemporaryBrightness_outsideBounds()
211 verify(displayManager).setBrightness(displayId, brightness) in setBrightness_insideBounds()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DDisplayTrackerImpl.kt34 val displayManager: DisplayManager, constant in com.android.systemui.settings.DisplayTrackerImpl
39 get() = displayManager.displays
97 displayManager.registerDisplayListener(displayChangedListener, backgroundHandler) in addDisplayChangeCallback()
109 displayManager.registerDisplayListener( in addBrightnessChangeCallback()
123 displayManager.unregisterDisplayListener(displayChangedListener) in removeCallback()
130 displayManager.unregisterDisplayListener(displayBrightnessChangedListener) in removeCallback()
136 return displayManager.getDisplay(displayId) in getDisplay()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/
DDisplayTrackerImplTest.kt45 @Mock private lateinit var displayManager: DisplayManager variable in com.android.systemui.settings.DisplayTrackerImplTest
72 `when`(displayManager.displays).thenReturn(arrayOf(mDefaultDisplay, mSecondaryDisplay)) in setUp()
74 tracker = DisplayTrackerImpl(displayManager, handler) in setUp()
90 verify(displayManager).registerDisplayListener(any(), any()) in registerCallback_registersDisplayListener()
96 verify(displayManager) in registerBrightnessCallback_registersDisplayListener()
107 verify(displayManager, never()).unregisterDisplayListener(any()) in unregisterCallback_displayListenerStillRegistered()
116 verify(displayManager).unregisterDisplayListener(any()) in unregisterLastCallback_unregistersDisplayListener()
/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/
DUnfoldTransitionFactory.kt50 displayManager: DisplayManager,
65 displayManager,
82 displayManager: DisplayManager,
92 displayManager,
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/display/
DDisplayUtils.kt42 val displayManager = context.getSystemService(Context.DISPLAY_SERVICE) as DisplayManager in getDisplayIdsAndSizes() constant
43 val displays = displayManager.getDisplays(DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED) in getDisplayIdsAndSizes()
77 val displayManager = context.getSystemService(Context.DISPLAY_SERVICE) as DisplayManager in getNumberOfDisplaysAvailable() constant
78 return displayManager.getDisplays(DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED).size in getNumberOfDisplaysAvailable()
DDisplayOrientationController.kt64 private val displayManager: DisplayManager = constant
84 displayManager.registerDisplayListener(displayChangeListener, null) in start()
94 fun stop() = displayManager.unregisterDisplayListener(displayChangeListener) in update()
/frameworks/base/packages/SystemUI/src/com/android/systemui/display/data/repository/
DDisplayRepository.kt101 private val displayManager: DisplayManager, constant in com.android.systemui.display.data.repository.DisplayRepositoryImpl
122 displayManager.registerDisplayListener( in <lambda>()
129 awaitClose { displayManager.unregisterDisplayListener(callback) } in <lambda>()
193 traceSection("$TAG#getDisplays()") { displayManager.displays?.toSet() ?: emptySet() } in getDisplays()
200 displayManager in getInitialConnectedDisplays()
236 displayManager.registerDisplayListener( in <lambda>()
241 awaitClose { displayManager.unregisterDisplayListener(callback) } in <lambda>()
268 traceSection("$TAG#getDisplayType") { displayManager.getDisplay(displayId)?.type } in getDisplayType()
271 traceSection("$TAG#getDisplay") { displayManager.getDisplay(displayId) } in getDisplay()
312 displayManager.enableConnectedDisplay(id) in displayId()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DModeSwitchesController.java50 public ModeSwitchesController(Context context, DisplayManager displayManager) { in ModeSwitchesController() argument
51 mSwitchSupplier = new SwitchSupplier(context, displayManager, this::onClick); in ModeSwitchesController()
126 SwitchSupplier(Context context, DisplayManager displayManager, in SwitchSupplier() argument
128 super(displayManager); in SwitchSupplier()
DMagnification.java107 DisplayManager displayManager, SysUiState sysUiState, in WindowMagnificationControllerSupplier() argument
109 super(displayManager); in WindowMagnificationControllerSupplier()
157 DisplayManager displayManager, in FullscreenMagnificationControllerSupplier() argument
160 super(displayManager); in FullscreenMagnificationControllerSupplier()
198 DisplayManager displayManager, in SettingsSupplier() argument
200 super(displayManager); in SettingsSupplier()
228 DisplayManager displayManager, AccessibilityLogger a11yLogger, in Magnification() argument
232 displayTracker, displayManager, a11yLogger, iWindowManager); in Magnification()
240 DisplayManager displayManager, AccessibilityLogger a11yLogger, in Magnification() argument
261 displayManager, sysUiState, secureSettings); in Magnification()
[all …]
DDisplayIdIndexSupplier.java42 DisplayIdIndexSupplier(DisplayManager displayManager) { in DisplayIdIndexSupplier() argument
43 mDisplayManager = displayManager; in DisplayIdIndexSupplier()
/frameworks/base/services/core/java/com/android/server/input/
DPointerIconCache.java100 final DisplayManager displayManager = Objects.requireNonNull( in systemRunning() local
102 displayManager.registerDisplayListener(mDisplayListener, mUiThreadHandler); in systemRunning()
103 final Display[] displays = displayManager.getDisplays(); in systemRunning()
167 final DisplayManager displayManager = Objects.requireNonNull( in getContextForDisplayLocked() local
169 final Display display = displayManager.getDisplay(displayId); in getContextForDisplayLocked()
243 final DisplayManager displayManager = Objects.requireNonNull( in updateDisplayDensityLocked() local
245 final Display display = displayManager.getDisplay(displayId); in updateDisplayDensityLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DBiometricDisplayListener.kt35 private val displayManager: DisplayManager, constant in com.android.systemui.biometrics.BiometricDisplayListener
69 displayManager.registerDisplayListener( in enable()
78 displayManager.unregisterDisplayListener(this) in disable()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/updates/
DRotationChangeProviderTest.kt51 @Mock lateinit var displayManager: DisplayManager variable in com.android.systemui.unfold.updates.RotationChangeProviderTest
68 RotationChangeProvider(displayManager, spyContext, bgHandler, callbackHandler) in setup()
71 verify(displayManager).registerDisplayListener(displayListener.capture(), any()) in setup()
90 verify(displayManager).unregisterDisplayListener(any()) in onRotationChanged_subscribersRemoved_noRotationChangeReceived()
/frameworks/base/packages/SystemUI/src/com/android/systemui/brightness/data/repository/
DScreenBrightnessRepository.kt86 private val displayManager: DisplayManager, in getMinMaxLinearBrightness() constant in com.android.systemui.brightness.data.repository.ScreenBrightnessDisplayManagerRepository
105 displayManager.setTemporaryBrightness(displayId, value) in getMinMaxLinearBrightness()
108 displayManager.setBrightness(displayId, value) in getMinMaxLinearBrightness()
132 displayManager.registerDisplayListener( in getMinMaxLinearBrightness()
138 awaitClose { displayManager.unregisterDisplayListener(listener) } in getMinMaxLinearBrightness()
151 displayManager.getDisplay(displayId).brightnessInfo in getMinMaxLinearBrightness()
/frameworks/base/core/tests/coretests/src/android/content/
DContextTest.java189 final DisplayManager displayManager = appContext.getSystemService(DisplayManager.class); in verifyGetDisplayFromDisplayContextDerivedContext() local
192 display = getSecondaryDisplay(displayManager); in verifyGetDisplayFromDisplayContextDerivedContext()
194 display = displayManager.getDisplay(DEFAULT_DISPLAY); in verifyGetDisplayFromDisplayContextDerivedContext()
201 private static Display getSecondaryDisplay(DisplayManager displayManager) { in getSecondaryDisplay() argument
207 VirtualDisplay virtualDisplay = displayManager.createVirtualDisplay( in getSecondaryDisplay()
278 final DisplayManager displayManager = appContext.getSystemService(DisplayManager.class); in createUiContext() local
279 final Display display = displayManager.getDisplay(DEFAULT_DISPLAY); in createUiContext()
/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/updates/
DRotationChangeProvider.kt42 private val displayManager: DisplayManager, constant in com.android.systemui.unfold.updates.RotationChangeProvider
74 displayManager.registerDisplayListener(displayListener, callbackHandler) in subscribeToRotation()
82 displayManager.unregisterDisplayListener(displayListener) in unsubscribeToRotation()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/
DNavigationBarButtonTest.java96 final DisplayManager displayManager = mContext.getSystemService(DisplayManager.class); in createVirtualDisplay() local
103 mVirtualDisplay = displayManager.createVirtualDisplay(displayName, displayInfo.logicalWidth, in createVirtualDisplay()
129 DisplayManager displayManager = mContext.getSystemService(DisplayManager.class); in isDisplayOn() local
130 Display display = displayManager.getDisplay(displayId); in isDisplayOn()
/frameworks/base/core/java/android/app/servertransaction/
DClientTransactionListenerController.java91 @NonNull DisplayManagerGlobal displayManager) { in createInstanceForTesting()
92 return new ClientTransactionListenerController(displayManager); in createInstanceForTesting()
95 private ClientTransactionListenerController(@NonNull DisplayManagerGlobal displayManager) { in ClientTransactionListenerController() argument
96 mDisplayManager = requireNonNull(displayManager); in ClientTransactionListenerController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/display/
DDisplayHelper.java37 public DisplayHelper(Context context, DisplayManager displayManager) { in DisplayHelper() argument
39 mDisplayManager = displayManager; in DisplayHelper()
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/tests/src/com/android/systemui/accessibility/accessibilitymenu/tests/
DAccessibilityMenuServiceTest.java257 DisplayManager displayManager = context.getSystemService( in testAdjustBrightness() local
259 float resetBrightness = displayManager.getBrightness(context.getDisplayId()); in testAdjustBrightness()
267 BrightnessInfo brightnessInfo = displayManager.getDisplay( in testAdjustBrightness()
274 displayManager.setBrightness( in testAdjustBrightness()
276 return displayManager.getBrightness(context.getDisplayId()) in testAdjustBrightness()
282 () -> displayManager.getBrightness(context.getDisplayId()) in testAdjustBrightness()
288 displayManager.setBrightness( in testAdjustBrightness()
290 return displayManager.getBrightness(context.getDisplayId()) in testAdjustBrightness()
296 () -> displayManager.getBrightness(context.getDisplayId()) in testAdjustBrightness()
299 displayManager.setBrightness(context.getDisplayId(), resetBrightness); in testAdjustBrightness()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DIMagnificationConnectionTest.java318 FakeWindowMagnificationControllerSupplier(DisplayManager displayManager) { in FakeWindowMagnificationControllerSupplier() argument
319 super(displayManager); in FakeWindowMagnificationControllerSupplier()
331 FakeFullscreenMagnificationControllerSupplier(DisplayManager displayManager) { in FakeFullscreenMagnificationControllerSupplier() argument
332 super(displayManager); in FakeFullscreenMagnificationControllerSupplier()
344 FakeSettingsSupplier(DisplayManager displayManager) { in FakeSettingsSupplier() argument
345 super(displayManager); in FakeSettingsSupplier()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DAbsSplashWindowCreator.java38 ShellExecutor splashScreenExecutor, DisplayManager displayManager, in AbsSplashWindowCreator() argument
43 mDisplayManager = displayManager; in AbsSplashWindowCreator()
/frameworks/base/core/java/android/window/
DWindowProviderService.java199 final DisplayManager displayManager = context.getSystemService(DisplayManager.class); in createServiceBaseContext() local
201 Display display = displayManager.getDisplay(initialDisplayId); in createServiceBaseContext()
207 display = displayManager.getDisplay(DEFAULT_DISPLAY); in createServiceBaseContext()

1234