OSDN Git Service

CEC: Remove listener records only if they are currently used
authorDonghyun Cho <donghyun@google.com>
Fri, 15 Apr 2016 00:12:03 +0000 (09:12 +0900)
committerDonghyun Cho <donghyun@google.com>
Fri, 15 Apr 2016 16:47:03 +0000 (16:47 +0000)
commitfbbeb3e54a73e0fa7dbd5c2c1093705e69ae27da
tree9eebed8608c38c1cdef685aa0f1f6748a1c06cce
parent067f821ec84d3bcb556a8de77f3e3d3b8c042186
CEC: Remove listener records only if they are currently used

HdmiControlService manages listeners in listener record instances, and
remove them when binders become disconnected. However, if the listener
and its record are replaced due to new listener, the record for the new
listener should not be set as null by previous binder's disconnection
signal.

Bug: 28069465
Change-Id: I2984d8f93d6443048cf5d3f2988b3c6cf362f012
(cherry picked from commit f5c2a1f58dc95b9800ffb6ebf405c11acc6626b2)
services/core/java/com/android/server/hdmi/HdmiControlService.java