Lines Matching refs:animation

691 bool BootAnimation::parseAnimationDesc(Animation& animation)  in parseAnimationDesc()  argument
695 if (!readFile(animation.zip, "desc.txt", desString)) { in parseAnimationDesc()
719 animation.width = width; in parseAnimationDesc()
720 animation.height = height; in parseAnimationDesc()
721 animation.fps = fps; in parseAnimationDesc()
732 part.animation = nullptr; in parseAnimationDesc()
740 animation.parts.add(part); in parseAnimationDesc()
749 part.animation = loadAnimation(String8(SYSTEM_BOOTANIMATION_FILE)); in parseAnimationDesc()
750 if (part.animation != nullptr) in parseAnimationDesc()
751 animation.parts.add(part); in parseAnimationDesc()
759 bool BootAnimation::preloadZip(Animation& animation) in preloadZip() argument
762 const size_t pcount = animation.parts.size(); in preloadZip()
764 ZipFileRO* zip = animation.zip; in preloadZip()
785 animation.clockFont.map = map; in preloadZip()
791 if (path == animation.parts[j].path) { in preloadZip()
798 Animation::Part& part(animation.parts.editItemAt(j)); in preloadZip()
810 frame.trimWidth = animation.width; in preloadZip()
811 frame.trimHeight = animation.height; in preloadZip()
827 for (Animation::Part& part : animation.parts) { in preloadZip()
869 if (part.animation != nullptr) { in movie()
870 mCallbacks->init(part.animation->parts); in movie()
944 bool BootAnimation::playAnimation(const Animation& animation) in playAnimation() argument
946 const size_t pcount = animation.parts.size(); in playAnimation()
947 nsecs_t frameDuration = s2ns(1) / animation.fps; in playAnimation()
948 const int animationX = (mWidth - animation.width) / 2; in playAnimation()
949 const int animationY = (mHeight - animation.height) / 2; in playAnimation()
954 const Animation::Part& part(animation.parts[i]); in playAnimation()
959 if (part.animation != nullptr) { in playAnimation()
960 playAnimation(*part.animation); in playAnimation()
1016 drawClock(animation.clockFont, part.clockPosX, part.clockPosY); in playAnimation()
1050 for (const Animation::Part& part : animation.parts) { in playAnimation()
1105 void BootAnimation::releaseAnimation(Animation* animation) const in releaseAnimation()
1107 for (Vector<Animation::Part>::iterator it = animation->parts.begin(), in releaseAnimation()
1108 e = animation->parts.end(); it != e; ++it) { in releaseAnimation()
1109 if (it->animation) in releaseAnimation()
1110 releaseAnimation(it->animation); in releaseAnimation()
1112 if (animation->zip) in releaseAnimation()
1113 delete animation->zip; in releaseAnimation()
1114 delete animation; in releaseAnimation()
1131 Animation *animation = new Animation; in loadAnimation() local
1132 animation->fileName = fn; in loadAnimation()
1133 animation->zip = zip; in loadAnimation()
1134 animation->clockFont.map = nullptr; in loadAnimation()
1135 mLoadedFiles.add(animation->fileName); in loadAnimation()
1137 parseAnimationDesc(*animation); in loadAnimation()
1138 if (!preloadZip(*animation)) { in loadAnimation()
1144 return animation; in loadAnimation()