Home
last modified time | relevance | path

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

123

/packages/modules/Connectivity/tests/unit/java/android/net/
DConnectivityManagerTest.java242 when(mService.requestNetwork(anyInt(), any(), anyInt(), captor.capture(), anyInt(), any(), in testCallbackRelease()
244 manager.requestNetwork(request, callback, handler); in testCallbackRelease()
271 when(mService.requestNetwork(anyInt(), any(), anyInt(), captor.capture(), anyInt(), any(), in testCallbackRecycling()
273 manager.requestNetwork(req1, callback, handler); in testCallbackRecycling()
289 when(mService.requestNetwork(anyInt(), any(), anyInt(), captor.capture(), anyInt(), any(), in testCallbackRecycling()
291 manager.requestNetwork(req2, callback, handler); in testCallbackRecycling()
313 when(mService.requestNetwork(anyInt(), any(), anyInt(), any(), anyInt(), any(), anyInt(), in noDoubleCallbackRegistration()
317 manager.requestNetwork(request, callback, handler); in noDoubleCallbackRegistration()
321 expectThrowable(() -> manager.requestNetwork(request, callback), wantException); in noDoubleCallbackRegistration()
327 manager.requestNetwork(request, callback); in noDoubleCallbackRegistration()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSBlockedReasonsTest.kt98 cm.requestNetwork(cellRequest(), cellCb) in cellNc()
99 cm.requestNetwork(wifiRequest(), wifiCb) in cellNc()
126 cm.requestNetwork(cellRequest(), cellCb) in cellNc()
127 cm.requestNetwork(wifiRequest(), wifiCb) in cellNc()
180 cm.requestNetwork(cellRequest(), cellCb) in cellNc()
181 cm.requestNetwork(wifiRequest(), wifiCb) in cellNc()
246 cm.requestNetwork(wifiRequest(), wifiCb) in cellNc()
283 cm.requestNetwork(wifiRequest(), wifiCb) in cellNc()
321 cm.requestNetwork(cellRequest(), cellCb) in cellNc()
322 cm.requestNetwork(wifiRequest(), wifiCb) in cellNc()
[all …]
DCSNetworkRequestStateStatsMetricsTests.kt54 cm.requestNetwork(CELL_INTERNET_NOT_METERED_NR, TestableNetworkCallback()) in <lambda>()
72 cm.requestNetwork(CELL_INTERNET_NOT_METERED_NR, cb) in <lambda>()
DCSNetworkActivityTest.kt90 cm.requestNetwork(cellNr, cellCb) in <lambda>()
174 cm.requestNetwork(dataNetworkNr, dataNetworkCb) in <lambda>()
192 cm.requestNetwork(imsNetworkNr, imsNetworkCb) in <lambda>()
DCSDestroyedNetworkTests.kt50 cm.requestNetwork(nr, cbRequest) in testDestroyNetworkNotKeptWhenUnvalidated()
DCSLocalAgentTests.kt132 cm.requestNetwork(NetworkRequest.Builder() in keepScore()
161 cm.requestNetwork(NetworkRequest.Builder() in keepScore()
592 cm.requestNetwork(NetworkRequest.Builder().clearCapabilities() in keepScore()
800 cm.requestNetwork(nr, requestCb) in keepScore()
847 cm.requestNetwork(request, requestCb) in keepScore()
DCSIngressDiscardRuleTests.kt188 cm.requestNetwork(nr, cb) in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateVpnAddress()
238 cm.requestNetwork(nr, cb) in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateNonVpnAddress()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DAutoReleaseNetworkCallbackRule.kt79 val cb = requestNetwork( in requestCell()
120 fun requestNetwork( in requestNetwork() method in com.android.testutils.NetworkCallbackHelper
126 cm.requestNetwork(request, it) in requestNetwork()
128 cm.requestNetwork(request, it, handler) in requestNetwork()
136 fun requestNetwork( in requestNetwork() method
140 ) = addCallback(cb) { cm.requestNetwork(request, it, timeoutMs) } in requestNetwork()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DEthernetManagerTest.kt445 private fun requestNetwork(request: NetworkRequest): TestableNetworkCallback { in <lambda>() method
449 cm.requestNetwork(request, it) in <lambda>()
704 val cb = requestNetwork(ETH_REQUEST) in <lambda>()
714 val cb = requestNetwork(ETH_REQUEST) in <lambda>()
735 val cb = requestNetwork(ETH_REQUEST.copyWithEthernetSpecifier(iface2.name)) in <lambda>()
750 val cb = requestNetwork(ETH_REQUEST) in <lambda>()
768 val cb1 = requestNetwork(ETH_REQUEST.copyWithEthernetSpecifier(iface1.name)) in <lambda>()
769 val cb2 = requestNetwork(ETH_REQUEST.copyWithEthernetSpecifier(iface2.name)) in <lambda>()
770 val cb3 = requestNetwork(ETH_REQUEST) in <lambda>()
789 val cb1 = requestNetwork(ETH_REQUEST) in <lambda>()
[all …]
DNetworkAgentTest.kt266 private fun requestNetwork(request: NetworkRequest, callback: TestableNetworkCallback) { in disconnect() method
267 mCM.requestNetwork(request, callback) in disconnect()
350 requestNetwork(makeTestNetworkRequest(specifier), callback) in createConnectedNetworkAgent()
873 requestNetwork(makeTestNetworkRequest(), callback) in testSendScore()
1103 requestNetwork(makeTestNetworkRequest(), commonCallback) in testSetLingerDuration()
1518 requestNetwork(makeTestNetworkRequest(), testCallback) in testUnregisterAfterReplacement()
1603 requestNetwork(makeTestNetworkRequest(specifier = specifier6), callback) in testUnregisterAfterReplacement()
1684 requestNetwork(makeTestNetworkRequest(specifier = specifier), callback) in testUnregisterAgentBeforeAgentFullyConnected()
1721 requestNetwork(request, requestCallback) in doTestNativeNetworkCreation()
/packages/modules/Connectivity/framework/api/
Dlint-baseline.txt6 RequiresPermission: android.net.ConnectivityManager#requestNetwork(android.net.NetworkRequest, andr…
7 Method 'requestNetwork' documentation mentions permissions without declaring @RequiresPermission
8 RequiresPermission: android.net.ConnectivityManager#requestNetwork(android.net.NetworkRequest, andr…
9 Method 'requestNetwork' documentation mentions permissions without declaring @RequiresPermission
Dsystem-lint-baseline.txt8 RequiresPermission: android.net.ConnectivityManager#requestNetwork(android.net.NetworkRequest, andr…
9 Method 'requestNetwork' documentation mentions permissions without declaring @RequiresPermission
10 RequiresPermission: android.net.ConnectivityManager#requestNetwork(android.net.NetworkRequest, andr…
11 Method 'requestNetwork' documentation mentions permissions without declaring @RequiresPermission
Dmodule-lib-lint-baseline.txt8 RequiresPermission: android.net.ConnectivityManager#requestNetwork(android.net.NetworkRequest, andr…
9 Method 'requestNetwork' documentation mentions permissions without declaring @RequiresPermission
10 RequiresPermission: android.net.ConnectivityManager#requestNetwork(android.net.NetworkRequest, andr…
11 Method 'requestNetwork' documentation mentions permissions without declaring @RequiresPermission
/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/Connectivity/tests/cts/hostside/networkslicingtestapp/src/com.android.cts.net.hostside.networkslicingtestapp/
DNetworkSelfDeclaredCapabilitiesTest.java55 cm.requestNetwork(request, callback); in requestNetwork_withoutRequestCapabilities()
74 cm.requestNetwork(request, callback); in requestNetwork_withSelfDeclaredCapabilities()
95 () -> cm.requestNetwork(request, callback)); in requestNetwork_lackingRequiredSelfDeclaredCapabilities()
/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/services/Mms/tests/robotests/src/com/android/mms/service/
DMmsNetworkManagerTest.java114 .requestNetwork(any(), callbackCaptor.capture(), anyInt()); in testAvailableNetwork_newNetworkIsSuspend()
173 .requestNetwork(any(), callbackCaptor.capture(), anyInt()); in testAvailableNetwork_networkUnavailable()
194 .requestNetwork(any(), callbackCaptor.capture(), anyInt()); in testAvailableNetwork_newNetworkSuspendedEventuallyReleased()
235 .requestNetwork(any(), callbackCaptor.capture(), anyInt()); in acquireAvailableNetworkAndGetCallback()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkProviderTest.kt149 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/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiShellCommandTest.java611 verify(mConnectivityManager).requestNetwork(argThat(nR -> { in testAddSuggestionWithUntrusted()
646 verify(mConnectivityManager).requestNetwork(argThat(nR -> { in testAddSuggestionWithOemPaid()
681 verify(mConnectivityManager).requestNetwork(argThat(nR -> { in testAddSuggestionWithOemPrivate()
914 verify(mConnectivityManager).requestNetwork(eq( in testAddNetworkRequest()
929 verify(mConnectivityManager).requestNetwork(eq( in testAddNetworkRequest()
945 verify(mConnectivityManager).requestNetwork(eq( in testAddNetworkRequest()
961 verify(mConnectivityManager).requestNetwork(eq( in testAddNetworkRequest()
977 verify(mConnectivityManager).requestNetwork(eq( in testAddNetworkRequest()
993 verify(mConnectivityManager).requestNetwork(eq( in testAddNetworkRequest()
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/
DVvmNetworkRequestCallback.java154 public void requestNetwork() { in requestNetwork() method in VvmNetworkRequestCallback
160 getConnectivityManager().requestNetwork(getNetworkRequest(), this); in requestNetwork()
DVvmNetworkRequest.java78 callback.requestNetwork(); in getNetwork()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTestConnectivityManager.java206 public void requestNetwork(NetworkRequest req, NetworkCallback cb, Handler h) { in requestNetwork() method in TestConnectivityManager
234 public void requestNetwork(NetworkRequest req, NetworkCallback cb) { in requestNetwork() method in TestConnectivityManager
239 public void requestNetwork(NetworkRequest req, in requestNetwork() method in TestConnectivityManager
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DTestNetworkUtils.java79 connMgr.requestNetwork(nr, cb); in setupAndGetTestNetwork()
/packages/modules/NetworkStack/apishim/29/com/android/networkstack/apishim/api29/
DConnectivityManagerShimImpl.java83 mCm.requestNetwork(defaultNetworkRequest, networkCallback, handler); in registerSystemDefaultNetworkCallback()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java2688 mCm.requestNetwork(legacyRequest, callback);
2770 mCm.requestNetwork(wifiRequest, wifiCallback);
2783 mCm.requestNetwork(wifiRequest, wifiCallback);
3085 mCm.requestNetwork(new NetworkRequest.Builder().addCapability(NET_CAPABILITY_MMS).build(),
3375 mCm.requestNetwork(wifiRequest, cb);
3768 mCm.requestNetwork(cellRequest, noopCallback);
3784 mCm.requestNetwork(cellRequest, noopCallback);
3878 mCm.requestNetwork(cellRequest, noopCallback);
4033 mCm.requestNetwork(request, callback);
4126 mCm.requestNetwork(cellRequest, cellCallback);
[all …]

123