Replace clearAll with withoutDefaultCapabilities

Update the method to clearer naming as the feedback from API
review.

Bug: 184735772
Test: m
Change-Id: Id0b1df83926352969049a50b3f1af111a4ac603c
Ignore-AOSP-First: Parts of the topic are only available in internal
diff --git a/staticlibs/device/android/net/NetworkFactoryImpl.java b/staticlibs/device/android/net/NetworkFactoryImpl.java
index a337351..439ea14 100644
--- a/staticlibs/device/android/net/NetworkFactoryImpl.java
+++ b/staticlibs/device/android/net/NetworkFactoryImpl.java
@@ -130,7 +130,8 @@
     NetworkFactoryImpl(NetworkFactory parent, Looper looper, Context context,
             @Nullable final NetworkCapabilities filter) {
         super(parent, looper, context,
-                null != filter ? filter : new NetworkCapabilities.Builder().clearAll().build());
+                null != filter ? filter :
+                        NetworkCapabilities.Builder.withoutDefaultCapabilities().build());
     }
 
     /* Registers this NetworkFactory with the system. May only be called once per factory. */