Lines Matching refs:part
560 Animation::Part part;
561 part.playUntilComplete = pathType == 'c';
562 part.count = count;
563 part.pause = pause;
564 part.path = path;
565 part.clockPosY = clockPosY;
566 part.audioData = NULL;
567 part.animation = NULL;
568 if (!parseColor(color, part.backgroundColor)) {
570 part.backgroundColor[0] = 0.0f;
571 part.backgroundColor[1] = 0.0f;
572 part.backgroundColor[2] = 0.0f;
574 animation.parts.add(part);
578 Animation::Part part;
579 part.playUntilComplete = false;
580 part.count = 1;
581 part.pause = 0;
582 part.audioData = NULL;
583 part.animation = loadAnimation(String8(SYSTEM_BOOTANIMATION_FILE));
584 if (part.animation != NULL)
585 animation.parts.add(part);
603 Animation::Part* partWithAudio = NULL;
625 Animation::Part& part(animation.parts.editItemAt(j));
627 // a part may have at most one audio file
628 part.audioData = (uint8_t *)map->getDataPtr();
629 part.audioLength = map->getDataLength();
630 partWithAudio = ∂
632 part.trimData.setTo((char const*)map->getDataPtr(),
642 part.frames.add(frame);
655 for (Animation::Part& part : animation.parts) {
656 const char* trimDataStr = part.trimData.string();
657 for (size_t frameIdx = 0; frameIdx < part.frames.size(); frameIdx++) {
659 // No more trimData for this part.
668 Animation::Frame& frame(part.frames.editItemAt(frameIdx));
774 const Animation::Part& part(animation.parts[i]);
775 const size_t fcount = part.frames.size();
779 if (part.animation != NULL) {
780 playAnimation(*part.animation);
783 continue; //to next part
786 for (int r=0 ; !part.count || r<part.count ; r++) {
788 if(exitPending() && !part.playUntilComplete)
791 // only play audio file the first time we animate the part
792 if (r == 0 && part.audioData && playSoundsAllowed()) {
793 ALOGD("playing clip for part%d, size=%d", (int) i, part.audioLength);
794 audioplay::playClip(part.audioData, part.audioLength);
798 part.backgroundColor[0],
799 part.backgroundColor[1],
800 part.backgroundColor[2],
803 for (size_t j=0 ; j<fcount && (!exitPending() || part.playUntilComplete) ; j++) {
804 const Animation::Frame& frame(part.frames[j]);
810 if (part.count != 1) {
838 if (mClockEnabled && mTimeIsAccurate && part.clockPosY >= 0) {
839 drawTime(mClock, part.clockPosY);
862 usleep(part.pause * ns2us(frameDuration));
865 if(exitPending() && !part.count)
872 for (const Animation::Part& part : animation.parts) {
873 if (part.count != 1) {
874 const size_t fcount = part.frames.size();
876 const Animation::Frame& frame(part.frames[j]);
891 for (Vector<Animation::Part>::iterator it = animation->parts.begin(),