OSDN Git Service

Return existing interfaces for repeated getExtension calls
authorHridya Valsaraju <hridya@google.com>
Thu, 16 Feb 2017 04:31:18 +0000 (20:31 -0800)
committerHridya Valsaraju <hridya@google.com>
Tue, 21 Feb 2017 15:51:20 +0000 (07:51 -0800)
commite020ce28f2deb46db8081a40174ba95d500504d5
treeb2094f9ddc8a08ab3dfffd1a5aa52d0b81c10b3a
parentb072973166f495926072ce31d790294ee6c8b2c1
Return existing interfaces for repeated getExtension calls

Also, reset static state in destructors of interfaces.

Until now, new interfaces were being created for each repeated
getExtension() call to the Gnss interface. This was causing
asserts to fail which were checking for multiple
simultaneous instances of these interfaces.

Death notifications should still required to be created for all
interfaces including callback interfaces.

Bug: 35391416
Test: Verified that Maps still work after forcing a system_server
crash.

Change-Id: I8ce0888016637a3d9b62db5619a3c8c569262c0d
gnss/1.0/default/AGnss.cpp
gnss/1.0/default/AGnssRil.cpp
gnss/1.0/default/Gnss.cpp
gnss/1.0/default/GnssBatching.cpp
gnss/1.0/default/GnssGeofencing.cpp
gnss/1.0/default/GnssMeasurement.cpp
gnss/1.0/default/GnssNavigationMessage.cpp
gnss/1.0/default/GnssNi.cpp
gnss/1.0/default/GnssXtra.cpp