Home
last modified time | relevance | path

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

12

/development/vndk/tools/header-checker/src/repr/symbol/
Dversion_script_parser_test.cpp47 std::istringstream stream(testdata); in TEST() local
48 std::unique_ptr<ExportedSymbolSet> result(parser.Parse(stream)); in TEST()
86 std::istringstream stream(testdata); in TEST() local
87 std::unique_ptr<ExportedSymbolSet> result(parser.Parse(stream)); in TEST()
102 std::istringstream stream(testdata); in TEST() local
103 std::unique_ptr<ExportedSymbolSet> result(parser.Parse(stream)); in TEST()
141 std::istringstream stream(testdata); in TEST() local
142 std::unique_ptr<ExportedSymbolSet> result(parser.Parse(stream)); in TEST()
183 std::istringstream stream(testdata); in TEST() local
184 std::unique_ptr<ExportedSymbolSet> result(parser.Parse(stream)); in TEST()
[all …]
Dversion_script_parser.cpp260 std::istream &stream) { in Parse() argument
262 stream_ = &stream; in Parse()
/development/vndk/tools/header-checker/src/utils/
Dconfig_file_test.cpp27 std::stringstream stream(R"( in TEST() local
40 auto &&cfg = ConfigParser::ParseFile(stream); in TEST()
69 std::stringstream stream(R"( in TEST() local
76 ConfigParser parser(stream); in TEST()
90 std::stringstream stream(R"( in TEST() local
97 ConfigParser parser(stream); in TEST()
Dconfig_file.cpp35 std::ifstream stream(path, std::ios_base::in); in ParseFile() local
36 return ParseFile(stream); in ParseFile()
Dconfig_file.h149 ConfigParser(std::istream &stream) in ConfigParser() argument
150 : stream_(stream), section_(nullptr) { } in ConfigParser()
/development/samples/browseable/NetworkConnect/src/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()
/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/IntentPlayground/src/com/example/android/intentplayground/
DIntentBuilderView.java49 import java.util.stream.Collectors;
135 activityToFlags.entrySet().stream() in setupViews()
148 manifestFlags.stream().collect(Collectors.joining("\n"))); in setupViews()
202 mRadioButtons.stream().filter(rb -> rb != view) in onClick()
265 List<String> suggestions = flag.getComplements().stream().map(IntentFlag::getName) in suggestFlags()
267 getAllCheckBoxes().stream() in suggestFlags()
342 selectFlags(flags.stream().map(IntentFlag::getName).collect(Collectors.toList())); in selectFlags()
350 return getAllCheckBoxes().stream().filter(CompoundButton::isChecked) in getChecked()
355 return getChecked().stream().map(checkBox -> (IntentFlag) checkBox.getTag(TAG_FLAG)) in getCheckedFlags()
364 return getAllCheckBoxes().stream().filter(box -> flag.getName().equals(box.getText())) in getCheckBox()
DFlagUtils.java34 import java.util.stream.Collectors;
53 return Arrays.stream(intent.getClass().getDeclaredFields()) // iterate over Intent members in discoverFlags()
72 return Arrays.stream(sIntentClass.getDeclaredFields())
194 Optional<ActivityInfo> infoOptional = sActivityInfos.stream()
264 List<String> flagStrings = Arrays.stream(activity.getClass().getDeclaredFields())
349 … return getAllIntentFlags().stream().filter(flag -> flag.getName().equals(stringFlag)).findAny()
DIntentFlags.java22 import java.util.stream.Collectors;
100 return Arrays.stream(flags).collect(Collectors.toSet()); in setOf()
DTracking.java3 import static java.util.stream.Collectors.toList;
86 Optional<Task> existingTask = mTaskOverView.values().stream() in onDestroy()
167 List<Task> tasks = mTaskOrdering.stream().map(Task::copyForUi).collect(toList()); in notifyListeners()
DTestBase.java55 mBuilders.forEach(tsb -> Arrays.stream(tsb.getIntents()) in startActivities()
DIntentDialogFragment.java128 Optional<ActivityManager.AppTask> taskToKill = appTasks.stream().filter( in removeTask()
/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.py36 stream = None
39stream = subprocess.Popen(cmd, stdout=subprocess.PIPE, universal_newlines=True, shell=True).stdout
40 return str(stream.read().strip())
42 if stream is not None:
43 stream.close()
393 stream = subprocess.Popen(cmd, stdout=subprocess.PIPE, universal_newlines=True).stdout
394 for line in stream:
425 stream.close()
/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/samples/ToyVpn/src/com/example/android/toyvpn/
DToyVpnClient.java31 import java.util.stream.Collectors;
79 Arrays.stream(packages.getText().toString().split(",")) in onCreate()
130 getPackageManager().getInstalledPackages(0).stream() in checkPackages()
/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/tools/winscope/
Dyarn.lock1890 readable-stream "^3.6.0"
2332 concat-stream@^1.5.0:
2334 …resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc67…
2339 readable-stream "^2.2.2"
2416 fs-write-stream-atomic "^1.0.8"
2979 end-of-stream "^1.0.0"
2981 readable-stream "^2.0.0"
2982 stream-shift "^1.0.0"
3037 end-of-stream@^1.0.0, end-of-stream@^1.1.0:
3039 …resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf362…
[all …]
/development/vndk/tools/header-checker/src/linker/
Dheader_abi_linker.cpp424 std::ifstream stream(version_script_, std::ios_base::in); in ReadExportedSymbolsFromVersionScript() local
425 if (!stream) { in ReadExportedSymbolsFromVersionScript()
440 version_script_symbols_ = parser.Parse(stream); in ReadExportedSymbolsFromVersionScript()
/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/winscope/adb_proxy/
Dwinscope_proxy.py69 logging.basicConfig(stream=sys.stderr, level=LOG_LEVEL,

12