Home
last modified time | relevance | path

Searched refs:conn (Results 1 – 25 of 28) 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.java261 final CarrierServiceConnection conn = (CarrierServiceConnection) msg.obj; in handleMessage() local
263 if (mServiceConnection[phoneId] != conn || conn.service == null) { in handleMessage()
264 mContext.unbindService(conn); in handleMessage()
273 mContext.unbindService(conn); in handleMessage()
275 if (mServiceConnection[phoneId] != conn) { in handleMessage()
299 ICarrierService.Stub.asInterface(conn.service); in handleMessage()
307 mContext.unbindService(conn); in handleMessage()
390 final CarrierServiceConnection conn = (CarrierServiceConnection) msg.obj; in handleMessage() local
392 if (mServiceConnection[phoneId] != conn || conn.service == null) { in handleMessage()
393 mContext.unbindService(conn); in handleMessage()
[all …]
DPhoneUtils.java992 Connection conn = (Connection) cookie;
1015 ci.numberPresentation = conn.getNumberPresentation();
1022 CallerInfo newCi = getCallerInfo(null, conn);
1034 conn.setUserData(ci);
/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/Email/emailcommon/src/com/android/emailcommon/utility/
DSSLSocketFactory.java36 import org.apache.http.conn.scheme.HostNameResolver;
37 import org.apache.http.conn.scheme.LayeredSocketFactory;
38 import org.apache.http.conn.ssl.AllowAllHostnameVerifier;
39 import org.apache.http.conn.ssl.BrowserCompatHostnameVerifier;
40 import org.apache.http.conn.ssl.StrictHostnameVerifier;
41 import org.apache.http.conn.ssl.X509HostnameVerifier;
DEmailClientConnectionManager.java29 import org.apache.http.conn.scheme.PlainSocketFactory;
30 import org.apache.http.conn.scheme.Scheme;
31 import org.apache.http.conn.scheme.SchemeRegistry;
32 import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageUtils.java70 final ConnectivityManager conn = ConnectivityManager.from(context); in hasEthernet() local
71 if (!conn.isNetworkSupported(ConnectivityManager.TYPE_ETHERNET)) { in hasEthernet()
127 final ConnectivityManager conn = ConnectivityManager.from(context); in hasReadyMobileRadio() local
128 final boolean retVal = conn.isNetworkSupported(TYPE_MOBILE) && isReady; in hasReadyMobileRadio()
132 + 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/services/Car/service/src/com/android/car/vms/
DVmsClientManager.java316 mSystemClients.values().forEach(conn -> conn.notifyIfConnected(listener)); in notifyListenerOfConnectedClients()
319 mCurrentUserClients.values().forEach(conn -> conn.notifyIfConnected(listener)); in notifyListenerOfConnectedClients()
/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.py263 conn = sqlite3.connect(os.path.join(tmpdir, 'databases/bugreport.db'))
264 c = conn.cursor()
276 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.java177 final ConnectivityManager conn = ConnectivityManager.from(mContext); in updateLockdownVpn() local
178 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()

12