Home
last modified time | relevance | path

Searched refs:to_string (Results 1 – 25 of 448) sorted by relevance

12345678910>>...18

/system/memory/libmeminfo/tools/alloctop/tests/
Dtests.rs92 AllocInfo { size: 1024, calls: 5, tag: "/some/tag/path".to_string() } in test_parse_allocinfo_valid_file()
94 assert_eq!(result[1], AllocInfo { size: 2048, calls: 2, tag: "/another/tag".to_string() }); in test_parse_allocinfo_valid_file()
97 AllocInfo { size: 512, calls: 10, tag: "/third/tag/here".to_string() } in test_parse_allocinfo_valid_file()
124 AllocInfo { size: 1024, calls: 5, tag: "/some/tag/path".to_string() } in test_parse_allocinfo_invalid_lines()
128 AllocInfo { size: 512, calls: 0, tag: "/third/tag/here".to_string() } in test_parse_allocinfo_invalid_lines()
165 AllocInfo { size: 1024, calls: 5, tag: "/some/tag/path".to_string() } in test_parse_allocinfo_comments()
169 AllocInfo { size: 512, calls: 10, tag: "/third/tag/here".to_string() } in test_parse_allocinfo_comments()
180 AllocInfo { size: 1024, calls: 5, tag: "/tag1".to_string() }, in test_sort_allocinfo_by_size()
181 AllocInfo { size: 512, calls: 10, tag: "/tag2".to_string() }, in test_sort_allocinfo_by_size()
182 AllocInfo { size: 2048, calls: 2, tag: "/tag3".to_string() }, in test_sort_allocinfo_by_size()
[all …]
/system/security/keystore2/src/maintenance/
Dtests.rs30 name: OctetString::new("com.android.os.statsd".to_string()).unwrap(), in test_encode_module_info_same_name()
34 name: OctetString::new("com.android.os.statsd".to_string()).unwrap(), in test_encode_module_info_same_name()
45 name: OctetString::new("com.android.os.statsd".to_string()).unwrap(), in test_encode_module_info_same_name()
49 name: OctetString::new("com.android.os.statsd".to_string()).unwrap(), in test_encode_module_info_same_name()
61 ModuleInfo { name: OctetString::new("com.android.wifi".to_string()).unwrap(), version: 2 }, in test_encode_module_info_same_name_length()
62 ModuleInfo { name: OctetString::new("com.android.virt".to_string()).unwrap(), version: 1 }, in test_encode_module_info_same_name_length()
86 name: OctetString::new("com.android.extservices".to_string()).unwrap(), in test_encode_module_info_version_irrelevant()
89 ModuleInfo { name: OctetString::new("com.android.adbd".to_string()).unwrap(), version: 14 }, in test_encode_module_info_version_irrelevant()
114 name: OctetString::new("com.android.crashrecovery".to_string()).unwrap(), in test_encode_module_info_alphaordering_irrelevant()
117 ModuleInfo { name: OctetString::new("com.android.rkpd".to_string()).unwrap(), version: 8 }, in test_encode_module_info_alphaordering_irrelevant()
[all …]
/system/core/fs_mgr/libdm/
Ddm_target.cpp61 return block_device_ + " " + std::to_string(physical_sector_); in GetParameterString()
65 return "2 " + std::to_string(chunksize) + " " + block_device0_ + " 0 " + block_device1_ + " 0"; in GetParameterString()
76 std::to_string(version), in DmTargetVerity()
79 std::to_string(data_block_size), in DmTargetVerity()
80 std::to_string(hash_block_size), in DmTargetVerity()
81 std::to_string(num_data_blocks), in DmTargetVerity()
82 std::to_string(hash_start_block), in DmTargetVerity()
94 optional_args_.emplace_back(std::to_string(num_roots)); in UseFec()
96 optional_args_.emplace_back(std::to_string(num_blocks)); in UseFec()
98 optional_args_.emplace_back(std::to_string(start)); in UseFec()
[all …]
/system/librustutils/
Dsystem_properties_fuzzer.rs48 Property::KeystoreBootLevel => "keystore.boot_level".to_string(), in fmt()
49 Property::Random { name } => name.to_string(), in fmt()
55 Property::Writable { prop } => prop.to_string(), in fmt()
63 WritableProperty::Fuzzer1 => "unique.fuzz.prop".to_string(), in fmt()
64 WritableProperty::Fuzzer2 => "unique.fuzz.two.prop".to_string(), in fmt()
81 system_properties::read(&prop.to_string());
84 system_properties::write(&prop.to_string(), &value);
87 … if let Ok(mut watcher) = system_properties::PropertyWatcher::new(&prop.to_string()) {
88 watcher.read(|_n, v| Ok(v.to_string()));
111 system_properties::write(prop_str, &cur_value.to_string());
/system/libvintf/
DKernelInfo.cpp60 << to_string(matrixConfig.second); in matchKernelConfigs()
123 << (kernelLevel == Level::UNSPECIFIED ? "unspecified" : to_string(kernelLevel)) in getMatchedKernelRequirements()
158 to_string(mVersion) + in getMatchedKernelRequirements()
181 *error = "Kernel FCM Version is " + to_string(kernelLevel) + " and kernel version is " + in getMatchedKernelRequirements()
182 to_string(mVersion) + in getMatchedKernelRequirements()
184 to_string(mVersion.dropMinor()) + ".y is " + to_string(firstMatrixKernelLevel); in getMatchedKernelRequirements()
198 to_string(matrixKernelLevel) + ", " + errorForLevel + "\n"; in getMatchedKernelRequirements()
207 to_string(kernelLevel) + ").\n"); in getMatchedKernelRequirements()
266 *error = "Conflicting kernel version: " + to_string(version()) + " vs. " + in merge()
267 to_string(other->version()); in merge()
[all …]
DManifestHal.cpp43 *error += "Duplicated major version: " + to_string(v) + " vs. " + in isValid()
44 to_string(it->second) + ".\n"; in isValid()
161 *error = "Duplicated HAL version: " + to_string(it->version().minorVer) + in insertInstance()
162 " vs " + to_string(e.getMinorVersion()); in insertInstance()
164 *error = "Duplicated major version: " + to_string(it->version()) + " vs " + in insertInstance()
165 to_string(Version(e.getMajorVersion(), e.getMinorVersion())); in insertInstance()
181 to_string(Version(e.getMajorVersion(), minorVer)) + "', interface='" + in insertInstance()
Dparse_string.cpp108 return os << to_string(kctv.mIntegerValue);
110 return os << to_string(kctv.mRangeValue.first) << "-"
111 << to_string(kctv.mRangeValue.second);
113 return os << to_string(kctv.mTristateValue);
378 return os << to_string(ta.transport) << to_string(ta.arch); in operator <<()
414 s += "@" + to_string(vr); in expandInstances()
499 return toFQNameString(package, to_string(version), interface, instance); in toFQNameString()
511 return toFQNameString(package, to_string(range), interface, instance); in toFQNameString()
542 return to_string(v.minorVer); in aidlVersionToString()
551 return to_string(vr.minMinor); in aidlVersionRangeToString()
[all …]
/system/memory/mmd/src/zram/stats/
Dtests.rs24 mock.expect().returning(|| Ok(contents.to_string())); in test_load_total_zram_size()
34 mock.expect().returning(|| Ok(contents.to_string())); in test_load_total_zram_size_invalid_value()
53 mock.expect().returning(|| Ok(contents.to_string())); in test_zram_mm_stat()
76 mock.expect().returning(|| Ok(contents.to_string())); in test_zram_mm_stat_skip_huge_pages_since()
99 mock.expect().returning(|| Ok(contents.to_string())); in test_zram_mm_stat_skip_huge_pages()
122 mock.expect().returning(|| Ok(contents.to_string())); in test_zram_mm_stat_negative_mem_used_max()
154 mock.expect().returning(|| Ok(contents.to_string())); in test_zram_mm_stat_less_values()
164 mock.expect().returning(|| Ok(contents.to_string())); in test_zram_mm_stat_invalid_value()
174 mock.expect().returning(|| Ok(contents.to_string())); in test_zram_bd_stat()
196 mock.expect().returning(|| Ok(contents.to_string())); in test_zram_bd_stat_less_values()
[all …]
/system/core/init/libprefetch/prefetch/src/
Dargs.rs77 arg_name: "path".to_string(), in ensure_path_doesnt_exist()
78 arg_value: p.display().to_string(), in ensure_path_doesnt_exist()
79 error: "Path already exists".to_string(), in ensure_path_doesnt_exist()
92 arg_name: "path".to_string(), in ensure_path_exists()
93 arg_value: p.display().to_string(), in ensure_path_exists()
94 error: "Path does not exist".to_string(), in ensure_path_exists()
/system/unwinding/libunwindstack/tests/
DRegsInfoTest.cpp69 ASSERT_EQ(i * 0x100, info.Get(i)) << "Reg " + std::to_string(i) + " failed."; in TEST()
73 ASSERT_FALSE(info.IsSaved(i)) << "Reg " + std::to_string(i) + " failed."; in TEST()
75 ASSERT_EQ(reg, &regs[i]) << "Reg " + std::to_string(i) + " failed."; in TEST()
77 ASSERT_EQ(i * 0x1000 + 0x100, regs[i]) << "Reg " + std::to_string(i) + " failed."; in TEST()
81 ASSERT_TRUE(info.IsSaved(i)) << "Reg " + std::to_string(i) + " failed."; in TEST()
82 ASSERT_EQ(i * 0x100, info.Get(i)) << "Reg " + std::to_string(i) + " failed."; in TEST()
DLogFake.cpp53 g_fake_log_buf += std::to_string(bufId) + ' ' + std::to_string(prio) + ' '; in __android_log_buf_write()
70 g_fake_log_print += std::to_string(prio) + ' '; in __android_log_vprint()
/system/core/init/
Dproperty_type_test.cpp39 EXPECT_TRUE(CheckType("int", std::to_string(std::numeric_limits<int64_t>::min()))); in TEST()
40 EXPECT_TRUE(CheckType("int", std::to_string(std::numeric_limits<int64_t>::max()))); in TEST()
50 EXPECT_TRUE(CheckType("uint", std::to_string(std::numeric_limits<uint64_t>::max()))); in TEST()
60 EXPECT_TRUE(CheckType("double", std::to_string(std::numeric_limits<double>::min()))); in TEST()
61 EXPECT_TRUE(CheckType("double", std::to_string(std::numeric_limits<double>::max()))); in TEST()
/system/cros-codecs/test/
Dccdec_test.rs85 test_file_path.join(file_name).display().to_string(), in get_cros_codecs_decode_args()
86 "--golden".to_string(), in get_cros_codecs_decode_args()
87 test_file_path.join(json_file_name).display().to_string(), in get_cros_codecs_decode_args()
88 "--input-format".to_string(), in get_cros_codecs_decode_args()
89 input_format.to_string(), in get_cros_codecs_decode_args()
/system/extras/profcollectd/libprofcollectd/
Dconfig.rs79 binary_filter: get_device_config("binary_filter", DEFAULT_BINARY_FILTER.to_string())?, in from_env()
88 write!(f, "{}", serde_json::to_string(self).expect("Failed to deserialise configuration.")) in fmt()
110 get_property("ro.build.fingerprint", "unknown".to_string()) in get_build_fingerprint()
118 let default_value = default_value.to_string(); in get_device_config()
136 let default_value = default_value.to_string(); in get_property()
145 let value = value.to_string(); in set_property()
158 String::from_utf8_lossy(&output.stdout).trim().to_string() in get_kernel_release()
/system/core/debuggerd/libdebuggerd/test/
Dlog_fake.cpp50 g_fake_log_buf += std::to_string(bufId) + ' ' + std::to_string(prio) + ' '; in __android_log_buf_write()
58 g_fake_log_print += std::to_string(prio) + ' '; in __android_log_print()
/system/update_engine/payload_generator/
Dpayload_properties.cc65 std::to_string(metadata_size_)); in GetPropertiesAsJson()
70 std::to_string(payload_size_)); in GetPropertiesAsJson()
81 properties.SetString(kPayloadPropertyFileSize, std::to_string(payload_size_)); in GetPropertiesAsKeyValue()
83 std::to_string(metadata_size_)); in GetPropertiesAsKeyValue()
/system/see/authmgr/authmgr-be-impl/src/
Dtests.rs86 vec![HWCRYPTO_SERVICE_NAME.to_string(), SECURE_STORAGE_SERVICE_NAME.to_string()], in test_auth_mgr_protocol_single_pvm()
104 vec![HWCRYPTO_SERVICE_NAME.to_string(), SECURE_STORAGE_SERVICE_NAME.to_string()], in test_auth_mgr_protocol_single_pvm()
/system/libvintf/test/
Dvintf_object_tests.cpp576 kMetaVersionStr.c_str(), to_string(level).c_str());
1631 return "compatibility_matrix." + to_string(static_cast<Level>(i)) + ".xml"; in getFileName()
1905 to_string(static_cast<Level>(targetFcm)) + "\">\n"; in expectKernelFcmVersion()
1907 xml += " <kernel target-level=\"" + to_string(kernelFcm) + "\"/>\n"; in expectKernelFcmVersion()
2122 android::base::StringReplace(to_string(kernelInfo.version()), ".", "_", true) + "_" + in PrintKernelTestParam()
2125 (targetFcm == Level::UNSPECIFIED ? "Unspecified" : to_string(targetFcm)) + in PrintKernelTestParam()
2127 (kernelFcm == Level::UNSPECIFIED ? "Unspecified" : to_string(kernelFcm)) + in PrintKernelTestParam()
2164 ret += "_TargetFcm" + (targetFcm == Level::UNSPECIFIED ? "Unspecified" : to_string(targetFcm)); in GkiPrintKernelTestParam()
2165 ret += "_KernelFcm" + (kernelFcm == Level::UNSPECIFIED ? "Unspecified" : to_string(kernelFcm)); in GkiPrintKernelTestParam()
2343 to_string(static_cast<Level>(level)).c_str()); in expectTargetFcmVersion()
[all …]
/system/memory/mmd/src/zram/writeback/
Dtests.rs67 self.read_meminfo.expect().returning(|| Ok(meminfo.to_string())); in setup_default_meminfo()
71 self.read_writeback_limit.expect().returning(|| Ok("100\n".to_string())); in setup_default_writeback_limit_read()
82 mock.read_backing_dev.expect().returning(|| Ok("/dev/dm-1".to_string())); in test_get_zram_writeback_status()
93 mock.read_backing_dev.expect().returning(|| Ok("none".to_string())); in test_load_zram_writeback_disk_size_writeback_is_not_enabled()
235 mock.read_meminfo.expect().returning(|| Ok(meminfo.to_string())); in mark_and_flush_pages_idle_time()
266 mock.read_meminfo.expect().returning(|| Ok(meminfo.to_string())); in mark_and_flush_pages_idle_time_adjusted_by_suspend_duration()
618 mock.read_writeback_limit.expect().times(1).returning(|| Ok("100".to_string())); in mark_and_flush_pages_write_limit_capped_by_daily_limit()
620 mock.read_writeback_limit.expect().returning(|| Ok("60".to_string())); in mark_and_flush_pages_write_limit_capped_by_daily_limit()
668 mock.read_writeback_limit.expect().times(1).returning(|| Ok("100\n".to_string())); in mark_and_flush_pages_write_limit_capped_by_daily_limit_expired()
670 mock.read_writeback_limit.expect().returning(|| Ok("60\n".to_string())); in mark_and_flush_pages_write_limit_capped_by_daily_limit_expired()
[all …]
/system/memory/mmd/src/zram/
Didle.rs26 Z::set_idle(&idle_age.as_secs().to_string()) in set_zram_idle_time()
181 mock.expect().returning(|| Ok(meminfo.to_string())); in test_calculate_idle_time()
199 mock.expect().returning(|| Ok(meminfo.to_string())); in test_calculate_idle_time_same_min_max()
228 mock.expect().returning(|| Ok(meminfo.to_string())); in test_calculate_idle_time_no_available()
260 mock.expect().returning(|| Ok(meminfo.to_string())); in test_calculate_idle_time_invalid_meminfo()
277 mock.expect().returning(|| Ok(meminfo.to_string())); in test_calculate_idle_time_zero_total_memory()
/system/cros-codecs/src/video_frame/
Dgbm_video_frame.rs400 return Err("Compressed buffer export to VA-API is not currently supported".to_string()); in to_native_handle()
405 .to_string(), in to_native_handle()
412 _ => return Err("Format unsupported for VA-API export".to_string()), in to_native_handle()
435 .map_err(|_| "Error importing GbmVideoFrame to VA-API".to_string())?; in to_native_handle()
475 .map_err(|_| "Error opening GBM device!".to_string())?; in open()
480 Err("Could not create GBM device from file!".to_string()) in open()
521 return Err("Error allocating compressed buffer!".to_string()); in new_frame()
552 fourcc.to_string(), in new_frame()
590 fourcc.to_string() in new_frame()
631 return Err("Cannot import empty V4L2 handle!".to_string()); in import_from_v4l2()
[all …]
/system/cros-codecs/src/codec/h264/
Dnalu.rs39 let pos = usize::try_from(cursor.position()).map_err(|err| err.to_string())?; in next()
59 cursor.set_position(u64::try_from(nalu_offset).map_err(|err| err.to_string())?); in next()
68 let end_pos = cursor.seek(SeekFrom::End(0)).map_err(|err| err.to_string())?; in next()
69 let _ = cursor.seek(SeekFrom::Start(cur_pos)).map_err(|err| err.to_string())?; in next()
/system/security/keystore2/tests/
Dkeystore2_client_key_id_domain_tests.rs37 Some(alias.to_string()), in keystore2_generate_key_with_key_id_domain_expect_sys_error()
57 Some(alias.to_string()), in keystore2_find_key_with_key_id_as_domain()
69 alias: Some(alias.to_string()), in keystore2_find_key_with_key_id_as_domain()
115 Some(alias.to_string()), in keystore2_key_id_alias_rebind_verify_by_alias()
182 Some(alias.to_string()), in keystore2_key_id_alias_rebind_verify_by_key_id()
194 alias: Some(alias.to_string()), in keystore2_key_id_alias_rebind_verify_by_key_id()
/system/memory/mmd/src/
Dblock_dev.rs73 backing_device_queue_depth.to_string(), in configure_block_device_queue_depth_with_sysfs()
107 "block device real path doesn't have a file name".to_string(), in get_block_device_name()
114 "block device name is not valid Unicode".to_string(), in get_block_device_name()
117 .to_string()) in get_block_device_name()
139 sub_device_name = Some(entry.file_name().to_string_lossy().to_string()); in get_parent_block_device()
158 return Ok(name.to_string()); in partition_parent()
161 Ok(device_name.to_string()) in partition_parent()
/system/libfmq/include/fmq/
DAidlMQDescriptorShimBase.h93 std::to_string(desc.quantum) + in AidlMQDescriptorShimBase()
94 ". flags: " + std::to_string(desc.flags)); in AidlMQDescriptorShimBase()
106 std::to_string(i) + ". offset: " + std::to_string(desc.grantors[i].offset) + in AidlMQDescriptorShimBase()
107 ". extent: " + std::to_string(desc.grantors[i].extent)); in AidlMQDescriptorShimBase()
187 "Queue size is too large. Message size: " + std::to_string(messageSize) + in AidlMQDescriptorShimBase()
188 " bytes. Data buffer size: " + std::to_string(bufferSize) + " bytes. Max size: " + in AidlMQDescriptorShimBase()
189 std::to_string(std::numeric_limits<int32_t>::max()) + " bytes."); in AidlMQDescriptorShimBase()

12345678910>>...18