question: private void updatePanelForMaximization ( float percentage ) { float promoVisibilityPercentage = isFullscreenSizePanel ( ) ? 1.f - percentage : 1.f ; updatePromoVisibility ( promoVisibilityPercentage ) ; mBasePageY = getBasePageTargetY ( ) ; float brightness = MathUtils . interpolate ( BASE_PAGE_BRIGHTNESS_STATE_EXPANDED , BASE_PAGE_BRIGHTNESS_STATE_MAXIMIZED , percentage ) ; mBasePageBrightness = brightness ; float searchBarHeight = Math . round ( MathUtils . interpolate ( getSearchBarHeightExpanded ( ) , getSearchBarHeightMaximized ( ) , percentage ) ) ; mSearchBarHeight = searchBarHeight ; mIsSearchBarBorderVisible = true ; mSearchBarBorderY = searchBarHeight - SEARCH_BAR_BORDER_HEIGHT_DP + 1 ; mSearchBarTextOpacity = 1.f ; float fadingOutPercentage = percentage ; float fadingInPercentage = percentage ; if ( mSearchPanelFeatures . isCloseButtonAvailable ( ) ) { fadingOutPercentage = Math . min ( percentage , .5f ) / .5f ; fadingInPercentage = Math . max ( percentage - .5f , 0.f ) / .5f ; } float searchIconOpacity = MathUtils . interpolate ( SEARCH_ICON_OPACITY_STATE_EXPANDED , SEARCH_ICON_OPACITY_STATE_MAXIMIZED , fadingInPercentage ) ; mSearchIconOpacity = searchIconOpacity ; mArrowIconOpacity = MathUtils . interpolate ( ARROW_ICON_OPACITY_STATE_EXPANDED , ARROW_ICON_OPACITY_STATE_MAXIMIZED , fadingOutPercentage ) ; mArrowIconRotation = ARROW_ICON_ROTATION_STATE_EXPANDED ; mCloseIconOpacity = MathUtils . interpolate ( CLOSE_ICON_OPACITY_STATE_EXPANDED , CLOSE_ICON_OPACITY_STATE_MAXIMIZED , fadingInPercentage ) ; mProgressBarOpacity = 1.f ; mProgressBarY = searchBarHeight - PROGRESS_BAR_HEIGHT_DP + 1 ; updateSearchBarShadow ( ) ; }
target:  Updates the UI state for the expanded to maximized transition (and vice versa), according to a completion |percentage|.