Lines Matching refs:pfn
100 auto pfn = reinterpret_cast<HWC2_PFN_REGISTER_CALLBACK>( in registerCallback() local
102 ASSERT_TRUE(pfn) << "failed to get function"; in registerCallback()
104 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, descriptor, in registerCallback()
116 auto pfn = reinterpret_cast<HWC2_PFN_GET_DISPLAY_TYPE>( in getDisplayType() local
118 ASSERT_TRUE(pfn) << "failed to get function"; in getDisplayType()
120 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in getDisplayType()
147 auto pfn = reinterpret_cast<HWC2_PFN_CREATE_LAYER>( in createLayer() local
149 ASSERT_TRUE(pfn) << "failed to get function"; in createLayer()
151 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in createLayer()
167 auto pfn = reinterpret_cast<HWC2_PFN_DESTROY_LAYER>( in destroyLayer() local
169 ASSERT_TRUE(pfn) << "failed to get function"; in destroyLayer()
171 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, layer)); in destroyLayer()
188 auto pfn = reinterpret_cast<HWC2_PFN_GET_DISPLAY_ATTRIBUTE>( in getDisplayAttribute() local
190 ASSERT_TRUE(pfn) << "failed to get function"; in getDisplayAttribute()
192 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, config, in getDisplayAttribute()
207 auto pfn = reinterpret_cast<HWC2_PFN_GET_DISPLAY_CONFIGS>( in getDisplayConfigs() local
209 ASSERT_TRUE(pfn) << "failed to get function"; in getDisplayConfigs()
213 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in getDisplayConfigs()
219 err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in getDisplayConfigs()
234 auto pfn = reinterpret_cast<HWC2_PFN_GET_ACTIVE_CONFIG>( in getActiveConfig() local
236 ASSERT_TRUE(pfn) << "failed to get function"; in getActiveConfig()
238 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in getActiveConfig()
251 auto pfn = reinterpret_cast<HWC2_PFN_SET_ACTIVE_CONFIG>( in setActiveConfig() local
253 ASSERT_TRUE(pfn) << "failed to get function"; in setActiveConfig()
255 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, config)); in setActiveConfig()
267 auto pfn = reinterpret_cast<HWC2_PFN_GET_DOZE_SUPPORT>( in getDozeSupport() local
269 ASSERT_TRUE(pfn) << "failed to get function"; in getDozeSupport()
271 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in getDozeSupport()
284 auto pfn = reinterpret_cast<HWC2_PFN_SET_POWER_MODE>( in setPowerMode() local
286 ASSERT_TRUE(pfn) << "failed to get function"; in setPowerMode()
288 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in setPowerMode()
309 auto pfn = reinterpret_cast<HWC2_PFN_SET_VSYNC_ENABLED>( in setVsyncEnabled() local
311 ASSERT_TRUE(pfn) << "failed to get function"; in setVsyncEnabled()
313 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in setVsyncEnabled()
334 auto pfn = reinterpret_cast<HWC2_PFN_GET_DISPLAY_NAME>( in getDisplayName() local
336 ASSERT_TRUE(pfn) << "failed to get function"; in getDisplayName()
340 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, &size, in getDisplayName()
346 err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, &size, in getDisplayName()
363 auto pfn = reinterpret_cast<HWC2_PFN_SET_LAYER_COMPOSITION_TYPE>( in setLayerCompositionType() local
365 ASSERT_TRUE(pfn) << "failed to get function"; in setLayerCompositionType()
367 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, layer, in setLayerCompositionType()
380 auto pfn = reinterpret_cast<HWC2_PFN_SET_CURSOR_POSITION>( in setCursorPosition() local
382 ASSERT_TRUE(pfn) << "failed to get function"; in setCursorPosition()
384 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, layer, x, in setCursorPosition()
398 auto pfn = reinterpret_cast<HWC2_PFN_SET_LAYER_BLEND_MODE>( in setLayerBlendMode() local
400 ASSERT_TRUE(pfn) << "failed to get function"; in setLayerBlendMode()
402 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, layer, in setLayerBlendMode()
416 auto pfn = reinterpret_cast<HWC2_PFN_SET_LAYER_BUFFER>( in setLayerBuffer() local
418 ASSERT_TRUE(pfn) << "failed to get function"; in setLayerBuffer()
420 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, layer, in setLayerBuffer()
432 auto pfn = reinterpret_cast<HWC2_PFN_SET_LAYER_COLOR>( in setLayerColor() local
434 ASSERT_TRUE(pfn) << "failed to get function"; in setLayerColor()
436 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, layer, in setLayerColor()
448 auto pfn = reinterpret_cast<HWC2_PFN_SET_LAYER_DATASPACE>( in setLayerDataspace() local
450 ASSERT_TRUE(pfn) << "failed to get function"; in setLayerDataspace()
452 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in setLayerDataspace()
464 auto pfn = reinterpret_cast<HWC2_PFN_SET_LAYER_DISPLAY_FRAME>( in setLayerDisplayFrame() local
466 ASSERT_TRUE(pfn) << "failed to get function"; in setLayerDisplayFrame()
468 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, layer, in setLayerDisplayFrame()
481 auto pfn = reinterpret_cast<HWC2_PFN_SET_LAYER_PLANE_ALPHA>( in setLayerPlaneAlpha() local
483 ASSERT_TRUE(pfn) << "failed to get function"; in setLayerPlaneAlpha()
485 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, layer, in setLayerPlaneAlpha()
498 auto pfn = reinterpret_cast<HWC2_PFN_SET_LAYER_SOURCE_CROP>( in setLayerSourceCrop() local
500 ASSERT_TRUE(pfn) << "failed to get function"; in setLayerSourceCrop()
502 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, layer, in setLayerSourceCrop()
514 auto pfn = reinterpret_cast<HWC2_PFN_SET_LAYER_SURFACE_DAMAGE>( in setLayerSurfaceDamage() local
516 ASSERT_TRUE(pfn) << "failed to get function"; in setLayerSurfaceDamage()
518 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, layer, in setLayerSurfaceDamage()
531 auto pfn = reinterpret_cast<HWC2_PFN_SET_LAYER_TRANSFORM>( in setLayerTransform() local
533 ASSERT_TRUE(pfn) << "failed to get function"; in setLayerTransform()
535 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, layer, in setLayerTransform()
548 auto pfn = reinterpret_cast<HWC2_PFN_SET_LAYER_VISIBLE_REGION>( in setLayerVisibleRegion() local
550 ASSERT_TRUE(pfn) << "failed to get function"; in setLayerVisibleRegion()
552 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, layer, in setLayerVisibleRegion()
565 auto pfn = reinterpret_cast<HWC2_PFN_SET_LAYER_Z_ORDER>( in setLayerZOrder() local
567 ASSERT_TRUE(pfn) << "failed to get function"; in setLayerZOrder()
569 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, layer, in setLayerZOrder()
582 auto pfn = reinterpret_cast<HWC2_PFN_VALIDATE_DISPLAY>( in validateDisplay() local
584 ASSERT_TRUE(pfn) << "failed to get function"; in validateDisplay()
586 *outErr = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in validateDisplay()
612 auto pfn = reinterpret_cast<HWC2_PFN_GET_DISPLAY_REQUESTS>( in getDisplayRequests() local
614 ASSERT_TRUE(pfn) << "failed to get function"; in getDisplayRequests()
618 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in getDisplayRequests()
626 err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in getDisplayRequests()
680 auto pfn = reinterpret_cast<HWC2_PFN_GET_CHANGED_COMPOSITION_TYPES>( in getChangedCompositionTypes() local
682 ASSERT_TRUE(pfn) << "failed to get function"; in getChangedCompositionTypes()
686 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in getChangedCompositionTypes()
693 err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in getChangedCompositionTypes()
780 auto pfn = reinterpret_cast<HWC2_PFN_ACCEPT_DISPLAY_CHANGES>( in acceptDisplayChanges() local
782 ASSERT_TRUE(pfn) << "failed to get function"; in acceptDisplayChanges()
784 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display)); in acceptDisplayChanges()
796 auto pfn = reinterpret_cast<HWC2_PFN_GET_CLIENT_TARGET_SUPPORT>( in getClientTargetSupport() local
798 ASSERT_TRUE(pfn) << "failed to get function"; in getClientTargetSupport()
800 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, width, in getClientTargetSupport()
814 auto pfn = reinterpret_cast<HWC2_PFN_SET_CLIENT_TARGET>( in setClientTarget() local
816 ASSERT_TRUE(pfn) << "failed to get function"; in setClientTarget()
818 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, handle, in setClientTarget()
830 auto pfn = reinterpret_cast<HWC2_PFN_PRESENT_DISPLAY>( in presentDisplay() local
832 ASSERT_TRUE(pfn) << "failed to get function"; in presentDisplay()
834 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in presentDisplay()
847 auto pfn = reinterpret_cast<HWC2_PFN_GET_RELEASE_FENCES>( in getReleaseFences() local
849 ASSERT_TRUE(pfn) << "failed to get function"; in getReleaseFences()
853 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in getReleaseFences()
860 err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in getReleaseFences()
875 auto pfn = reinterpret_cast<HWC2_PFN_GET_COLOR_MODES>( in getColorModes() local
877 ASSERT_TRUE(pfn) << "failed to get function"; in getColorModes()
881 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in getColorModes()
886 err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in getColorModes()
902 auto pfn = reinterpret_cast<HWC2_PFN_SET_COLOR_MODE>( in setColorMode() local
904 ASSERT_TRUE(pfn) << "failed to get function"; in setColorMode()
906 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in setColorMode()
921 auto pfn = reinterpret_cast<HWC2_PFN_GET_HDR_CAPABILITIES>( in getHdrCapabilities() local
923 ASSERT_TRUE(pfn) << "failed to get function"; in getHdrCapabilities()
927 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in getHdrCapabilities()
934 err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, &numTypes, in getHdrCapabilities()
951 auto pfn = reinterpret_cast<HWC2_PFN_SET_COLOR_TRANSFORM>( in setColorTransform() local
953 ASSERT_TRUE(pfn) << "failed to get function"; in setColorTransform()
955 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, in setColorTransform()
970 auto pfn = reinterpret_cast<HWC2_PFN_CREATE_VIRTUAL_DISPLAY>( in createVirtualDisplay() local
972 ASSERT_TRUE(pfn) << "failed to get function"; in createVirtualDisplay()
974 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, width, height, in createVirtualDisplay()
990 auto pfn = reinterpret_cast<HWC2_PFN_DESTROY_VIRTUAL_DISPLAY>( in destroyVirtualDisplay() local
992 ASSERT_TRUE(pfn) << "failed to get function"; in destroyVirtualDisplay()
994 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display)); in destroyVirtualDisplay()
1008 auto pfn = reinterpret_cast<HWC2_PFN_GET_MAX_VIRTUAL_DISPLAY_COUNT>( in getMaxVirtualDisplayCount() local
1010 ASSERT_TRUE(pfn) << "failed to get function"; in getMaxVirtualDisplayCount()
1012 *outMaxCnt = pfn(mHwc2Device); in getMaxVirtualDisplayCount()
1018 auto pfn = reinterpret_cast<HWC2_PFN_SET_OUTPUT_BUFFER>( in setOutputBuffer() local
1020 ASSERT_TRUE(pfn) << "failed to get function"; in setOutputBuffer()
1022 auto err = static_cast<hwc2_error_t>(pfn(mHwc2Device, display, buffer, in setOutputBuffer()
1033 auto pfn = reinterpret_cast<HWC2_PFN_DUMP>( in dump() local
1035 ASSERT_TRUE(pfn) << "failed to get function"; in dump()
1039 pfn(mHwc2Device, &size, nullptr); in dump()
1043 pfn(mHwc2Device, &size, buffer.data()); in dump()
2226 hwc2_function_pointer_t pfn = getFunction(descriptor); in TEST_F() local
2227 EXPECT_TRUE(pfn) << "failed to get function " in TEST_F()
2235 hwc2_function_pointer_t pfn = getFunction(HWC2_FUNCTION_INVALID); in TEST_F() local
2236 EXPECT_FALSE(pfn) << "failed to get invalid function"; in TEST_F()