Home
last modified time | relevance | path

Searched refs:conn (Results 1 – 25 of 27) sorted by relevance

12

/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java440 HttpURLConnection conn = null; in executeDownload() local
445 conn = (HttpURLConnection) mNetwork.openConnection(url); in executeDownload()
446 conn.setInstanceFollowRedirects(false); in executeDownload()
447 conn.setConnectTimeout(DEFAULT_TIMEOUT); in executeDownload()
448 conn.setReadTimeout(DEFAULT_TIMEOUT); in executeDownload()
451 if (conn instanceof HttpsURLConnection) { in executeDownload()
452 ((HttpsURLConnection)conn).setSSLSocketFactory(appContext.getSocketFactory()); in executeDownload()
455 addRequestHeaders(conn, resuming); in executeDownload()
457 final int responseCode = conn.getResponseCode(); in executeDownload()
464 parseOkHeaders(conn); in executeDownload()
[all …]
DDownloadScanner.java63 public void exec(MediaScannerConnection conn) { in exec() argument
64 conn.scanFile(path, mimeType); in exec()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DHttpFetcher.java66 HttpURLConnection conn = null; in sendRequestAsByteArray() local
71 conn = (HttpURLConnection) url.openConnection(); in sendRequestAsByteArray()
72 setMethodAndHeaders(conn, requestMethod, headers); in sendRequestAsByteArray()
73 int responseCode = conn.getResponseCode(); in sendRequestAsByteArray()
77 is = conn.getInputStream(); in sendRequestAsByteArray()
79 is = conn.getErrorStream(); in sendRequestAsByteArray()
106 if (conn != null) { in sendRequestAsByteArray()
107 conn.disconnect(); in sendRequestAsByteArray()
164 HttpURLConnection conn, String requestMethod, List<Pair<String, String>> headers) in setMethodAndHeaders() argument
166 conn.setRequestMethod(requestMethod); in setMethodAndHeaders()
[all …]
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DAoapInterface.java110 public static int getProtocol(UsbDeviceConnection conn) { in getProtocol() argument
112 int len = conn.controlTransfer( in getProtocol()
121 public static boolean isSupported(Context context, UsbDevice device, UsbDeviceConnection conn) { in isSupported() argument
122 return !isDeviceBlacklisted(context, device) && getProtocol(conn) >= 1; in isSupported()
125 public static void sendString(UsbDeviceConnection conn, int index, String string) in sendString() argument
128 int len = conn.controlTransfer( in sendString()
139 public static void sendAoapStart(UsbDeviceConnection conn) throws IOException { in sendAoapStart() argument
140 int len = conn.controlTransfer( in sendAoapStart()
/packages/services/Car/tests/usb/AoapHostApp/src/com/google/android/car/usb/aoap/host/
DSpeedMeasurementController.java64 UsbDevice device, UsbDeviceConnection conn, in SpeedMeasurementController() argument
74 mUsbConnection = conn; in SpeedMeasurementController()
163 private ReaderThread(UsbDevice device, UsbDeviceConnection conn, int testMode) { in ReaderThread() argument
166 mUsbConnection = conn; in ReaderThread()
219 private BaseWriterThread(UsbDevice device, UsbDeviceConnection conn, int bufferSize) { in BaseWriterThread() argument
222 mUsbConnection = conn; in BaseWriterThread()
270 private WriterSyncThread(UsbDevice device, UsbDeviceConnection conn, int bufferSize) { in WriterSyncThread() argument
271 super(device, conn, bufferSize); in WriterSyncThread()
316 private WriterAsyncThread(UsbDevice device, UsbDeviceConnection conn, int bufferSize) { in WriterAsyncThread() argument
317 super(device, conn, bufferSize); in WriterAsyncThread()
/packages/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java278 final CarrierServiceConnection conn = (CarrierServiceConnection) msg.obj; in handleMessage() local
280 if (mServiceConnection[phoneId] != conn || conn.service == null) { in handleMessage()
281 unbindIfBound(mContext, conn, phoneId); in handleMessage()
290 unbindIfBound(mContext, conn, phoneId); in handleMessage()
292 if (mServiceConnection[phoneId] != conn) { in handleMessage()
316 ICarrierService.Stub.asInterface(conn.service); in handleMessage()
324 unbindIfBound(mContext, conn, phoneId); in handleMessage()
400 final CarrierServiceConnection conn = (CarrierServiceConnection) msg.obj; in handleMessage() local
402 if (mServiceConnection[phoneId] != conn || conn.service == null) { in handleMessage()
403 unbindIfBound(mContext, conn, phoneId); in handleMessage()
[all …]
/packages/apps/Launcher3/
Dprint_db.py52 def get_favorites(conn): argument
53 c = conn.cursor()
61 def get_screens(conn): argument
62 c = conn.cursor()
154 conn = sqlite3.connect(fn)
155 columns,rows = get_favorites(conn)
156 screenCols, screenRows = get_screens(conn)
Dfill_screens.py54 conn = sqlite3.connect(fn)
55 c = conn.cursor()
77 conn.commit()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageUtils.java69 final ConnectivityManager conn = context.getSystemService(ConnectivityManager.class); in hasEthernet() local
70 if (!conn.isNetworkSupported(ConnectivityManager.TYPE_ETHERNET)) { in hasEthernet()
128 final ConnectivityManager conn = context.getSystemService(ConnectivityManager.class); in hasReadyMobileRadio() local
129 final boolean retVal = conn.isNetworkSupported(TYPE_MOBILE) && isReady; in hasReadyMobileRadio()
133 + conn.isNetworkSupported(TYPE_MOBILE) in hasReadyMobileRadio()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageUtils.java69 final ConnectivityManager conn = ConnectivityManager.from(context); in hasEthernet() local
70 if (!conn.isNetworkSupported(ConnectivityManager.TYPE_ETHERNET)) { in hasEthernet()
126 final ConnectivityManager conn = ConnectivityManager.from(context); in hasReadyMobileRadio() local
127 final boolean retVal = conn.isNetworkSupported(TYPE_MOBILE) && isReady; in hasReadyMobileRadio()
131 + conn.isNetworkSupported(TYPE_MOBILE) in hasReadyMobileRadio()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
DVendorServiceControllerTest.java197 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() argument
200 conn.onServiceConnected(service.getComponent(), null); in bindServiceAsUser()
205 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, in bindServiceAsUser() argument
207 return bindServiceAsUser(service, conn, flags, null, user); in bindServiceAsUser()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java1677 private void readContentFromDownloadUrl(@NonNull final HttpURLConnection conn) in readContentFromDownloadUrl() argument
1680 final InputStream is = conn.getInputStream(); in readContentFromDownloadUrl()
2558 final HttpURLConnection conn = (HttpURLConnection) mCleartextDnsNetwork.openConnection(url); in makeProbeConnection() local
2559 conn.setInstanceFollowRedirects(followRedirects); in makeProbeConnection()
2560 conn.setConnectTimeout(SOCKET_TIMEOUT_MS); in makeProbeConnection()
2561 conn.setReadTimeout(SOCKET_TIMEOUT_MS); in makeProbeConnection()
2562 conn.setRequestProperty("Connection", "close"); in makeProbeConnection()
2563 conn.setUseCaches(false); in makeProbeConnection()
2565 conn.setRequestProperty("User-Agent", mCaptivePortalUserAgent); in makeProbeConnection()
2567 return conn; in makeProbeConnection()
[all …]
/packages/modules/NetworkStack/tests/integration/src/android/net/netlink/
DInetDiagSocketIntegrationTest.java154 private int findLikelyFreeUdpPort(UdpConnection conn) throws Exception { in findLikelyFreeUdpPort() argument
155 UdpConnection udp = new UdpConnection(conn.remoteAddress.getHostAddress(), in findLikelyFreeUdpPort()
156 conn.localAddress.getHostAddress()); in findLikelyFreeUdpPort()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestCertActivity.java106 HttpURLConnection conn = (HttpURLConnection) url.openConnection(); in getCertificateList() local
107 conn.setRequestMethod("GET"); in getCertificateList()
109 InputStream in = new BufferedInputStream(conn.getInputStream()); in getCertificateList()
/packages/apps/Settings/src/com/android/settings/
DUserCredentialsSettings.java223 final KeyChainConnection conn; in removeGrantsAndDelete() local
225 conn = KeyChain.bind(getContext()); in removeGrantsAndDelete()
232 IKeyChainService keyChain = conn.getService(); in removeGrantsAndDelete()
237 conn.close(); in removeGrantsAndDelete()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUserCredentialsSettings.java223 final KeyChainConnection conn; in removeGrantsAndDelete() local
225 conn = KeyChain.bind(getContext()); in removeGrantsAndDelete()
232 IKeyChainService keyChain = conn.getService(); in removeGrantsAndDelete()
237 conn.close(); in removeGrantsAndDelete()
/packages/apps/Test/connectivity/UID/src/com/android/tests/connectivity/uid/
DConnectivityTestActivity.java63 boolean conn = checkNow(); in onResume()
65 returnIntent.putExtra(RESULT, conn); in onResume()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DContextMap.java468 for (Connection conn : mConnections) { in getConnectedMap()
469 connectedmap.put(conn.appId, conn.address); in getConnectedMap()
/packages/services/Car/tests/BugReportApp/utils/
Dbugreport_app_tester.py278 conn = sqlite3.connect(os.path.join(tmpdir, 'databases/bugreport.db'))
279 c = conn.cursor()
291 conn.close()
/packages/apps/Nfc/nci/jni/
DPeerToPeer.cpp791 sp<NfaConn> conn = mServers[ii]->findServerConnection(nfaConnHandle); in findConnection() local
792 if (conn != NULL) { in findConnection()
793 return conn; in findConnection()
825 sp<NfaConn> conn = mServers[ii]->findServerConnection(jniHandle); in findConnection() local
826 if (conn != NULL) { in findConnection()
827 return conn; in findConnection()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DExportVCardActivity.java216 public void unbindService(ServiceConnection conn) { in unbindService() argument
218 super.unbindService(conn); in unbindService()
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialogFragment.java181 final ConnectivityManager conn = ConnectivityManager.from(mContext); in updateLockdownVpn() local
182 conn.setAlwaysOnVpnPackageForUser(UserHandle.myUserId(), null, in updateLockdownVpn()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DConfigDialogFragment.java177 final ConnectivityManager conn = ConnectivityManager.from(mContext); in updateLockdownVpn() local
178 conn.setAlwaysOnVpnPackageForUser(UserHandle.myUserId(), null, in updateLockdownVpn()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DHttpClientFactory.java26 import org.apache.http.conn.params.ConnManagerParams;
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java581 Conference prepareConference(Connection conn, PhoneAccountHandle phoneAccountHandle) { in prepareConference() argument
582 if (!(conn instanceof TelephonyConnection)) { in prepareConference()
587 TelephonyConnection connection = (TelephonyConnection)conn; in prepareConference()
857 TelephonyConnection conn = (TelephonyConnection)resultConnection; in onCreateOutgoingConnection() local
858 conn.setParticipants(request.getParticipants()); in onCreateOutgoingConnection()

12