Home
last modified time | relevance | path

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

12

/packages/modules/Connectivity/tests/unit/java/android/net/
DConnectivityManagerTest.java228 when(mService.requestNetwork(anyInt(), any(), anyInt(), captor.capture(), anyInt(), any(), in testCallbackRelease()
230 manager.requestNetwork(request, callback, handler); in testCallbackRelease()
257 when(mService.requestNetwork(anyInt(), any(), anyInt(), captor.capture(), anyInt(), any(), in testCallbackRecycling()
259 manager.requestNetwork(req1, callback, handler); in testCallbackRecycling()
275 when(mService.requestNetwork(anyInt(), any(), anyInt(), captor.capture(), anyInt(), any(), in testCallbackRecycling()
277 manager.requestNetwork(req2, callback, handler); in testCallbackRecycling()
299 when(mService.requestNetwork(anyInt(), any(), anyInt(), any(), anyInt(), any(), anyInt(), in noDoubleCallbackRegistration()
303 manager.requestNetwork(request, callback, handler); in noDoubleCallbackRegistration()
307 expectThrowable(() -> manager.requestNetwork(request, callback), wantException); in noDoubleCallbackRegistration()
313 manager.requestNetwork(request, callback); in noDoubleCallbackRegistration()
[all …]
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/
DImsPdnNetworkFetcher.java51 return requestNetwork(); in getImsPdnNetwork()
66 private ListenableFuture<Network> requestNetwork() { in requestNetwork() method in ImsPdnNetworkFetcher
81 cm.requestNetwork(createNetworkRequest(), cb); in requestNetwork()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java209 verify(mConnectivityManager).requestNetwork(any(NetworkRequest.class), in verifyNetworkCallbackInvokedWhenConnected()
239 verify(mConnectivityManager).requestNetwork(any(NetworkRequest.class), in verifyNetworkCallbackWithoutOnAvailable()
262 verify(mConnectivityManager).requestNetwork(any(NetworkRequest.class), in verifyNetworkConnectionTimeout()
315 verify(mConnectivityManager, times(1)).requestNetwork(networkRequestCaptor.capture(), in verifyWifiConfigurationForOsuNetwork()
348 verify(mConnectivityManager, times(1)).requestNetwork(networkRequestCaptor.capture(), in verifyWifiConfigurationForOsenOsuNetwork()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkProviderTest.kt148 mCm.requestNetwork(nr, cb) in <lambda>()
265 mCm.requestNetwork(nrNoNotVcn, cb1) in <lambda>()
286 mCm.requestNetwork(nrNotVcn, cb2) in <lambda>()
393 mCm.requestNetwork(nr, cb) in <lambda>()
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/
DVvmNetworkRequestCallback.java135 public void requestNetwork() { in requestNetwork() method in VvmNetworkRequestCallback
141 getConnectivityManager().requestNetwork(getNetworkRequest(), this); in requestNetwork()
DVvmNetworkRequest.java78 callback.requestNetwork(); in getNetwork()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTestConnectivityManager.java200 public void requestNetwork(NetworkRequest req, NetworkCallback cb, Handler h) { in requestNetwork() method in TestConnectivityManager
223 public void requestNetwork(NetworkRequest req, NetworkCallback cb) { in requestNetwork() method in TestConnectivityManager
228 public void requestNetwork(NetworkRequest req, in requestNetwork() method in TestConnectivityManager
DUpstreamNetworkMonitorTest.java180 verify(mCM).requestNetwork( in testCallbacksRegistered()
232 verify(mCM, times(1)).requestNetwork( in testDuplicateMobileRequestsIgnored()
DTetheringTest.java781 verify(mCm, times(1)).requestNetwork(reqCaptor.capture(), in verifyDefaultNetworkRequestFiled()
1269 inOrder.verify(mCm).requestNetwork(any(), eq(0), eq(TYPE_MOBILE_DUN), any(), any()); in testChooseDunUpstreamByAutomaticMode()
1308 inOrder.verify(mCm, never()).requestNetwork(any(), eq(0), eq(TYPE_MOBILE_DUN), any(), in testChooseDunUpstreamByLegacyMode()
1325 inOrder.verify(mCm, never()).requestNetwork(any(), eq(0), eq(TYPE_MOBILE_DUN), any(), in testChooseDunUpstreamByLegacyMode()
1344 inOrder.verify(mCm).requestNetwork(any(), eq(0), eq(TYPE_MOBILE_DUN), any(), in chooseDunUpstreamTestCommon()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkAgentTest.kt362 private fun requestNetwork(request: NetworkRequest, callback: TestableNetworkCallback) { in requestNetwork() method
363 mCM.requestNetwork(request, callback) in requestNetwork()
435 requestNetwork(makeTestNetworkRequest(specifier = specifier), callback) in createConnectedNetworkAgent()
620 requestNetwork(makeTestNetworkRequest(), callback) in testSendScore()
849 requestNetwork(makeTestNetworkRequest(), commonCallback) in testSetLingerDuration()
1027 requestNetwork(request, callback) in setupForQosCallbackTesting()
DConnectivityDiagnosticsManagerTest.java165 mConnectivityManager.requestNetwork(TEST_NETWORK_REQUEST, mTestNetworkCallback); in setUp()
269 () -> mConnectivityManager.requestNetwork( in doBroadcastCarrierConfigsAndVerifyOnConnectivityReportAvailable()
DConnectivityManagerTest.java895 mCm.requestNetwork(firstRequest, firstIntent); in runIdenticalPendingIntentsRequestTest()
909 mCm.requestNetwork(secondRequest, secondIntent); in runIdenticalPendingIntentsRequestTest()
984 mCm.requestNetwork(new NetworkRequest.Builder() in testRequestNetworkCallback()
1013 mCm.requestNetwork(new NetworkRequest.Builder() in testRequestNetworkCallback_onUnavailable()
1060 mCm.requestNetwork(request, callback); in testRestrictedNetworks()
1066 mCm.requestNetwork(request, callback); in testRestrictedNetworks()
2533 mCm.requestNetwork(makeWifiNetworkRequest(), cb);
DCaptivePortalTest.kt174 cm.requestNetwork(NetworkRequest.Builder().addTransportType(TRANSPORT_WIFI).build(), wifiCb) in testCaptivePortalIsNotDefaultNetwork()
DNetworkValidationTest.kt118 cm.requestNetwork(ethRequest, ethRequestCb) in setUp()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java2061 mCm.requestNetwork(legacyRequest, callback); in testNetworkFeature()
2143 mCm.requestNetwork(wifiRequest, wifiCallback); in testNewNetworkInactive()
2156 mCm.requestNetwork(wifiRequest, wifiCallback); in testNewNetworkInactive()
2884 mCm.requestNetwork(cellRequest, noopCallback); in testMultipleLingering()
2900 mCm.requestNetwork(cellRequest, noopCallback); in testMultipleLingering()
2990 mCm.requestNetwork(cellRequest, noopCallback); in testNetworkGoesIntoBackgroundAfterLinger()
3079 mCm.requestNetwork(request, callback); in testNetworkAgentCallbacks()
3236 mCm.requestNetwork(request, networkCallback); in tryNetworkFactoryRequests()
3259 mCm.requestNetwork(new NetworkRequest.Builder().addCapability(capability).build(), cb); in tryNetworkFactoryRequests()
3292 mCm.requestNetwork(builder.build(), networkCallbacks[i]); in tryNetworkFactoryRequests()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DConnectivityManager.java3948 request = mService.requestNetwork( in sendRequestForNetwork()
3991 public void requestNetwork(@NonNull NetworkRequest request, in requestNetwork() method in ConnectivityManager
4081 public void requestNetwork(@NonNull NetworkRequest request, in requestNetwork() method in ConnectivityManager
4083 requestNetwork(request, networkCallback, getDefaultHandler()); in requestNetwork()
4101 public void requestNetwork(@NonNull NetworkRequest request, in requestNetwork() method in ConnectivityManager
4135 public void requestNetwork(@NonNull NetworkRequest request, in requestNetwork() method in ConnectivityManager
4162 public void requestNetwork(@NonNull NetworkRequest request, in requestNetwork() method in ConnectivityManager
4244 public void requestNetwork(@NonNull NetworkRequest request, in requestNetwork() method in ConnectivityManager
DIConnectivityManager.aidl146 NetworkRequest requestNetwork(int uid, in NetworkCapabilities networkCapabilities, int reqType, in requestNetwork() method
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DTestNetworkUtils.java79 connMgr.requestNetwork(nr, cb); in setupAndGetTestNetwork()
/packages/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/
DConnectivityManagerShimImpl.java89 mCm.requestNetwork(defaultNetworkRequest, networkCallback, handler); in registerSystemDefaultNetworkCallback()
/packages/modules/Connectivity/framework/api/
Dcurrent.txt101 …method public void requestNetwork(@NonNull android.net.NetworkRequest, @NonNull android.net.Connec…
102 …method public void requestNetwork(@NonNull android.net.NetworkRequest, @NonNull android.net.Connec…
103 …method public void requestNetwork(@NonNull android.net.NetworkRequest, @NonNull android.net.Connec…
104 …method public void requestNetwork(@NonNull android.net.NetworkRequest, @NonNull android.net.Connec…
105 …method public void requestNetwork(@NonNull android.net.NetworkRequest, @NonNull android.app.Pendin…
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiShellCommandTest.java582 verify(mConnectivityManager).requestNetwork(argThat(nR -> { in testAddSuggestionWithUntrusted()
617 verify(mConnectivityManager).requestNetwork(argThat(nR -> { in testAddSuggestionWithOemPaid()
652 verify(mConnectivityManager).requestNetwork(argThat(nR -> { in testAddSuggestionWithOemPrivate()
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsNetUtils.java152 mCm.requestNetwork(nr, cb); in setupAndGetTestNetwork()
461 mCm.requestNetwork(cellRequest, mCellNetworkCallback); in connectToCell()
/packages/services/Mms/src/com/android/mms/service/
DMmsNetworkManager.java315 connectivityManager.requestNetwork( in startNewNetworkRequestLocked()
/packages/apps/Dialer/java/com/android/voicemail/impl/fetch/
DFetchVoicemailReceiver.java143 networkCallback.requestNetwork(); in onReceive()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DOsuNetworkConnection.java216 mConnectivityManager.requestNetwork(networkRequest, mConnectivityCallbacks, mHandler, in connect()

12