172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project/* 272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * Copyright (C) 2007 Esmertec AG. 372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * Copyright (C) 2007 The Android Open Source Project 472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * 572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * Licensed under the Apache License, Version 2.0 (the "License"); 672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * you may not use this file except in compliance with the License. 772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * You may obtain a copy of the License at 872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * 972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * http://www.apache.org/licenses/LICENSE-2.0 1072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * 1172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * Unless required by applicable law or agreed to in writing, software 1272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * distributed under the License is distributed on an "AS IS" BASIS, 1372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * See the License for the specific language governing permissions and 1572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * limitations under the License. 1672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project */ 1772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 1872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Projectpackage com.android.mms.dom.smil; 1972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 2072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Projectimport java.util.ArrayList; 2172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 2272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Projectimport org.w3c.dom.DOMException; 2372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Projectimport org.w3c.dom.NodeList; 2472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Projectimport org.w3c.dom.events.DocumentEvent; 2572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Projectimport org.w3c.dom.events.Event; 2672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Projectimport org.w3c.dom.smil.ElementParallelTimeContainer; 2772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Projectimport org.w3c.dom.smil.ElementTime; 2872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Projectimport org.w3c.dom.smil.SMILParElement; 2972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Projectimport org.w3c.dom.smil.Time; 3072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Projectimport org.w3c.dom.smil.TimeList; 3172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 3272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Projectpublic class SmilParElementImpl extends SmilElementImpl implements SMILParElement { 3372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public final static String SMIL_SLIDE_START_EVENT = "SmilSlideStart"; 3472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public final static String SMIL_SLIDE_END_EVENT = "SmilSlideEnd"; 3572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 3672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project ElementParallelTimeContainer mParTimeContainer = 3772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project new ElementParallelTimeContainerImpl(this) { 3872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project @Override 3972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public TimeList getBegin() { 4072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project /* 4172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * For children of a sequence, the only legal value for begin is 4272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * a (single) non-negative offset value. 4372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project */ 4472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project TimeList beginTimeList = super.getBegin(); 4572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project if (beginTimeList.getLength() > 1) { 4672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project ArrayList<Time> singleTimeContainer = new ArrayList<Time>(); 4772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project singleTimeContainer.add(beginTimeList.item(0)); 4872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project beginTimeList = new TimeListImpl(singleTimeContainer); 4972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 5072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return beginTimeList; 5172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 5272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 5372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public NodeList getTimeChildren() { 5472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return getChildNodes(); 5572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 5672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 5772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public boolean beginElement() { 5872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project DocumentEvent doc = (DocumentEvent) SmilParElementImpl.this.getOwnerDocument(); 5972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project Event startEvent = doc.createEvent("Event"); 6072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project startEvent.initEvent(SMIL_SLIDE_START_EVENT, false, false); 6172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project dispatchEvent(startEvent); 6272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return true; 6372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 6472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 6572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public boolean endElement() { 6672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project DocumentEvent doc = (DocumentEvent) SmilParElementImpl.this.getOwnerDocument(); 6772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project Event endEvent = doc.createEvent("Event"); 6872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project endEvent.initEvent(SMIL_SLIDE_END_EVENT, false, false); 6972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project dispatchEvent(endEvent); 7072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return true; 7172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 7272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 7372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public void pauseElement() { 7472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project // TODO Auto-generated method stub 7572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 7672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 7772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 7872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public void resumeElement() { 7972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project // TODO Auto-generated method stub 8072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 8172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 8272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 8372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public void seekElement(float seekTo) { 8472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project // TODO Auto-generated method stub 8572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 8672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 8772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 8872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project ElementTime getParentElementTime() { 8972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return ((SmilDocumentImpl) mSmilElement.getOwnerDocument()).mSeqTimeContainer; 9072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 9172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project }; 9272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 9372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project /* 9472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * Internal Interface 9572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project */ 9672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 9772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project SmilParElementImpl(SmilDocumentImpl owner, String tagName) 9872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project { 9972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project super(owner, tagName.toUpperCase()); 10072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 10172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 10272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project int getBeginConstraints() { 10372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project /* 10472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * For children of a sequence, the only legal value for begin is 10572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * a (single) non-negative offset value. 10672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project */ 10772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return (TimeImpl.ALLOW_OFFSET_VALUE); // Do not set ALLOW_NEGATIVE_VALUE 10872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 10972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 11072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project /* 11172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project * ElementParallelTimeContainer 11272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project */ 11372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 11472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public String getEndSync() { 11572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return mParTimeContainer.getEndSync(); 11672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 11772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 11872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public float getImplicitDuration() { 11972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return mParTimeContainer.getImplicitDuration(); 12072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 12172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 12272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public void setEndSync(String endSync) throws DOMException { 12372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project mParTimeContainer.setEndSync(endSync); 12472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 12572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 12672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public NodeList getActiveChildrenAt(float instant) { 12772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return mParTimeContainer.getActiveChildrenAt(instant); 12872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 12972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 13072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public NodeList getTimeChildren() { 13172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return mParTimeContainer.getTimeChildren(); 13272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 13372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 13472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public boolean beginElement() { 13572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return mParTimeContainer.beginElement(); 13672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 13772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 13872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public boolean endElement() { 13972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return mParTimeContainer.endElement(); 14072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 14172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 14272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public TimeList getBegin() { 14372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return mParTimeContainer.getBegin(); 14472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 14572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 14672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public float getDur() { 14772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return mParTimeContainer.getDur(); 14872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 14972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 15072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public TimeList getEnd() { 15172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return mParTimeContainer.getEnd(); 15272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 15372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 15472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public short getFill() { 15572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return mParTimeContainer.getFill(); 15672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 15772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 15872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public short getFillDefault() { 15972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return mParTimeContainer.getFillDefault(); 16072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 16172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 16272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public float getRepeatCount() { 16372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return mParTimeContainer.getRepeatCount(); 16472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 16572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 16672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public float getRepeatDur() { 16772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return mParTimeContainer.getRepeatDur(); 16872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 16972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 17072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public short getRestart() { 17172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project return mParTimeContainer.getRestart(); 17272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 17372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 17472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public void pauseElement() { 17572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project mParTimeContainer.pauseElement(); 17672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 17772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 17872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public void resumeElement() { 17972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project mParTimeContainer.resumeElement(); 18072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 18172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 18272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public void seekElement(float seekTo) { 18372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project mParTimeContainer.seekElement(seekTo); 18472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 18572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 18672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public void setBegin(TimeList begin) throws DOMException { 18772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project mParTimeContainer.setBegin(begin); 18872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 18972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 19072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public void setDur(float dur) throws DOMException { 19172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project mParTimeContainer.setDur(dur); 19272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 19372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 19472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public void setEnd(TimeList end) throws DOMException { 19572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project mParTimeContainer.setEnd(end); 19672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 19772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 19872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public void setFill(short fill) throws DOMException { 19972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project mParTimeContainer.setFill(fill); 20072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 20172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 20272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public void setFillDefault(short fillDefault) throws DOMException { 20372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project mParTimeContainer.setFillDefault(fillDefault); 20472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 20572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 20672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public void setRepeatCount(float repeatCount) throws DOMException { 20772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project mParTimeContainer.setRepeatCount(repeatCount); 20872735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 20972735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 21072735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public void setRepeatDur(float repeatDur) throws DOMException { 21172735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project mParTimeContainer.setRepeatDur(repeatDur); 21272735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 21372735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project 21472735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project public void setRestart(short restart) throws DOMException { 21572735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project mParTimeContainer.setRestart(restart); 21672735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project } 21772735c62aba8fd2a9420a0f9f83d22543e3c164fThe Android Open Source Project} 218