Home
last modified time | relevance | path

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

123456

/system/tools/aidl/
Dast_java.cpp33 to->Write("@Override "); in WriteModifiers()
37 to->Write("public "); in WriteModifiers()
39 to->Write("private "); in WriteModifiers()
41 to->Write("protected "); in WriteModifiers()
45 to->Write("static "); in WriteModifiers()
49 to->Write("final "); in WriteModifiers()
53 to->Write("abstract "); in WriteModifiers()
60 arguments[i]->Write(to); in WriteArgumentList()
62 to->Write(", "); in WriteArgumentList()
69 void Field::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Field
[all …]
Dast_cpp.cpp44 void ClassDecl::Write(CodeWriter* to) const { in Write() function in android::aidl::cpp::ClassDecl
45 to->Write("class %s ", name_.c_str()); in Write()
48 to->Write(": public %s ", parent_.c_str()); in Write()
50 to->Write("{\n"); in Write()
53 to->Write("public:\n"); in Write()
56 dec->Write(to); in Write()
59 to->Write("private:\n"); in Write()
62 dec->Write(to); in Write()
64 to->Write("}; // class %s\n", name_.c_str()); in Write()
84 void Enum::Write(CodeWriter* to) const { in Write() function in android::aidl::cpp::Enum
[all …]
Dast_java.h61 virtual void Write(CodeWriter* to) const = 0;
66 virtual void Write(CodeWriter* to) const = 0;
74 void Write(CodeWriter* to) const override;
83 void Write(CodeWriter* to) const override;
97 void Write(CodeWriter* to) const;
109 void Write(CodeWriter* to) const;
122 void Write(CodeWriter* to) const override;
127 virtual void Write(CodeWriter* to) const = 0;
135 void Write(CodeWriter* to) const override;
146 void Write(CodeWriter* to) const override;
[all …]
Dast_cpp.h40 virtual void Write(CodeWriter* to) const = 0;
62 void Write(CodeWriter* to) const override;
83 void Write(CodeWriter* to) const override;
110 void Write(CodeWriter* to) const override;
134 void Write(CodeWriter* to) const override;
162 void Write(CodeWriter* to) const override;
186 void Write(CodeWriter* to) const override;
201 void Write(CodeWriter* to) const override;
226 void Write(CodeWriter* to) const override;
249 void Write(CodeWriter* to) const override;
[all …]
Dcode_writer.cpp37 bool Write(const char* format, ...) override { in Write() function in android::aidl::__anon8ed7ebe50111::StringCodeWriter
62 bool Write(const char* format, ...) override { in Write() function in android::aidl::__anon8ed7ebe50111::FileCodeWriter
/system/extras/simpleperf/
Drecord_file_writer.cpp85 if (!Write(attr_id.ids.data(), attr_id.ids.size() * sizeof(uint64_t))) { in WriteAttrSection()
101 if (!Write(&file_attr, sizeof(file_attr))) { in WriteAttrSection()
121 if (!Write(buf, len)) { in WriteData()
128 bool RecordFileWriter::Write(const void* buf, size_t len) { in Write() function in RecordFileWriter
161 return Write(zero_data.data(), zero_data.size()); in WriteFeatureHeader()
171 if (!Write(data.data(), data.size())) { in WriteBuildIdFeature()
184 if (!Write(&len, sizeof(len))) { in WriteFeatureString()
189 if (!Write(v.data(), v.size())) { in WriteFeatureString()
201 if (!Write(&arg_count, sizeof(arg_count))) { in WriteCmdlineFeature()
206 if (!Write(&len, sizeof(len))) { in WriteCmdlineFeature()
[all …]
/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, in Write() function
54 return Write(bytes, count); in Write()
72 bool Write(const void* bytes, size_t count) override;
Dextent_writer.h47 virtual bool Write(const void* bytes, size_t count) = 0;
76 bool Write(const void* bytes, size_t count) override;
108 bool Write(const void* bytes, size_t count) override { in Write() function
109 if (underlying_extent_writer_->Write(bytes, count)) { in Write()
120 TEST_AND_RETURN_FALSE(underlying_extent_writer_->Write(zeros.data(), in EndImpl()
Dxz_extent_writer_unittest.cc97 EXPECT_TRUE(xz_writer_->Write(compressed.data(), compressed.size())); in WriteAll()
145 EXPECT_FALSE(xz_writer_->Write(sample_data_.data(), sample_data_.size())); in TEST_F()
156 EXPECT_TRUE(xz_writer_->Write(&byte, 1)); in TEST_F()
Dextent_writer_unittest.cc78 EXPECT_TRUE(direct_writer.Write(bytes.data(), bytes.size())); in TEST_F()
102 EXPECT_TRUE(direct_writer.Write(nullptr, 0)); in TEST_F()
144 EXPECT_TRUE(direct_writer.Write(&data[bytes_written], bytes_to_write)); in WriteAlignedExtents()
195 EXPECT_EQ(3, fd_->Write("xxx", 3)); in TestZeroPad()
196 ASSERT_TRUE(zero_pad_writer.Write(data.data(), bytes_to_write)); in TestZeroPad()
243 EXPECT_TRUE(direct_writer.Write(data.data(), bytes_to_write)); in TEST_F()
Dfile_writer_unittest.cc49 EXPECT_TRUE(file_writer.Write("test", 4)); in TEST()
74 EXPECT_FALSE(file_writer.Write("x", 1)); in TEST()
Dmtd_file_descriptor.cc143 ssize_t MtdFileDescriptor::Write(const void* buf, size_t count) { in Write() function in chromeos_update_engine::MtdFileDescriptor
222 ssize_t UbiFileDescriptor::Write(const void* buf, size_t count) { in Write() function in chromeos_update_engine::UbiFileDescriptor
224 ssize_t nr_chunk = EintrSafeFileDescriptor::Write(buf, count); in Write()
252 ssize_t nr_chunk = EintrSafeFileDescriptor::Write(buf, to_write); in Close()
Dfile_descriptor.h74 virtual ssize_t Write(const void* buf, size_t count) = 0;
124 ssize_t Write(const void* buf, size_t count) override;
Dbzip_extent_writer.cc40 bool BzipExtentWriter::Write(const void* bytes, size_t count) { in Write() function in chromeos_update_engine::BzipExtentWriter
67 next_->Write(output_buffer.data(), in Write()
Dmtd_file_descriptor.h41 ssize_t Write(const void* buf, size_t count) override;
77 ssize_t Write(const void* buf, size_t count) override;
Dxz_extent_writer.cc65 bool XzExtentWriter::Write(const void* bytes, size_t count) { in Write() function in chromeos_update_engine::XzExtentWriter
97 underlying_writer_->Write(output_buffer.data(), request.out_pos)); in Write()
/system/core/adb/
Dshell_service_protocol_test.cpp105 ASSERT_TRUE(write_protocol_->Write(id, sizeof(data))); in TEST_F()
116 ASSERT_TRUE(write_protocol_->Write(id, 10)); in TEST_F()
131 ASSERT_TRUE(write_protocol_->Write(id, 0)); in TEST_F()
139 ASSERT_TRUE(write_protocol_->Write(ShellProtocol::kIdExit, 1)); in TEST_F()
151 ASSERT_FALSE(write_protocol_->Write(ShellProtocol::kIdStdout, 0)); in TEST_F()
159 ASSERT_FALSE(write_protocol_->Write(ShellProtocol::kIdStdout, 0)); in TEST_F()
186 ASSERT_TRUE(write_protocol_->Write(id, sizeof(data))); in TEST_F()
/system/tpm/attestation/server/
Dpkcs11_key_store_test.cc318 EXPECT_FALSE(key_store.Write(kDefaultUser, "test", blob)); in TEST()
320 EXPECT_FALSE(key_store.Write("", "test", blob)); in TEST()
329 EXPECT_TRUE(key_store.Write(kDefaultUser, "test", "test_data")); in TEST_F()
334 EXPECT_TRUE(key_store.Write(kDefaultUser, "test2", "test_data2")); in TEST_F()
341 EXPECT_TRUE(key_store.Write(kDefaultUser, "test", "test_data3")); in TEST_F()
354 EXPECT_TRUE(key_store.Write("", "test", "test_data")); in TEST_F()
359 EXPECT_TRUE(key_store.Write("", "test2", "test_data2")); in TEST_F()
366 EXPECT_TRUE(key_store.Write("", "test", "test_data3")); in TEST_F()
382 EXPECT_FALSE(key_store.Write(kDefaultUser, "test", blob)); in TEST_F()
384 EXPECT_FALSE(key_store.Write("", "test", blob)); in TEST_F()
[all …]
Ddatabase_impl.h38 virtual bool Write(const std::string& data) = 0;
64 bool Write(const std::string& data) override;
/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/core/metricsd/
Dpersistent_integer.cc40 Write(); in Set()
46 Write(); in Get()
60 void PersistentInteger::Write() { in Write() function in chromeos_metrics::PersistentInteger
/system/update_engine/payload_generator/
Dpayload_file.cc55 TEST_AND_RETURN_FALSE(writer->Write(&value_be, sizeof(value_be))); in WriteUint64AsBigEndian()
197 TEST_AND_RETURN_FALSE(writer.Write(kDeltaMagic, sizeof(kDeltaMagic))); in WritePayload()
212 TEST_AND_RETURN_FALSE(writer.Write(&metadata_signature_size, in WritePayload()
222 TEST_AND_RETURN_FALSE(writer.Write(serialized_manifest.data(), in WritePayload()
236 TEST_AND_RETURN_FALSE(writer.Write(metadata_signature.data(), in WritePayload()
253 TEST_AND_RETURN_FALSE(writer.Write(buf.data(), rc)); in WritePayload()
267 TEST_AND_RETURN_FALSE(writer.Write(signature_blob.data(), in WritePayload()
304 TEST_AND_RETURN_FALSE(writer.Write(buf.data(), buf.size())); in ReorderDataBlobs()
/system/sepolicy/
Drecovery_refresh.te22 # Write to /system.
25 # Write to files in /data/data or system files on /data
Drecovery_persist.te24 # Write to /system.
27 # Write to files in /data/data

123456