Home
last modified time | relevance | path

Searched refs:Append (Results 1 – 25 of 48) sorted by relevance

12

/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_test.cpp71 data_dir_.Append("testkey_rsa2048.pem"), "d00df00d", in TEST_F()
80 data_dir_.Append("testkey_rsa4096.pem"), "d00df00d", in TEST_F()
85 ExtractPublicKeyAvb(data_dir_.Append("testkey_rsa2048.pem")); in TEST_F()
87 ExtractPublicKeyAvb(data_dir_.Append("testkey_rsa4096.pem")); in TEST_F()
91 data_dir_.Append("testkey_rsa8192.pem"), in TEST_F()
103 return test_dir_.Append(partition_name + ".img").value(); in TEST_F()
142 data_dir_.Append("testkey_rsa2048.pem"), "d00df00d", in TEST_F()
151 data_dir_.Append("testkey_rsa4096.pem"), "d00df00d", in TEST_F()
156 ExtractPublicKeyAvb(data_dir_.Append("testkey_rsa2048.pem")); in TEST_F()
158 ExtractPublicKeyAvb(data_dir_.Append("testkey_rsa4096.pem")); in TEST_F()
[all …]
Dbasic_test.cpp51 GenerateVBMetaImage("vbmeta.img", "SHA256_RSA2048", 0, data_dir_.Append("testkey_rsa2048.pem"), in TEST_F()
85 data_dir_.Append("testkey_rsa4096.pem"), "d00df00d", in TEST_F()
124 data_dir_.Append("testkey_rsa8192.pem"), "d00df00d", in TEST_F()
165 data_dir_.Append("testkey_rsa4096.pem"), "d00df00d", in TEST_F()
174 data_dir_.Append("testkey_rsa8192.pem"), "d00df00d", in TEST_F()
178 GenerateVBMetaImage("vbmeta.img", "SHA256_RSA2048", 0, data_dir_.Append("testkey_rsa2048.pem"), in TEST_F()
229 data_dir_.Append("testkey_rsa2048.pem"), "d00df00d", in TEST_F()
238 data_dir_.Append("testkey_rsa4096.pem"), "d00df00d", in TEST_F()
243 ExtractPublicKeyAvb(data_dir_.Append("testkey_rsa2048.pem")); in TEST_F()
245 ExtractPublicKeyAvb(data_dir_.Append("testkey_rsa4096.pem")); in TEST_F()
[all …]
Davb_util_test.cpp201 data_dir_.Append("testkey_rsa8192.pem"), "d00df00d", in TEST_F()
277 GenerateVBMetaImage("vbmeta.img", "SHA256_RSA4096", 0, data_dir_.Append("testkey_rsa4096.pem"), in TEST_F()
301 data_dir_.Append("testkey_rsa2048.pem"), "d00df00d", in TEST_F()
310 data_dir_.Append("testkey_rsa4096.pem"), "d00df00d", in TEST_F()
316 ExtractPublicKeyAvb(data_dir_.Append("testkey_rsa4096.pem")); in TEST_F()
319 GenerateVBMetaImage("vbmeta.img", "SHA256_RSA4096", 0, data_dir_.Append("testkey_rsa4096.pem"), in TEST_F()
343 data_dir_.Append("testkey_rsa4096.pem"), "d00df00d", in TEST_F()
455 ExtractPublicKeyAvb(data_dir_.Append("testkey_rsa2048.pem")); in TEST_F()
457 ExtractPublicKeyAvb(data_dir_.Append("testkey_rsa4096.pem")); in TEST_F()
459 ExtractPublicKeyAvb(data_dir_.Append("testkey_rsa8192.pem")); in TEST_F()
[all …]
Dutil_test.cpp159 base::FilePath wait_path = tmp_dir.Append("libfs_avb-test-exist-dir"); in TEST()
180 base::FilePath wait_path = tmp_dir.Append("libfs_avb-test-exist-dir"); in TEST()
201 base::FilePath wait_path = tmp_dir.Append("libfs_avb-test-exist-dir"); in TEST()
226 base::FilePath file_path_1 = test_dir.Append("1.txt"); in TEST()
228 base::FilePath file_path_2 = test_dir.Append("2.txt"); in TEST()
230 base::FilePath file_path_3 = test_dir.Append("3.txt"); in TEST()
257 base::FilePath file_path_1 = test_dir.Append("1.txt"); in TEST()
259 base::FilePath file_path_2 = test_dir.Append("2.txt"); in TEST()
262 base::FilePath file_path_3 = test_dir.Append("3.txt"); in TEST()
263 base::FilePath non_existent_target = test_dir.Append("non_existent_target.txt"); in TEST()
[all …]
Dfs_avb_test_util.cpp57 base::FilePath vbmeta_digest_path = test_dir_.Append("vbmeta_digest"); in CalcVBMetaDigest()
100 vbmeta_image.path = test_dir_.Append(file_name); in GenerateVBMetaImage()
124 vbmeta_image.path = test_dir_.Append(output_file_name); in ExtractVBMetaImage()
153 base::FilePath image_path = test_dir_.Append(file_name); in GenerateImage()
232 base::FilePath tmp_path = test_dir_.Append("info_output.txt"); in InfoImage()
250 base::FilePath tmp_path = test_dir_.Append(file_name + "public_key.bin"); in ExtractPublicKeyAvb()
259 base::FilePath tmp_path = test_dir_.Append("public_key.bin"); in ExtractPublicKeyAvbBlob()
Dfs_avb_util_test.cpp39 data_dir_.Append("testkey_rsa4096.pem"), "d00df00d", in TEST_F()
112 data_dir_.Append("testkey_rsa4096.pem"), "d00df00d", in TEST_F()
/system/update_engine/common/
Dprefs_unittest.cc153 return base::WriteFile(prefs_dir_.Append(key), in SetValue()
172 auto ns1_path = temp_dir.GetPath().Append(ns1); in TEST()
173 auto ns2A_path = ns1_path.Append(ns2A); in TEST()
174 auto ns2B_path = ns1_path.Append(ns2B); in TEST()
175 auto sub_pref_path = ns2A_path.Append(sub_pref); in TEST()
193 EXPECT_EQ(prefs_dir_.Append(kAllvalidCharsKey).value(), path.value()); in TEST_F()
240 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
247 EXPECT_FALSE(base::PathExists(prefs_dir_.Append(kKeyWithDots))); in TEST_F()
252 base::FilePath subdir = prefs_dir_.Append("subdir1").Append("subdir2"); in TEST_F()
256 EXPECT_TRUE(base::ReadFileToString(subdir.Append(kKey), &value)); in TEST_F()
[all …]
Dhwid_override_unittest.cc35 ASSERT_TRUE(base::CreateDirectory(tempdir_.GetPath().Append("etc"))); in SetUp()
49 ASSERT_EQ(base::WriteFile(tempdir_.GetPath().Append("etc/lsb-release"), in TEST_F()
58 ASSERT_EQ(base::WriteFile(tempdir_.GetPath().Append("etc/lsb-release"), in TEST_F()
Dutils_unittest.cc83 string temp_file = temp_dir.GetPath().Append("temp-file").value(); in TEST()
85 string temp_symlink = temp_dir.GetPath().Append("temp-symlink").value(); in TEST()
380 test_utils::GetBuildArtifactsPath().Append("gen/disk_ext2_4k.img"), in TEST()
398 string target_file = mnt_dir.GetPath().Append("empty-file").value(); in TEST()
/system/libbase/include/android-base/
Dcollections.h36 void Append(CollectionType& collection, T&& arg) { in Append() function
41 void Append(CollectionType& collection, T&& arg, Args&&... args) { in Append() function
43 return Append(collection, std::forward<Args>(args)...); in Append()
Dcmsg.h73 Append(fds, std::forward<Args>(sent_fds)...); in SendFileDescriptors()
84 Append(fds, std::forward<Args>(received_fds)...); in ReceiveFileDescriptors()
/system/nvram/messages/tests/
Dnvram_messages_test.cpp59 ASSERT_TRUE(response_payload.space_list.Append(0x1234)); in TEST()
60 ASSERT_TRUE(response_payload.space_list.Append(0xffffffff)); in TEST()
61 ASSERT_TRUE(response_payload.space_list.Append(0x32)); in TEST()
62 ASSERT_TRUE(response_payload.space_list.Append(0x0)); in TEST()
63 ASSERT_TRUE(response_payload.space_list.Append(0x1)); in TEST()
92 ASSERT_TRUE(request_payload.controls.Append(NV_CONTROL_BOOT_WRITE_LOCK)); in TEST()
93 ASSERT_TRUE(request_payload.controls.Append(NV_CONTROL_WRITE_EXTEND)); in TEST()
153 ASSERT_TRUE(response_payload.controls.Append(NV_CONTROL_BOOT_WRITE_LOCK)); in TEST()
154 ASSERT_TRUE(response_payload.controls.Append(NV_CONTROL_BOOT_READ_LOCK)); in TEST()
155 ASSERT_TRUE(response_payload.controls.Append(NV_CONTROL_WRITE_EXTEND)); in TEST()
/system/update_engine/payload_consumer/
Ddelta_performer_integration_test.cc401 base::CopyFile(GetBuildArtifactsPath().Append("gen/disk_ext2_4k.img"), in GenerateDeltaFile()
452 base::CopyFile(GetBuildArtifactsPath().Append("gen/disk_ext2_4k.img"), in GenerateDeltaFile()
460 ASSERT_TRUE(base::CopyFile(mnt_path.Append("regular-small"), in GenerateDeltaFile()
461 mnt_path.Append("regular-small2"))); in GenerateDeltaFile()
463 ASSERT_TRUE(base::DeleteFile(mnt_path.Append("regular-small"), false)); in GenerateDeltaFile()
465 ASSERT_TRUE(base::DeleteFile(mnt_path.Append("regular-small"))); in GenerateDeltaFile()
467 ASSERT_TRUE(base::Move(mnt_path.Append("regular-small2"), in GenerateDeltaFile()
468 mnt_path.Append("regular-small"))); in GenerateDeltaFile()
470 test_utils::WriteFileString(mnt_path.Append("foo").value(), "foo")); in GenerateDeltaFile()
471 ASSERT_EQ(0, base::WriteFile(mnt_path.Append("emptyfile"), "", 0)); in GenerateDeltaFile()
[all …]
/system/update_engine/aosp/
Dcow_converter.cc58 auto target_img = img_dir.Append(partition.partition_name() + ".img"); in ProcessPartition()
59 auto output_cow = img_dir.Append(partition.partition_name() + ".cow"); in ProcessPartition()
181 img_dir.Append(partition.partition_name() + ".cow").value(); in main()
Ddynamic_partition_control_android.cc657 auto path = base::FilePath(prefix).Append("etc/fstab.postinstall").value(); in IsAvbEnabledOnSystemOther()
715 *path = device_dir.Append(partition_name_suffix).value(); in GetSystemOtherPath()
721 device_dir.Append(GetSuperPartitionName(source_slot)).value(); in GetSystemOtherPath()
842 device_dir.Append(GetSuperPartitionName(source_slot)).value(); in PrepareDynamicPartitionsForUpdate()
860 device_dir.Append(GetSuperPartitionName(target_slot)).value(); in PrepareDynamicPartitionsForUpdate()
965 device_dir.Append(GetSuperPartitionName(source_slot)).value(); in PrepareSnapshotPartitionsForUpdate()
1126 base::FilePath path = device_dir.Append(partition_name_suffixed); in GetStaticDevicePath()
1150 .Append(partition_name_suffix) in GetPartitionDevice()
1197 device_dir.Append(GetSuperPartitionName(current_slot)).value(); in IsSuperBlockDevice()
1211 device_dir.Append(GetSuperPartitionName(slot)).value(); in GetDynamicPartitionDevice()
[all …]
Ddaemon_state_android.cc56 if (!prefs->Init(non_volatile_path.Append(kPrefsSubDirectory))) { in Initialize()
Dota_extractor.cc120 output_dir_path.Append(partition.partition_name() + ".img").value(); in ExtractImagesFromOTA()
129 input_dir_path.Append(partition.partition_name() + ".img").value(); in ExtractImagesFromOTA()
/system/core/libstats/push_compat/include/
Dstats_event_list.h211 bool Append(const std::string& value) { in Append() function
228 bool Append(Tvalue value) { in Append() function
233 bool Append(const char* value, size_t len) { in Append() function
/system/logging/liblog/include/log/
Dlog_event_list.h248 bool Append(const std::string& value) { in Append() function
262 bool Append(Tvalue value) { in Append() function
267 bool Append(const char* value, size_t len) { in Append() function
/system/nvram/messages/include/nvram/messages/
Dvector.h144 bool Append(const ElementType& element) NVRAM_WARN_UNUSED_RESULT { in Append() function
153 bool Append(ElementType&& element) NVRAM_WARN_UNUSED_RESULT { in Append() function
/system/sepolicy/private/
Dcrash_dump.te59 # Append to pipes given to us by processes requesting dumps (e.g. dumpstate)
93 # Append to ANR files.
96 # Append to tombstone files.
/system/update_engine/payload_generator/
Dext2_filesystem_unittest.cc103 base::FilePath build_path = GetBuildArtifactsPath().Append("gen"); in TEST_F()
107 Ext2Filesystem::CreateFromFile(build_path.Append(fs_name).value()); in TEST_F()
/system/tools/aidl/
Daidl_to_cpp_common.h82 std::vector<T> Append(std::vector<T> as, const std::vector<T>& bs) { in Append() function
88 std::vector<T> Append(std::vector<T>&& as, std::vector<T>&& bs) { in Append() function
Dparser.h48 void Append(T&& text) { in Append() function
/system/sepolicy/microdroid/system/private/
Dcrash_dump.te13 # Append to pipes given to us by processes requesting dumps (e.g. dumpstate)

12