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();
|
return mAmInternal.isBackgroundActivityStartsEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
void enableScreenAfterBoot(boolean booted) {
|
|
||||||
writeBootProgressEnableScreen(SystemClock.uptimeMillis());
|
|
||||||
mWindowManager.enableScreenAfterBoot();
|
|
||||||
|
|
||||||
synchronized (mGlobalLock) {
|
|
||||||
updateEventDispatchingLocked(booted);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static long getInputDispatchingTimeoutLocked(ActivityRecord r) {
|
static long getInputDispatchingTimeoutLocked(ActivityRecord r) {
|
||||||
if (r == null || !r.hasProcess()) {
|
if (r == null || !r.hasProcess()) {
|
||||||
return KEY_DISPATCHING_TIMEOUT_MS;
|
return KEY_DISPATCHING_TIMEOUT_MS;
|
||||||
@@ -6453,9 +6444,9 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enableScreenAfterBoot(boolean booted) {
|
public void enableScreenAfterBoot(boolean booted) {
|
||||||
|
writeBootProgressEnableScreen(SystemClock.uptimeMillis());
|
||||||
|
mWindowManager.enableScreenAfterBoot();
|
||||||
synchronized (mGlobalLock) {
|
synchronized (mGlobalLock) {
|
||||||
writeBootProgressEnableScreen(SystemClock.uptimeMillis());
|
|
||||||
mWindowManager.enableScreenAfterBoot();
|
|
||||||
updateEventDispatchingLocked(booted);
|
updateEventDispatchingLocked(booted);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user