From 86fc4f34dfc0070d8e587e2af323f1e8b54f933d Mon Sep 17 00:00:00 2001 From: Svetoslav Ganov Date: Thu, 22 Feb 2018 00:29:30 -0800 Subject: Don't block long time gettng system service Test: run google/template/local --template:map test google/continuous/boot-successive --no-first-boot --successive-boot --boot-count 10 --granular-boot-info -f SystemServerTiming_StartServices,SystemServerTiming_StartAudioService bug:72322854 Change-Id: Ie287e0a8f1ed10f9a535b489cef6f3db184e41cb --- libs/binder/ActivityManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/binder/ActivityManager.cpp b/libs/binder/ActivityManager.cpp index 7724bf151e..e1cc5da2e9 100644 --- a/libs/binder/ActivityManager.cpp +++ b/libs/binder/ActivityManager.cpp @@ -15,6 +15,8 @@ */ #include +#include + #include #include #include @@ -44,7 +46,7 @@ sp ActivityManager::getService() service = NULL; break; } - sleep(1); + usleep(25000); } else { service = interface_cast(binder); mService = service; -- cgit v1.2.3-59-g8ed1b