Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 20 of 20) sorted by relevance

/development/samples/browseable/NetworkConnect/src/com.example.android.networkconnect/
DMainActivity.java119 InputStream stream = null; in loadFromNetwork() local
123 stream = downloadUrl(urlString); in loadFromNetwork()
124 str = readIt(stream, 500); in loadFromNetwork()
126 if (stream != null) { in loadFromNetwork()
127 stream.close(); in loadFromNetwork()
150 InputStream stream = conn.getInputStream(); in downloadUrl() local
151 return stream; in downloadUrl()
162 …private String readIt(InputStream stream, int len) throws IOException, UnsupportedEncodingExceptio… in readIt() argument
164 reader = new InputStreamReader(stream, "UTF-8"); in readIt()
/development/samples/training/network-usage/src/com/example/android/networkusage/
DNetworkActivity.java216 InputStream stream = null; in loadXmlFromNetwork() local
235 stream = downloadUrl(urlString); in loadXmlFromNetwork()
236 entries = stackOverflowXmlParser.parse(stream); in loadXmlFromNetwork()
240 if (stream != null) { in loadXmlFromNetwork()
241 stream.close(); in loadXmlFromNetwork()
274 InputStream stream = conn.getInputStream(); in downloadUrl() local
275 return stream; in downloadUrl()
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
DContactPhotoBinder.java73 InputStream stream = ContactsContract.Contacts.openContactPhotoInputStream( in bind() local
77 if (stream != null) { in bind()
79 Bitmap bitmap = BitmapFactory.decodeStream(stream); in bind()
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/
DSyncAdapter.java140 InputStream stream = null; in onPerformSync() local
144 stream = downloadUrl(location); in onPerformSync()
145 updateLocalFeedData(stream, syncResult); in onPerformSync()
149 if (stream != null) { in onPerformSync()
150 stream.close(); in onPerformSync()
201 public void updateLocalFeedData(final InputStream stream, final SyncResult syncResult) in updateLocalFeedData() argument
208 final List<FeedParser.Entry> entries = feedParser.parse(stream); in updateLocalFeedData()
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
DFileTransferService.java59 OutputStream stream = socket.getOutputStream(); in onHandleIntent() local
67 DeviceDetailFragment.copyFile(is, stream); in onHandleIntent()
/development/scripts/
Dsymbol.py40 stream = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True).stdout
41 return os.path.join(ANDROID_BUILD_TOP, stream.read().strip())
285 stream = subprocess.Popen(cmd, stdout=subprocess.PIPE).stdout
287 for line in stream:
317 stream.close()
/development/ndk/platforms/android-21/include/
Dstdio.h430 char *fgets(char* dest, int size, FILE* stream) { in fgets() argument
441 return __fgets_real(dest, size, stream); in fgets()
447 return __fgets_real(dest, size, stream); in fgets()
456 return __fgets_chk(dest, size, stream, bos); in fgets()
/development/samples/Home/src/com/example/android/home/
DWallpaper.java98 InputStream stream = getResources().openRawResource(IMAGE_IDS[position]); in selectWallpaper() local
99 setWallpaper(stream); in selectWallpaper()
/development/ndk/platforms/android-14/samples/native-media/
DREADME.txt8 Any actual stream must be created according to the MPEG-2 specification.
/development/samples/browseable/NfcProvisioning/src/com.example.android.nfcprovisioning/
DNfcProvisioningFragment.java108 ByteArrayOutputStream stream = new ByteArrayOutputStream(); in createNdefMessage() local
133 properties.store(stream, getString(R.string.nfc_comment)); in createNdefMessage()
135 DevicePolicyManager.MIME_TYPE_PROVISIONING_NFC, stream.toByteArray()); in createNdefMessage()
/development/samples/browseable/AgendaData/Application/src/com.example.android.wearable.agendadata/
DCalendarQueryService.java224 ByteArrayOutputStream stream = new ByteArrayOutputStream(); in toByteArray() local
225 bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream); in toByteArray()
226 byte[] byteArray = stream.toByteArray(); in toByteArray()
227 closeQuietly(stream); in toByteArray()
/development/samples/SupportLeanbackShowcase/libs/
Dgson-1.7.2.jar ... gson/reflect/ com/google/gson/stream/ com/google/gson/annotations/Expose ...
Dpicasso-2.5.2.jar ... .graphics.Bitmap bitmap java.io.InputStream stream com.squareup.picasso.Request request com. ...
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/
DBatchStepSensorFragment.java109 CardStreamFragment stream = getCardStream(); in onResume() local
110 if (stream.getVisibleCardCount() < 1) { in onResume()
/development/tools/checkstyle/
Dcheckstyle.jarMETA-INF/MANIFEST.MF META-INF/ checkstyle_packages.xml sun_checks.xml com/ ...
/development/samples/training/InteractiveChart/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/ContactsList/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/EffectiveNavigation/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/ControllerSample/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/NavigationDrawer/libs/
Dandroid-support-v4.jar ... avail byte[] data java.io.FileInputStream stream static boolean sync (java.io.FileOutputStream) ...