/frameworks/support/compat/java/android/support/v4/hardware/display/ |
D | DisplayManagerCompat.java | 20 import android.view.Display; 78 public abstract Display getDisplay(int displayId); in getDisplay() 85 public abstract Display[] getDisplays(); in getDisplays() 103 public abstract Display[] getDisplays(String category); in getDisplays() 113 public Display getDisplay(int displayId) { in getDisplay() 114 Display display = mWindowManager.getDefaultDisplay(); in getDisplay() 122 public Display[] getDisplays() { in getDisplays() 123 return new Display[] { mWindowManager.getDefaultDisplay() }; in getDisplays() 127 public Display[] getDisplays(String category) { in getDisplays() 128 return category == null ? getDisplays() : new Display[0]; in getDisplays() [all …]
|
/frameworks/base/core/java/android/hardware/display/ |
D | DisplayManager.java | 25 import android.view.Display; 47 private final SparseArray<Display> mDisplays = new SparseArray<Display>(); 49 private final ArrayList<Display> mTempDisplays = new ArrayList<Display>(); 252 public Display getDisplay(int displayId) { in getDisplay() 263 public Display[] getDisplays() { in getDisplays() 283 public Display[] getDisplays(String category) { in getDisplays() 290 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_WIFI); in getDisplays() 291 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_HDMI); in getDisplays() 292 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_OVERLAY); in getDisplays() 293 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_VIRTUAL); in getDisplays() [all …]
|
D | VirtualDisplay.java | 18 import android.view.Display; 36 private final Display mDisplay; 40 VirtualDisplay(DisplayManagerGlobal global, Display display, in VirtualDisplay() 51 public Display getDisplay() { in getDisplay()
|
/frameworks/base/core/tests/coretests/src/android/hardware/display/ |
D | VirtualDisplayTest.java | 36 import android.view.Display; 117 Display display = virtualDisplay.getDisplay(); in testPrivateVirtualDisplay() 119 assertDisplayRegistered(display, Display.FLAG_PRIVATE); in testPrivateVirtualDisplay() 141 Display display = virtualDisplay.getDisplay(); in testPrivatePresentationVirtualDisplay() 143 assertDisplayRegistered(display, Display.FLAG_PRIVATE | Display.FLAG_PRESENTATION); in testPrivatePresentationVirtualDisplay() 170 Display display = virtualDisplay.getDisplay(); in testPublicPresentationVirtualDisplay() 172 assertDisplayRegistered(display, Display.FLAG_PRESENTATION); in testPublicPresentationVirtualDisplay() 177 Display defaultDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in testPublicPresentationVirtualDisplay() 224 Display display = virtualDisplay.getDisplay(); in testSecurePublicPresentationVirtualDisplay() 226 assertDisplayRegistered(display, Display.FLAG_PRESENTATION | Display.FLAG_SECURE); in testSecurePublicPresentationVirtualDisplay() [all …]
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWC2.h | 49 class Display; variable 52 typedef std::function<void(std::shared_ptr<Display>, Connection)> 54 typedef std::function<void(std::shared_ptr<Display>)> RefreshCallback; 55 typedef std::function<void(std::shared_ptr<Display>, nsecs_t)> VsyncCallback; 63 friend class HWC2::Display; 77 std::shared_ptr<Display>* outDisplay); 85 void callHotplug(std::shared_ptr<Display> display, Connection connected); 86 void callRefresh(std::shared_ptr<Display> display); 87 void callVsync(std::shared_ptr<Display> display, nsecs_t timestamp); 94 std::shared_ptr<Display> getDisplayById(hwc2_display_t id); [all …]
|
D | HWC2On1Adapter.cpp | 200 displayHook<decltype(&Display::acceptChanges), in doGetFunction() 201 &Display::acceptChanges>); in doGetFunction() 204 displayHook<decltype(&Display::createLayer), in doGetFunction() 205 &Display::createLayer, hwc2_layer_t*>); in doGetFunction() 208 displayHook<decltype(&Display::destroyLayer), in doGetFunction() 209 &Display::destroyLayer, hwc2_layer_t>); in doGetFunction() 212 displayHook<decltype(&Display::getActiveConfig), in doGetFunction() 213 &Display::getActiveConfig, hwc2_config_t*>); in doGetFunction() 216 displayHook<decltype(&Display::getChangedCompositionTypes), in doGetFunction() 217 &Display::getChangedCompositionTypes, uint32_t*, in doGetFunction() [all …]
|
D | HWC2.cpp | 200 android_pixel_format_t* format, std::shared_ptr<Display>* outDisplay) in createVirtualDisplay() 257 void Device::callHotplug(std::shared_ptr<Display> display, Connection connected) in callHotplug() 277 void Device::callRefresh(std::shared_ptr<Display> display) in callRefresh() 287 void Device::callVsync(std::shared_ptr<Display> display, nsecs_t timestamp) in callVsync() 299 std::shared_ptr<Display> Device::getDisplayById(hwc2_display_t id) { in getDisplayById() 307 auto display = std::make_shared<Display>(*this, id); in getDisplayById() 453 Display::Display(Device& device, hwc2_display_t id) in Display() function in HWC2::Display 462 Display::~Display() in ~Display() 470 Display::Config::Config(Display& display, hwc2_config_t id) in Config() 479 Display::Config::Builder::Builder(Display& display, hwc2_config_t id) in Builder() [all …]
|
D | HWComposer.h | 51 class Display; variable 151 std::vector<std::shared_ptr<const HWC2::Display::Config>> 154 std::shared_ptr<const HWC2::Display::Config> 174 void invalidate(const std::shared_ptr<HWC2::Display>& display); 175 void vsync(const std::shared_ptr<HWC2::Display>& display, 177 void hotplug(const std::shared_ptr<HWC2::Display>& display, 187 std::shared_ptr<HWC2::Display> hwcDisplay; 195 std::shared_ptr<const HWC2::Display::Config>> configMap;
|
D | HWC2On1Adapter.h | 169 class Display { 174 Display(HWC2On1Adapter& device, HWC2::DisplayType type); 248 Config(Display& display) in Config() 252 bool isOnDisplay(const Display& display) const { in isOnDisplay() 280 Display& mDisplay; 400 hwc2_display_t displayId, HWC2::Error (Display::*member)(Args...), in callDisplayFunction() 421 return callDisplayFunction(device, display, &Display::getAttribute, in getDisplayAttributeHook() 432 return callDisplayFunction(device, display, &Display::setColorTransform, in setColorTransformHook() 439 return callDisplayFunction(device, display, &Display::setColorMode, mode); in setColorModeHook() 445 return callDisplayFunction(device, display, &Display::setPowerMode, in setPowerModeHook() [all …]
|
/frameworks/base/cmds/wm/src/com/android/commands/wm/ |
D | Wm.java | 28 import android.view.Display; 133 mWm.getInitialDisplaySize(Display.DEFAULT_DISPLAY, initialSize); in runDisplaySize() 134 mWm.getBaseDisplaySize(Display.DEFAULT_DISPLAY, baseSize); in runDisplaySize() 164 mWm.setForcedDisplaySize(Display.DEFAULT_DISPLAY, w, h); in runDisplaySize() 166 mWm.clearForcedDisplaySize(Display.DEFAULT_DISPLAY); in runDisplaySize() 177 int initialDensity = mWm.getInitialDisplayDensity(Display.DEFAULT_DISPLAY); in runDisplayDensity() 178 int baseDensity = mWm.getBaseDisplayDensity(Display.DEFAULT_DISPLAY); in runDisplayDensity() 204 mWm.setForcedDisplayDensity(Display.DEFAULT_DISPLAY, density); in runDisplayDensity() 206 mWm.clearForcedDisplayDensity(Display.DEFAULT_DISPLAY); in runDisplayDensity() 232 mWm.setOverscan(Display.DEFAULT_DISPLAY, rect.left, rect.top, rect.right, rect.bottom); in runDisplayOverscan() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayPowerController.java | 44 import android.view.Display; 458 new ColorFade(Display.DEFAULT_DISPLAY)); in initialize() 549 state = Display.STATE_OFF; in updatePowerState() 553 if (mPowerRequest.dozeScreenState != Display.STATE_UNKNOWN) { in updatePowerState() 556 state = Display.STATE_DOZE; in updatePowerState() 565 state = Display.STATE_ON; in updatePowerState() 568 assert(state != Display.STATE_UNKNOWN); in updatePowerState() 572 if (mPowerRequest.useProximitySensor && state != Display.STATE_OFF) { in updatePowerState() 582 && state != Display.STATE_OFF) { in updatePowerState() 597 state = Display.STATE_OFF; in updatePowerState() [all …]
|
D | LocalDisplayAdapter.java | 34 import android.view.Display; 112 activeColorMode = Display.COLOR_MODE_INVALID; in tryConnectDisplayLocked() 145 case Display.STATE_OFF: in getPowerModeForState() 147 case Display.STATE_DOZE: in getPowerModeForState() 149 case Display.STATE_DOZE_SUSPEND: in getPowerModeForState() 164 private int mState = Display.STATE_UNKNOWN; 172 private Display.HdrCapabilities mHdrCapabilities; 317 mActiveColorMode = Display.COLOR_MODE_DEFAULT; in updateColorModesLocked() 362 mInfo.supportedModes = new Display.Mode[mSupportedModes.size()]; in getDisplayDeviceInfoLocked() 397 mInfo.type = Display.TYPE_BUILT_IN; in getDisplayDeviceInfoLocked() [all …]
|
D | DisplayPowerState.java | 27 import android.view.Display; 85 mScreenState = Display.STATE_ON; in DisplayPowerState() 154 if (mScreenState != Display.STATE_OFF) { in setScreenBrightness() 225 if (mScreenState != Display.STATE_OFF) { in setColorFadeLevel() 262 pw.println(" mScreenState=" + Display.stateToString(mScreenState)); in dump() 308 int brightness = mScreenState != Display.STATE_OFF 342 private static final int INITIAL_SCREEN_STATE = Display.STATE_OFF; // unknown, assume off 365 + Display.stateToString(state) + ", backlight=" + backlight); in setState() 387 pw.println(" mPendingState=" + Display.stateToString(mPendingState)); in dump() 389 pw.println(" mActualState=" + Display.stateToString(mActualState)); in dump() [all …]
|
D | DisplayDeviceInfo.java | 21 import android.view.Display; 161 public Display.Mode[] supportedModes = Display.Mode.EMPTY_ARRAY; 167 public int[] supportedColorModes = { Display.COLOR_MODE_DEFAULT }; 172 public Display.HdrCapabilities hdrCapabilities; 243 public int state = Display.STATE_ON; 367 sb.append(", type ").append(Display.typeToString(type)); in toString() 371 sb.append(", state ").append(Display.stateToString(state)); in toString()
|
D | VirtualDisplayAdapter.java | 32 import android.view.Display; 186 private Display.Mode mMode; 204 mDisplayState = Display.STATE_UNKNOWN; in VirtualDisplayDevice() 236 if (state == Display.STATE_OFF) { in requestDisplayStateLocked() 290 pw.println("mDisplayState=" + Display.stateToString(mDisplayState)); in dumpLocked() 305 mInfo.supportedModes = new Display.Mode[] { mMode }; in getDisplayDeviceInfoLocked() 336 mInfo.type = Display.TYPE_VIRTUAL; in getDisplayDeviceInfoLocked() 338 mInfo.state = mSurface != null ? Display.STATE_ON : Display.STATE_OFF; in getDisplayDeviceInfoLocked()
|
D | LogicalDisplay.java | 20 import android.view.Display; 212 mBaseDisplayInfo.flags |= Display.FLAG_SUPPORTS_PROTECTED_BUFFERS; in updateLocked() 215 mBaseDisplayInfo.flags |= Display.FLAG_SECURE; in updateLocked() 218 mBaseDisplayInfo.flags |= Display.FLAG_PRIVATE; in updateLocked() 221 mBaseDisplayInfo.flags |= Display.FLAG_PRESENTATION; in updateLocked() 224 mBaseDisplayInfo.flags |= Display.FLAG_ROUND; in updateLocked() 330 if ((displayInfo.flags & Display.FLAG_SCALING_DISABLED) != 0) { in configureDisplayInTransactionLocked()
|
D | DisplayAdapter.java | 21 import android.view.Display; 132 public static Display.Mode createMode(int width, int height, float refreshRate) { in createMode() 133 return new Display.Mode( in createMode()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 25 import android.view.Display; 72 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testMultipleCallsWithIdenticalParametersCacheReference() 77 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testMultipleCallsWithIdenticalParametersCacheReference() 86 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testMultipleCallsWithDifferentParametersReturnDifferentReferences() 93 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, overrideConfig, in testMultipleCallsWithDifferentParametersReturnDifferentReferences() 102 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testAddingASplitCreatesANewImpl() 108 Display.DEFAULT_DISPLAY, null, CompatibilityInfo.DEFAULT_COMPATIBILITY_INFO, null); in testAddingASplitCreatesANewImpl() 118 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testUpdateConfigurationUpdatesAllAssetManagers() 123 null, APP_TWO_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testUpdateConfigurationUpdatesAllAssetManagers() 131 activity, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, in testUpdateConfigurationUpdatesAllAssetManagers() [all …]
|
/frameworks/base/core/java/android/view/ |
D | DisplayInfo.java | 170 public Display.Mode[] supportedModes = Display.Mode.EMPTY_ARRAY; 176 public int[] supportedColorModes = { Display.COLOR_MODE_DEFAULT }; 179 public Display.HdrCapabilities hdrCapabilities; 368 supportedModes = new Display.Mode[nModes]; in readFromParcel() 370 supportedModes[i] = Display.Mode.CREATOR.createFromParcel(source); in readFromParcel() 438 public Display.Mode getMode() { in getMode() 442 public Display.Mode getDefaultMode() { in getDefaultMode() 446 private Display.Mode findMode(int id) { in findMode() 460 Display.Mode[] modes = supportedModes; in findDefaultModeByRefreshRate() 461 Display.Mode defaultMode = getDefaultMode(); in findDefaultModeByRefreshRate() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/ |
D | WindowManagerImpl.java | 19 import android.view.Display; 28 private final Display mDisplay; 36 mDisplay = new Display(null, Display.DEFAULT_DISPLAY, info, in WindowManagerImpl() 41 public Display getDefaultDisplay() { in getDefaultDisplay()
|
/frameworks/support/compat/jellybean-mr1/android/support/v4/hardware/display/ |
D | DisplayManagerJellybeanMr1.java | 20 import android.view.Display; 27 public static Display getDisplay(Object displayManagerObj, int displayId) { in getDisplay() 31 public static Display[] getDisplays(Object displayManagerObj) { in getDisplays() 35 public static Display[] getDisplays(Object displayManagerObj, String category) { in getDisplays()
|
/frameworks/base/core/java/android/app/ |
D | Presentation.java | 24 import android.view.Display; 146 private final Display mDisplay; 158 public Presentation(Context outerContext, Display display) { in Presentation() 176 public Presentation(Context outerContext, Display display, int theme) { in Presentation() 191 public Display getDisplay() { in getDisplay() 290 Context outerContext, Display display, int theme) { in createPresentationContext()
|
/frameworks/support/compat/tests/java/android/support/v4/view/ |
D | ViewCompatTest.java | 21 import android.view.Display; 61 final Display display = ViewCompat.getDisplay(mView); in testGetDisplay() 68 final Display display = ViewCompat.getDisplay(view); in testGetDisplay_returnsNullForUnattachedView()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | BurnInProtectionHelper.java | 31 import android.view.Display; 81 private final Display mDisplay; 117 mDisplay = displayManager.getDisplay(Display.DEFAULT_DISPLAY); in BurnInProtectionHelper() 250 if (mDisplay.getState() == Display.STATE_DOZE in onDisplayChanged() 251 || mDisplay.getState() == Display.STATE_DOZE_SUSPEND) { in onDisplayChanged()
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
D | DisplaySourceService.java | 32 import android.view.Display; 151 public void onDisplayAdded(Display display); in onDisplayAdded() 152 public void onDisplayRemoved(Display display); in onDisplayRemoved() 160 mCallbacks.onDisplayAdded((Display)msg.obj); in handleMessage() 165 mCallbacks.onDisplayRemoved((Display)msg.obj); in handleMessage()
|