sendNetworkScore: Make backwards compatible

sendNetworkScore(NetworkScore) is new in S, and
unavailable in R, which causes a crash when the
Wifi module is installed on R.

To fix, call sendNetworkScore(int) on R devices.

Bug: 183902758
Test: atest FrameworksWifiTests on R & S
Test: sideload Wifi module on R, device can connect
      to Wifi.
Change-Id: I419bfb70397da54afbb2b4b008cfbed8134bece3
2 files changed