Merge "Avoid deadlock during boot up" into rvc-qpr-dev
This commit is contained in:
@@ -5359,15 +5359,6 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
||||
return mAmInternal.isBackgroundActivityStartsEnabled();
|
||||
}
|
||||
|
||||
void enableScreenAfterBoot(boolean booted) {
|
||||
writeBootProgressEnableScreen(SystemClock.uptimeMillis());
|
||||
mWindowManager.enableScreenAfterBoot();
|
||||
|
||||
synchronized (mGlobalLock) {
|
||||
updateEventDispatchingLocked(booted);
|
||||
}
|
||||
}
|
||||
|
||||
static long getInputDispatchingTimeoutLocked(ActivityRecord r) {
|
||||
if (r == null || !r.hasProcess()) {
|
||||
return KEY_DISPATCHING_TIMEOUT_MS;
|
||||
@@ -6453,9 +6444,9 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
||||
|
||||
@Override
|
||||
public void enableScreenAfterBoot(boolean booted) {
|
||||
writeBootProgressEnableScreen(SystemClock.uptimeMillis());
|
||||
mWindowManager.enableScreenAfterBoot();
|
||||
synchronized (mGlobalLock) {
|
||||
writeBootProgressEnableScreen(SystemClock.uptimeMillis());
|
||||
mWindowManager.enableScreenAfterBoot();
|
||||
updateEventDispatchingLocked(booted);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user