Equivalent to calling View.setVisibility

@param cacheView  The cache of views to get the view from
@param viewId     The id of the view whose visibility should change
@param visibility The new visibility for the view
349745
public static void setVisibility(EfficientCacheView cacheView, int viewId, int visibility) {
        View view = cacheView.findViewByIdEfficient(viewId);
        if (view != null) {
            view.setVisibility(visibility);
        }
    }
42086
public static void toggleVisibility(View view, int hidingPolicy) {
        int current = view.getVisibility();
        view.setVisibility(current == View.VISIBLE ? hidingPolicy : View.VISIBLE);
    }
1186537
public void setLcdVisible(final boolean VISIBLE) {
        if (null == lcdVisible) {
            _lcdVisible = VISIBLE;
            fireUpdateEvent(VISIBILITY_EVENT);
        } else {
            lcdVisible.set(VISIBLE);
        }
    }
686207
@Override
    public Layer setVisible(final boolean visible)
    {
        super.setVisible(visible);

        getElement().getStyle().setVisibility(visible ? Visibility.VISIBLE : Visibility.HIDDEN);

        return this;
    }
581906
public void showClearView(boolean show) {
        if (mClearView.isShown() != show) {
            mClearView.setVisibility(show ? VISIBLE : INVISIBLE);
        }
    }
606427
public static void hideView(Activity context, int id) {
        if (context != null) {
            View view = context.findViewById(id);
            if (view != null) {
                view.setVisibility(View.GONE);
            } else {
                Log.e("Caffeine", "View does not exist.  Could not hide it.");
            }
        }
    }
718194
@GuardedBy("runningCaches")
   private boolean validateCommandViewId(CacheTopology cacheTopology, int viewId, Address sender,
         String cacheName) {
      if (!sender.equals(transport.getCoordinator())) {
         log.debugf("Ignoring topology %d for cache %s from old coordinator %s",
               cacheTopology.getTopologyId(), cacheName, sender);
         return false;
      }
      if (viewId < latestStatusResponseViewId) {
         log.debugf(
               "Ignoring topology %d for cache %s from view %d received after status request from view %d",
               cacheTopology.getTopologyId(), cacheName, viewId, latestStatusResponseViewId);
         return false;
      }
      return true;
   }
1361300
public void setSecondsVisible(boolean VISIBLE) {
        if (null == secondsVisible) {
            _secondsVisible = VISIBLE;
            fireTileEvent(REDRAW_EVENT);
        } else {
            secondsVisible.set(VISIBLE);
        }
    }
737811
public void setHeaderVisible(boolean visible) {

        String style = I_CmsSitemapLayoutBundle.INSTANCE.sitemapCss().headerContainerVaadinMode();
        if (visible) {
            m_headerContainer.removeStyleName(style);
        } else {
            m_headerContainer.addStyleName(style);
        }
    }
831722
public void setOldValueVisible(final boolean VISIBLE) {
        if (null == oldValueVisible) {
            _oldValueVisible = VISIBLE;
            fireTileEvent(VISIBILITY_EVENT);
        } else {
            oldValueVisible.set(VISIBLE);
        }
    }
1011207
public void setAverageVisible(final boolean VISIBLE) {
        if (null == averageVisible) {
            _averageVisible = VISIBLE;
            fireTileEvent(VISIBILITY_EVENT);
        } else {
            averageVisible.set(VISIBLE);
        }
    }
1052851
public function setDefaultVisibility(string $visibility): void
    {
        if (null === $this->get) {
            $this->get = $visibility;
        }

        if (null === $this->set) {
            $this->set = $visibility;
        }

        if (null === $this->add) {
            $this->add = $visibility;
        }

        if (null !== $this->remove) {
            return;
        }

        $this->remove = $visibility;
    }
1028815
public boolean setViewPortVisibility(final ViewPortVisibility viewportVisibility) {
        boolean visibilityIsChanged = viewportVisibility != mIsVisibleInViewPort;
        if (visibilityIsChanged) {
            Visibility visibility = mVisibility;

            switch(viewportVisibility) {
                case FULLY_VISIBLE:
                case PARTIALLY_VISIBLE:
                    break;
                case INVISIBLE:
                    visibility = Visibility.HIDDEN;
                    break;
            }

            mIsVisibleInViewPort = viewportVisibility;

            updateVisibility(visibility);
        }
        return visibilityIsChanged;
    }
1248867
public static void showView(View parentView, int id) {
        if (parentView != null) {
          View view = parentView.findViewById(id);
          if (view != null) {
              view.setVisibility(View.VISIBLE);
          } else {
              Log.e("Caffeine", "View does not exist.  Could not show it.");
          }
        }
    }
98087
public static <T extends View> ArrayList<T> removeInvisibleViews(Iterable<T> viewList) {
		ArrayList<T> tmpViewList = new ArrayList<T>();
		for (T view : viewList) {
			if (view != null && view.isShown()) {
				tmpViewList.add(view);
			}
		}
		return tmpViewList;
	}
921076
public static void setBackground(EfficientCacheView cacheView, int viewId, Drawable drawable) {
        View view = cacheView.findViewByIdEfficient(viewId);
        if (view != null) {
            if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {
                view.setBackgroundDrawable(drawable);
            } else {
                view.setBackground(drawable);
            }
        }
    }
943131
protected void setVisible(boolean visible) {
        GVRSceneObject sceneObject = gvrCursorController.getCursor();
        if (sceneObject != null && sceneObject.isEnabled() != visible) {
            sceneObject.setEnable(visible);
        }
    }