WifiInfo: Allow usage of redaction mechanism on R devices

1. Uses the new NetworkCapabilities.REDACT* constants directly even on R
devices (since SDK int's are statically linked to the module).
2. Removed some hacks added for aiding in landing the
NetworkCapabilities CL in aosp/master first.

Bug: 156867433
Bug: 183429728
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Change-Id: I7c0e45736a986ab33055dfc0f43cad2c5aa8343a
4 files changed