/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | DisplayManagerServiceTest.java | 442 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/ |
D | DisplayRepositoryTest.kt | 55 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/ |
D | ScreenBrightnessDisplayManagerRepositoryTest.kt | 67 @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/ |
D | DisplayTrackerImpl.kt | 34 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/ |
D | DisplayTrackerImplTest.kt | 45 @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/ |
D | UnfoldTransitionFactory.kt | 50 displayManager: DisplayManager, 65 displayManager, 82 displayManager: DisplayManager, 92 displayManager,
|
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/display/ |
D | DisplayUtils.kt | 42 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()
|
D | DisplayOrientationController.kt | 64 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/ |
D | DisplayRepository.kt | 101 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/ |
D | ModeSwitchesController.java | 50 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()
|
D | Magnification.java | 107 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 …]
|
D | DisplayIdIndexSupplier.java | 42 DisplayIdIndexSupplier(DisplayManager displayManager) { in DisplayIdIndexSupplier() argument 43 mDisplayManager = displayManager; in DisplayIdIndexSupplier()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | PointerIconCache.java | 100 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/ |
D | BiometricDisplayListener.kt | 35 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/ |
D | RotationChangeProviderTest.kt | 51 @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/ |
D | ScreenBrightnessRepository.kt | 86 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/ |
D | ContextTest.java | 189 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/ |
D | RotationChangeProvider.kt | 42 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/ |
D | NavigationBarButtonTest.java | 96 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/ |
D | ClientTransactionListenerController.java | 91 @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/ |
D | DisplayHelper.java | 37 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/ |
D | AccessibilityMenuServiceTest.java | 257 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/ |
D | IMagnificationConnectionTest.java | 318 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/ |
D | AbsSplashWindowCreator.java | 38 ShellExecutor splashScreenExecutor, DisplayManager displayManager, in AbsSplashWindowCreator() argument 43 mDisplayManager = displayManager; in AbsSplashWindowCreator()
|
/frameworks/base/core/java/android/window/ |
D | WindowProviderService.java | 199 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()
|