Home
last modified time | relevance | path

Searched refs:NET_CAPABILITY_FOREGROUND (Results 1 – 9 of 9) 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()
3311 return nc.hasCapability(NET_CAPABILITY_FOREGROUND); in isForegroundNetwork()
3322 .addCapability(NET_CAPABILITY_FOREGROUND).build(); in testBackgroundNetworks()
3352 callback.expectCapabilitiesWithout(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent); in testBackgroundNetworks()
3365 cellCallback.expectCapabilitiesWith(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent); in testBackgroundNetworks()
3366 callback.expectCapabilitiesWith(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent); in testBackgroundNetworks()
3375 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()
6229 if (!nc.hasCapability(NET_CAPABILITY_FOREGROUND)) { in getNetworkPermission()
6284 newNc.removeCapability(NET_CAPABILITY_FOREGROUND); in mixInCapabilities()
6286 newNc.addCapability(NET_CAPABILITY_FOREGROUND); in mixInCapabilities()
7155 networkAgent.networkCapabilities.addCapability(NET_CAPABILITY_FOREGROUND); in updateNetworkInfo()
/frameworks/base/non-updatable-api/
Dcurrent.txt29033 field public static final int NET_CAPABILITY_FOREGROUND = 19; // 0x13
/frameworks/base/api/
Dcurrent.txt29163 field public static final int NET_CAPABILITY_FOREGROUND = 19; // 0x13
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt44372 Landroid/net/NetworkCapabilitiesProto;->NET_CAPABILITY_FOREGROUND:I