Home
last modified time | relevance | path

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

/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcRequest.java34 public final NetworkRequest networkRequest; field in DcRequest
40 networkRequest = nr; in DcRequest()
54 public static DcRequest create(@NonNull final NetworkRequest networkRequest, in create() argument
56 final int apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in create()
59 Rlog.d(LOG_TAG, "Non cellular request ignored: " + networkRequest.toString()); in create()
60 checkForAnomalousNetworkRequest(networkRequest); in create()
63 Rlog.d(LOG_TAG, "Cellular request confirmed: " + networkRequest.toString()); in create()
64 return new DcRequest(networkRequest, apnType, apnConfigType.getPriority()); in create()
68 private static void checkForAnomalousNetworkRequest(NetworkRequest networkRequest) { in checkForAnomalousNetworkRequest() argument
69 NetworkSpecifier specifier = networkRequest.getNetworkSpecifier(); in checkForAnomalousNetworkRequest()
[all …]
DTelephonyNetworkFactory.java210 private int getTransportTypeFromNetworkRequest(NetworkRequest networkRequest) { in getTransportTypeFromNetworkRequest() argument
211 int apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in getTransportTypeFromNetworkRequest()
215 private void requestNetworkInternal(NetworkRequest networkRequest, in requestNetworkInternal() argument
219 mPhone.getDcTracker(transport).requestNetwork(networkRequest, requestType, in requestNetworkInternal()
224 private void releaseNetworkInternal(NetworkRequest networkRequest, in releaseNetworkInternal() argument
228 mPhone.getDcTracker(transport).releaseNetwork(networkRequest, releaseType); in releaseNetworkInternal()
245 NetworkRequest networkRequest = entry.getKey(); in onActivePhoneSwitch() local
249 networkRequest, mPhone.getPhoneId()); in onActivePhoneSwitch()
255 ? "Requesting" : "Releasing") + " network request " + networkRequest); in onActivePhoneSwitch()
256 int transportType = getTransportTypeFromNetworkRequest(networkRequest); in onActivePhoneSwitch()
[all …]
DApnContext.java415 public void requestNetwork(NetworkRequest networkRequest, @RequestNetworkType int type, in requestNetwork() argument
418 mNetworkRequests.add(networkRequest); in requestNetwork()
419 logl("requestNetwork for " + networkRequest + ", type=" in requestNetwork()
431 public void releaseNetwork(NetworkRequest networkRequest, @ReleaseNetworkType int type) { in releaseNetwork() argument
433 if (mNetworkRequests.contains(networkRequest) == false) { in releaseNetwork()
434 logl("releaseNetwork can't find this request (" + networkRequest + ")"); in releaseNetwork()
436 mNetworkRequests.remove(networkRequest); in releaseNetwork()
DDcTracker.java893 public void requestNetwork(NetworkRequest networkRequest, @RequestNetworkType int type, in requestNetwork() argument
895 final int apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in requestNetwork()
898 apnContext.requestNetwork(networkRequest, type, onCompleteMsg); in requestNetwork()
902 public void releaseNetwork(NetworkRequest networkRequest, @ReleaseNetworkType int type) { in releaseNetwork() argument
903 final int apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in releaseNetwork()
906 apnContext.releaseNetwork(networkRequest, type); in releaseNetwork()
DDataConnection.java3108 for (NetworkRequest networkRequest : apnContext.getNetworkRequests()) { in calculateScore()
3109 if (networkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in calculateScore()
3110 && networkRequest.getNetworkSpecifier() == null) { in calculateScore()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DUntrustedWifiNetworkFactory.java49 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() argument
50 if (!networkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED)) { in needNetworkFor()
58 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() argument
59 if (!networkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED)) { in releaseNetworkFor()
DWifiNetworkFactory.java275 NetworkFactoryUserSelectionCallback(NetworkRequest networkRequest) { in NetworkFactoryUserSelectionCallback() argument
276 mNetworkRequest = networkRequest; in NetworkFactoryUserSelectionCallback()
467 boolean isRequestWithNetworkSpecifierValid(NetworkRequest networkRequest) { in isRequestWithNetworkSpecifierValid() argument
468 NetworkSpecifier ns = networkRequest.getNetworkSpecifier(); in isRequestWithNetworkSpecifierValid()
476 if (networkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in isRequestWithNetworkSpecifierValid()
490 public boolean acceptRequest(NetworkRequest networkRequest, int score) { in acceptRequest() argument
491 NetworkSpecifier ns = networkRequest.getNetworkSpecifier(); in acceptRequest()
496 if (!isRequestWithNetworkSpecifierValid(networkRequest)) { in acceptRequest()
497 releaseRequestAsUnfulfillableByAnyFactory(networkRequest); in acceptRequest()
509 releaseRequestAsUnfulfillableByAnyFactory(networkRequest); in acceptRequest()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java91 NetworkRequest networkRequest = new NetworkRequest(netCap, -1, in makeSubSpecificInternetRequest() local
93 mTelephonyNetworkFactoryUT.obtainMessage(CMD_REQUEST_NETWORK, 0, 0, networkRequest) in makeSubSpecificInternetRequest()
95 return networkRequest; in makeSubSpecificInternetRequest()
103 NetworkRequest networkRequest = new NetworkRequest(netCap, -1, in makeDefaultInternetRequest() local
105 mTelephonyNetworkFactoryUT.obtainMessage(CMD_REQUEST_NETWORK, 0, 0, networkRequest) in makeDefaultInternetRequest()
107 return networkRequest; in makeDefaultInternetRequest()
117 NetworkRequest networkRequest = new NetworkRequest(netCap, -1, in makeSubSpecificMmsRequest() local
119 mTelephonyNetworkFactoryUT.obtainMessage(CMD_REQUEST_NETWORK, 0, 0, networkRequest) in makeSubSpecificMmsRequest()
121 return networkRequest; in makeSubSpecificMmsRequest()
124 private void releaseNetworkRequest(NetworkRequest networkRequest) { in releaseNetworkRequest() argument
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java669 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() argument
670 if (VDBG) log("needNetworkFor " + networkRequest + ", " + score); in needNetworkFor()
672 msg.obj = networkRequest; in needNetworkFor()
677 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() argument
678 if (VDBG) log("releaseNetworkFor " + networkRequest); in releaseNetworkFor()
680 msg.obj = networkRequest; in releaseNetworkFor()
685 private void onRequestNetwork(NetworkRequest networkRequest) { in onRequestNetwork() argument
687 DcRequest.create(networkRequest, createApnRepository(networkRequest)); in onRequestNetwork()
690 collectRequestNetworkMetrics(networkRequest); in onRequestNetwork()
699 private void onReleaseNetwork(NetworkRequest networkRequest) { in onReleaseNetwork() argument
[all …]
/frameworks/base/core/java/android/app/job/
DJobInfo.java314 private final NetworkRequest networkRequest; field in JobInfo
460 if (networkRequest == null) { in getNetworkType()
462 } else if (networkRequest.networkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED)) { in getNetworkType()
464 } else if (networkRequest.networkCapabilities.hasCapability(NET_CAPABILITY_NOT_ROAMING)) { in getNetworkType()
466 } else if (networkRequest.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)) { in getNetworkType()
480 return networkRequest; in getRequiredNetwork()
674 if (!Objects.equals(networkRequest, j.networkRequest)) { in equals()
740 if (networkRequest != null) { in hashCode()
741 hashCode = 31 * hashCode + networkRequest.hashCode(); in hashCode()
775 networkRequest = NetworkRequest.CREATOR.createFromParcel(in); in JobInfo()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java379 public boolean addRequest(NetworkRequest networkRequest) { in addRequest() argument
380 NetworkRequest existing = mNetworkRequests.get(networkRequest.requestId); in addRequest()
381 if (existing == networkRequest) return false; in addRequest()
386 networkRequest, existing, toShortString())); in addRequest()
389 mNetworkRequests.put(networkRequest.requestId, networkRequest); in addRequest()
390 updateRequestCounts(ADD, networkRequest); in addRequest()
/frameworks/libs/net/common/devicetests/com/android/testutils/
DTestNetworkTracker.kt66 val networkRequest = NetworkRequest.Builder() constant
78 cm.requestNetwork(networkRequest, networkCallback)
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java103 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() argument
104 NetworkInterfaceState network = networkForRequest(networkRequest); in needNetworkFor()
107 Log.e(TAG, "needNetworkFor, failed to get a network for " + networkRequest); in needNetworkFor()
117 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() argument
118 NetworkInterfaceState network = networkForRequest(networkRequest); in releaseNetworkFor()
120 Log.e(TAG, "releaseNetworkFor, failed to get a network for " + networkRequest); in releaseNetworkFor()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java901 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() argument
904 + networkRequest + ", score=" + score); in needNetworkFor()
907 NetworkSpecifier networkSpecifierObj = networkRequest.getNetworkSpecifier(); in needNetworkFor()
915 + networkRequest + " not in cache!?"); in needNetworkFor()
922 + networkRequest + " - already in progress"); in needNetworkFor()
953 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() argument
956 + networkRequest); in releaseNetworkFor()
959 NetworkSpecifier networkSpecifierObj = networkRequest.getNetworkSpecifier(); in releaseNetworkFor()
968 + networkRequest + " not in cache!?"); in releaseNetworkFor()
975 + networkRequest + ", nnri=" + nnri in releaseNetworkFor()
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DGnssNetworkConnectivityHandler.java187 NetworkRequest networkRequest = networkRequestBuilder.build(); in registerNetworkCallbacks() local
189 mConnMgr.registerNetworkCallback(networkRequest, mNetworkConnectivityCallback, mHandler); in registerNetworkCallbacks()
470 NetworkRequest networkRequest = networkRequestBuilder.build();
472 networkRequest,
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuNetworkConnection.java209 NetworkRequest networkRequest = new NetworkRequest.Builder() in connect() local
213 mConnectivityManager.requestNetwork(networkRequest, mConnectivityCallbacks, mHandler, in connect()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSwitcherTest.java1248 NetworkRequest networkRequest = new NetworkRequest(netCap, ConnectivityManager.TYPE_NONE, in addInternetNetworkRequest() local
1254 message.obj = networkRequest; in addInternetNetworkRequest()
1258 return networkRequest; in addInternetNetworkRequest()
1273 NetworkRequest networkRequest = new NetworkRequest(netCap, ConnectivityManager.TYPE_NONE, in addMmsNetworkRequest() local
1279 message.obj = networkRequest; in addMmsNetworkRequest()
1283 return networkRequest; in addMmsNetworkRequest()
1289 private void releaseNetworkRequest(NetworkRequest networkRequest) throws Exception { in releaseNetworkRequest() argument
1292 message.obj = networkRequest; in releaseNetworkRequest()
/frameworks/base/core/java/android/net/
DConnectivityManager.java1454 Log.d(TAG, "renewing startUsingNetworkFeature request " + l.networkRequest); in startUsingNetworkFeature()
1572 NetworkRequest networkRequest; field in ConnectivityManager.LegacyRequest
1606 if (l != null) return l.networkRequest; in findRequestForFeature()
1641 l.networkRequest = sendRequestForNetwork( in requestNetworkForFeatureLocked()
1643 if (l.networkRequest == null) return null; in requestNetworkForFeatureLocked()
1646 return l.networkRequest; in requestNetworkForFeatureLocked()
3532 private NetworkRequest networkRequest; field in ConnectivityManager.NetworkCallback
3631 callback.networkRequest = ALREADY_UNREGISTERED; in handleMessage()
3715 if (callback.networkRequest != null in sendRequestForNetwork()
3716 && callback.networkRequest != ALREADY_UNREGISTERED) { in sendRequestForNetwork()
[all …]
DIConnectivityManager.aidl187 void releaseNetworkRequest(in NetworkRequest networkRequest); in releaseNetworkRequest() argument
/frameworks/libs/net/common/device/android/net/
DNetworkFactory.java361 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() argument
365 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/
DVendorPhoneSwitcher.java336 int phoneIdForRequest = phoneIdForRequest(dcRequest.networkRequest, in onEvaluate()
637 phoneIdForRequest = phoneIdForRequest(dcRequest.networkRequest, in isPhoneIdValidForRetry()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java1208 NetworkRequest networkRequest, String settingName, boolean defaultValue) { in handleAlwaysOnNetworkRequest() argument
1211 final boolean isEnabled = (mNetworkRequests.get(networkRequest) != null); in handleAlwaysOnNetworkRequest()
1218 null, networkRequest, new Binder())); in handleAlwaysOnNetworkRequest()
1220 handleReleaseNetworkRequest(networkRequest, Process.SYSTEM_UID, in handleAlwaysOnNetworkRequest()
5534 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, in requestNetwork() local
5536 NetworkRequestInfo nri = new NetworkRequestInfo(messenger, networkRequest, binder); in requestNetwork()
5544 return networkRequest; in requestNetwork()
5618 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, TYPE_NONE, in pendingRequestForNetwork() local
5620 NetworkRequestInfo nri = new NetworkRequestInfo(networkRequest, operation); in pendingRequestForNetwork()
5624 return networkRequest; in pendingRequestForNetwork()
[all …]
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java3122 NetworkRequest networkRequest = newWifiRequestBuilder().build(); in testNetworkRequestUidSpoofSecurityException() local
3126 mCm.requestNetwork(networkRequest, networkCallback); in testNetworkRequestUidSpoofSecurityException()
4583 NetworkRequest networkRequest = new NetworkRequest.Builder().build(); in testNetworkCallbackMaximum() local
4589 mCm.requestNetwork(networkRequest, cb); in testNetworkCallbackMaximum()
4594 mCm.registerNetworkCallback(networkRequest, cb); in testNetworkCallbackMaximum()
4600 mCm.requestNetwork(networkRequest, pi); in testNetworkCallbackMaximum()
4605 mCm.registerNetworkCallback(networkRequest, pi); in testNetworkCallbackMaximum()
4611 mCm.requestNetwork(networkRequest, new NetworkCallback()) in testNetworkCallbackMaximum()
4614 mCm.registerNetworkCallback(networkRequest, new NetworkCallback()) in testNetworkCallbackMaximum()
4617 mCm.requestNetwork(networkRequest, in testNetworkCallbackMaximum()
[all …]
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt7175 Landroid/app/job/JobInfo;->networkRequest:Landroid/net/NetworkRequest;
42604 Landroid/net/ConnectivityManager$LegacyRequest;->networkRequest:Landroid/net/NetworkRequest;
42605 Landroid/net/ConnectivityManager$NetworkCallback;->networkRequest:Landroid/net/NetworkRequest;
101783 Lcom/android/okhttp/internal/http/CacheStrategy;->networkRequest:Lcom/android/okhttp/Request;
Dboot-image-profile.txt24898 HSPLcom/android/okhttp/internal/http/HttpEngine;->networkRequest(Lcom/android/okhttp/Request;)Lcom/…