Lines Matching refs:part
917 bool BootAnimation::validClock(const Animation::Part& part) { in validClock() argument
918 return part.clockPosX != TEXT_MISSING_VALUE && part.clockPosY != TEXT_MISSING_VALUE; in validClock()
1209 Animation::Part part; in parseAnimationDesc() local
1212 part.useDynamicColoring = true; in parseAnimationDesc()
1213 part.postDynamicColoring = false; in parseAnimationDesc()
1217 part.useDynamicColoring = false; in parseAnimationDesc()
1218 part.postDynamicColoring = postDynamicColoring; in parseAnimationDesc()
1220 part.playUntilComplete = pathType == 'c'; in parseAnimationDesc()
1221 part.framesToFadeCount = framesToFadeCount; in parseAnimationDesc()
1222 part.count = count; in parseAnimationDesc()
1223 part.pause = pause; in parseAnimationDesc()
1224 part.path = path; in parseAnimationDesc()
1225 part.audioData = nullptr; in parseAnimationDesc()
1226 part.animation = nullptr; in parseAnimationDesc()
1227 if (!parseColor(color, part.backgroundColor)) { in parseAnimationDesc()
1229 part.backgroundColor[0] = 0.0f; in parseAnimationDesc()
1230 part.backgroundColor[1] = 0.0f; in parseAnimationDesc()
1231 part.backgroundColor[2] = 0.0f; in parseAnimationDesc()
1233 parsePosition(clockPos1, clockPos2, &part.clockPosX, &part.clockPosY); in parseAnimationDesc()
1234 animation.parts.add(part); in parseAnimationDesc()
1238 Animation::Part part; in parseAnimationDesc() local
1239 part.playUntilComplete = false; in parseAnimationDesc()
1240 part.framesToFadeCount = 0; in parseAnimationDesc()
1241 part.count = 1; in parseAnimationDesc()
1242 part.pause = 0; in parseAnimationDesc()
1243 part.audioData = nullptr; in parseAnimationDesc()
1244 part.animation = loadAnimation(String8(SYSTEM_BOOTANIMATION_FILE)); in parseAnimationDesc()
1245 if (part.animation != nullptr) in parseAnimationDesc()
1246 animation.parts.add(part); in parseAnimationDesc()
1300 Animation::Part& part(animation.parts.editItemAt(j)); in preloadZip() local
1303 part.audioData = (uint8_t *)map->getDataPtr(); in preloadZip()
1304 part.audioLength = map->getDataLength(); in preloadZip()
1306 part.trimData.setTo((char const*)map->getDataPtr(), in preloadZip()
1316 part.frames.add(frame); in preloadZip()
1329 for (Animation::Part& part : animation.parts) { in preloadZip()
1330 const char* trimDataStr = part.trimData.string(); in preloadZip()
1331 for (size_t frameIdx = 0; frameIdx < part.frames.size(); frameIdx++) { in preloadZip()
1342 Animation::Frame& frame(part.frames.editItemAt(frameIdx)); in preloadZip()
1369 for (const Animation::Part& part : mAnimation->parts) { in movie() local
1370 if (part.animation != nullptr) { in movie()
1371 mCallbacks->init(part.animation->parts); in movie()
1450 bool BootAnimation::shouldStopPlayingPart(const Animation::Part& part, in shouldStopPlayingPart() argument
1454 return exitPending() && !part.playUntilComplete && fadedFramesCount >= part.framesToFadeCount && in shouldStopPlayingPart()
1524 const Animation::Part& part(animation.parts[i]); in playAnimation() local
1525 const size_t fcount = part.frames.size(); in playAnimation()
1528 if (part.animation != nullptr) { in playAnimation()
1529 playAnimation(*part.animation); in playAnimation()
1536 for (int r=0 ; !part.count || r<part.count || fadedFramesCount > 0 ; r++) { in playAnimation()
1537 if (shouldStopPlayingPart(part, fadedFramesCount, lastDisplayedProgress)) break; in playAnimation()
1542 && (part.useDynamicColoring || part.postDynamicColoring)) { in playAnimation()
1549 if (part.postDynamicColoring) { in playAnimation()
1556 mCallbacks->playPart(i, part, r); in playAnimation()
1559 part.backgroundColor[0], in playAnimation()
1560 part.backgroundColor[1], in playAnimation()
1561 part.backgroundColor[2], in playAnimation()
1565 animation.fileName.string(), part.path.string(), part.count, in playAnimation()
1566 part.playUntilComplete ? "true" : "false"); in playAnimation()
1575 if (shouldStopPlayingPart(part, fadedFramesCount, lastDisplayedProgress)) break; in playAnimation()
1583 float colorProgress = part.useDynamicColoring in playAnimation()
1587 : (part.postDynamicColoring ? 1 : 0); in playAnimation()
1596 const Animation::Frame& frame(part.frames[j]); in playAnimation()
1623 if (exitPending() && part.hasFadingPhase()) { in playAnimation()
1624 fade = static_cast<float>(++fadedFramesCount) / part.framesToFadeCount; in playAnimation()
1625 if (fadedFramesCount >= part.framesToFadeCount) { in playAnimation()
1639 if (mClockEnabled && mTimeIsAccurate && validClock(part)) { in playAnimation()
1640 drawClock(animation.clockFont, part.clockPosX, part.clockPosY); in playAnimation()
1682 int pauseDuration = part.pause * ns2us(frameDuration); in playAnimation()
1694 if (exitPending() && !part.count && mCurrentInset >= mTargetInset && in playAnimation()
1695 !part.hasFadingPhase()) { in playAnimation()
1706 for (const Animation::Part& part : animation.parts) { in playAnimation() local
1707 if (part.count != 1) { in playAnimation()
1708 const size_t fcount = part.frames.size(); in playAnimation()
1710 const Animation::Frame& frame(part.frames[j]); in playAnimation()