Home
last modified time | relevance | path

Searched refs:read_to_string (Results 1 – 25 of 338) sorted by relevance

12345678910>>...14

/aosp_15_r20/external/rust/android-crates-io/crates/tempfile/tests/
Dnamedtempfile.rs26 tmpfile.read_to_string(&mut buf).unwrap(); in test_basic()
53 f.read_to_string(&mut buf).unwrap(); in test_persist()
62 f.read_to_string(&mut buf).unwrap(); in test_persist()
87 f.read_to_string(&mut buf).unwrap(); in test_persist_noclobber()
128 second.read_to_string(&mut buf).unwrap(); in test_reopen()
144 file.read_to_string(&mut buf).unwrap(); in test_into_file()
154 (&tmpfile).read_to_string(&mut buf).unwrap(); in test_immut()
188 f.read_to_string(&mut buf).unwrap(); in test_temppath_persist()
221 f.read_to_string(&mut buf).unwrap(); in test_temppath_persist_noclobber()
303 file.read_to_string(&mut buf).unwrap(); in test_into_parts()
[all …]
/aosp_15_r20/tools/security/remote_provisioning/hwtrust/src/rkp/
H A Dfactory_csr.rs73 let json = fs::read_to_string("testdata/factory_csr/v2_ed25519_valid.json").unwrap(); in from_json_valid_v2_ed25519()
130 let json = fs::read_to_string("testdata/factory_csr/v3_ed25519_valid.json").unwrap(); in from_json_valid_v3_ed25519()
154 let json = fs::read_to_string("testdata/factory_csr/v2_p256_valid.json").unwrap(); in from_json_valid_v2_p256()
181 let json = fs::read_to_string("testdata/factory_csr/v3_p256_valid.json").unwrap(); in from_json_valid_v3_p256()
214 fs::read_to_string("testdata/factory_csr/v3_p256_valid_with_uds_certs.json").unwrap(); in from_json_valid_v3_p256_with_uds_certs()
257 fs::read_to_string("testdata/factory_csr/v3_p256_mismatched_uds_certs.json").unwrap(); in from_json_v3_p256_with_mismatch_uds_certs()
267 let json = fs::read_to_string("testdata/factory_csr/v3_p256_extra_uds_cert_in_chain.json") in from_json_v3_p256_with_extra_uds_cert_in_chain()
319 let json = fs::read_to_string("testdata/factory_csr/v3_avf_valid_with_rkpvm_markers.json") in from_json_valid_v3_avf_with_rkpvm_markers()
330 fs::read_to_string("testdata/factory_csr/v3_p256_with_private_key.json").unwrap(); in from_json_v3_p256_with_private_key()
/aosp_15_r20/system/memory/mmd/src/
Dzram.rs85 std::fs::read_to_string(ZRAM_DISKSIZE_PATH) in read_disksize()
93 std::fs::read_to_string(ZRAM_MM_STAT_PATH) in read_mm_stat()
101 std::fs::read_to_string(ZRAM_BACKING_DEV_PATH) in read_backing_dev()
113 std::fs::read_to_string(ZRAM_WRITEBACK_LIMIT_PATH) in read_writeback_limit()
117 std::fs::read_to_string(ZRAM_BD_STAT_PATH) in read_bd_stat()
121 std::fs::read_to_string(ZRAM_RECOMP_ALGORITHM_PATH) in read_recomp_algorithm()
/aosp_15_r20/external/rust/android-crates-io/crates/futures/tests/
Dio_read_to_string.rs10 fn read_to_string() { in read_to_string() function
13 assert_eq!(block_on(c.read_to_string(&mut v)).unwrap(), 0); in read_to_string()
18 assert_eq!(block_on(c.read_to_string(&mut v)).unwrap(), 1); in read_to_string()
23 assert!(block_on(c.read_to_string(&mut v)).is_err()); in read_to_string()
42 assert_eq!(run(buf.read_to_string(&mut v)).unwrap(), 5); in interleave_pending()
/aosp_15_r20/external/rust/android-crates-io/crates/tokio/tests/
Dio_read_to_string.rs10 async fn read_to_string() { in read_to_string() function
14 let n = assert_ok!(rd.read_to_string(&mut buf).await); in read_to_string()
25 match AsyncReadExt::read_to_string(&mut data.as_slice(), &mut s).await { in to_string_does_not_truncate_on_utf8_error()
42 match AsyncReadExt::read_to_string(&mut mock, &mut s).await { in to_string_does_not_truncate_on_io_error()
57 let len = AsyncReadExt::read_to_string(&mut data.as_slice(), &mut s) in to_string_appends()
/aosp_15_r20/external/rust/android-crates-io/crates/zip/tests/
Daes_encryption.rs23 file.read_to_string(&mut content) in aes256_encrypted_uncompressed_file()
41 file.read_to_string(&mut content) in aes256_encrypted_file()
59 file.read_to_string(&mut content) in aes192_encrypted_file()
77 file.read_to_string(&mut content) in aes128_encrypted_file()
/aosp_15_r20/external/rust/android-crates-io/crates/debug_tree/src/
Dtest.rs6 use std::fs::{create_dir, read_to_string, remove_file};
343 assert_eq!(read_to_string("test_out/defer_write.txt").unwrap(), ""); in defer_write()
348 read_to_string("test_out/defer_write.txt").unwrap(), in defer_write()
362 assert_eq!(read_to_string("test_out/defer_peek_write.txt").unwrap(), ""); in defer_peek_write()
367 read_to_string("test_out/defer_peek_write.txt").unwrap(), in defer_peek_write()
383 assert_eq!(read_to_string("test_out/defer_peek_write.txt").unwrap(), ""); in defer_peek_write_panic()
/aosp_15_r20/external/rust/android-crates-io/crates/unicode-normalization/benches/
Dbench.rs86 let long = fs::read_to_string("benches/long.txt").unwrap(); in bench_nfc_long()
92 let long = fs::read_to_string("benches/long.txt").unwrap(); in bench_nfd_long()
108 let long = fs::read_to_string("benches/long.txt").unwrap(); in bench_nfkc_long()
114 let long = fs::read_to_string("benches/long.txt").unwrap(); in bench_nfkd_long()
/aosp_15_r20/external/rust/android-crates-io/crates/tokio/src/io/util/
Dasync_read_ext.rs13 use crate::io::util::read_to_string::{read_to_string, ReadToString};
1383 fn read_to_string<'a>(&'a mut self, dst: &'a mut String) -> ReadToString<'a, Self>
1387 read_to_string(self, dst)
/aosp_15_r20/external/bazelbuild-rules_rust/tools/runfiles/
H A Drunfiles.rs88 let manifest_content = std::fs::read_to_string(manifest_path)?; in create_manifest_based()
161 for line in std::fs::read_to_string(path)?.lines() { in parse_repo_mapping()
270 f.read_to_string(&mut buffer).unwrap(); in test_can_read_data_from_runfiles()
286 f.read_to_string(&mut buffer).unwrap(); in test_can_read_data_from_runfiles()
305 f.read_to_string(&mut buffer).unwrap(); in test_can_read_data_from_runfiles()
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/std/src/io/
H A Dstdio.rs121 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
122 handle_ebadf(self.0.read_to_string(buf), 0) in read_to_string()
449 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
450 self.lock().read_to_string(buf) in read_to_string()
478 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
479 self.lock().read_to_string(buf) in read_to_string()
520 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
521 self.inner.read_to_string(buf) in read_to_string()
H A Dimpls.rs43 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
44 (**self).read_to_string(buf) in read_to_string()
151 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
152 (**self).read_to_string(buf) in read_to_string()
336 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
482 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/std/src/io/
H A Dstdio.rs121 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
122 handle_ebadf(self.0.read_to_string(buf), 0) in read_to_string()
449 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
450 self.lock().read_to_string(buf) in read_to_string()
478 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
479 self.lock().read_to_string(buf) in read_to_string()
520 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
521 self.inner.read_to_string(buf) in read_to_string()
H A Dimpls.rs43 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
44 (**self).read_to_string(buf) in read_to_string()
151 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
152 (**self).read_to_string(buf) in read_to_string()
336 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
482 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/std/src/io/
H A Dstdio.rs121 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
122 handle_ebadf(self.0.read_to_string(buf), 0) in read_to_string()
449 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
450 self.lock().read_to_string(buf) in read_to_string()
478 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
479 self.lock().read_to_string(buf) in read_to_string()
520 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
521 self.inner.read_to_string(buf) in read_to_string()
H A Dimpls.rs43 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
44 (**self).read_to_string(buf) in read_to_string()
151 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
152 (**self).read_to_string(buf) in read_to_string()
336 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
482 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/std/src/io/
H A Dstdio.rs121 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
122 handle_ebadf(self.0.read_to_string(buf), 0) in read_to_string()
449 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
450 self.lock().read_to_string(buf) in read_to_string()
478 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
479 self.lock().read_to_string(buf) in read_to_string()
520 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
521 self.inner.read_to_string(buf) in read_to_string()
H A Dimpls.rs43 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
44 (**self).read_to_string(buf) in read_to_string()
151 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
152 (**self).read_to_string(buf) in read_to_string()
336 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
482 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/std/src/io/
H A Dstdio.rs121 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
122 handle_ebadf(self.0.read_to_string(buf), 0) in read_to_string()
449 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
450 self.lock().read_to_string(buf) in read_to_string()
478 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
479 self.lock().read_to_string(buf) in read_to_string()
520 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
521 self.inner.read_to_string(buf) in read_to_string()
H A Dimpls.rs43 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
44 (**self).read_to_string(buf) in read_to_string()
151 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
152 (**self).read_to_string(buf) in read_to_string()
336 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
482 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() method
/aosp_15_r20/external/rust/android-crates-io/crates/tokio/src/fs/
Dmod.rs250 mod read_to_string; module
251 pub use self::read_to_string::read_to_string;
/aosp_15_r20/packages/modules/Virtualization/guest/microdroid_manager/src/
Dswap.rs18 use std::fs::{read_to_string, OpenOptions};
26 let s = read_to_string("/proc/meminfo")?; in get_total_memory_kb()
44 let len = read_to_string(&sysfs_size)? in mkswap()
/aosp_15_r20/external/bazelbuild-rules_rust/crate_universe/src/splicing/
H A Dsplicer.rs1334 &fs::read_to_string(workspace_manifest.as_path_buf()).unwrap(), in splice_multi_package()
1384 &fs::read_to_string(workspace_manifest.as_path_buf()).unwrap(), in splice_multi_package_with_resolver()
1444 &fs::read_to_string(workspace_manifest.as_path_buf()).unwrap(), in splice_multi_package_with_direct_deps()
1472 cargo_toml::Manifest::from_str(&fs::read_to_string(&manifest_path).unwrap()).unwrap(); in splice_multi_package_with_patch()
1486 &fs::read_to_string(workspace_manifest.as_path_buf()).unwrap(), in splice_multi_package_with_patch()
1533 cargo_toml::Manifest::from_str(&fs::read_to_string(&manifest_path).unwrap()) in splice_multi_package_with_merged_patch_registries()
1549 &fs::read_to_string(workspace_manifest.as_path_buf()).unwrap(), in splice_multi_package_with_merged_patch_registries()
1584 cargo_toml::Manifest::from_str(&fs::read_to_string(&manifest_path).unwrap()) in splice_multi_package_with_merged_identical_patch_registries()
1600 &fs::read_to_string(workspace_manifest.as_path_buf()).unwrap(), in splice_multi_package_with_merged_identical_patch_registries()
1627 cargo_toml::Manifest::from_str(&fs::read_to_string(&manifest_path).unwrap()) in splice_multi_package_with_conflicting_patch()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/nix/test/
Dtest_sendfile.rs101 let bytes_read = rd.read_to_string(&mut read_string).unwrap(); in test_sendfile_freebsd()
150 let bytes_read = rd.read_to_string(&mut read_string).unwrap(); in test_sendfile_dragonfly()
199 let bytes_read = rd.read_to_string(&mut read_string).unwrap(); in test_sendfile_darwin()
258 let bytes_read = rd.read_to_string(&mut read_string).unwrap(); in test_sendfilev()
/aosp_15_r20/external/crosvm/devices/src/
H A Dac_adapter.rs9 use std::fs::read_to_string;
67 if read_to_string(hid_path.as_path()) in get_init_state()
73 read_to_string(entry.path().join("online")) in get_init_state()

12345678910>>...14