Home
last modified time | relevance | path

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

1234

/system/connectivity/dhcp_client/
Ddhcp_options_writer.cc46 buffer->Append(ByteString(reinterpret_cast<const char*>(&option_code), in WriteUInt8Option()
48 buffer->Append(ByteString(reinterpret_cast<const char*>(&length), in WriteUInt8Option()
50 buffer->Append(ByteString(reinterpret_cast<const char*>(&value), in WriteUInt8Option()
60 buffer->Append(ByteString(reinterpret_cast<const char*>(&option_code), in WriteUInt16Option()
62 buffer->Append(ByteString(reinterpret_cast<const char*>(&length), in WriteUInt16Option()
64 buffer->Append(ByteString(reinterpret_cast<const char*>(&value_net), in WriteUInt16Option()
74 buffer->Append(ByteString(reinterpret_cast<const char*>(&option_code), in WriteUInt32Option()
76 buffer->Append(ByteString(reinterpret_cast<const char*>(&length), in WriteUInt32Option()
78 buffer->Append(ByteString(reinterpret_cast<const char*>(&value_net), in WriteUInt32Option()
92 buffer->Append(ByteString(reinterpret_cast<const char*>(&option_code), in WriteUInt8ListOption()
[all …]
/system/connectivity/shill/
Darp_packet_unittest.cc171 arp_bytes.Append(mac_address1_); in TEST_F()
172 arp_bytes.Append(ipv6_address0_.address()); in TEST_F()
173 arp_bytes.Append(mac_address0_); in TEST_F()
174 arp_bytes.Append(ipv6_address1_.address()); in TEST_F()
181 arp_bytes.Append(mac_address0_); in TEST_F()
182 arp_bytes.Append(ipv4_address0_.address()); in TEST_F()
183 arp_bytes.Append(mac_address1_); in TEST_F()
184 arp_bytes.Append(ipv4_address1_.address()); in TEST_F()
193 arp_bytes.Append(ByteString(1000)); in TEST_F()
199 arp_bytes.Append(mac_address1_); in TEST_F()
[all …]
Darp_packet.cc173 packet->Append(local_mac_address_); in FormatRequest()
174 packet->Append(local_ip_address_.address()); in FormatRequest()
175 packet->Append(remote_mac_address_); in FormatRequest()
176 packet->Append(remote_ip_address_.address()); in FormatRequest()
179 packet->Append(ByteString(kMinPayloadSize - packet->GetLength())); in FormatRequest()
/system/core/crash_reporter/
Dcrash_collector_test.cc75 FilePath test_file = test_dir_.path().Append("test_new"); in TEST_F()
135 base::WriteFile(test_dir_.path().Append(StringPrintf("file%d.core", i)), in TEST_F()
142 base::WriteFile(test_dir_.path().Append(StringPrintf("file%d.meta", i)), in TEST_F()
149 base::WriteFile(test_dir_.path().Append(StringPrintf("overage%d.meta", i)), in TEST_F()
158 base::WriteFile(test_dir_.path().Append(StringPrintf("file.%d.core", i)), in TEST_F()
162 base::WriteFile(test_dir_.path().Append("file.last.core"), "", 0); in TEST_F()
169 base::WriteFile(test_dir_.path().Append(StringPrintf("a.%d", i)), "", 0); in TEST_F()
174 base::WriteFile(test_dir_.path().Append(StringPrintf(".file%d", i)), "", 0); in TEST_F()
177 base::WriteFile(test_dir_.path().Append("normal.meta"), "", 0); in TEST_F()
183 FilePath meta_file = test_dir_.path().Append(kMetaFileBasename); in TEST_F()
[all …]
Dunclean_shutdown_collector_test.cc62 test_directory_ = test_dir_.path().Append("test"); in SetUp()
63 test_unclean_ = test_dir_.path().Append("test/unclean"); in SetUp()
69 test_dir_.path().Append("test/suspended"); in SetUp()
148 ASSERT_EQ(0, base::WriteFile(test_unclean_.Append("foo"), "", 0)) in TEST_F()
150 << test_unclean_.Append("foo").value() << "': " << strerror(errno); in TEST_F()
Duser_collector_test.cc71 mkdir(test_dir_.path().Append("test").value().c_str(), 0777); in SetUp()
186 test_dir_.path().Append("test/this_link").value().c_str(); in TEST_F()
347 FilePath container_path(test_dir_.path().Append("test/container")); in TEST_F()
353 FilePath container_path(test_dir_.path().Append("test/container")); in TEST_F()
372 container_path.Append(expectations[i].name))); in TEST_F()
383 FilePath maps_file = container_dir.Append("maps"); in TEST_F()
397 FilePath core_file = container_dir.Append("core"); in TEST_F()
Dkernel_warning_collector.cc90 FilePath kernel_crash_path = root_crash_directory.Append( in Collect()
107 root_crash_directory.Append( in Collect()
Dudev_collector_test.cc130 temp_dir_generator_.path().Append(kLogConfigFileName); in SetUp()
135 temp_dir_generator_.path().Append(kDevCoredumpDirectory); in SetUp()
/system/update_engine/common/
Dprefs_unittest.cc53 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()
/system/connectivity/shill/net/
Dattribute_list_unittest.cc54 data.Append(ByteString(payload, false)); in MakeNetlinkAttribute()
63 data.Append(padding); in MakePaddedNetlinkAttribute()
82 payload.Append(MakePaddedNetlinkAttribute( in TEST_F()
86 payload.Append(MakePaddedNetlinkAttribute(kHeaderLength + 3, kType2, "123")); in TEST_F()
90 payload.Append(MakeNetlinkAttribute(kHeaderLength + 5, kType3, "12345")); in TEST_F()
179 payload.Append(ByteString(std::string("123"), false)); in TEST_F()
194 payload.Append(ByteString(std::string("456"), false)); in TEST_F()
210 payload.Append(ByteString(std::string("7"), false)); in TEST_F()
Dgeneric_netlink_message.cc52 result.Append(genl_header_string); in EncodeHeader()
70 result.Append(attribute_string); in Encode()
/system/core/bootstat/
Devent_log_list_builder_test.cpp54 builder.Append(42); in TEST()
77 builder.Append("Droid"); in TEST()
102 builder.Append(42); in TEST()
103 builder.Append("Droid"); in TEST()
Dhistogram_logger.cpp31 log_builder.Append(event); in LogHistogram()
32 log_builder.Append(data); in LogHistogram()
Devent_log_list_builder.h35 bool Append(int value);
36 bool Append(const std::string& value);
Devent_log_list_builder.cpp46 bool EventLogListBuilder::Append(int value) { in Append() function in EventLogListBuilder
60 bool EventLogListBuilder::Append(const std::string& value) { in Append() function in EventLogListBuilder
/system/core/metricsd/
Dmetrics_collector_test.cc49 base::FilePath private_dir = temp_dir_.path().Append("private"); in SetUp()
50 base::FilePath shared_dir = temp_dir_.path().Append("shared"); in SetUp()
148 temp_dir_.path().Append(MetricsCollector::kComprDataSizeName), in TEST_F()
151 temp_dir_.path().Append(MetricsCollector::kOrigDataSizeName), in TEST_F()
154 temp_dir_.path().Append(MetricsCollector::kZeroPagesName), zero_pages); in TEST_F()
/system/update_engine/payload_generator/
Dext2_filesystem_unittest.cc76 test_utils::GetBuildArtifactsPath().Append("gen/disk_ext2_4k_empty.img"); in TEST_F()
104 base::FilePath build_path = test_utils::GetBuildArtifactsPath().Append("gen"); in TEST_F()
108 build_path.Append(fs_name).value()); in TEST_F()
181 base::FilePath path = test_utils::GetBuildArtifactsPath().Append( in TEST_F()
193 test_utils::GetBuildArtifactsPath().Append("gen/disk_ext2_unittest.img"); in TEST_F()
/system/update_engine/
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.cc89 if (!prefs->Init(non_volatile_path.Append(kPrefsSubDirectory))) { in Initialize()
98 powerwash_safe_path = non_volatile_path.Append("powerwash-safe"); in Initialize()
103 powerwash_safe_path.Append(kPowerwashSafePrefsSubDirectory))) { in Initialize()
/system/core/metricsd/uploader/
Dupload_service_test.cc48 private_dir_ = dir_.path().Append("private"); in SetUp()
49 shared_dir_ = dir_.path().Append("shared"); in SetUp()
54 ASSERT_EQ(0, base::WriteFile(shared_dir_.Append(metrics::kConsentFileName), in SetUp()
82 dir_.path().Append("etc/os-release.d").Append(name); in SetTestingProperty()
263 std::string tmp_file = dir_.path().Append("tmpfile").value(); in TEST_F()
Dupload_service.cc57 staged_log_path_ = private_metrics_directory.Append(metrics::kStagedLogName); in UploadService()
58 saved_log_path_ = private_metrics_directory.Append(metrics::kSavedLogName); in UploadService()
59 consent_file_ = shared_metrics_directory.Append(metrics::kConsentFileName); in UploadService()
/system/webservd/webservd/
Dlog_manager.cc108 base::FilePath file_path = log_directory_.Append(file_name); in Log()
150 base::FilePath archive_file_path = log_directory_.Append( in ArchiveLogFile()
154 base::FilePath file_path = log_directory_.Append(file_name); in ArchiveLogFile()
/system/nativepower/daemon/
Dwake_lock_manager_unittest.cc34 lock_path_ = temp_dir_.path().Append("lock"); in WakeLockManagerTest()
35 unlock_path_ = temp_dir_.path().Append("unlock"); in WakeLockManagerTest()
/system/connectivity/shill/dhcp/
Ddhcp_provider.cc163 base::DeleteFile(root_.Append( in DestroyLease()
167 base::DeleteFile(root_.Append( in DestroyLease()

1234