Home
last modified time | relevance | path

Searched refs:NET_CAPABILITY_FOREGROUND (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkCapabilities.java166 NET_CAPABILITY_FOREGROUND,
297 public static final int NET_CAPABILITY_FOREGROUND = 19; field in NetworkCapabilities
362 | (1 << NET_CAPABILITY_FOREGROUND)
426 | (1 << NET_CAPABILITY_FOREGROUND)
1910 case NET_CAPABILITY_FOREGROUND: return "FOREGROUND"; in capabilityNameOf()
/frameworks/base/core/proto/android/net/
Dnetworkrequest.proto60 // NET_CAPABILITY_FOREGROUND capability. A network with no foreground
Dnetworkcapabilities.proto114 NET_CAPABILITY_FOREGROUND = 19; enumerator
/frameworks/base/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java25 import static android.net.NetworkCapabilities.NET_CAPABILITY_FOREGROUND;
408 nc.addCapability(NET_CAPABILITY_FOREGROUND); in testConnectivityManagedCapabilities()
410 nc.removeCapability(NET_CAPABILITY_FOREGROUND); in testConnectivityManagedCapabilities()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java51 import static android.net.NetworkCapabilities.NET_CAPABILITY_FOREGROUND;
2222 callback.expectCapabilitiesWithout(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent, in testNetworkGoesIntoBackgroundAfterLinger()
3303 return nc.hasCapability(NET_CAPABILITY_FOREGROUND); in isForegroundNetwork()
3314 .addCapability(NET_CAPABILITY_FOREGROUND).build(); in testBackgroundNetworks()
3344 callback.expectCapabilitiesWithout(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent); in testBackgroundNetworks()
3357 cellCallback.expectCapabilitiesWith(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent); in testBackgroundNetworks()
3358 callback.expectCapabilitiesWith(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent); in testBackgroundNetworks()
3367 callback.expectCapabilitiesWithout(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent); in testBackgroundNetworks()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java41 import static android.net.NetworkCapabilities.NET_CAPABILITY_FOREGROUND;
1759 nc.addCapability(NET_CAPABILITY_FOREGROUND); in restrictBackgroundRequestForCaller()
6244 if (!nc.hasCapability(NET_CAPABILITY_FOREGROUND)) { in getNetworkPermission()
6299 newNc.removeCapability(NET_CAPABILITY_FOREGROUND); in mixInCapabilities()
6301 newNc.addCapability(NET_CAPABILITY_FOREGROUND); in mixInCapabilities()
7170 networkAgent.networkCapabilities.addCapability(NET_CAPABILITY_FOREGROUND); in updateNetworkInfo()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/base/api/
Dcurrent.txt30264 field public static final int NET_CAPABILITY_FOREGROUND = 19; // 0x13