Home
last modified time | relevance | path

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

12

/developers/samples/android/content/webview/PermissionRequest/Application/src/main/assets/
Dsample.js27 stream = null;
34 if (null === stream) {
37 stream = s;
38 video.src = window.URL.createObjectURL(stream);
45 if (stream.getTracks) {
46 stream.getTracks().forEach(function (track) {
49 } else if (stream.stop) {
50 stream.stop();
52 stream = null;
/developers/build/prebuilts/gradle/PermissionRequest/Application/src/main/assets/
Dsample.js27 stream = null;
34 if (null === stream) {
37 stream = s;
38 video.src = window.URL.createObjectURL(stream);
45 if (stream.getTracks) {
46 stream.getTracks().forEach(function (track) {
49 } else if (stream.stop) {
50 stream.stop();
52 stream = null;
/developers/samples/android/connectivity/network/NetworkConnect/Application/src/main/java/com/example/android/networkconnect/
DNetworkFragment.java220 InputStream stream = null; in downloadUrl() local
242 stream = connection.getInputStream(); in downloadUrl()
244 if (stream != null) { in downloadUrl()
246 result = readStream(stream, 500); in downloadUrl()
251 if (stream != null) { in downloadUrl()
252 stream.close(); in downloadUrl()
264 private String readStream(InputStream stream, int maxLength) throws IOException { in readStream() argument
267 InputStreamReader reader = new InputStreamReader(stream, "UTF-8"); in readStream()
/developers/build/prebuilts/gradle/NetworkConnect/Application/src/main/java/com/example/android/networkconnect/
DNetworkFragment.java220 InputStream stream = null; in downloadUrl() local
242 stream = connection.getInputStream(); in downloadUrl()
244 if (stream != null) { in downloadUrl()
246 result = readStream(stream, 500); in downloadUrl()
251 if (stream != null) { in downloadUrl()
252 stream.close(); in downloadUrl()
264 private String readStream(InputStream stream, int maxLength) throws IOException { in readStream() argument
267 InputStreamReader reader = new InputStreamReader(stream, "UTF-8"); in readStream()
/developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/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()
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/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()
/developers/samples/android/content/SharingShortcuts/Application/src/main/java/com/example/android/sharingshortcuts/
DMainActivity.java141 FileOutputStream stream = new FileOutputStream(cachePath + "/" + IMAGE_FILE); in saveImageThumbnail() local
142 bm.compress(Bitmap.CompressFormat.PNG, 100, stream); in saveImageThumbnail()
143 stream.close(); in saveImageThumbnail()
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/db/
DConverters.java24 import static java.util.stream.Collectors.toList;
38 List<Integer> ints = strings.stream().map(Integer::parseInt).collect(toList()); in storedStringToIntList()
DAutofillDatabase.java42 import static java.util.stream.Collectors.toList;
104 storedAutofillHints.addAll(autofillHints.stream() in saveDefaultFieldTypes()
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/db/
DConverters.java24 import static java.util.stream.Collectors.toList;
38 List<Integer> ints = strings.stream().map(Integer::parseInt).collect(toList()); in storedStringToIntList()
DAutofillDatabase.java42 import static java.util.stream.Collectors.toList;
104 storedAutofillHints.addAll(autofillHints.stream() in saveDefaultFieldTypes()
/developers/build/prebuilts/androidtv/sample-inputs/
DREADME.md8 …channels served from Google Cloud Storage consisting of MP4 videos, HLS stream and MPEG-DASH stream
25 + Click ADD CHANNELS NOW to add 3 channels of MP4 videos, HLS stream and MPEG-DASH stream
/developers/samples/android/connectivity/wifidirect/DirectP2P/Application/src/main/java/com/example/android/wifidirectp2p/
DFileTransferService.java59 OutputStream stream = socket.getOutputStream(); in onHandleIntent() local
67 DeviceDetailFragment.copyFile(is, stream); in onHandleIntent()
/developers/build/prebuilts/gradle/AgendaData/Application/src/main/java/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()
/developers/samples/android/deprecated/wearable/wear/AgendaData/Application/src/main/java/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()
/developers/samples/android/admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/
DNfcProvisioningFragment.java115 ByteArrayOutputStream stream = new ByteArrayOutputStream(); in createNdefMessage() local
145 properties.store(stream, getString(R.string.nfc_comment)); in createNdefMessage()
147 DevicePolicyManager.MIME_TYPE_PROVISIONING_NFC, stream.toByteArray()); in createNdefMessage()
/developers/build/prebuilts/gradle/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/
DNfcProvisioningFragment.java115 ByteArrayOutputStream stream = new ByteArrayOutputStream(); in createNdefMessage() local
145 properties.store(stream, getString(R.string.nfc_comment)); in createNdefMessage()
147 DevicePolicyManager.MIME_TYPE_PROVISIONING_NFC, stream.toByteArray()); in createNdefMessage()
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
DAutofillHints.java33 import static java.util.stream.Collectors.toList;
82 .stream() in getFieldTypeNameFromAutofillHints()
DMyAutofillService.java70 import static java.util.stream.Collectors.toList;
105 fillContexts.stream().map(FillContext::getStructure).collect(toList()); in onFillRequest()
196 fillContexts.stream().map(FillContext::getStructure).collect(toList()); in onSaveRequest()
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
DAutofillHints.java33 import static java.util.stream.Collectors.toList;
82 .stream() in getFieldTypeNameFromAutofillHints()
DMyAutofillService.java70 import static java.util.stream.Collectors.toList;
105 fillContexts.stream().map(FillContext::getStructure).collect(toList()); in onFillRequest()
196 fillContexts.stream().map(FillContext::getStructure).collect(toList()); in onSaveRequest()
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/adapter/
DDatasetAdapter.java43 import static java.util.stream.Collectors.toMap;
100 datasetWithFilledAutofillFields.filledAutofillFields.stream() in bindDataset()
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/adapter/
DDatasetAdapter.java43 import static java.util.stream.Collectors.toMap;
100 datasetWithFilledAutofillFields.filledAutofillFields.stream() in bindDataset()
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/
DLocalAutofillDataSource.java36 import java.util.stream.Collectors;
81 .stream() in getAutofillDatasets()
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/
DLocalAutofillDataSource.java36 import java.util.stream.Collectors;
81 .stream() in getAutofillDatasets()

12