Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 30) 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/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())
346 … 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/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/scripts/
Dsymbol.py41 stream = None
44 stream = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True).stdout
45 return os.path.join(ANDROID_BUILD_TOP, str(stream.read().strip()))
47 if stream is not None:
48 stream.close()
417 stream = subprocess.Popen(cmd, stdout=subprocess.PIPE).stdout
418 for line in stream:
449 stream.close()
/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/WiFiDirectDemo/src/com/example/android/wifidirect/
DFileTransferService.java59 OutputStream stream = socket.getOutputStream(); in onHandleIntent() local
67 DeviceDetailFragment.copyFile(is, stream); in onHandleIntent()
/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/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/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/vndk/tools/header-checker/src/linker/
Dheader_abi_linker.cpp425 std::ifstream stream(version_script_, std::ios_base::in); in ReadExportedSymbolsFromVersionScript() local
426 if (!stream) { in ReadExportedSymbolsFromVersionScript()
441 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/
Dyarn.lock181 readable-stream "^2.0.6"
2396 readable-stream "^2.0.1"
2453 readable-stream "^3.1.1"
3165 readable-stream "^2.0.1"
3394 readable-stream "^2.3.3"
3395 stream-browserify "^2.0.1"
3396 stream-http "^2.7.2"
4270 readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.3.3, rea…
4272 …resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1f…
4283 readable-stream@^3.0.6, readable-stream@^3.1.1:
[all …]
/development/tools/winscope/adb_proxy/
Dwinscope_proxy.py60 logging.basicConfig(stream=sys.stderr, level=LOG_LEVEL,

12