diff options
author | 2017-10-25 13:55:49 +0900 | |
---|---|---|
committer | 2022-03-03 07:40:43 +0000 | |
commit | 9ef19b85cbc8ccc55ef8607c9420967443b20461 (patch) | |
tree | 56bc7c23726d134964c8820cb553a4ef50106c59 /cmds/bootanimation/BootAnimation.cpp | |
parent | 853b6f6ede920dffcdbd7f09c603e643ac254a13 (diff) |
Add additional logs for bootanimation
The information will be printed
- Message if no animation file
- File name when it's loaded
- Image name and path, loop information when playing
- Play time at the end
Bug: 220161782
Test: Manual, check logcat with and without bootanimation.zip
Change-Id: I0e16bdeb4456a423649a27f7ae88f256e3fa3d19
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r-- | cmds/bootanimation/BootAnimation.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 30a8a8e72437..52fd7be0d768 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp @@ -764,6 +764,7 @@ bool BootAnimation::threadLoop() { // We have no bootanimation file, so we use the stock android logo // animation. if (mZipFileName.isEmpty()) { + ALOGD("No animation file"); result = android(); } else { result = movie(); @@ -1474,6 +1475,10 @@ bool BootAnimation::playAnimation(const Animation& animation) { part.backgroundColor[2], 1.0f); + ALOGD("Playing files = %s/%s, Requested repeat = %d, playUntilComplete = %s", + animation.fileName.string(), part.path.string(), part.count, + part.playUntilComplete ? "true" : "false"); + // For the last animation, if we have progress indicator from // the system, display it. int currentProgress = android::base::GetIntProperty(PROGRESS_PROP_NAME, 0); @@ -1607,6 +1612,9 @@ bool BootAnimation::playAnimation(const Animation& animation) { } } + ALOGD("%sAnimationShownTiming End time: %" PRId64 "ms", mShuttingDown ? "Shutdown" : "Boot", + elapsedRealtime()); + return true; } @@ -1682,6 +1690,8 @@ BootAnimation::Animation* BootAnimation::loadAnimation(const String8& fn) { return nullptr; } + ALOGD("%s is loaded successfully", fn.string()); + Animation *animation = new Animation; animation->fileName = fn; animation->zip = zip; |