/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadThread.java | 440 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 …]
|
D | DownloadScanner.java | 63 public void exec(MediaScannerConnection conn) { in exec() argument 64 conn.scanFile(path, mimeType); in exec()
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | HttpFetcher.java | 66 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/ |
D | AoapInterface.java | 110 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/ |
D | SpeedMeasurementController.java | 64 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/ |
D | CarrierConfigLoader.java | 278 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/ |
D | print_db.py | 52 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)
|
D | fill_screens.py | 54 conn = sqlite3.connect(fn) 55 c = conn.cursor() 77 conn.commit()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataUsageUtils.java | 69 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/ |
D | DataUsageUtils.java | 69 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/ |
D | VendorServiceControllerTest.java | 197 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/ |
D | NetworkMonitor.java | 1677 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/ |
D | InetDiagSocketIntegrationTest.java | 154 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/ |
D | TestCertActivity.java | 106 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/ |
D | UserCredentialsSettings.java | 223 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/ |
D | UserCredentialsSettings.java | 223 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/ |
D | ConnectivityTestActivity.java | 63 boolean conn = checkNow(); in onResume() 65 returnIntent.putExtra(RESULT, conn); in onResume()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | ContextMap.java | 468 for (Connection conn : mConnections) { in getConnectedMap() 469 connectedmap.put(conn.appId, conn.address); in getConnectedMap()
|
/packages/services/Car/tests/BugReportApp/utils/ |
D | bugreport_app_tester.py | 278 conn = sqlite3.connect(os.path.join(tmpdir, 'databases/bugreport.db')) 279 c = conn.cursor() 291 conn.close()
|
/packages/apps/Nfc/nci/jni/ |
D | PeerToPeer.cpp | 791 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/ |
D | ExportVCardActivity.java | 216 public void unbindService(ServiceConnection conn) { in unbindService() argument 218 super.unbindService(conn); in unbindService()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | ConfigDialogFragment.java | 181 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/ |
D | ConfigDialogFragment.java | 177 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/ |
D | HttpClientFactory.java | 26 import org.apache.http.conn.params.ConnManagerParams;
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | TelephonyConnectionService.java | 581 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()
|