Home
last modified time | relevance | path

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

12

/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/update_engine/
Dimage_properties_chromeos_unittest.cc39 EXPECT_TRUE(base::CreateDirectory(tempdir_.path().Append("etc"))); in SetUp()
57 ASSERT_TRUE(WriteFileString(tempdir_.path().Append("etc/lsb-release").value(), in TEST_F()
73 tempdir_.path().Append("etc/lsb-release").value(), in TEST_F()
81 WriteFileString(tempdir_.path().Append("etc/lsb-release").value(), in TEST_F()
94 ASSERT_TRUE(WriteFileString(tempdir_.path().Append("etc/lsb-release").value(), in TEST_F()
114 ASSERT_TRUE(WriteFileString(tempdir_.path().Append("etc/lsb-release").value(), in TEST_F()
135 ASSERT_TRUE(WriteFileString(tempdir_.path().Append("etc/lsb-release").value(), in TEST_F()
146 ASSERT_TRUE(WriteFileString(tempdir_.path().Append("etc/lsb-release").value(), in TEST_F()
157 ASSERT_TRUE(WriteFileString(tempdir_.path().Append("etc/lsb-release").value(), in TEST_F()
Dp2p_manager_unittest.cc148 base::FilePath path = test_conf_->GetP2PDir().Append(base::StringPrintf( in TEST_F()
154 path = test_conf_->GetP2PDir().Append(base::StringPrintf( in TEST_F()
211 base::FilePath path = test_conf_->GetP2PDir().Append(base::StringPrintf( in TEST_F()
227 path = test_conf_->GetP2PDir().Append(base::StringPrintf( in TEST_F()
352 test_conf_->GetP2PDir().Append("foo.cros_au.p2p.tmp")); in TEST_F()
375 test_conf_->GetP2PDir().Append("foo.cros_au.p2p.tmp")); in TEST_F()
383 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()
Dreal_system_state.cc88 if (!prefs->Init(non_volatile_path.Append(kPrefsSubDirectory))) { in Initialize()
97 powerwash_safe_path = non_volatile_path.Append("powerwash-safe"); in Initialize()
102 powerwash_safe_path.Append(kPowerwashSafePrefsSubDirectory))) { in Initialize()
Ddaemon_state_android.cc56 if (!prefs->Init(non_volatile_path.Append(kPrefsSubDirectory))) { in Initialize()
Dboot_control_chromeos.cc262 return base::FilePath("/sys/block").Append(device_path.BaseName()).value(); in SysfsBlockDevice()
270 !base::ReadFileToString(base::FilePath(sysfs_block).Append("removable"), in IsRemovableDevice()
Dboot_control_recovery.cc132 base::FilePath path = misc_device.DirName().Append(partition_name + suffix); in GetPartitionDevice()
Dboot_control_android.cc122 base::FilePath path = misc_device.DirName().Append(partition_name + suffix); in GetPartitionDevice()
Dhardware_chromeos.cc184 base::FilePath marker_path = base::FilePath(kPowerwashSafeDirectory).Append( in GetPowerwashCount()
Domaha_request_params_unittest.cc108 ASSERT_TRUE(WriteFileString(tempdir_.path().Append(".nodelta").value(), "")); in TEST_F()
/system/update_engine/common/
Dprefs_unittest.cc52 return base::WriteFile(prefs_dir_.Append(key), value.data(), in SetValue()
66 EXPECT_EQ(prefs_dir_.Append(kAllvalidCharsKey).value(), path.value()); in TEST_F()
101 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
108 EXPECT_FALSE(base::PathExists(prefs_dir_.Append(kKeyWithDots))); in TEST_F()
113 base::FilePath subdir = prefs_dir_.Append("subdir1").Append("subdir2"); in TEST_F()
117 EXPECT_TRUE(base::ReadFileToString(subdir.Append(kKey), &value)); in TEST_F()
127 base::CreateDirectory(prefs_dir_.Append(kKey)); in TEST_F()
129 EXPECT_TRUE(base::DirectoryExists(prefs_dir_.Append(kKey))); in TEST_F()
176 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
183 EXPECT_FALSE(base::PathExists(prefs_dir_.Append(kKeyWithSpaces))); in TEST_F()
[all …]
Dhwid_override_unittest.cc35 ASSERT_TRUE(base::CreateDirectory(tempdir_.path().Append("etc"))); in SetUp()
49 ASSERT_EQ(base::WriteFile(tempdir_.path().Append("etc/lsb-release"), in TEST_F()
57 ASSERT_EQ(base::WriteFile(tempdir_.path().Append("etc/lsb-release"), in TEST_F()
Dtest_utils.cc114 char *path = strdup(dir_path.Append("xattr_test_XXXXXX").value().c_str()); in IsXAttrSupported()
267 return GetBuildArtifactsPath().Append(relative_path).value(); in GetBuildArtifactsPath()
Dutils_unittest.cc103 string temp_file = temp_dir.path().Append("temp-file").value(); in TEST()
105 string temp_symlink = temp_dir.path().Append("temp-symlink").value(); in TEST()
471 test_utils::GetBuildArtifactsPath().Append("gen/disk_ext2_4k.img"), in TEST()
489 string target_file = mnt_dir.path().Append("empty-file").value(); in TEST()
Dprefs.cc163 *filename = prefs_dir_.Append(key); in GetFileNameForKey()
/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/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.cc323 base::CopyFile(GetBuildArtifactsPath().Append("gen/disk_ext2_4k.img"), in GenerateDeltaFile()
402 base::CopyFile(GetBuildArtifactsPath().Append("gen/disk_ext2_4k.img"), in GenerateDeltaFile()
410 EXPECT_TRUE(base::CopyFile(mnt_path.Append("regular-small"), in GenerateDeltaFile()
411 mnt_path.Append("regular-small2"))); in GenerateDeltaFile()
412 EXPECT_TRUE(base::DeleteFile(mnt_path.Append("regular-small"), false)); in GenerateDeltaFile()
413 EXPECT_TRUE(base::Move(mnt_path.Append("regular-small2"), in GenerateDeltaFile()
414 mnt_path.Append("regular-small"))); in GenerateDeltaFile()
416 test_utils::WriteFileString(mnt_path.Append("foo").value(), "foo")); in GenerateDeltaFile()
417 EXPECT_EQ(0, base::WriteFile(mnt_path.Append("emptyfile"), "", 0)); in GenerateDeltaFile()
420 WriteSparseFile(mnt_path.Append("fullsparse").value(), 1024 * 1024)); in GenerateDeltaFile()
[all …]
/system/core/liblog/include/log/
Dlog_event_list.h263 bool Append(const std::string& value) { in Append() function
278 bool Append(Tvalue value) { in Append() function
283 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/update_engine/payload_generator/
Dext2_filesystem_unittest.cc104 base::FilePath build_path = GetBuildArtifactsPath().Append("gen"); in TEST_F()
108 build_path.Append(fs_name).value()); in TEST_F()
/system/connectivity/wifilogd/
Dmessage_buffer.h52 bool Append(NONNULL const uint8_t* data, uint16_t data_len);
Dmessage_buffer.cpp34 bool MessageBuffer::Append(const uint8_t* message, uint16_t message_len) { in Append() function in android::wifilogd::MessageBuffer
Dcommand_processor.cpp198 bool did_write = current_log_buffer_.Append( in CopyCommandToLog()
/system/core/libziparchive/
Dzip_archive.cc770 virtual bool Append(uint8_t* buf, size_t buf_size) = 0;
787 virtual bool Append(uint8_t* buf, size_t buf_size) override { in Append() function in MemoryWriter
866 virtual bool Append(uint8_t* buf, size_t buf_size) override { in Append() function in FileWriter
977 if (!writer->Append(&write_buf[0], write_size)) { in InflateEntryToWriter()
1020 if (!writer->Append(&buf[0], block_size)) { in CopyEntryToWriter()
1112 virtual bool Append(uint8_t* buf, size_t buf_size) override { in Append() function in ProcessWriter

12