Home
last modified time | relevance | path

Searched refs:mNetworkRequests (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkFactory.java130 private final SparseArray<NetworkRequestInfo> mNetworkRequests = field in NetworkFactory
267 NetworkRequestInfo n = mNetworkRequests.get(request.requestId); in handleAddRequest()
274 mNetworkRequests.put(n.request.requestId, n); in handleAddRequest()
290 NetworkRequestInfo n = mNetworkRequests.get(request.requestId); in handleRemoveRequest()
292 mNetworkRequests.remove(request.requestId); in handleRemoveRequest()
383 for (int i = 0; i < mNetworkRequests.size(); i++) { in evalRequests()
384 NetworkRequestInfo n = mNetworkRequests.valueAt(i); in evalRequests()
444 return mNetworkRequests.size(); in getRequestCount()
460 for (int i = 0; i < mNetworkRequests.size(); i++) { in dump()
461 pw.println(mNetworkRequests.valueAt(i)); in dump()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java233 private final SparseArray<NetworkRequest> mNetworkRequests = new SparseArray<>(); field in NetworkAgentInfo
360 NetworkRequest existing = mNetworkRequests.get(networkRequest.requestId); in addRequest()
369 mNetworkRequests.put(networkRequest.requestId, networkRequest); in addRequest()
378 NetworkRequest existing = mNetworkRequests.get(requestId); in removeRequest()
381 mNetworkRequests.remove(requestId); in removeRequest()
391 return mNetworkRequests.get(id) != null; in isSatisfyingRequest()
399 return mNetworkRequests.valueAt(index); in requestAt()
429 return mNetworkRequests.size(); in numNetworkRequests()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DApnContext.java398 private final ArrayList<NetworkRequest> mNetworkRequests = new ArrayList<>(); field in ApnContext
410 mNetworkRequests.add(networkRequest); in requestNetwork()
425 if (mNetworkRequests.contains(networkRequest) == false) { in releaseNetwork()
428 mNetworkRequests.remove(networkRequest); in releaseNetwork()
434 logl("releaseNetwork left with " + mNetworkRequests.size() in releaseNetwork()
436 if (mNetworkRequests.size() == 0 in releaseNetwork()
451 for (NetworkRequest nr : mNetworkRequests) { in hasRestrictedRequests()
628 return new ArrayList<NetworkRequest>(mNetworkRequests); in getNetworkRequests()
656 if (mNetworkRequests.size() > 0) { in dump()
659 for (NetworkRequest nr : mNetworkRequests) { in dump()
DTelephonyNetworkFactory.java76 private final Map<NetworkRequest, Integer> mNetworkRequests = new HashMap<>(); field in TelephonyNetworkFactory
231 for (HashMap.Entry<NetworkRequest, Integer> entry : mNetworkRequests.entrySet()) { in onActivePhoneSwitch()
252 mNetworkRequests.put(networkRequest, in onActivePhoneSwitch()
281 mNetworkRequests.put(networkRequest, shouldApply in onNeedNetworkFor()
302 boolean applied = mNetworkRequests.get(networkRequest) in onReleaseNetworkFor()
305 mNetworkRequests.remove(networkRequest); in onReleaseNetworkFor()
327 for (HashMap.Entry<NetworkRequest, Integer> entry : mNetworkRequests.entrySet()) { in onDataHandoverNeeded()
396 mNetworkRequests.put(networkRequest, targetTransport); in onDataHandoverSetupCompleted()
414 for (HashMap.Entry<NetworkRequest, Integer> entry : mNetworkRequests.entrySet()) { in dump()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java176 return mNetworkRequests.get(request).isRequest; in isRequest()
185 for (NetworkRequestInfo nri : mNetworkRequests.values()) { in handleAsyncChannelHalfConnect()
307 private final HashMap<NetworkRequest, NetworkRequestInfo> mNetworkRequests = field in ConnectivityServiceMock
478 mNetworkRequests.put(nri.request, nri); in handleRegisterNetworkRequest()
493 NetworkRequestInfo nri = mNetworkRequests.get(request); in handleReleaseNetworkRequest()
497 mNetworkRequests.remove(request); in handleReleaseNetworkRequest()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java854 mNetworkRequests.put(mDefaultRequest, defaultNRI); in ConnectivityService()
1105 final boolean isEnabled = (mNetworkRequests.get(networkRequest) != null); in handleAlwaysOnNetworkRequest()
2506 requests = mNetworkRequests.values().toArray(requests); in requestsSortedById()
2941 for (NetworkRequestInfo nri : mNetworkRequests.values()) { in handleAsyncChannelHalfConnect()
3114 for (Map.Entry<NetworkRequest, NetworkRequestInfo> entry : mNetworkRequests.entrySet()) { in findExistingNetworkRequestInfo()
3138 mNetworkRequests.put(nri.request, nri); in handleRegisterNetworkRequest()
3187 for (NetworkRequestInfo nri : mNetworkRequests.values()) { in unneeded()
3214 final NetworkRequestInfo nri = mNetworkRequests.get(request); in getNriForAppRequest()
3228 if (mNetworkRequests.get(nri.request) == null) { in handleTimedOutNetworkRequest()
3259 mNetworkRequests.remove(nri.request); in handleRemoveNetworkRequest()
[all …]
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java847 private SparseArray<NetworkRequest> mNetworkRequests = new SparseArray<>(); field in ConnectivityServiceTest.MockNetworkFactory
901 mNetworkRequests.put(request.requestId, request); in handleAddRequest()
919 mNetworkRequests.remove(request.requestId); in handleRemoveRequest()
973 return mNetworkRequests; in waitForNetworkRequests()