Get NetworkCapabilities from NetworkCallback am: e14573d25e am: 4b3b6d68eb

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1654007

Change-Id: Ia7f09489370f943d9b6c063d819d5b0cdba1510a