Home
last modified time | relevance | path

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

123

/system/connectivity/wifilogd/tests/
Dmessage_buffer_unittest.cpp48 EXPECT_TRUE(buffer_.Append(message.data(), message.size())); in FillBufferWithMultipleMessages()
67 EXPECT_TRUE(buffer_.Append(kSmallestMessage.data(), kSmallestMessage.size())); in TEST_F()
71 EXPECT_TRUE(buffer_.Append(kLargestMessage.data(), kLargestMessage.size())); in TEST_F()
75 ASSERT_TRUE(buffer_.Append(kLargestMessage.data(), kLargestMessage.size())); in TEST_F()
79 EXPECT_TRUE(buffer_.Append(kLargestMessage.data(), kLargestMessage.size())); in TEST_F()
88 ASSERT_TRUE(buffer_.Append(message.data(), message.size())); in TEST_F()
95 buffer_.Append(oversized_message.data(), oversized_message.size())); in TEST_F()
104 buffer_.Append(oversized_message.data(), oversized_message.size())); in TEST_F()
117 ASSERT_TRUE(buffer_.Append(kSmallestMessage.data(), kSmallestMessage.size())); in TEST_F()
127 ASSERT_TRUE(buffer_.Append(kLargestMessage.data(), kLargestMessage.size())); in TEST_F()
[all …]
/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()
83 data_dir_.Append("testkey_rsa4096.pem"), "d00df00d", in TEST_F()
120 data_dir_.Append("testkey_rsa8192.pem"), "d00df00d", in TEST_F()
159 data_dir_.Append("testkey_rsa4096.pem"), "d00df00d", in TEST_F()
168 data_dir_.Append("testkey_rsa8192.pem"), "d00df00d", in TEST_F()
172 GenerateVBMetaImage("vbmeta.img", "SHA256_RSA2048", 0, data_dir_.Append("testkey_rsa2048.pem"), in TEST_F()
221 data_dir_.Append("testkey_rsa2048.pem"), "d00df00d", in TEST_F()
230 data_dir_.Append("testkey_rsa4096.pem"), "d00df00d", in TEST_F()
235 ExtractPublicKeyAvb(data_dir_.Append("testkey_rsa2048.pem")); in TEST_F()
237 ExtractPublicKeyAvb(data_dir_.Append("testkey_rsa4096.pem")); in TEST_F()
[all …]
Davb_util_test.cpp200 data_dir_.Append("testkey_rsa8192.pem"), "d00df00d", in TEST_F()
274 GenerateVBMetaImage("vbmeta.img", "SHA256_RSA4096", 0, data_dir_.Append("testkey_rsa4096.pem"), in TEST_F()
298 data_dir_.Append("testkey_rsa2048.pem"), "d00df00d", in TEST_F()
307 data_dir_.Append("testkey_rsa4096.pem"), "d00df00d", in TEST_F()
313 ExtractPublicKeyAvb(data_dir_.Append("testkey_rsa4096.pem")); in TEST_F()
316 GenerateVBMetaImage("vbmeta.img", "SHA256_RSA4096", 0, data_dir_.Append("testkey_rsa4096.pem"), in TEST_F()
340 data_dir_.Append("testkey_rsa4096.pem"), "d00df00d", in TEST_F()
450 ExtractPublicKeyAvb(data_dir_.Append("testkey_rsa2048.pem")); in TEST_F()
452 ExtractPublicKeyAvb(data_dir_.Append("testkey_rsa4096.pem")); in TEST_F()
454 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()
152 base::FilePath image_path = test_dir_.Append(file_name); in GenerateImage()
231 base::FilePath tmp_path = test_dir_.Append("info_output.txt"); in InfoImage()
249 base::FilePath tmp_path = test_dir_.Append(file_name + "public_key.bin"); in ExtractPublicKeyAvb()
258 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()
110 data_dir_.Append("testkey_rsa4096.pem"), "d00df00d", in TEST_F()
/system/update_engine/
Dimage_properties_chromeos_unittest.cc39 EXPECT_TRUE(base::CreateDirectory(tempdir_.GetPath().Append("etc"))); in SetUp()
58 WriteFileString(tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
74 tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
82 WriteFileString(tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
96 WriteFileString(tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
117 WriteFileString(tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
139 WriteFileString(tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
151 WriteFileString(tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
163 WriteFileString(tempdir_.GetPath().Append("etc/lsb-release").value(), in TEST_F()
Dboot_control_chromeos.cc193 .Append(dlc_id) in GetPartitionDevice()
194 .Append(dlc_package) in GetPartitionDevice()
195 .Append(slot == 0 ? kPartitionNameDlcA : kPartitionNameDlcB) in GetPartitionDevice()
196 .Append(kPartitionNameDlcImage) in GetPartitionDevice()
326 return base::FilePath("/sys/block").Append(device_path.BaseName()).value(); in SysfsBlockDevice()
334 !base::ReadFileToString(base::FilePath(sysfs_block).Append("removable"), in IsRemovableDevice()
Dp2p_manager_unittest.cc153 base::FilePath path = test_conf_->GetP2PDir().Append( in TEST_F()
159 path = test_conf_->GetP2PDir().Append( in TEST_F()
217 base::FilePath path = test_conf_->GetP2PDir().Append( in TEST_F()
233 path = test_conf_->GetP2PDir().Append( in TEST_F()
357 test_conf_->GetP2PDir().Append("foo.cros_au.p2p.tmp")); in TEST_F()
377 test_conf_->GetP2PDir().Append("foo.cros_au.p2p.tmp")); in TEST_F()
387 test_conf_->GetP2PDir().Append("foo.cros_au.p2p")); in TEST_F()
409 test_conf_->GetP2PDir().Append("foo.cros_au.p2p")); in TEST_F()
425 test_conf_->GetP2PDir().Append("bar.cros_au.p2p.tmp")); in TEST_F()
Dimage_properties_android_unittest.cc40 osrelease_dir_ = tempdir_.GetPath().Append("etc/os-release.d"); in SetUp()
46 ASSERT_TRUE(WriteFileString(osrelease_dir_.Append(key).value(), value)); in WriteOsRelease()
54 WriteFileString(tempdir_.GetPath().Append("misc").value(), misc)); in WriteChannel()
Dreal_system_state.cc106 if (!prefs->Init(non_volatile_path.Append(kPrefsSubDirectory))) { in Initialize()
115 powerwash_safe_path = non_volatile_path.Append("powerwash-safe"); in Initialize()
120 powerwash_safe_path.Append(kPowerwashSafePrefsSubDirectory))) { in Initialize()
/system/update_engine/common/
Dprefs_unittest.cc136 return base::WriteFile(prefs_dir_.Append(key), in SetValue()
155 auto ns1_path = temp_dir.GetPath().Append(ns1); in TEST()
156 auto ns2A_path = ns1_path.Append(ns2A); in TEST()
157 auto ns2B_path = ns1_path.Append(ns2B); in TEST()
158 auto sub_pref_path = ns2A_path.Append(sub_pref); in TEST()
176 EXPECT_EQ(prefs_dir_.Append(kAllvalidCharsKey).value(), path.value()); in TEST_F()
223 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
230 EXPECT_FALSE(base::PathExists(prefs_dir_.Append(kKeyWithDots))); in TEST_F()
235 base::FilePath subdir = prefs_dir_.Append("subdir1").Append("subdir2"); in TEST_F()
239 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()
/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/sepolicy/prebuilts/api/26.0/public/
Dcrash_dump.te24 # Append to pipes given to us by processes requesting dumps (e.g. dumpstate)
46 # Append to ANR files.
49 # Append to tombstone files.
/system/update_engine/payload_consumer/
Ddelta_performer_integration_test.cc372 base::CopyFile(GetBuildArtifactsPath().Append("gen/disk_ext2_4k.img"), in GenerateDeltaFile()
442 base::CopyFile(GetBuildArtifactsPath().Append("gen/disk_ext2_4k.img"), in GenerateDeltaFile()
450 EXPECT_TRUE(base::CopyFile(mnt_path.Append("regular-small"), in GenerateDeltaFile()
451 mnt_path.Append("regular-small2"))); in GenerateDeltaFile()
452 EXPECT_TRUE(base::DeleteFile(mnt_path.Append("regular-small"), false)); in GenerateDeltaFile()
453 EXPECT_TRUE(base::Move(mnt_path.Append("regular-small2"), in GenerateDeltaFile()
454 mnt_path.Append("regular-small"))); in GenerateDeltaFile()
456 test_utils::WriteFileString(mnt_path.Append("foo").value(), "foo")); in GenerateDeltaFile()
457 EXPECT_EQ(0, base::WriteFile(mnt_path.Append("emptyfile"), "", 0)); in GenerateDeltaFile()
460 WriteSparseFile(mnt_path.Append("fullsparse").value(), 1024 * 1024)); in GenerateDeltaFile()
[all …]
/system/sepolicy/prebuilts/api/27.0/public/
Dcrash_dump.te27 # Append to pipes given to us by processes requesting dumps (e.g. dumpstate)
49 # Append to ANR files.
52 # Append to tombstone files.
/system/sepolicy/prebuilts/api/28.0/public/
Dcrash_dump.te21 # Append to pipes given to us by processes requesting dumps (e.g. dumpstate)
43 # Append to ANR files.
46 # Append to tombstone files.
/system/tools/aidl/
Daidl_to_cpp_common.h60 std::vector<T> Append(std::vector<T> as, const std::vector<T>& bs) { in Append() function
66 std::vector<T> Append(std::vector<T>&& as, std::vector<T>&& bs) { in Append() function
/system/sepolicy/public/
Dcrash_dump.te21 # Append to pipes given to us by processes requesting dumps (e.g. dumpstate)
43 # Append to ANR files.
46 # Append to tombstone files.
/system/sepolicy/prebuilts/api/30.0/public/
Dcrash_dump.te21 # Append to pipes given to us by processes requesting dumps (e.g. dumpstate)
43 # Append to ANR files.
46 # Append to tombstone files.
/system/sepolicy/prebuilts/api/29.0/public/
Dcrash_dump.te21 # Append to pipes given to us by processes requesting dumps (e.g. dumpstate)
43 # Append to ANR files.
46 # Append to tombstone files.

123