Home
last modified time | relevance | path

Searched refs:networkRequest (Results 1 – 15 of 15) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactory.java164 for (NetworkRequest networkRequest : requestMap.keySet()) { in applyRequests()
165 LocalLog localLog = requestMap.get(networkRequest); in applyRequests()
168 mDcTracker.requestNetwork(networkRequest, localLog); in applyRequests()
170 mDcTracker.releaseNetwork(networkRequest, localLog); in applyRequests()
216 public void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() argument
218 msg.obj = networkRequest; in needNetworkFor()
223 NetworkRequest networkRequest = (NetworkRequest)msg.obj; in onNeedNetworkFor() local
226 if (TextUtils.isEmpty(networkRequest.networkCapabilities.getNetworkSpecifier())) { in onNeedNetworkFor()
228 localLog = mDefaultRequests.get(networkRequest); in onNeedNetworkFor()
231 localLog.log("created for " + networkRequest); in onNeedNetworkFor()
[all …]
DDcRequest.java40 public final NetworkRequest networkRequest; field in DcRequest
46 networkRequest = nr; in DcRequest()
47 apnId = apnIdForNetworkRequest(networkRequest); in DcRequest()
52 return networkRequest.toString() + ", priority=" + priority + ", apnId=" + apnId; in toString()
56 return networkRequest.hashCode(); in hashCode()
61 return networkRequest.equals(((DcRequest)o).networkRequest); in equals()
DApnContext.java414 public void requestNetwork(NetworkRequest networkRequest, LocalLog log) { in requestNetwork() argument
416 if (mLocalLogs.contains(log) || mNetworkRequests.contains(networkRequest)) { in requestNetwork()
420 mNetworkRequests.add(networkRequest); in requestNetwork()
426 public void releaseNetwork(NetworkRequest networkRequest, LocalLog log) { in releaseNetwork() argument
433 if (mNetworkRequests.contains(networkRequest) == false) { in releaseNetwork()
435 + networkRequest + ")"); in releaseNetwork()
437 mNetworkRequests.remove(networkRequest); in releaseNetwork()
DDcTracker.java946 public void requestNetwork(NetworkRequest networkRequest, LocalLog log) { in requestNetwork() argument
947 final int apnId = ApnContext.apnIdForNetworkRequest(networkRequest); in requestNetwork()
949 log.log("DcTracker.requestNetwork for " + networkRequest + " found " + apnContext); in requestNetwork()
950 if (apnContext != null) apnContext.requestNetwork(networkRequest, log); in requestNetwork()
953 public void releaseNetwork(NetworkRequest networkRequest, LocalLog log) { in releaseNetwork() argument
954 final int apnId = ApnContext.apnIdForNetworkRequest(networkRequest); in releaseNetwork()
956 log.log("DcTracker.releaseNetwork for " + networkRequest + " found " + apnContext); in releaseNetwork()
957 if (apnContext != null) apnContext.releaseNetwork(networkRequest, log); in releaseNetwork()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java226 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() argument
227 if (VDBG) log("needNetworkFor " + networkRequest + ", " + score); in needNetworkFor()
229 msg.obj = networkRequest; in needNetworkFor()
234 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() argument
235 if (VDBG) log("releaseNetworkFor " + networkRequest); in releaseNetworkFor()
237 msg.obj = networkRequest; in releaseNetworkFor()
242 private void onRequestNetwork(NetworkRequest networkRequest) { in onRequestNetwork() argument
243 final DcRequest dcRequest = new DcRequest(networkRequest, mContext); in onRequestNetwork()
251 private void onReleaseNetwork(NetworkRequest networkRequest) { in onReleaseNetwork() argument
252 final DcRequest dcRequest = new DcRequest(networkRequest, mContext); in onReleaseNetwork()
[all …]
/frameworks/base/core/java/android/net/
DNetworkFactory.java262 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() argument
266 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() argument
271 public void addNetworkRequest(NetworkRequest networkRequest, int score) { in addNetworkRequest() argument
273 new NetworkRequestInfo(networkRequest, score))); in addNetworkRequest()
276 public void removeNetworkRequest(NetworkRequest networkRequest) { in removeNetworkRequest() argument
277 sendMessage(obtainMessage(CMD_CANCEL_REQUEST, networkRequest)); in removeNetworkRequest()
DConnectivityManager.java1060 mService.requestLinkProperties(networkCallback.networkRequest); in requestLinkProperties()
1097 mService.requestNetworkCapabilities(networkCallback.networkRequest); in requestNetworkCapabilities()
1156 Log.d(TAG, "renewing startUsingNetworkFeature request " + l.networkRequest); in startUsingNetworkFeature()
1358 NetworkRequest networkRequest; field in ConnectivityManager.LegacyRequest
1391 if (l != null) return l.networkRequest; in findRequestForFeature()
1425 l.networkRequest = sendRequestForNetwork(netCap, l.networkCallback, 0, in requestNetworkForFeatureLocked()
1427 if (l.networkRequest == null) return null; in requestNetworkForFeatureLocked()
1430 return l.networkRequest; in requestNetworkForFeatureLocked()
2629 private NetworkRequest networkRequest; field in ConnectivityManager.NetworkCallback
2836 networkCallback.networkRequest = mService.listenForNetwork(need, in sendRequestForNetwork()
[all …]
DIConnectivityManager.aidl159 void requestLinkProperties(in NetworkRequest networkRequest); in requestLinkProperties() argument
160 void requestNetworkCapabilities(in NetworkRequest networkRequest); in requestNetworkCapabilities() argument
161 void releaseNetworkRequest(in NetworkRequest networkRequest); in releaseNetworkRequest() argument
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DDcTrackerMock.java164 public void requestNetwork(NetworkRequest networkRequest, LocalLog log) { in requestNetwork() argument
166 mRequestedNetworks.add(networkRequest); in requestNetwork()
171 public void releaseNetwork(NetworkRequest networkRequest, LocalLog log) { in releaseNetwork() argument
173 mRequestedNetworks.remove(networkRequest); in releaseNetwork()
DConnectivityServiceMock.java560 public void requestLinkProperties(NetworkRequest networkRequest) { in requestLinkProperties() argument
570 public void requestNetworkCapabilities(NetworkRequest networkRequest) { in requestNetworkCapabilities() argument
771 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, in requestNetwork() local
773 NetworkRequestInfo nri = new NetworkRequestInfo(messenger, networkRequest, binder, true); in requestNetwork()
778 return networkRequest; in requestNetwork()
811 public void releaseNetworkRequest(NetworkRequest networkRequest) { in releaseNetworkRequest() argument
813 0, networkRequest)); in releaseNetworkRequest()
973 private void sendUpdatedScoreToFactories(NetworkRequest networkRequest, int score) { in sendUpdatedScoreToFactories() argument
974 if (VDBG) log("sending new Min Network Score(" + score + "): " + networkRequest.toString()); in sendUpdatedScoreToFactories()
977 networkRequest); in sendUpdatedScoreToFactories()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java276 public boolean addRequest(NetworkRequest networkRequest) { in addRequest() argument
277 NetworkRequest existing = mNetworkRequests.get(networkRequest.requestId); in addRequest()
278 if (existing == networkRequest) return false; in addRequest()
280 mNetworkRequests.put(networkRequest.requestId, networkRequest); in addRequest()
281 if (networkRequest.isRequest()) mNumRequestNetworkRequests++; in addRequest()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java4136 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, in requestNetwork() local
4138 NetworkRequestInfo nri = new NetworkRequestInfo(messenger, networkRequest, binder); in requestNetwork()
4146 return networkRequest; in requestNetwork()
4207 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, TYPE_NONE, in pendingRequestForNetwork() local
4209 NetworkRequestInfo nri = new NetworkRequestInfo(networkRequest, operation); in pendingRequestForNetwork()
4213 return networkRequest; in pendingRequestForNetwork()
4258 NetworkRequest networkRequest = new NetworkRequest( in listenForNetwork() local
4261 NetworkRequestInfo nri = new NetworkRequestInfo(messenger, networkRequest, binder); in listenForNetwork()
4265 return networkRequest; in listenForNetwork()
4276 NetworkRequest networkRequest = new NetworkRequest( in pendingListenForNetwork() local
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DConnectivityServiceTest.java2463 NetworkRequest networkRequest = new NetworkRequest.Builder().build(); in testNetworkRequestMaximum() local
2468 mCm.requestNetwork(networkRequest, networkCallback); in testNetworkRequestMaximum()
2481 mCm.registerNetworkCallback(networkRequest, networkCallback); in testNetworkRequestMaximum()
2496 mCm.requestNetwork(networkRequest, pendingIntent); in testNetworkRequestMaximum()
2511 mCm.registerNetworkCallback(networkRequest, pendingIntent); in testNetworkRequestMaximum()
2526 mCm.requestNetwork(networkRequest, networkCallback); in testNetworkRequestMaximum()
2532 mCm.registerNetworkCallback(networkRequest, networkCallback); in testNetworkRequestMaximum()
2539 mCm.requestNetwork(networkRequest, pendingIntent); in testNetworkRequestMaximum()
2546 mCm.registerNetworkCallback(networkRequest, pendingIntent); in testNetworkRequestMaximum()
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java2213 NetworkRequest networkRequest = networkRequestBuilder.build();
2214 mConnMgr.registerNetworkCallback(networkRequest, mNetworkConnectivityCallback);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiStateMachine.java3921 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() argument
3926 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() argument
3944 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() argument
3945 if (!networkRequest.networkCapabilities.hasCapability( in needNetworkFor()
3956 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() argument
3957 if (!networkRequest.networkCapabilities.hasCapability( in releaseNetworkFor()