summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2022-01-20 01:56:26 +0000
committerMichael Wright <michaelwr@google.com>2022-01-20 01:56:26 +0000
commitbe9ebef02cdaf289e82fe609eb0cb84ea8cee18b (patch)
tree2a02289d2379572a8ca68470f1b4641d3962c6d2 /core/java/android/inputmethodservice/InputMethodService.java
parent1d7496bcde073fc1cdac74b831c172162abfb725 (diff)
Defer sleeping / waking the device on device state changes.
This is really a short-term hack to unblock development. The display SyncRoot is above the power lock in the system lock order, which means the current code is thoeretically safe. Unfortunately, in practice it isn't since a a couple releases ago when DisplayManagerService started grabbing the SyncRoot while PowerManagerService called into it. Given how much has grown on top of that change, it's somewhat difficult to quickly untangle in order to get everything back into a safe state. In the interim, deferring these calls removes the one place where we have the lock inversion happen consistently, putting everything back to how it's worked for the last couple releases Bug: 214872018 Test: manual fold + unfold, no ANRs Change-Id: I8bc242dec91f59b96b1c3ed7bcf929d0798d4ba3
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions