Home
last modified time | relevance | path

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

/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactory.java197 private int getTransportTypeFromNetworkRequest(NetworkRequest networkRequest) { in getTransportTypeFromNetworkRequest() argument
198 int apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in getTransportTypeFromNetworkRequest()
202 private void requestNetworkInternal(NetworkRequest networkRequest, in requestNetworkInternal() argument
206 mPhone.getDcTracker(transport).requestNetwork(networkRequest, requestType, in requestNetworkInternal()
211 private void releaseNetworkInternal(NetworkRequest networkRequest, in releaseNetworkInternal() argument
215 mPhone.getDcTracker(transport).releaseNetwork(networkRequest, releaseType); in releaseNetworkInternal()
232 NetworkRequest networkRequest = entry.getKey(); in onActivePhoneSwitch() local
236 networkRequest, mPhone.getPhoneId()); in onActivePhoneSwitch()
242 ? "Requesting" : "Releasing") + " network request " + networkRequest); in onActivePhoneSwitch()
243 int transportType = getTransportTypeFromNetworkRequest(networkRequest); in onActivePhoneSwitch()
[all …]
DDcRequest.java28 public final NetworkRequest networkRequest; field in DcRequest
34 networkRequest = nr; in DcRequest()
35 apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in DcRequest()
40 return networkRequest.toString() + ", priority=" + priority + ", apnType=" + apnType; in toString()
44 return networkRequest.hashCode(); in hashCode()
49 return networkRequest.equals(((DcRequest)o).networkRequest); in equals()
DApnContext.java407 public void requestNetwork(NetworkRequest networkRequest, @RequestNetworkType int type, in requestNetwork() argument
410 mNetworkRequests.add(networkRequest); in requestNetwork()
411 logl("requestNetwork for " + networkRequest + ", type=" in requestNetwork()
423 public void releaseNetwork(NetworkRequest networkRequest, @ReleaseNetworkType int type) { in releaseNetwork() argument
425 if (mNetworkRequests.contains(networkRequest) == false) { in releaseNetwork()
426 logl("releaseNetwork can't find this request (" + networkRequest + ")"); in releaseNetwork()
428 mNetworkRequests.remove(networkRequest); in releaseNetwork()
DDcTracker.java906 public void requestNetwork(NetworkRequest networkRequest, @RequestNetworkType int type, in requestNetwork() argument
908 final int apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in requestNetwork()
911 apnContext.requestNetwork(networkRequest, type, onCompleteMsg); in requestNetwork()
915 public void releaseNetwork(NetworkRequest networkRequest, @ReleaseNetworkType int type) { in releaseNetwork() argument
916 final int apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in releaseNetwork()
919 apnContext.releaseNetwork(networkRequest, type); in releaseNetwork()
/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.networkCapabilities.hasCapability( in needNetworkFor()
59 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() argument
60 if (!networkRequest.networkCapabilities.hasCapability( in releaseNetworkFor()
DWifiNetworkFactory.java296 NetworkFactoryUserSelectionCallback(NetworkRequest networkRequest) { in NetworkFactoryUserSelectionCallback() argument
297 mNetworkRequest = networkRequest; in NetworkFactoryUserSelectionCallback()
481 boolean isRequestWithNetworkSpecifierValid(NetworkRequest networkRequest) { in isRequestWithNetworkSpecifierValid() argument
482 NetworkSpecifier ns = networkRequest.networkCapabilities.getNetworkSpecifier(); in isRequestWithNetworkSpecifierValid()
490 if (networkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in isRequestWithNetworkSpecifierValid()
504 public boolean acceptRequest(NetworkRequest networkRequest, int score) { in acceptRequest() argument
505 NetworkSpecifier ns = networkRequest.networkCapabilities.getNetworkSpecifier(); in acceptRequest()
510 if (!isRequestWithNetworkSpecifierValid(networkRequest)) { in acceptRequest()
511 releaseRequestAsUnfulfillableByAnyFactory(networkRequest); in acceptRequest()
523 releaseRequestAsUnfulfillableByAnyFactory(networkRequest); in acceptRequest()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java643 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() argument
644 if (VDBG) log("needNetworkFor " + networkRequest + ", " + score); in needNetworkFor()
646 msg.obj = networkRequest; in needNetworkFor()
651 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() argument
652 if (VDBG) log("releaseNetworkFor " + networkRequest); in releaseNetworkFor()
654 msg.obj = networkRequest; in releaseNetworkFor()
659 private void onRequestNetwork(NetworkRequest networkRequest) { in onRequestNetwork() argument
660 final DcRequest dcRequest = new DcRequest(networkRequest, mContext); in onRequestNetwork()
662 collectRequestNetworkMetrics(networkRequest); in onRequestNetwork()
669 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()
678 if (!Objects.equals(networkRequest, j.networkRequest)) { in equals()
744 if (networkRequest != null) { in hashCode()
745 hashCode = 31 * hashCode + networkRequest.hashCode(); in hashCode()
779 networkRequest = NetworkRequest.CREATOR.createFromParcel(in); in JobInfo()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java359 public boolean addRequest(NetworkRequest networkRequest) { in addRequest() argument
360 NetworkRequest existing = mNetworkRequests.get(networkRequest.requestId); in addRequest()
361 if (existing == networkRequest) return false; in addRequest()
366 networkRequest, existing, name())); in addRequest()
369 mNetworkRequests.put(networkRequest.requestId, networkRequest); in addRequest()
370 updateRequestCounts(ADD, networkRequest); in addRequest()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java408 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, in requestNetwork() local
410 NetworkRequestInfo nri = new NetworkRequestInfo(messenger, networkRequest, binder, true); in requestNetwork()
415 return networkRequest; in requestNetwork()
418 public void releaseNetworkRequest(NetworkRequest networkRequest) { in releaseNetworkRequest() argument
420 0, networkRequest)); in releaseNetworkRequest()
580 private void sendUpdatedScoreToFactories(NetworkRequest networkRequest, int score) { in sendUpdatedScoreToFactories() argument
581 if (VDBG) log("sending new Min Network Score(" + score + "): " + networkRequest.toString()); in sendUpdatedScoreToFactories()
584 networkRequest); in sendUpdatedScoreToFactories()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java104 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() argument
105 NetworkInterfaceState network = networkForRequest(networkRequest); in needNetworkFor()
108 Log.e(TAG, "needNetworkFor, failed to get a network for " + networkRequest); in needNetworkFor()
118 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() argument
119 NetworkInterfaceState network = networkForRequest(networkRequest); in releaseNetworkFor()
121 Log.e(TAG, "needNetworkFor, failed to get a network for " + networkRequest); in releaseNetworkFor()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java902 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() argument
905 + networkRequest + ", score=" + score); in needNetworkFor()
909 networkRequest.networkCapabilities.getNetworkSpecifier(); in needNetworkFor()
917 + networkRequest + " not in cache!?"); in needNetworkFor()
924 + networkRequest + " - already in progress"); in needNetworkFor()
955 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() argument
958 + networkRequest); in releaseNetworkFor()
962 networkRequest.networkCapabilities.getNetworkSpecifier(); in releaseNetworkFor()
971 + networkRequest + " not in cache!?"); in releaseNetworkFor()
978 + 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()
466 NetworkRequest networkRequest = networkRequestBuilder.build();
468 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.java1116 NetworkRequest networkRequest = new NetworkRequest(netCap, ConnectivityManager.TYPE_NONE, in addInternetNetworkRequest() local
1122 message.obj = networkRequest; in addInternetNetworkRequest()
1125 return networkRequest; in addInternetNetworkRequest()
1140 NetworkRequest networkRequest = new NetworkRequest(netCap, ConnectivityManager.TYPE_NONE, in addMmsNetworkRequest() local
1146 message.obj = networkRequest; in addMmsNetworkRequest()
1149 return networkRequest; in addMmsNetworkRequest()
1155 private void releaseNetworkRequest(NetworkRequest networkRequest) throws Exception { in releaseNetworkRequest() argument
1158 message.obj = networkRequest; in releaseNetworkRequest()
/frameworks/base/core/java/android/net/
DConnectivityManager.java1409 Log.d(TAG, "renewing startUsingNetworkFeature request " + l.networkRequest); in startUsingNetworkFeature()
1605 NetworkRequest networkRequest; field in ConnectivityManager.LegacyRequest
1639 if (l != null) return l.networkRequest; in findRequestForFeature()
1674 l.networkRequest = sendRequestForNetwork( in requestNetworkForFeatureLocked()
1676 if (l.networkRequest == null) return null; in requestNetworkForFeatureLocked()
1679 return l.networkRequest; in requestNetworkForFeatureLocked()
3360 private NetworkRequest networkRequest; field in ConnectivityManager.NetworkCallback
3459 callback.networkRequest = ALREADY_UNREGISTERED; in handleMessage()
3542 if (callback.networkRequest != null in sendRequestForNetwork()
3543 && callback.networkRequest != ALREADY_UNREGISTERED) { in sendRequestForNetwork()
[all …]
DNetworkFactory.java425 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor() argument
429 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor() argument
DIConnectivityManager.aidl177 void releaseNetworkRequest(in NetworkRequest networkRequest); in releaseNetworkRequest() argument
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java1102 NetworkRequest networkRequest, String settingName, boolean defaultValue) { in handleAlwaysOnNetworkRequest() argument
1105 final boolean isEnabled = (mNetworkRequests.get(networkRequest) != null); in handleAlwaysOnNetworkRequest()
1112 null, networkRequest, new Binder())); in handleAlwaysOnNetworkRequest()
1114 handleReleaseNetworkRequest(networkRequest, Process.SYSTEM_UID, in handleAlwaysOnNetworkRequest()
5142 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, in requestNetwork() local
5144 NetworkRequestInfo nri = new NetworkRequestInfo(messenger, networkRequest, binder); in requestNetwork()
5152 return networkRequest; in requestNetwork()
5221 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, TYPE_NONE, in pendingRequestForNetwork() local
5223 NetworkRequestInfo nri = new NetworkRequestInfo(networkRequest, operation); in pendingRequestForNetwork()
5227 return networkRequest; in pendingRequestForNetwork()
[all …]
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java3206 NetworkRequest networkRequest = newWifiRequestBuilder().setNetworkSpecifier( in testNetworkSpecifierUidSpoofSecurityException() local
3210 mCm.requestNetwork(networkRequest, networkCallback); in testNetworkSpecifierUidSpoofSecurityException()
4724 NetworkRequest networkRequest = new NetworkRequest.Builder().build(); in testNetworkCallbackMaximum() local
4730 mCm.requestNetwork(networkRequest, cb); in testNetworkCallbackMaximum()
4735 mCm.registerNetworkCallback(networkRequest, cb); in testNetworkCallbackMaximum()
4741 mCm.requestNetwork(networkRequest, pi); in testNetworkCallbackMaximum()
4746 mCm.registerNetworkCallback(networkRequest, pi); in testNetworkCallbackMaximum()
4752 mCm.requestNetwork(networkRequest, new NetworkCallback()); in testNetworkCallbackMaximum()
4756 mCm.registerNetworkCallback(networkRequest, new NetworkCallback()); in testNetworkCallbackMaximum()
4760 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/ ...