OSDN Git Service

Lock all the things
authorJulia Reynolds <juliacr@google.com>
Tue, 18 Apr 2017 13:28:22 +0000 (09:28 -0400)
committerJulia Reynolds <juliacr@google.com>
Tue, 18 Apr 2017 18:12:16 +0000 (14:12 -0400)
commitfeb7341b2f49059812c53bf53ae23698f719d1e1
tree9486812137d7c4c0d84cbfc68343d9b1e42a8800
parent2ed861d560defda9d43081f2cb35f3112cce2092
Lock all the things

Fix some instances of .*Locked() methods being called without
holding mNotificationLock.

Also, if this happens again, don't crash system server

Change-Id: I0a51310a6f6c8b07266092176e189e7cd08778cc
Fixes: 37444864
Test: runtest systemui-notification
services/core/java/com/android/server/notification/GlobalSortKeyComparator.java
services/core/java/com/android/server/notification/NotificationManagerService.java
services/tests/notification/src/com/android/server/notification/GlobalSortKeyComparatorTest.java [new file with mode: 0644]