Lines Matching refs:disp
752 int hwc_getDisplayConfigs(struct hwc_composer_device_1* dev, int disp, in hwc_getDisplayConfigs() argument
757 bool hotPluggable = isHotPluggable(ctx, disp); in hwc_getDisplayConfigs()
758 bool isVirtualDisplay = (disp == HWC_DISPLAY_VIRTUAL); in hwc_getDisplayConfigs()
760 if ((hotPluggable || isVirtualDisplay) && !ctx->dpyAttr[disp].connected) { in hwc_getDisplayConfigs()
761 ALOGE("%s display (%d) is inactive", __FUNCTION__, disp); in hwc_getDisplayConfigs()
770 switch(disp) { in hwc_getDisplayConfigs()
797 int hwc_getDisplayAttributes(struct hwc_composer_device_1* dev, int disp, in hwc_getDisplayAttributes() argument
803 bool hotPluggable = isHotPluggable(ctx, disp); in hwc_getDisplayAttributes()
804 bool isVirtualDisplay = (disp == HWC_DISPLAY_VIRTUAL); in hwc_getDisplayAttributes()
806 if ((hotPluggable || isVirtualDisplay) && !ctx->dpyAttr[disp].connected) { in hwc_getDisplayAttributes()
807 ALOGE("%s display (%d) is inactive", __FUNCTION__, disp); in hwc_getDisplayAttributes()
826 hotPluggable ? refresh : ctx->dpyAttr[disp].vsync_period; in hwc_getDisplayAttributes()
829 if (ctx->dpyAttr[disp].customFBSize) in hwc_getDisplayAttributes()
830 values[i] = ctx->dpyAttr[disp].xres_new; in hwc_getDisplayAttributes()
832 values[i] = hotPluggable ? xres : ctx->dpyAttr[disp].xres; in hwc_getDisplayAttributes()
834 ALOGD("%s disp = %d, width = %d",__FUNCTION__, disp, in hwc_getDisplayAttributes()
838 if (ctx->dpyAttr[disp].customFBSize) in hwc_getDisplayAttributes()
839 values[i] = ctx->dpyAttr[disp].yres_new; in hwc_getDisplayAttributes()
841 values[i] = hotPluggable ? yres : ctx->dpyAttr[disp].yres; in hwc_getDisplayAttributes()
842 ALOGD("%s disp = %d, height = %d",__FUNCTION__, disp, in hwc_getDisplayAttributes()
846 values[i] = (int32_t) (ctx->dpyAttr[disp].xdpi*1000.0); in hwc_getDisplayAttributes()
849 values[i] = (int32_t) (ctx->dpyAttr[disp].ydpi*1000.0); in hwc_getDisplayAttributes()
891 int hwc_getActiveConfig(struct hwc_composer_device_1* dev, int disp) in hwc_getActiveConfig() argument
896 bool hotPluggable = isHotPluggable(ctx, disp); in hwc_getActiveConfig()
897 bool isVirtualDisplay = (disp == HWC_DISPLAY_VIRTUAL); in hwc_getActiveConfig()
899 if ((hotPluggable || isVirtualDisplay) && !ctx->dpyAttr[disp].connected) { in hwc_getActiveConfig()
900 ALOGE("%s display (%d) is inactive", __FUNCTION__, disp); in hwc_getActiveConfig()
915 int hwc_setActiveConfig(struct hwc_composer_device_1* dev, int disp, int index) in hwc_setActiveConfig() argument
920 bool hotPluggable = isHotPluggable(ctx, disp); in hwc_setActiveConfig()
921 bool isVirtualDisplay = (disp == HWC_DISPLAY_VIRTUAL); in hwc_setActiveConfig()
923 if ((hotPluggable || isVirtualDisplay) && !ctx->dpyAttr[disp].connected) { in hwc_setActiveConfig()
924 ALOGE("%s display (%d) is inactive", __FUNCTION__, disp); in hwc_setActiveConfig()
930 if(!hotPluggable && disp == HWC_DISPLAY_PRIMARY) { in hwc_setActiveConfig()