Home
last modified time | relevance | path

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

/packages/modules/Connectivity/framework/src/android/net/
DBpfNetMapsUtils.java277 int blockedReasons = BLOCKED_REASON_NONE; in getUidNetworkingBlockedReasons() local
279 blockedReasons |= BLOCKED_REASON_BATTERY_SAVER; in getUidNetworkingBlockedReasons()
282 blockedReasons |= BLOCKED_REASON_DOZE; in getUidNetworkingBlockedReasons()
285 blockedReasons |= BLOCKED_REASON_APP_STANDBY; in getUidNetworkingBlockedReasons()
288 blockedReasons |= BLOCKED_REASON_RESTRICTED_MODE; in getUidNetworkingBlockedReasons()
291 blockedReasons |= BLOCKED_REASON_LOW_POWER_STANDBY; in getUidNetworkingBlockedReasons()
294 blockedReasons |= BLOCKED_REASON_APP_BACKGROUND; in getUidNetworkingBlockedReasons()
297 blockedReasons |= BLOCKED_REASON_OEM_DENY; in getUidNetworkingBlockedReasons()
302 blockedReasons |= BLOCKED_METERED_REASON_USER_RESTRICTED; in getUidNetworkingBlockedReasons()
305 blockedReasons |= BLOCKED_METERED_REASON_ADMIN_DISABLED; in getUidNetworkingBlockedReasons()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSBlockedReasonsTest.kt77 override fun onBlockedStatusChanged(network: Network, blockedReasons: Int) { in cellNc()
78 history.add(BlockedStatusInt(network, blockedReasons)) in cellNc()
81 fun expectBlockedStatusChanged(network: Network, blockedReasons: Int) { in cellNc()
82 expect<BlockedStatusInt>(network) { it.reason == blockedReasons } in cellNc()
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DBackend.java226 if ((params.blockedReasons != null) && (params.blockedReasons.length > 0)) { in updateBlockedReasons()
228 for (String reason : params.blockedReasons) { in updateBlockedReasons()
/packages/services/BuiltInPrintService/src/com/android/bips/jni/
DJobCallbackParams.java26 public String[] blockedReasons; field in JobCallbackParams
/packages/modules/Connectivity/service/src/com/android/server/
DBpfNetMaps.java913 final int blockedReasons = getUidNetworkingBlockedReasons(uid); in isUidRestrictedOnMeteredNetworks() local
914 return (blockedReasons & BLOCKED_METERED_REASON_MASK) != BLOCKED_REASON_NONE; in isUidRestrictedOnMeteredNetworks()
DConnectivityService.java3405 public void onUidBlockedReasonChanged(int uid, @BlockedReason int blockedReasons) {
3412 List.of(new Pair<>(uid, blockedReasons))));
3424 final int blockedReasons = reasons.second;
3435 maybeNotifyNetworkBlockedForNewState(uid, blockedReasons);
3436 setUidBlockedReasons(uid, blockedReasons);
4261 final int blockedReasons = mUidBlockedReasons.valueAt(i);
4263 + Integer.toHexString(blockedReasons));
11377 final int blockedReasons = mUidBlockedReasons.get(nri.mAsUid, BLOCKED_REASON_NONE);
11381 getBlockedState(nri.mAsUid, blockedReasons, metered, vpnBlocked));
11411 private void setUidBlockedReasons(int uid, @BlockedReason int blockedReasons) {
[all …]
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java2113 public void onBlockedStatusChanged(Network network, int blockedReasons) { in onBlockedStatusChanged() argument
2114 getHistory().add(new CallbackEntry.BlockedStatusInt(network, blockedReasons)); in onBlockedStatusChanged()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java2495 public void onBlockedStatusChanged(Network network, int blockedReasons) {
2496 Log.v(TAG, "onBlockedStatusChanged " + network + " " + blockedReasons);
2497 getHistory().add(new CallbackEntry.BlockedStatusInt(network, blockedReasons));
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java1737 private boolean isUidBlocked(int blockedReasons, boolean meteredNetwork) { in isUidBlocked() argument
1738 final int blockedOnAllNetworksReason = (blockedReasons & ~BLOCKED_METERED_REASON_MASK); in isUidBlocked()
1743 return blockedReasons != BLOCKED_REASON_NONE; in isUidBlocked()
1748 private void setBlockedReasonChanged(int blockedReasons) { in setBlockedReasonChanged() argument
1749 mBlockedReasons = blockedReasons; in setBlockedReasonChanged()
1753 List.of(new Pair<>(Process.myUid(), blockedReasons)) in setBlockedReasonChanged()
1757 mPolicyCallback.onUidBlockedReasonChanged(Process.myUid(), blockedReasons); in setBlockedReasonChanged() local
9756 public void onBlockedStatusChanged(Network network, int blockedReasons) {
9757 getHistory().add(new CallbackEntry.BlockedStatusInt(network, blockedReasons));