OSDN Git Service

[NAN] Update finalize to check and warn user if resources not freed
authorEtan Cohen <etancohen@google.com>
Thu, 11 Aug 2016 21:23:23 +0000 (14:23 -0700)
committerEtan Cohen <etancohen@google.com>
Thu, 18 Aug 2016 17:38:05 +0000 (10:38 -0700)
commit9d55649613f6ea9926c6e6222965178e91cb501b
tree18a93fa6234f691be70de0e4fc6c16b7f60622b2
parent009b1fcb85ab8f8eb4ab5f3e125127b449df77cb
[NAN] Update finalize to check and warn user if resources not freed

Use CloseGuard to check that disconnect() is called to free the resources
allocated by connect(). finalize() will still call disconnect() but now
also print out errors (if StrictMode enabled for feature).

Bug: 28068773
Change-Id: I5f5847c0261ef9f79a21fdb935509a85761591cc
wifi/java/android/net/wifi/nan/WifiNanManager.java
wifi/java/android/net/wifi/nan/WifiNanSession.java