Merge "do not start shutdown animation from init" am: 84d43c8df7 am: 76a3b3ce5c

am: a15436569f

Change-Id: I5fea05ff1c4d5cfb2d50b9aab7805d229c43d89b
This commit is contained in:
Keun-young Park 2017-04-26 21:27:01 +00:00 committed by android-build-merger
commit b549370bf3
1 changed files with 0 additions and 9 deletions

View File

@ -345,18 +345,9 @@ void DoReboot(unsigned int cmd, const std::string& reason, const std::string& re
Service* bootAnim = ServiceManager::GetInstance().FindServiceByName("bootanim");
Service* surfaceFlinger = ServiceManager::GetInstance().FindServiceByName("surfaceflinger");
if (bootAnim != nullptr && surfaceFlinger != nullptr && surfaceFlinger->IsRunning()) {
property_set("service.bootanim.exit", "0");
// Could be in the middle of animation. Stop and start so that it can pick
// up the right mode.
bootAnim->Stop();
// start all animation classes if stopped.
ServiceManager::GetInstance().ForEachServiceInClass("animation", [](Service* s) {
s->Start();
s->SetShutdownCritical(); // will not check animation class separately
});
bootAnim->Start();
surfaceFlinger->SetShutdownCritical();
bootAnim->SetShutdownCritical();
}
// optional shutdown step