Lines Matching refs:hw
785 sp<const DisplayDevice> hw(getDefaultDisplayDeviceLocked());
786 info.orientation = hw->getOrientation();
852 void SurfaceFlinger::setActiveConfigInternal(const sp<DisplayDevice>& hw, int mode) {
853 ALOGD("Set active config mode=%d, type=%d flinger=%p", mode, hw->getDisplayType(),
855 int32_t type = hw->getDisplayType();
856 int currentMode = hw->getActiveConfig();
859 ALOGD("Screen type=%d is already mode=%d", hw->getDisplayType(), mode);
868 hw->setActiveConfig(mode);
889 sp<DisplayDevice> hw(mFlinger.getDisplayDevice(mDisplay));
890 if (hw == NULL) {
893 } else if (hw->getDisplayType() >= DisplayDevice::DISPLAY_VIRTUAL) {
897 mFlinger.setActiveConfigInternal(hw, mMode);
948 void SurfaceFlinger::setActiveColorModeInternal(const sp<DisplayDevice>& hw,
950 int32_t type = hw->getDisplayType();
951 android_color_mode_t currentMode = hw->getActiveColorMode();
963 hw->getDisplayType());
965 hw->setActiveColorMode(mode);
989 sp<DisplayDevice> hw(mFlinger.getDisplayDevice(mDisplay));
990 if (hw == nullptr) {
993 } else if (hw->getDisplayType() >= DisplayDevice::DISPLAY_VIRTUAL) {
997 mFlinger.setActiveColorModeInternal(hw, mMode);
1245 sp<DisplayDevice> hw = new DisplayDevice(this, DisplayDevice::DISPLAY_PRIMARY, type, isSecure,
1248 mDisplays.add(token, hw);
1253 setActiveColorModeInternal(hw, defaultColorMode);
1254 hw->setCompositionDataSpace(HAL_DATASPACE_UNKNOWN);
1262 hw->makeCurrent(mEGLDisplay, mEGLContext);
1380 sp<DisplayDevice> hw(getDisplayDeviceLocked(
1382 setPowerModeInternal(hw, currentDisplayPowerMode, /*stateLockHeld*/ true);
1482 const sp<DisplayDevice>& hw(mDisplays[dpy]);
1483 if (hw->isDisplayOn()) {
1485 const Region dirtyRegion(hw->getDirtyRegion(repaintEverything));
1488 doComposeSurfaces(hw, Region(hw->bounds()));
1491 const int32_t height = hw->getHeight();
1495 hw->swapBuffers(getHwComposer());
1606 const sp<const DisplayDevice> hw(getDefaultDisplayDeviceLocked());
1612 std::make_shared<FenceTime>(hw->getClientTargetAcquireFence());
1655 if (hw->isDisplayOn()) {
1676 if (hw->getPowerMode() == HWC_POWER_MODE_OFF) {
1924 const sp<DisplayDevice>& hw(mDisplays[dpy]);
1925 if (hw->isDisplayOn()) {
1927 const Region dirtyRegion(hw->getDirtyRegion(repaintEverything));
1930 doDisplayComposition(hw, dirtyRegion);
1932 hw->dirtyRegion.clear();
1933 hw->flip(hw->swapRegion);
1934 hw->swapRegion.clear();
2065 sp<DisplayDevice> hw(getDisplayDeviceLocked(draw.keyAt(i)));
2066 if (hw != NULL)
2067 hw->disconnect(getHwComposer());
2085 sp<DisplayDevice> hw(getDisplayDeviceLocked(display));
2086 if (hw != NULL)
2087 hw->disconnect(getHwComposer());
2180 sp<DisplayDevice> hw =
2185 hw->setLayerStack(state.layerStack);
2186 hw->setProjection(state.orientation,
2188 hw->setDisplayName(state.displayName);
2189 mDisplays.add(display, hw);
2234 sp<const DisplayDevice> hw(mDisplays[dpy]);
2235 if (layer->belongsToDisplay(hw->getLayerStack(), hw->isPrimary())) {
2237 disp = hw;
2467 const sp<DisplayDevice>& hw(mDisplays[dpy]);
2468 if (layer->belongsToDisplay(hw->getLayerStack(), hw->isPrimary())) {
2469 hw->dirtyRegion.orSelf(dirty);
3286 void SurfaceFlinger::setPowerModeInternal(const sp<DisplayDevice>& hw,
3288 ALOGD("Set power mode=%d, type=%d flinger=%p", mode, hw->getDisplayType(),
3290 int32_t type = hw->getDisplayType();
3291 int currentMode = hw->getPowerMode();
3297 hw->setPowerMode(mode);
3305 ssize_t idx = mCurrentState.displays.indexOfKey(hw->getDisplayToken());
3382 sp<DisplayDevice> hw(mFlinger.getDisplayDevice(mDisplay));
3383 if (hw == NULL) {
3386 } else if (hw->getDisplayType() >= DisplayDevice::DISPLAY_VIRTUAL) {
3391 hw, mMode, /*stateLockHeld*/ false);
3748 const sp<const DisplayDevice>& hw(mDisplays[dpy]);
3749 hw->dump(result);
3761 sp<const DisplayDevice> hw(getDefaultDisplayDeviceLocked());
3772 hw->undefinedRegion.dump(result, "undefinedRegion");
3774 hw->getOrientation(), hw->isDisplayOn());
3981 case 1008: // toggle use of hw composer
4001 sp<const DisplayDevice> hw(getDefaultDisplayDevice());
4002 reply->writeInt32(hw->getPageFlipCount());
4338 const sp<const DisplayDevice>& hw,
4347 const int32_t hw_w = hw->getWidth();
4348 const int32_t hw_h = hw->getHeight();
4374 engine.setWideColor(hw->getWideColorSupport() && !mForceNativeColorMode);
4375 engine.setColorMode(mForceNativeColorMode ? HAL_COLOR_MODE_NATIVE : hw->getActiveColorMode());
4392 if (!layer->belongsToDisplay(hw->getLayerStack(), false)) {
4404 layer->draw(hw, useIdentityTransform);
4409 hw->setViewportAndProjection();
4432 status_t SurfaceFlinger::captureScreenImplLocked(const sp<const DisplayDevice>& hw,
4444 if (!layer->belongsToDisplay(hw->getLayerStack(), false) ||
4484 hw, sourceCrop, reqWidth, reqHeight, minLayerZ, maxLayerZ, true,
4529 hw, minLayerZ, maxLayerZ);
4540 const sp<const DisplayDevice>& hw, int32_t minLayerZ, int32_t maxLayerZ) {
4550 minLayerZ, maxLayerZ, hw->getLayerStack());
4555 if (layer->belongsToDisplay(hw->getLayerStack(), false) && state.z >= minLayerZ &&