Home
last modified time | relevance | path

Searched refs:networkRequest (Results 1 – 24 of 24) 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.java416 public void requestNetwork(NetworkRequest networkRequest, @RequestNetworkType int type, in requestNetwork() argument
419 mNetworkRequests.add(networkRequest); in requestNetwork()
420 logl("requestNetwork for " + networkRequest + ", type=" in requestNetwork()
432 public void releaseNetwork(NetworkRequest networkRequest, @ReleaseNetworkType int type) { in releaseNetwork() argument
434 if (mNetworkRequests.contains(networkRequest) == false) { in releaseNetwork()
435 logl("releaseNetwork can't find this request (" + networkRequest + ")"); in releaseNetwork()
437 mNetworkRequests.remove(networkRequest); in releaseNetwork()
DDcTracker.java894 public void requestNetwork(NetworkRequest networkRequest, @RequestNetworkType int type, in requestNetwork() argument
896 final int apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in requestNetwork()
899 apnContext.requestNetwork(networkRequest, type, onCompleteMsg); in requestNetwork()
903 public void releaseNetwork(NetworkRequest networkRequest, @ReleaseNetworkType int type) { in releaseNetwork() argument
904 final int apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in releaseNetwork()
907 apnContext.releaseNetwork(networkRequest, type); in releaseNetwork()
DDataConnection.java3090 for (NetworkRequest networkRequest : apnContext.getNetworkRequests()) { in calculateScore()
3091 if (networkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in calculateScore()
3092 && networkRequest.getNetworkSpecifier() == null) { in calculateScore()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNetworkFactory.java278 NetworkFactoryUserSelectionCallback(NetworkRequest networkRequest) { in NetworkFactoryUserSelectionCallback() argument
279 mNetworkRequest = networkRequest; in NetworkFactoryUserSelectionCallback()
466 boolean isRequestWithNetworkSpecifierValid(NetworkRequest networkRequest) { in isRequestWithNetworkSpecifierValid() argument
467 NetworkSpecifier ns = networkRequest.getNetworkSpecifier(); in isRequestWithNetworkSpecifierValid()
475 if (networkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in isRequestWithNetworkSpecifierValid()
480 if (networkRequest.getRequestorUid() == Process.INVALID_UID) { in isRequestWithNetworkSpecifierValid()
484 if (TextUtils.isEmpty(networkRequest.getRequestorPackageName())) { in isRequestWithNetworkSpecifierValid()
491 networkRequest.getRequestorUid(), networkRequest.getRequestorPackageName()); in isRequestWithNetworkSpecifierValid()
493 Log.e(TAG, "Invalid uid/package name " + networkRequest.getRequestorUid() + ", " in isRequestWithNetworkSpecifierValid()
494 + networkRequest.getRequestorPackageName() + ". Rejecting", e); in isRequestWithNetworkSpecifierValid()
[all …]
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()
DWifiShellCommand.java554 NetworkRequest networkRequest = buildNetworkRequest(pw); in onCommand() local
557 pw.println("Adding request: " + networkRequest); in onCommand()
558 mConnectivityManager.requestNetwork(networkRequest, networkCallback); in onCommand()
560 sActiveRequests.put(ssid, Pair.create(networkRequest, networkCallback)); in onCommand()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java678 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() argument
679 if (VDBG) log("needNetworkFor " + networkRequest + ", " + score); in needNetworkFor()
681 msg.obj = networkRequest; in needNetworkFor()
686 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() argument
687 if (VDBG) log("releaseNetworkFor " + networkRequest); in releaseNetworkFor()
689 msg.obj = networkRequest; in releaseNetworkFor()
694 private void onRequestNetwork(NetworkRequest networkRequest) { in onRequestNetwork() argument
696 DcRequest.create(networkRequest, createApnRepository(networkRequest)); in onRequestNetwork()
699 collectRequestNetworkMetrics(networkRequest); in onRequestNetwork()
708 private void onReleaseNetwork(NetworkRequest networkRequest) { in onReleaseNetwork() argument
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java96 NetworkRequest networkRequest = new NetworkRequest(netCap, -1, in makeSubSpecificInternetRequest() local
98 mTelephonyNetworkFactoryUT.obtainMessage(CMD_REQUEST_NETWORK, 0, 0, networkRequest) in makeSubSpecificInternetRequest()
100 return networkRequest; in makeSubSpecificInternetRequest()
108 NetworkRequest networkRequest = new NetworkRequest(netCap, -1, in makeDefaultInternetRequest() local
110 mTelephonyNetworkFactoryUT.obtainMessage(CMD_REQUEST_NETWORK, 0, 0, networkRequest) in makeDefaultInternetRequest()
112 return networkRequest; in makeDefaultInternetRequest()
122 NetworkRequest networkRequest = new NetworkRequest(netCap, -1, in makeSubSpecificMmsRequest() local
124 mTelephonyNetworkFactoryUT.obtainMessage(CMD_REQUEST_NETWORK, 0, 0, networkRequest) in makeSubSpecificMmsRequest()
126 return networkRequest; in makeSubSpecificMmsRequest()
129 private void releaseNetworkRequest(NetworkRequest networkRequest) { in releaseNetworkRequest() argument
[all …]
/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
DJobInfo.java317 private final NetworkRequest networkRequest; field in JobInfo
463 if (networkRequest == null) { in getNetworkType()
465 } else if (networkRequest.networkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED)) { in getNetworkType()
467 } else if (networkRequest.networkCapabilities.hasCapability(NET_CAPABILITY_NOT_ROAMING)) { in getNetworkType()
469 } else if (networkRequest.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)) { in getNetworkType()
483 return networkRequest; in getRequiredNetwork()
658 if (!Objects.equals(networkRequest, j.networkRequest)) { in equals()
724 if (networkRequest != null) { in hashCode()
725 hashCode = 31 * hashCode + networkRequest.hashCode(); in hashCode()
759 networkRequest = NetworkRequest.CREATOR.createFromParcel(in); in JobInfo()
[all …]
/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.java904 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() argument
907 + networkRequest + ", score=" + score); in needNetworkFor()
910 NetworkSpecifier networkSpecifierObj = networkRequest.getNetworkSpecifier(); in needNetworkFor()
918 + networkRequest + " not in cache!?"); in needNetworkFor()
925 + networkRequest + " - already in progress"); in needNetworkFor()
956 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() argument
959 + networkRequest); in releaseNetworkFor()
962 NetworkSpecifier networkSpecifierObj = networkRequest.getNetworkSpecifier(); in releaseNetworkFor()
971 + networkRequest + " not in cache!?"); in releaseNetworkFor()
978 + networkRequest + ", nnri=" + nnri in releaseNetworkFor()
[all …]
/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()
3493 private NetworkRequest networkRequest; field in ConnectivityManager.NetworkCallback
3592 callback.networkRequest = ALREADY_UNREGISTERED; in handleMessage()
3676 if (callback.networkRequest != null in sendRequestForNetwork()
3677 && callback.networkRequest != ALREADY_UNREGISTERED) { in sendRequestForNetwork()
[all …]
DIConnectivityManager.aidl186 void releaseNetworkRequest(in NetworkRequest networkRequest); in releaseNetworkRequest() argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuNetworkConnection.java213 NetworkRequest networkRequest = new NetworkRequest.Builder() in connect() local
217 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/services/core/java/com/android/server/location/gnss/
DGnssNetworkConnectivityHandler.java294 NetworkRequest networkRequest = networkRequestBuilder.build(); in registerNetworkCallbacks() local
296 mConnMgr.registerNetworkCallback(networkRequest, mNetworkConnectivityCallback, mHandler); in registerNetworkCallbacks()
583 NetworkRequest networkRequest = networkRequestBuilder.build();
585 networkRequest,
/frameworks/libs/net/common/src_servicescommon/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()
5552 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, in requestNetwork() local
5554 NetworkRequestInfo nri = new NetworkRequestInfo(messenger, networkRequest, binder); in requestNetwork()
5562 return networkRequest; in requestNetwork()
5633 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, TYPE_NONE, in pendingRequestForNetwork() local
5635 NetworkRequestInfo nri = new NetworkRequestInfo(networkRequest, operation); in pendingRequestForNetwork()
5639 return networkRequest; in pendingRequestForNetwork()
[all …]
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java3114 NetworkRequest networkRequest = newWifiRequestBuilder().build(); in testNetworkRequestUidSpoofSecurityException() local
3118 mCm.requestNetwork(networkRequest, networkCallback); in testNetworkRequestUidSpoofSecurityException()
4575 NetworkRequest networkRequest = new NetworkRequest.Builder().build(); in testNetworkCallbackMaximum() local
4581 mCm.requestNetwork(networkRequest, cb); in testNetworkCallbackMaximum()
4586 mCm.registerNetworkCallback(networkRequest, cb); in testNetworkCallbackMaximum()
4592 mCm.requestNetwork(networkRequest, pi); in testNetworkCallbackMaximum()
4597 mCm.registerNetworkCallback(networkRequest, pi); in testNetworkCallbackMaximum()
4603 mCm.requestNetwork(networkRequest, new NetworkCallback()) in testNetworkCallbackMaximum()
4606 mCm.registerNetworkCallback(networkRequest, new NetworkCallback()) in testNetworkCallbackMaximum()
4609 mCm.requestNetwork(networkRequest, in testNetworkCallbackMaximum()
[all …]
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/base/config/
Dboot-image-profile.txt31114 HSPLcom/android/okhttp/internal/http/HttpEngine;->networkRequest(Lcom/android/okhttp/Request;)Lcom/…