Home
last modified time | relevance | path

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

/packages/modules/Connectivity/framework/src/android/net/
DNetworkRequest.java21 import static android.net.NetworkCapabilities.NET_CAPABILITY_FOREGROUND;
188 NET_CAPABILITY_FOREGROUND,
DNetworkCapabilities.java252 NET_CAPABILITY_FOREGROUND,
390 public static final int NET_CAPABILITY_FOREGROUND = 19; field in NetworkCapabilities
518 | (1 << NET_CAPABILITY_FOREGROUND)
557 | (1 << NET_CAPABILITY_FOREGROUND)
2127 case NET_CAPABILITY_FOREGROUND: return "FOREGROUND"; in capabilityNameOf()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java180 || c == NetworkCapabilities.NET_CAPABILITY_FOREGROUND in isRequestableCapability()
267 sCapabilityNames.put(NetworkCapabilities.NET_CAPABILITY_FOREGROUND, "[FOREGROUND]"); in sCapabilityNames.put() argument
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java25 import static android.net.NetworkCapabilities.NET_CAPABILITY_FOREGROUND;
495 nc.addCapability(NET_CAPABILITY_FOREGROUND); in testConnectivityManagedCapabilities()
497 nc.removeCapability(NET_CAPABILITY_FOREGROUND); in testConnectivityManagedCapabilities()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java49 import static android.net.NetworkCapabilities.NET_CAPABILITY_FOREGROUND;
2075 .hasCapability(NET_CAPABILITY_FOREGROUND));
2078 nc.hasCapability(NET_CAPABILITY_FOREGROUND));
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java62 import static android.net.NetworkCapabilities.NET_CAPABILITY_FOREGROUND;
2276 nc.addCapability(NET_CAPABILITY_FOREGROUND); in restrictBackgroundRequestForCaller()
5150 if (!nai.networkCapabilities.hasCapability(NET_CAPABILITY_FOREGROUND)) { in queryUserAccess()
7189 if (!nc.hasCapability(NET_CAPABILITY_FOREGROUND)) { in getNetworkPermission()
7330 newNc.removeCapability(NET_CAPABILITY_FOREGROUND); in mixInCapabilities()
7332 newNc.addCapability(NET_CAPABILITY_FOREGROUND); in mixInCapabilities()
8482 networkAgent.networkCapabilities.addCapability(NET_CAPABILITY_FOREGROUND); in updateNetworkInfo()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java79 import static android.net.NetworkCapabilities.NET_CAPABILITY_FOREGROUND;
2191 .addCapability(NET_CAPABILITY_FOREGROUND).build(), fgMobileListenCallback); in testNewNetworkInactive_bgNetwork()
2997 callback.expectCapabilitiesWithout(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent, in testNetworkGoesIntoBackgroundAfterLinger()
4588 return nc.hasCapability(NET_CAPABILITY_FOREGROUND); in isForegroundNetwork()
4603 .addCapability(NET_CAPABILITY_FOREGROUND).build(); in testBackgroundNetworks()
4633 callback.expectCapabilitiesWithout(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent); in testBackgroundNetworks()
4646 cellCallback.expectCapabilitiesWith(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent); in testBackgroundNetworks()
4647 callback.expectCapabilitiesWith(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent); in testBackgroundNetworks()
4656 callback.expectCapabilitiesWithout(NET_CAPABILITY_FOREGROUND, mCellNetworkAgent); in testBackgroundNetworks()
/packages/modules/Connectivity/framework/api/
Dcurrent.txt310 field public static final int NET_CAPABILITY_FOREGROUND = 19; // 0x13
/packages/modules/Connectivity/Tethering/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt672 Landroid/net/NetworkCapabilitiesProto;->NET_CAPABILITY_FOREGROUND:I