Home
last modified time | relevance | path

Searched refs:openConnection (Results 1 – 25 of 75) 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/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
DUsbHostController.java231 UsbDeviceConnection connection = UsbUtil.openConnection(usbManager, device); in isDeviceAoapPossible()
347 UsbDeviceConnection connection = UsbUtil.openConnection(mUsbManager, failedDevice); in onFailure()
DUsbDeviceHandlerResolver.java203 UsbDeviceConnection devConnection = UsbUtil.openConnection(mUsbManager, device); in doHandleResolveHandlers()
223 UsbDeviceConnection connection = UsbUtil.openConnection(mUsbManager, device); in requestAoapSwitch()
/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/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicePairer.java118 void openConnection(BluetoothAdapter adapter); in openConnection() method
631 openConnection(); in onBonded()
640 private void openConnection() { in openConnection() method in BluetoothDevicePairer
645 mBTConnector.openConnection(adapter); in openConnection()
DBluetoothInputDeviceConnector.java158 public void openConnection(BluetoothAdapter adapter) { in openConnection() method in BluetoothInputDeviceConnector
/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/modules/Wifi/service/java/com/android/server/wifi/entitlement/http/
DHttpClient.java118 connection = (HttpsURLConnection) url.openConnection(); in createConnection()
120 connection = (HttpsURLConnection) network.openConnection(url); in createConnection()
/packages/apps/TV/src/com/android/tv/util/
DNetworkUtils.java43 connection = (HttpURLConnection) new URL(GENERATE_204).openConnection(); in isNetworkAvailable()
/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/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/
DHttpsTransportTest.java58 when(mNetwork.openConnection(any(URL.class))).thenReturn(mHttpsURLConnection); in setUp()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/
DTlsConnectionAvailableRule.java71 HttpURLConnection connection = (HttpURLConnection) url.openConnection();
/packages/services/Telephony/testapps/TestSliceApp/app/src/main/java/com/google/android/sample/testsliceapp/
DRequestTask.java58 HttpURLConnection connection = (HttpURLConnection) network.openConnection(httpUrl); in httpGet()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/
DHttpUrlConnectionBuilder.java203 final HttpURLConnection connection = (HttpURLConnection) mUrl.openConnection(); in build()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/
DHttpsServiceConnection.java47 mConnection = (HttpsURLConnection) network.openConnection(url); in HttpsServiceConnection()
/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.kt100 override fun openConnection(url: URL) = MockConnection( in getInputStream() method
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/
DAggregateReportSenderTest.java112 Mockito.doReturn(mockConnection).when(spyUrl).openConnection(); in testCreateHttpUrlConnection()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/entitlement/http/
DHttpClientTest.java181 when(network.openConnection(url)).thenReturn(connection); in request_contentTypeXml_returnsXmlBody_useSpecificNetwork()
194 verify(network).openConnection(url); in request_contentTypeXml_returnsXmlBody_useSpecificNetwork()
DFakeURLStreamHandler.java57 public URLConnection openConnection(URL u) { in openConnection() method in FakeURLStreamHandler
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/
DServerAuctionE2ETestBase.java58 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in makeWarmUpNetworkCall()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DJavaNetHttpHelper.kt112 val c: HttpURLConnection = u.openConnection() as HttpURLConnection in createConnection()
/packages/apps/Settings/tests/componenttests/src/com/android/settings/testutils/
DCommonUtils.java87 connection = (HttpsURLConnection) url.openConnection(); in connectToURL()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/http/
DHttpClient.java62 URLConnection urlConnection = url.openConnection(); in setup()

123