Home | History | Annotate | Download | only in surfaceflinger

Lines Matching refs:DisplayDevice

68 #include "DisplayDevice.h"
244 DisplayDeviceState info(DisplayDevice::DISPLAY_VIRTUAL, secure);
270 void SurfaceFlinger::createBuiltinDisplayLocked(DisplayDevice::DisplayType type) {
280 if (uint32_t(id) >= DisplayDevice::NUM_BUILTIN_DISPLAY_TYPES) {
491 for (size_t i=0 ; i<DisplayDevice::NUM_BUILTIN_DISPLAY_TYPES ; i++) {
492 DisplayDevice::DisplayType type((DisplayDevice::DisplayType)i);
494 if (mHwc->isConnected(i) || type==DisplayDevice::DISPLAY_PRIMARY) {
508 sp<DisplayDevice> hw = new DisplayDevice(this,
512 if (i > DisplayDevice::DISPLAY_PRIMARY) {
547 int32_t SurfaceFlinger::allocateHwcDisplayId(DisplayDevice::DisplayType type) {
548 return (uint32_t(type) < DisplayDevice::NUM_BUILTIN_DISPLAY_TYPES) ?
612 if (type == DisplayDevice::DISPLAY_PRIMARY) {
629 sp<const DisplayDevice> hw(getDefaultDisplayDevice());
683 sp<DisplayDevice> device(getDisplayDevice(display));
690 void SurfaceFlinger::setActiveConfigInternal(const sp<DisplayDevice>& hw, int mode) {
701 if (type >= DisplayDevice::NUM_BUILTIN_DISPLAY_TYPES) {
726 sp<DisplayDevice> hw(mFlinger.getDisplayDevice(mDisplay));
730 } else if (hw->getDisplayType() >= DisplayDevice::DISPLAY_VIRTUAL) {
937 if (uint32_t(type) < DisplayDevice::NUM_BUILTIN_DISPLAY_TYPES) {
940 createBuiltinDisplayLocked((DisplayDevice::DisplayType)type);
1013 const sp<DisplayDevice>& hw(mDisplays[dpy]);
1083 const sp<const DisplayDevice> hw(getDefaultDisplayDevice());
1140 const sp<DisplayDevice>& hw(mDisplays[dpy]);
1185 ALOGV_IF(mDisplays[dpy]->getDisplayType() == DisplayDevice::DISPLAY_VIRTUAL,
1205 sp<const DisplayDevice> hw(mDisplays[dpy]);
1228 sp<const DisplayDevice> hw(mDisplays[dpy]);
1249 sp<const DisplayDevice> hw(mDisplays[dpy]);
1271 sp<const DisplayDevice> hw(mDisplays[dpy]);
1281 const sp<DisplayDevice>& hw(mDisplays[dpy]);
1324 sp<const DisplayDevice> hw(mDisplays[dpy]);
1434 const sp<const DisplayDevice> defaultDisplay(getDefaultDisplayDevice());
1436 sp<DisplayDevice> hw(getDisplayDevice(draw.keyAt(i)));
1439 if (draw[i].type < DisplayDevice::NUM_BUILTIN_DISPLAY_TYPES)
1453 // recreating the DisplayDevice, so we just remove it
1456 sp<DisplayDevice> hw(getDisplayDevice(display));
1466 const sp<DisplayDevice> disp(getDisplayDevice(display));
1502 // etc.) but no internal state (i.e. a DisplayDevice).
1544 sp<DisplayDevice> hw = new DisplayDevice(this,
1589 sp<const DisplayDevice> disp;
1604 sp<const DisplayDevice> hw(mDisplays[dpy]);
1669 sp<const DisplayDevice> hw(mDisplays[dpy]);
1851 const sp<DisplayDevice>& hw(mDisplays[dpy]);
1916 void SurfaceFlinger::doDisplayComposition(const sp<const DisplayDevice>& hw,
1934 if (flags & DisplayDevice::SWAP_RECTANGLE) {
1940 if (flags & DisplayDevice::PARTIAL_UPDATES) {
1944 // rectangle instead of a region (see DisplayDevice::flip())
1973 bool SurfaceFlinger::doComposeSurfaces(const sp<const DisplayDevice>& hw, const Region& dirty)
1984 ALOGW("DisplayDevice::makeCurrent failed. Aborting surface composition for display %s",
1988 ALOGE("DisplayDevice::makeCurrent on default display failed. Aborting.");
2024 if (hw->getDisplayType() != DisplayDevice::DISPLAY_PRIMARY) {
2101 void SurfaceFlinger::drawWormhole(const sp<const DisplayDevice>& hw, const Region& region) const {
2488 d.token = mBuiltinDisplays[DisplayDevice::DISPLAY_PRIMARY];
2518 void SurfaceFlinger::setPowerModeInternal(const sp<DisplayDevice>& hw,
2531 if (type >= DisplayDevice::NUM_BUILTIN_DISPLAY_TYPES) {
2539 if (type == DisplayDevice::DISPLAY_PRIMARY) {
2561 if (type == DisplayDevice::DISPLAY_PRIMARY) {
2586 sp<DisplayDevice> hw(mFlinger.getDisplayDevice(mDisplay));
2590 } else if (hw->getDisplayType() >= DisplayDevice::DISPLAY_VIRTUAL) {
2919 const sp<const DisplayDevice>& hw(mDisplays[dpy]);
2932 sp<const DisplayDevice> hw(getDefaultDisplayDevice());
3006 dpy = getBuiltInDisplay(DisplayDevice::DISPLAY_PRIMARY);
3128 sp<const DisplayDevice> hw(getDefaultDisplayDevice());
3401 sp<const DisplayDevice> hw(flinger->getDisplayDevice(display));
3431 const sp<const DisplayDevice>& hw,
3500 const sp<const DisplayDevice>& hw,
3661 const sp<const DisplayDevice>& hw, uint32_t minLayerZ, uint32_t maxLayerZ) {
3720 : type(DisplayDevice::DISPLAY_ID_INVALID),
3721 layerStack(DisplayDevice::NO_LAYER_STACK),
3729 DisplayDevice::DisplayType type, bool isSecure)
3731 layerStack(DisplayDevice::NO_LAYER_STACK),