@Test public void testCreationWithTimeSectionVisible() { AttributeSet attributeSet = Robolectric.buildAttributeSet() .addAttribute(R.attr.visibleSection, "time") .build(); RouteDescriptionItem item = new RouteDescriptionItem(getContextWithTheme(), attributeSet); assertNotNull(item); assertTrue(item.isSectionVisible(RouteDescriptionItem.Section.TIME)); }
public boolean isSectionVisible(final Section section) { return mSections.get(section).getVisibility() == VISIBLE; }
RouteDescriptionItem extends BaseView { public boolean isSectionVisible(final Section section) { return mSections.get(section).getVisibility() == VISIBLE; } }
RouteDescriptionItem extends BaseView { public boolean isSectionVisible(final Section section) { return mSections.get(section).getVisibility() == VISIBLE; } RouteDescriptionItem(final Context context);  RouteDescriptionItem(final Context context, final AttributeSet attrs);  RouteDescriptionItem(final Context context, final AttributeSet attrs, final int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  RouteDescriptionItem(final Context context, final AttributeSet attrs, final int defStyleAttr,
            final int defStyleRes); }
RouteDescriptionItem extends BaseView { public boolean isSectionVisible(final Section section) { return mSections.get(section).getVisibility() == VISIBLE; } RouteDescriptionItem(final Context context);  RouteDescriptionItem(final Context context, final AttributeSet attrs);  RouteDescriptionItem(final Context context, final AttributeSet attrs, final int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  RouteDescriptionItem(final Context context, final AttributeSet attrs, final int defStyleAttr,
            final int defStyleRes); void setSectionVisible(final Section section, final boolean visible); boolean isSectionVisible(final Section section); EnumSet<Section> getVisibleSections(); void setVisibleSections(final EnumSet<Section> sectionEnumSet); boolean isTrafficEnabled(); void setTrafficEnabled(final boolean isTraffic); Route getRoute(); void setRoute(final Route route); float getSectionBarScaling(); void setSectionBarScaling(final float sectionBarScaling); boolean isBikeOrPedestrian(); }
RouteDescriptionItem extends BaseView { public boolean isSectionVisible(final Section section) { return mSections.get(section).getVisibility() == VISIBLE; } RouteDescriptionItem(final Context context);  RouteDescriptionItem(final Context context, final AttributeSet attrs);  RouteDescriptionItem(final Context context, final AttributeSet attrs, final int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  RouteDescriptionItem(final Context context, final AttributeSet attrs, final int defStyleAttr,
            final int defStyleRes); void setSectionVisible(final Section section, final boolean visible); boolean isSectionVisible(final Section section); EnumSet<Section> getVisibleSections(); void setVisibleSections(final EnumSet<Section> sectionEnumSet); boolean isTrafficEnabled(); void setTrafficEnabled(final boolean isTraffic); Route getRoute(); void setRoute(final Route route); float getSectionBarScaling(); void setSectionBarScaling(final float sectionBarScaling); boolean isBikeOrPedestrian();  }