Home
last modified time | relevance | path

Searched refs:connection (Results 1 – 18 of 18) sorted by relevance

/development/samples/browseable/NetworkConnect/src/com.example.android.networkconnect/
DNetworkFragment.java221 HttpsURLConnection connection = null; in downloadUrl() local
224 connection = (HttpsURLConnection) url.openConnection(); in downloadUrl()
226 connection.setReadTimeout(3000); in downloadUrl()
228 connection.setConnectTimeout(3000); in downloadUrl()
230 connection.setRequestMethod("GET"); in downloadUrl()
233 connection.setDoInput(true); in downloadUrl()
235 connection.connect(); in downloadUrl()
237 int responseCode = connection.getResponseCode(); in downloadUrl()
242 stream = connection.getInputStream(); in downloadUrl()
254 if (connection != null) { in downloadUrl()
[all …]
/development/samples/browseable/BasicNetworking/
D_index.jd9 a network connection, and if so, what type of connection it is.
11 … on the active connection, and then the connection type is printed to an on-screen console.
/development/samples/training/network-usage/
DREADME.txt11 when any network connection is available, or only when a Wi-Fi connection is available.
13 -- Detects when there is a change in the device's connection status and responds accordingly. For e…
14 the device loses its network connection, the app will not attempt to download the feed.
/development/samples/ToyVpn/src/com/example/android/toyvpn/
DToyVpnService.java118 private void startConnection(final ToyVpnConnection connection) { in startConnection() argument
120 final Thread thread = new Thread(connection, "ToyVpnThread"); in startConnection()
124 connection.setConfigureIntent(mConfigureIntent); in startConnection()
125 connection.setOnEstablishListener(tunInterface -> { in startConnection()
141 private void setConnection(final Connection connection) { in setConnection() argument
142 final Connection oldConnection = mConnection.getAndSet(connection); in setConnection()
/development/samples/USB/AdbTest/src/com/android/adb/
DAdbTestActivity.java132 UsbDeviceConnection connection = mManager.openDevice(device); in setAdbInterface() local
133 if (connection != null) { in setAdbInterface()
135 if (connection.claimInterface(intf, false)) { in setAdbInterface()
138 mDeviceConnection = connection; in setAdbInterface()
146 connection.close(); in setAdbInterface()
DAdbDevice.java48 public AdbDevice(AdbTestActivity activity, UsbDeviceConnection connection, in AdbDevice() argument
51 mDeviceConnection = connection; in AdbDevice()
52 mSerial = connection.getSerial(); in AdbDevice()
/development/samples/USB/MissileLauncher/src/com/android/missilelauncher/
DMissileLauncherActivity.java135 UsbDeviceConnection connection = mUsbManager.openDevice(device); in setDevice() local
136 if (connection != null && connection.claimInterface(intf, true)) { in setDevice()
138 mConnection = connection; in setDevice()
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
DNetworkUtilities.java237 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in downloadAvatar() local
238 connection.connect(); in downloadAvatar()
241 final Bitmap avatar = BitmapFactory.decodeStream(connection.getInputStream(), in downloadAvatar()
258 connection.disconnect(); in downloadAvatar()
/development/samples/RSSReader/src/com/example/android/rssreader/
DRssReader.java309 URLConnection connection = url.openConnection(); in run() local
310 connection.setConnectTimeout(10000); in run()
312 connection.connect(); in run()
313 InputStream in = connection.getInputStream(); in run()
/development/samples/browseable/MidiSynth/src/com.example.android.midisynth/
DMainActivity.java110 public void onPortsConnected(final MidiConnection connection) { in onPortsConnected() argument
114 if (connection == null) { in onPortsConnected()
/development/tools/axl/
Dchewie.py103 opentime, host, connection = opened[thread]
105 record = [thread, qtime, opentime, time, None, None, None, url, host, connection]
/development/samples/browseable/Timer/
D_index.jd9 independently on the wearable with no phone connection.
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DMidiPortConnector.java82 abstract public void onPortsConnected(MidiConnection connection); in onPortsConnected() argument
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DMidiPortConnector.java82 abstract public void onPortsConnected(MidiConnection connection); in onPortsConnected() argument
/development/samples/SearchableDictionary/res/raw/
Ddefinitions.txt529 irrelevant - j. having no bearing on or connection with the subject at issue
822 relevant - j. having a bearing on or connection with the subject at issue
/development/tools/repo_diff/service/repodiff/persistence/filesystem/testdata/
Dcommit.csv2057 …31694UKLSFWSB70s6PtRog@fakeemail.com,Fix ClearKeySystemTest fails Wifi connection test in emulator.
2121 …rm/cts,fake_wPmH3kcdSFeQvcykzVF6Xw@fakeemail.com,Add test for the second connection of MediaBrowser
4039 …G6u-QSaMmJT6pEOGcA@fakeemail.com,Make sure to properly close uiautomator connection in backup tests
4458 …65eed,platform/cts,fake_DGbnL6-oQrG-BP4td_yJEA@fakeemail.com,Add extra connection check on testAut…
5934 …em/core,fake_0kX09PMgSMWMh-POhYioVA@fakeemail.com,Allow multiple tcp adb connection to same device.
7322 …tem/core,fake_YfZgUkXGT9KUV3N17LsBvA@fakeemail.com,Ensure property_set connection sockets are CLOE…
7527 …stem/core,fake_hrLg6uvZRAmxPEvIe67S0A@fakeemail.com,adb: extract atransport's connection interface.
7724 …s/test/connectivity,fake_bSGCCfG8QJOGRRU95wUSsg@fakeemail.com,Added async command to ssh connection
7744 …t/connectivity,fake_bSGCCfG8QJOGRRU95wUSsg@fakeemail.com,Added a close method to the ssh connection
7769 …fake_6aRNTluaSTu9at5rSHu1XA@fakeemail.com,Change the default wait time for connection state change.
[all …]
/development/tools/logblame/
Dsample.txt838 Unbind failed: could not find connection for android.os.BinderProxy@d2a6c1d
/development/sdk/
Dsdk_files_NOTICE.txt246 or omissions of such Commercial Contributor in connection with its
10093 Commercial Contributor in connection with its distribution of the
11931 …tent caused by the acts or omissions of such Commercial Contributor in connection with its distrib…
13320 …tent caused by the acts or omissions of such Commercial Contributor in connection with its distrib…