[CS09]Remove hidden API usage of NetworkRequest

The connection service will become the mainline module.
So, need to remove the hidden API usage of NetworkRequest.
The NetworkRequest.type(TRACK_DEFAULT) is no longer sent
to the factories. So, remove the (TRACK_DEFAULT) check to
avoid using hidden API.

Bug: 170598012
Test: atest EthernetServiceTests
Change-Id: I5b5fed864318e9ac7e190c40d4f52076ab0eece8
This commit is contained in:
lifr
2021-03-04 00:35:22 +08:00
parent 0c6adf259a
commit 60ce2ec168

View File

@@ -88,10 +88,6 @@ public class EthernetNetworkFactory extends NetworkFactory {
@Override
public boolean acceptRequest(NetworkRequest request) {
if (request.type == NetworkRequest.Type.TRACK_DEFAULT) {
return false;
}
if (DBG) {
Log.d(TAG, "acceptRequest, request: " + request);
}