Home
last modified time | relevance | path

Searched refs:Write (Results 1 – 25 of 360) sorted by relevance

12345678910>>...15

/system/tools/aidl/
Dast_java.cpp36 Write(CodeWriter::ForString(&str).get()); in ToString()
41 to->Write("%s", comment.c_str()); in WriteComment()
42 if (!comment.empty() && comment.back() != '\n') to->Write("\n"); in WriteComment()
49 to->Write("@Override "); in WriteModifiers()
53 to->Write("public "); in WriteModifiers()
55 to->Write("private "); in WriteModifiers()
57 to->Write("protected "); in WriteModifiers()
61 to->Write("static "); in WriteModifiers()
65 to->Write("final "); in WriteModifiers()
69 to->Write("abstract "); in WriteModifiers()
[all …]
Dast_cpp.cpp36 Write(CodeWriter::ForString(&str).get()); in ToString()
42 void LiteralDecl::Write(CodeWriter* to) const { in Write() function in android::aidl::cpp::LiteralDecl
43 to->Write("%s", expression_.c_str()); in Write()
62 void ClassDecl::Write(CodeWriter* to) const { in Write() function in android::aidl::cpp::ClassDecl
64 to->Write("template <typename %s>\n", base::Join(template_params_, ", typename ").c_str()); in Write()
66 to->Write("class"); in Write()
68 to->Write(" %s", attributes_.c_str()); in Write()
70 to->Write(" %s ", name_.c_str()); in Write()
72 if (parent_.length() > 0) to->Write(": public %s ", parent_.c_str()); in Write()
74 to->Write("{\n"); in Write()
[all …]
Dast_java.h59 virtual void Write(CodeWriter* to) const = 0;
77 void Write(CodeWriter* to) const override;
85 void Write(CodeWriter* to) const override;
98 void Write(CodeWriter* to) const;
109 void Write(CodeWriter* to) const;
123 void Write(CodeWriter* to) const override;
134 void Write(CodeWriter* to) const override;
145 void Write(CodeWriter* to) const override;
156 void Write(CodeWriter* to) const override;
168 void Write(CodeWriter* to) const override;
[all …]
Dast_cpp.h44 virtual void Write(CodeWriter* to) const = 0;
58 void Write(CodeWriter* to) const override;
75 void Write(CodeWriter* to) const override;
96 void Write(CodeWriter* to) const override;
125 void Write(CodeWriter* to) const override;
147 void Write(CodeWriter* to) const override;
160 void Write(CodeWriter* to) const override;
184 void Write(CodeWriter* to) const override;
209 void Write(CodeWriter* to) const override;
225 void Write(CodeWriter* to) const override;
[all …]
Dast_java_unittest.cpp49 a_class.Write(CodeWriter::ForString(&actual_output).get()); in TEST()
60 ce.Write(CodeWriter::ForString(&written).get()); in TEST()
/system/tools/sysprop/
DJavaGen.cpp360 writer.Write("%s", kGeneratedFileFooterComments); in GenerateJavaClass()
361 writer.Write("package %s;\n\n", package_name.c_str()); in GenerateJavaClass()
362 writer.Write("%s", kJavaFileImports); in GenerateJavaClass()
363 writer.Write("public final class %s {\n", class_name.c_str()); in GenerateJavaClass()
365 writer.Write("private %s () {}\n\n", class_name.c_str()); in GenerateJavaClass()
366 writer.Write("%s", kJavaParsersAndFormatters); in GenerateJavaClass()
374 writer.Write("\n"); in GenerateJavaClass()
380 writer.Write("public static enum %s {\n", in GenerateJavaClass()
386 writer.Write("%s(\"%s\")", ToUpper(name).c_str(), name.c_str()); in GenerateJavaClass()
388 writer.Write(",\n"); in GenerateJavaClass()
[all …]
/system/tools/sysprop/tests/
DCodeWriterUnitTest.cpp40 writer.Write("test1\ntest2\n"); in TEST()
42 writer.Write("test3\ntest4\n"); in TEST()
44 writer.Write("test5\ntest6\n"); in TEST()
47 writer.Write("test7\ntest8\n"); in TEST()
62 writer.Write(kHelloWorld); in TEST()
/system/update_engine/payload_consumer/
Dfile_writer.h44 virtual bool Write(const void* bytes, size_t count) = 0;
50 virtual bool Write(const void* bytes, size_t count, ErrorCode* error) { in Write() function
52 return Write(bytes, count); in Write()
70 bool Write(const void* bytes, size_t count) override;
Dcached_file_descriptor_unittest.cc50 void Write(uint8_t* buffer, size_t count) { in Write() function in chromeos_update_engine::CachedFileDescriptorTest
54 cfd_->Write(buffer + total_bytes_wrote, count - total_bytes_wrote); in Write()
88 Write(blob_in.data(), blob_in.size()); in TEST_F()
100 Write(&blob_in[idx], 1); in TEST_F()
121 Write(&blob_in[start], size); in TEST_F()
151 Write(blob_in.data(), blob_in.size()); in TEST_F()
164 Write(&blob_in[seek], kCacheSize); in TEST_F()
178 Write(&blob_in[seek], less_than_cache_size); in TEST_F()
194 Write(&blob_in[seek], less_than_cache_size); in TEST_F()
Dmock_file_writer.h27 MOCK_METHOD2(Write, bool(const void* bytes, size_t count));
28 MOCK_METHOD3(Write, bool(const void* bytes, size_t count, ErrorCode* error));
Dsnapshot_extent_writer_unittest.cc117 writer_.Write(buf.data(), kBlockSize - 1); in TEST_F()
121 writer_.Write(buf.data() + kBlockSize - 1, 1); in TEST_F()
140 writer_.Write(buf.data(), buf.size()); in TEST_F()
165 writer_.Write(buf.data(), kBlockSize - 1); in TEST_F()
169 writer_.Write(buf.data() + kBlockSize - 1, 1 + kBlockSize * 2); in TEST_F()
Dxz_extent_writer_unittest.cc91 EXPECT_TRUE(xz_writer_->Write(compressed.data(), compressed.size())); in WriteAll()
135 EXPECT_FALSE(xz_writer_->Write(sample_data_.data(), sample_data_.size())); in TEST_F()
143 EXPECT_TRUE(xz_writer_->Write(&byte, 1)); in TEST_F()
Dextent_writer.h45 virtual bool Write(const void* bytes, size_t count) = 0;
63 bool Write(const void* bytes, size_t count) override;
Dfile_writer_unittest.cc44 EXPECT_TRUE(file_writer.Write("test", 4)); in TEST()
68 EXPECT_FALSE(file_writer.Write("x", 1)); in TEST()
/system/core/fastboot/
Dtcp_test.cpp109 bool Write(const std::string& message) { in Write() function in TcpTest
110 return transport_->Write(message.data(), message.length()) == in Write()
131 EXPECT_TRUE(Write("foo")); in TEST_F()
160 EXPECT_TRUE(Write(data)); in TEST_F()
189 EXPECT_TRUE(Write("getvar:version")); in TEST_F()
192 EXPECT_TRUE(Write("getvar:all")); in TEST_F()
216 EXPECT_EQ(-1, transport_->Write("foo", 3)); in TEST_F()
226 EXPECT_EQ(-1, transport_->Write("foo", 3)); in TEST_F()
Dudp_test.cpp328 bool Write(const std::string& message) { in Write() function in UdpTest
329 return transport_->Write(message.data(), message.length()) == in Write()
358 EXPECT_TRUE(Write("foo")); in TEST_F()
371 EXPECT_TRUE(Write("foo")); in TEST_F()
379 EXPECT_TRUE(Write("12345 67890")); in TEST_F()
380 EXPECT_TRUE(Write("\x01\x02\x03\x04\x05")); in TEST_F()
398 EXPECT_FALSE(Write("foo")); in TEST_F()
405 EXPECT_FALSE(Write("foo")); in TEST_F()
416 EXPECT_TRUE(Write("foo")); in TEST_F()
444 EXPECT_TRUE(Write(data)); in TEST_F()
[all …]
/system/extras/simpleperf/
Drecord_file_writer.cpp93 if (!Write(attr_id.ids.data(), attr_id.ids.size() * sizeof(uint64_t))) { in WriteAttrSection()
109 if (!Write(&file_attr, sizeof(file_attr))) { in WriteAttrSection()
171 if (!Write(buf, len)) { in WriteData()
178 bool RecordFileWriter::Write(const void* buf, size_t len) { in Write() function in simpleperf::RecordFileWriter
249 return Write(zero_data.data(), zero_data.size()); in BeginWriteFeatures()
257 if (!Write(record.Binary(), record.size())) { in WriteBuildIdFeature()
266 if (!Write(&len, sizeof(len))) { in WriteStringWithLength()
269 if (!Write(&s[0], s.size() + 1)) { in WriteStringWithLength()
276 if (!Write(align_buf, pad_size)) { in WriteStringWithLength()
298 if (!Write(&arg_count, sizeof(arg_count))) { in WriteCmdlineFeature()
[all …]
/system/sepolicy/prebuilts/api/30.0/private/
Drss_hwm_reset.te9 # Write to /proc/pid/clear_refs of other processes.
13 # Write to /prc/pid/clear_refs.
/system/sepolicy/prebuilts/api/29.0/private/
Drss_hwm_reset.te9 # Write to /proc/pid/clear_refs of other processes.
13 # Write to /prc/pid/clear_refs.
/system/sepolicy/private/
Drss_hwm_reset.te9 # Write to /proc/pid/clear_refs of other processes.
13 # Write to /prc/pid/clear_refs.
/system/sepolicy/prebuilts/api/31.0/private/
Drss_hwm_reset.te9 # Write to /proc/pid/clear_refs of other processes.
13 # Write to /prc/pid/clear_refs.
/system/sepolicy/prebuilts/api/26.0/public/
Drecovery_persist.te22 # Write to /system.
25 # Write to files in /data/data
/system/sepolicy/prebuilts/api/27.0/public/
Drecovery_persist.te22 # Write to /system.
25 # Write to files in /data/data
/system/sepolicy/prebuilts/api/28.0/public/
Drecovery_persist.te22 # Write to /system.
25 # Write to files in /data/data
/system/update_engine/payload_generator/
Dpayload_file.cc58 TEST_AND_RETURN_FALSE(writer->Write(&value_be, sizeof(value_be))); in WriteUint64AsBigEndian()
214 TEST_AND_RETURN_FALSE_ERRNO(writer.Write(kDeltaMagic, sizeof(kDeltaMagic))); in WritePayload()
227 writer.Write(&metadata_signature_size, sizeof(metadata_signature_size))); in WritePayload()
236 writer.Write(serialized_manifest.data(), serialized_manifest.size())); in WritePayload()
247 writer.Write(metadata_signature.data(), metadata_signature.size())); in WritePayload()
263 TEST_AND_RETURN_FALSE_ERRNO(writer.Write(buf.data(), rc)); in WritePayload()
278 writer.Write(signature.data(), signature.size())); in WritePayload()
315 TEST_AND_RETURN_FALSE_ERRNO(writer.Write(buf.data(), buf.size())); in ReorderDataBlobs()

12345678910>>...15