Home
last modified time | relevance | path

Searched refs:DisplayManager (Results 1 – 25 of 218) sorted by relevance

123456789

/frameworks/base/services/core/java/com/android/server/display/feature/
DDeviceConfigParameterProvider.java21 import android.hardware.display.DisplayManager;
48 DisplayManager.HDR_OUTPUT_CONTROL_FLAG, true); in isHdrOutputControlFeatureEnabled()
55 DisplayManager.DeviceConfig.KEY_USE_NORMAL_BRIGHTNESS_MODE_CONTROLLER, false); in isNormalBrightnessControllerFeatureEnabled()
60 DisplayManager.DeviceConfig.KEY_DISABLE_SCREEN_WAKE_LOCKS_WHILE_CACHED, true); in isDisableScreenWakeLocksWhileCachedFeatureEnabled()
67 DisplayManager.DeviceConfig.KEY_PEAK_REFRESH_RATE_DEFAULT, -1); in getPeakRefreshRateDefault()
76 DisplayManager.DeviceConfig.KEY_POWER_THROTTLING_DATA, null); in getPowerThrottlingData()
82 DisplayManager.DeviceConfig.KEY_BRIGHTNESS_THROTTLING_DATA, null); in getBrightnessThrottlingData()
87 DisplayManager.DeviceConfig.KEY_REFRESH_RATE_IN_HBM_SUNLIGHT, -1); in getRefreshRateInHbmSunlight()
92 DisplayManager.DeviceConfig.KEY_REFRESH_RATE_IN_HBM_HDR, -1); in getRefreshRateInHbmHdr()
98 DisplayManager.DeviceConfig.KEY_REFRESH_RATE_IN_HIGH_ZONE, -1); in getRefreshRateInHighZone()
[all …]
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/area/
DRearDisplayPresentationRequestCallback.java21 import android.hardware.display.DisplayManager;
36 private final DisplayManager mDisplayManager;
38 private final DisplayManager.DisplayListener mRearDisplayListener = new RearDisplayListener();
45 mDisplayManager = context.getSystemService(DisplayManager.class); in RearDisplayPresentationRequestCallback()
47 context.getMainThreadHandler(), DisplayManager.EVENT_FLAG_DISPLAY_ADDED in RearDisplayPresentationRequestCallback()
48 | DisplayManager.EVENT_FLAG_DISPLAY_CHANGED); in RearDisplayPresentationRequestCallback()
55 Display[] rearDisplays = mDisplayManager.getDisplays(DisplayManager.DISPLAY_CATEGORY_REAR); in onRequestActivated()
82 private class RearDisplayListener implements DisplayManager.DisplayListener {
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DDisplayManagerGlobalTest.java58 private static final long ALL_DISPLAY_EVENTS = DisplayManager.EVENT_FLAG_DISPLAY_ADDED
59 | DisplayManager.EVENT_FLAG_DISPLAY_CHANGED
60 | DisplayManager.EVENT_FLAG_DISPLAY_REMOVED;
66 private DisplayManager.DisplayListener mListener;
69 private DisplayManager.DisplayListener mListener2;
130 ALL_DISPLAY_EVENTS & ~DisplayManager.EVENT_FLAG_DISPLAY_ADDED, null); in testDisplayListenerIsNotCalled_WhenClientIsNotSubscribed()
136 ALL_DISPLAY_EVENTS & ~DisplayManager.EVENT_FLAG_DISPLAY_CHANGED, null); in testDisplayListenerIsNotCalled_WhenClientIsNotSubscribed()
142 ALL_DISPLAY_EVENTS & ~DisplayManager.EVENT_FLAG_DISPLAY_REMOVED, null); in testDisplayListenerIsNotCalled_WhenClientIsNotSubscribed()
165 DisplayManager.EVENT_FLAG_DISPLAY_BRIGHTNESS, null); in testDisplayManagerGlobalRegistersWithDisplayManager_WhenThereAreListeners()
170 eq(DisplayManager.EVENT_FLAG_DISPLAY_BRIGHTNESS)); in testDisplayManagerGlobalRegistersWithDisplayManager_WhenThereAreListeners()
[all …]
/frameworks/base/core/java/com/android/internal/display/
DRefreshRateSettingsUtils.java19 import static android.hardware.display.DisplayManager.DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED;
22 import android.hardware.display.DisplayManager;
44 final DisplayManager dm = context.getSystemService(DisplayManager.class); in findHighestRefreshRateForDefaultDisplay()
69 final DisplayManager dm = context.getSystemService(DisplayManager.class); in findHighestRefreshRateAmongAllDisplays()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerShellCommand.java28 import android.hardware.display.DisplayManager;
239 DisplayManager dm = mService.getContext().getSystemService(DisplayManager.class); in getDisplays()
329 final DisplayManager dm = context.getSystemService(DisplayManager.class); in setBrightness()
502 final DisplayManager dm = context.getSystemService(DisplayManager.class); in setMatchContentFrameRateUserPreference()
512 final DisplayManager dm = context.getSystemService(DisplayManager.class); in getMatchContentFrameRateUserPreference()
536 final DisplayManager dm = context.getSystemService(DisplayManager.class); in setUserDisabledHdrTypes()
543 final DisplayManager dm = context.getSystemService(DisplayManager.class); in getUserDisabledHdrTypes()
550 @DisplayManager.SwitchingType
552 @DisplayManager.MatchContentFrameRateType int matchContentFrameRateType) { in toRefreshRateSwitchingType()
554 case DisplayManager.MATCH_CONTENT_FRAMERATE_NEVER: in toRefreshRateSwitchingType()
[all …]
DVirtualDisplayAdapter.java19 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_ALWAYS_UNLOCKED;
20 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR;
21 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_CAN_SHOW_WITH_INSECURE_K…
22 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOV…
23 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_DEVICE_DISPLAY_GROUP;
24 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_OWN_DISPLAY_GROUP;
25 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_OWN_FOCUS;
26 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_PRESENTATION;
27 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC;
28 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_ROTATES_WITH_CONTENT;
[all …]
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/
DAttachedChoreographerNativeTest.java23 import android.hardware.display.DisplayManager;
59 private DisplayManager mDisplayManager;
99 mDisplayManager = activity.getSystemService(DisplayManager.class); in setup()
103 DisplayManager.SWITCHING_TYPE_RENDER_FRAME_RATE_ONLY); in setup()
169 case DisplayManager.MATCH_CONTENT_FRAMERATE_NEVER: in toSwitchingType()
170 return DisplayManager.SWITCHING_TYPE_NONE; in toSwitchingType()
171 case DisplayManager.MATCH_CONTENT_FRAMERATE_SEAMLESSS_ONLY: in toSwitchingType()
172 return DisplayManager.SWITCHING_TYPE_WITHIN_GROUPS; in toSwitchingType()
173 case DisplayManager.MATCH_CONTENT_FRAMERATE_ALWAYS: in toSwitchingType()
174 return DisplayManager.SWITCHING_TYPE_ACROSS_AND_WITHIN_GROUPS; in toSwitchingType()
/frameworks/opt/car/services/updatableServices/src/com/android/internal/car/updatable/
DOverlayDisplayMonitor.java20 import android.hardware.display.DisplayManager;
38 private final DisplayManager mDisplayManager;
45 public OverlayDisplayMonitor(DisplayManager displayManager, Handler handler, in OverlayDisplayMonitor()
62 DisplayManager.DisplayListener mDisplayListener = new DisplayManager.DisplayListener() {
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/display/
DDisplayOrientationController.kt20 import android.hardware.display.DisplayManager
49 private val displayChangeListener: DisplayManager.DisplayListener =
50 object : DisplayManager.DisplayListener {
64 private val displayManager: DisplayManager =
65 context.getSystemService(Context.DISPLAY_SERVICE) as DisplayManager
/frameworks/base/services/core/java/com/android/server/input/
DPointerIconCache.java25 import android.hardware.display.DisplayManager;
70 private final DisplayManager.DisplayListener mDisplayListener =
71 new DisplayManager.DisplayListener() {
100 final DisplayManager displayManager = Objects.requireNonNull( in systemRunning()
101 mContext.getSystemService(DisplayManager.class)); in systemRunning()
167 final DisplayManager displayManager = Objects.requireNonNull( in getContextForDisplayLocked()
168 mContext.getSystemService(DisplayManager.class)); in getContextForDisplayLocked()
243 final DisplayManager displayManager = Objects.requireNonNull( in updateDisplayDensityLocked()
244 mContext.getSystemService(DisplayManager.class)); in updateDisplayDensityLocked()
/frameworks/base/core/tests/coretests/src/android/content/
DContextTest.java20 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY;
21 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC;
35 import android.hardware.display.DisplayManager;
108 final DisplayManager dm = testContext.getSystemService(DisplayManager.class); in testDisplayIdForDefaultDisplayContext()
189 final DisplayManager displayManager = appContext.getSystemService(DisplayManager.class); in verifyGetDisplayFromDisplayContextDerivedContext()
201 private static Display getSecondaryDisplay(DisplayManager displayManager) { in getSecondaryDisplay()
243 getSecondaryDisplay(uiContext.getSystemService(DisplayManager.class)); in testIsUiContext_UiContextDerivedDisplayContext()
278 final DisplayManager displayManager = appContext.getSystemService(DisplayManager.class); in createUiContext()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DDisplayTrackerImpl.kt19 import android.hardware.display.DisplayManager
20 import android.hardware.display.DisplayManager.EVENT_FLAG_DISPLAY_BRIGHTNESS
34 val displayManager: DisplayManager,
47 val displayChangedListener: DisplayManager.DisplayListener =
48 object : DisplayManager.DisplayListener {
78 val displayBrightnessChangedListener: DisplayManager.DisplayListener =
79 object : DisplayManager.DisplayListener {
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DBiometricDisplayListener.kt20 import android.hardware.display.DisplayManager
35 private val displayManager: DisplayManager,
39 ) : DisplayManager.DisplayListener {
72 DisplayManager.EVENT_FLAG_DISPLAY_CHANGED in enable()
/frameworks/base/core/java/com/android/internal/jank/
DDisplayResolutionTracker.java28 import android.hardware.display.DisplayManager;
80 mManager.registerDisplayListener(new DisplayManager.DisplayListener() { in DisplayResolutionTracker()
148 public void registerDisplayListener(DisplayManager.DisplayListener listener) { in getDefault()
150 DisplayManager.EVENT_FLAG_DISPLAY_ADDED in getDefault()
151 | DisplayManager.EVENT_FLAG_DISPLAY_CHANGED, in getDefault()
163 void registerDisplayListener(DisplayManager.DisplayListener listener); in registerDisplayListener()
/frameworks/base/services/core/java/com/android/server/vr/
DVr2dDisplay.java12 import android.hardware.display.DisplayManager;
75 private final DisplayManager mDisplayManager;
103 public Vr2dDisplay(DisplayManager displayManager, in Vr2dDisplay()
292 int flags = DisplayManager.VIRTUAL_DISPLAY_FLAG_SUPPORTS_TOUCH; in startVirtualDisplay()
293 flags |= DisplayManager.VIRTUAL_DISPLAY_FLAG_ROTATES_WITH_CONTENT; in startVirtualDisplay()
294 flags |= DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC; in startVirtualDisplay()
295 flags |= DisplayManager.VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY; in startVirtualDisplay()
296 flags |= DisplayManager.VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL; in startVirtualDisplay()
297 flags |= DisplayManager.VIRTUAL_DISPLAY_FLAG_SECURE; in startVirtualDisplay()
298 flags |= DisplayManager.VIRTUAL_DISPLAY_FLAG_TRUSTED; in startVirtualDisplay()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/display/
DDisplayHelper.java20 import android.hardware.display.DisplayManager;
31 private final DisplayManager mDisplayManager;
37 public DisplayHelper(Context context, DisplayManager displayManager) { in DisplayHelper()
/frameworks/base/core/tests/coretests/src/android/os/
DBrightnessLimit.java20 import android.hardware.display.DisplayManager;
44 DisplayManager dm = getSystemService(DisplayManager.class); in onClick()
/frameworks/base/services/core/java/com/android/server/display/mode/
DProximitySensorObserver.java20 import android.hardware.display.DisplayManager;
34 DisplayManager.DisplayListener {
74 DisplayManager.EVENT_FLAG_DISPLAY_ADDED in observe()
75 | DisplayManager.EVENT_FLAG_DISPLAY_CHANGED in observe()
76 | DisplayManager.EVENT_FLAG_DISPLAY_REMOVED); in observe()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/
DBiometricDisplayListenerTest.java31 import android.hardware.display.DisplayManager;
60 @Mock private DisplayManager mDisplayManager;
69 @Captor private ArgumentCaptor<DisplayManager.DisplayListener> mDisplayListenerCaptor;
91 eq(DisplayManager.EVENT_FLAG_DISPLAY_CHANGED)); in registersDisplayListener_whenEnabled()
115 same(mHandler), eq(DisplayManager.EVENT_FLAG_DISPLAY_CHANGED)); in callsOnChanged_forSideFingerprint_whenAnythingDisplayChanges()
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
DInputMethodManagerTest.java25 import android.hardware.display.DisplayManager;
48 final DisplayManager dm = testContext.getSystemService(DisplayManager.class); in testPrivateApiGetInstance()
/frameworks/base/media/java/android/media/projection/
DMediaProjection.java25 import android.hardware.display.DisplayManager;
69 private final DisplayManager mDisplayManager;
75 this(context, impl, context.getSystemService(DisplayManager.class)); in MediaProjection()
80 public MediaProjection(Context context, IMediaProjection impl, DisplayManager displayManager) { in MediaProjection()
146 int flags = DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR in createVirtualDisplay()
147 | DisplayManager.VIRTUAL_DISPLAY_FLAG_PRESENTATION; in createVirtualDisplay()
149 flags |= DisplayManager.VIRTUAL_DISPLAY_FLAG_SECURE; in createVirtualDisplay()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DAbsSplashWindowCreator.java21 import android.hardware.display.DisplayManager;
31 protected final DisplayManager mDisplayManager;
38 ShellExecutor splashScreenExecutor, DisplayManager displayManager, in AbsSplashWindowCreator()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/
DShellTestCase.java24 import android.hardware.display.DisplayManager;
51 final DisplayManager dm = context.getSystemService(DisplayManager.class); in shellSetup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DDisplayIdIndexSupplier.java20 import android.hardware.display.DisplayManager;
37 private final DisplayManager mDisplayManager;
42 DisplayIdIndexSupplier(DisplayManager displayManager) { in DisplayIdIndexSupplier()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DRefreshRateSettingsUtilsTest.java19 import static android.hardware.display.DisplayManager.DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED;
26 import android.hardware.display.DisplayManager;
52 private DisplayManager mDisplayManagerMock;
62 mContext.addMockSystemService(DisplayManager.class, mDisplayManagerMock); in setUp()

123456789