Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkCapabilities.java195 public static final int NET_CAPABILITY_FOREGROUND = 18; field in NetworkCapabilities
198 private static final int MAX_NET_CAPABILITY = NET_CAPABILITY_FOREGROUND;
210 (1 << NET_CAPABILITY_FOREGROUND);
326 if (hasCapability(NET_CAPABILITY_FOREGROUND)) return "NET_CAPABILITY_FOREGROUND"; in describeFirstNonRequestableCapability()
866 case NET_CAPABILITY_FOREGROUND: capabilities += "FOREGROUND"; break; in toString()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java2176 return nc.hasCapability(NET_CAPABILITY_FOREGROUND); in isForegroundNetwork()
2186 .addCapability(NET_CAPABILITY_FOREGROUND).build(); in testBackgroundNetworks()
2216 callback.expectCapabilitiesWithout(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent); in testBackgroundNetworks()
2228 cellCallback.expectCapabilitiesWith(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent); in testBackgroundNetworks()
2233 callback.expectCapabilitiesWith(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent); in testBackgroundNetworks()
2242 callback.expectCapabilitiesWithout(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent); in testBackgroundNetworks()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java27 import static android.net.NetworkCapabilities.NET_CAPABILITY_FOREGROUND;
2024 networkCapabilities.hasCapability(NET_CAPABILITY_FOREGROUND)) { in maybeHandleNetworkAgentMessage()
4197 nc.addCapability(NET_CAPABILITY_FOREGROUND); in listenForNetwork()
4517 if (!nc.hasCapability(NET_CAPABILITY_FOREGROUND)) { in getNetworkPermission()
4554 networkCapabilities.removeCapability(NET_CAPABILITY_FOREGROUND); in updateCapabilities()
4556 networkCapabilities.addCapability(NET_CAPABILITY_FOREGROUND); in updateCapabilities()
5124 networkAgent.networkCapabilities.addCapability(NET_CAPABILITY_FOREGROUND); in updateNetworkInfo()