summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlifr <lifr@google.com>2021-03-04 00:35:22 +0800
committerlifr <lifr@google.com>2021-03-11 23:55:04 +0800
commit4d52a059b36660a71d9ca01256cfebb58f398ef7 (patch)
tree8d8c4602b05aa185bc71f41067c8ed22e2ce03b1
parent02bdbdde293f41166c56839eb10770d543601303 (diff)
downloadethernet-4d52a059b36660a71d9ca01256cfebb58f398ef7.tar.gz
[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
-rw-r--r--java/com/android/server/ethernet/EthernetNetworkFactory.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/java/com/android/server/ethernet/EthernetNetworkFactory.java b/java/com/android/server/ethernet/EthernetNetworkFactory.java
index b9ebf89..242fac8 100644
--- a/java/com/android/server/ethernet/EthernetNetworkFactory.java
+++ b/java/com/android/server/ethernet/EthernetNetworkFactory.java
@@ -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);
}