Home | History | Annotate | Download | only in media

Lines Matching refs:component

31     private final ArrayList<Component> mComponents = new ArrayList<Component>();
35 private Component mTouchItem = null;
46 mComponents.add(new Component(icon, label, action, 0));
55 final Component component = mComponents.get(i);
56 if (component != null) {
57 if (component.animatedIcons != null) {
58 component.animatedIcons = null;
61 component.animatedIcons = icons;
71 Component component = popLabel();
72 if (component != null) {
73 pushLabel(component.icon, label, component.action);
78 final ArrayList<Component> components = mComponents;
84 Component retVal = components.get(lastIndex);
89 public Component popLabel() {
90 final ArrayList<Component> components = mComponents;
96 Component retVal = components.get(lastIndex);
102 private static final class Component {
114 Component(int icon, String label, Runnable action, float widthLeft) {
164 Component component = mComponents.get(i);
165 if (component == null)
167 float iconWidth = (component.icon == 0) ? 0 : component.getIconWidth();
172 float thisComponentWidth = (i != numComponents - 1) ? iconWidth + offset : component.texture.computeTextWidth()
174 component.width = thisComponentWidth;
186 Component component = mComponents.get(i);
187 retVal |= component.update(timeElapsed);
205 Component component = mComponents.get(i);
206 component.x = x;
207 // Draw the left join if not the first component, and the fill.
209 final int width = (int) component.animWidth;
225 final int[] icons = component.animatedIcons;
228 final int iconId = (icons != null && icons.length > 0) ? icons[(int) (component.timeElapsed * 20.0f) % icons.length]
229 : component.icon;
236 final StringTexture texture = component.texture;
238 float iconWidth = component.getIconWidth();
249 private Component hitTestItems(float x, float y) {
254 final Component component = mComponents.get(i);
255 float componentx = component.x;
256 if (x >= componentx && x < componentx + component.width) {
257 return component;
292 Component component = mComponents.get(i);
293 width -= (component.getIconWidth() + 20.0f * App.PIXEL_DENSITY);
294 component.computeLabel(width);