question: boolean shouldAnimateSearchProviderIcon ( SelectionType selectionType , boolean isShowing ) { if ( isShowing || ContextualSearchFieldTrial . areExtraSearchBarAnimationsDisabled ( ) ) { return false ; } if ( selectionType == SelectionType . TAP ) { long currentTimeMillis = System . currentTimeMillis ( ) ; long lastAnimatedTimeMillis = mPreferenceManager . getContextualSearchLastAnimationTime ( ) ; if ( Math . abs ( currentTimeMillis - lastAnimatedTimeMillis ) > ONE_DAY_IN_MILLIS ) { mPreferenceManager . setContextualSearchLastAnimationTime ( currentTimeMillis ) ; return true ; } else { return false ; } } else if ( selectionType == SelectionType . LONG_PRESS ) { return getPromoOpenCount ( ) == 0 ; } return false ; }
target:  The search provider icon is animated every time on long press if the user has never opened the panel before and once a day on tap.