Home
last modified time | relevance | path

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

/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/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/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/browseable/Timer/
D_index.jd9 independently on the wearable with no phone connection.
/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/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/tools/axl/
Dchewie.py103 opentime, host, connection = opened[thread]
105 record = [thread, qtime, opentime, time, None, None, None, url, host, 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/logblame/
Dsample.txt838 Unbind failed: could not find connection for android.os.BinderProxy@d2a6c1d