Home
last modified time | relevance | path

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

123

/packages/modules/Connectivity/framework/src/android/net/
DNetwork.java319 public URLConnection openConnection(URL url) throws IOException { in openConnection() method in Network
332 return openConnection(url, proxy); in openConnection()
346 public URLConnection openConnection(URL url, java.net.Proxy proxy) throws IOException { in openConnection() method in Network
372 return urlConnectionFactory.openConnection(url, socketFactory, proxy); in openConnection()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicePairer.java111 void openConnection(BluetoothAdapter adapter); in openConnection() method
598 openConnection(); in onBonded()
601 private void openConnection() { in openConnection() method in BluetoothDevicePairer
606 btConnector.openConnection(adapter); in openConnection()
DBluetoothInputDeviceConnector.java155 public void openConnection(BluetoothAdapter adapter) { in openConnection() method in BluetoothInputDeviceConnector
DBluetoothA2dpConnector.java167 public void openConnection(BluetoothAdapter adapter) { in openConnection() method in BluetoothA2dpConnector
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DNetworkUriImageRequest.java60 connection = (HttpURLConnection) url.openConnection(); in isGif()
91 connection = (HttpURLConnection) url.openConnection(); in loadBitmapInternal()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbUtil.java39 UsbDeviceConnection connection = openConnection(usbManager, device); in findAllPossibleAndroidDevices()
49 public static UsbDeviceConnection openConnection(UsbManager manager, UsbDevice device) { in openConnection() method in UsbUtil
DUsbDeviceHandlerResolver.java203 UsbDeviceConnection devConnection = UsbUtil.openConnection(mUsbManager, device); in doHandleResolveHandlers()
223 UsbDeviceConnection connection = UsbUtil.openConnection(mUsbManager, device); in requestAoapSwitch()
/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/
DServerInterface.java62 HttpURLConnection con = (HttpURLConnection) url.openConnection(); in requestSignedCertificates()
114 HttpURLConnection con = (HttpURLConnection) url.openConnection(); in fetchGeek()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DFakeSystemFacade.java82 when(network.openConnection(any())).then(new Answer<URLConnection>() { in getNetwork()
86 return url.openConnection(); in getNetwork()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DHttpFetcher.java71 conn = (HttpURLConnection) url.openConnection(); in sendRequestAsByteArray()
131 httpUrlConnection = (HttpURLConnection) url.openConnection(); in sendRequestAsInputStream()
/packages/apps/Messaging/src/com/android/messaging/util/
DUriUtil.java216 final URLConnection ucon = url.openConnection(); in persistContentToScratchSpace()
273 final URLConnection ucon = url.openConnection(); in persistContent()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java536 }).when(mCleartextDnsNetwork).openConnection(any()); in setUp()
753 verify(mCleartextDnsNetwork, never()).openConnection(new URL(TEST_SPEED_TEST_URL)); in testEvaluatingBandwidthState_meteredNetwork()
773 verify(mCleartextDnsNetwork, never()).openConnection(new URL(TEST_SPEED_TEST_URL)); in testEvaluatingBandwidthState_nonMeteredNetworkWithWrongConfig()
1800 verify(mCleartextDnsNetwork, never()).openConnection(any());
2592 verify(mCleartextDnsNetwork, atMost(4)).openConnection(any());
2593 verify(mCleartextDnsNetwork, atLeastOnce()).openConnection(any());
2606 verify(mCleartextDnsNetwork, atMost(4)).openConnection(any());
2607 verify(mCleartextDnsNetwork, atLeastOnce()).openConnection(any());
2624 verify(mCleartextDnsNetwork, times(4)).openConnection(any());
2634 verify(mCleartextDnsNetwork, times(4)).openConnection(any());
[all …]
/packages/apps/TV/src/com/android/tv/util/
DNetworkUtils.java43 connection = (HttpURLConnection) new URL(GENERATE_204).openConnection(); in isNetworkAvailable()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/
DHttpsTransportTest.java58 when(mNetwork.openConnection(any(URL.class))).thenReturn(mHttpsURLConnection); in setUp()
DHttpsServiceConnectionTest.java72 when(mNetwork.openConnection(any(URL.class))).thenReturn(mHttpsURLConnection); in setUp()
/packages/apps/Settings/tests/componenttests/src/com/android/settings/testutils/
DCommonUtils.java71 connection = (HttpsURLConnection) url.openConnection(); in connectToURL()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/
DHttpsServiceConnection.java47 mConnection = (HttpsURLConnection) network.openConnection(url); in HttpsServiceConnection()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/
DHttpUrlConnectionBuilder.java203 final HttpURLConnection connection = (HttpURLConnection) mUrl.openConnection(); in build()
/packages/apps/Test/connectivity/UID/src/com/android/tests/connectivity/uid/
DConnectivityTestActivity.java87 urlConnection = (HttpURLConnection) targetURL.openConnection(); in httpRequest()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DTestNetworkStackService.kt73 override fun openConnection(url: URL): URLConnection { in openConnection() method in com.android.server.net.integrationtests.TestNetworkStackService
/packages/services/Telephony/src/com/android/phone/callcomposer/
DCallComposerPictureTransfer.java239 (HttpURLConnection) network.openConnection(new URL(uploadUrl)); in prepareInitialPost()
258 (HttpURLConnection) network.openConnection(new URL(imageUrl)); in prepareImageDownloadRequest()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DJavaNetHttpHelper.java131 HttpURLConnection c = (HttpURLConnection) u.openConnection(); in createConnection()
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunTunerHal.java136 connection = url.openConnection(); in connectAndOpenInputStream()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DWifiDownloadReceiver.java107 connection = (HttpURLConnection) url.openConnection(); in doInBackground()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuServerConnectionTest.java124 when(mNetwork.openConnection(any(URL.class))).thenReturn(mUrlConnection); in setUp()
267 doThrow(new IOException()).when(mNetwork).openConnection(any(URL.class)); in verifyInitAndNetworkOpenURLConnectionFailed()

123