Modify getConferenceParticipants() to return copy of the conference data.
authorTyler Gunn <tgunn@google.com>
Thu, 18 Aug 2016 19:58:26 +0000 (12:58 -0700)
committerTyler Gunn <tgunn@google.com>
Thu, 18 Aug 2016 19:58:26 +0000 (12:58 -0700)
commit3a3d8ebcc536dea3fbda0b27ac257523a0a0f8a7
treeca7e5fd230cc10ca6b7b283b119152be9130af57
parent385640ea7693db2ebaf42e1a2ad65d8af2ed5d69
Modify getConferenceParticipants() to return copy of the conference data.

In ImsConference#updateConferenceAfterCreation, getConferenceParticipants
is called to get a copy of the CEP data.  This, however, happens on a
different thread than the update of that data.

The ImsCall#getConferenceParticipants() method already synchronizes the
return of the data on a lock which would prevent it from being updated
while the "get" method is called, however, once the reference is returned
there is no guarantee the underlying list won't be changed.

Bug: 30861872
Change-Id: I27a1aa35299d36588c73bc47710e129e5e537a6a
src/java/com/android/ims/ImsCall.java