Home
last modified time | relevance | path

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

12345678910>>...14

/system/tools/aidl/
Dast_java.cpp36 Write(CodeWriter::ForString(&str).get()); in ToString()
44 to->Write("@Override "); in WriteModifiers()
48 to->Write("public "); in WriteModifiers()
50 to->Write("private "); in WriteModifiers()
52 to->Write("protected "); in WriteModifiers()
56 to->Write("static "); in WriteModifiers()
60 to->Write("final "); in WriteModifiers()
64 to->Write("abstract "); in WriteModifiers()
71 arguments[i]->Write(to); in WriteArgumentList()
73 to->Write(", "); in WriteArgumentList()
[all …]
Dast_cpp.cpp34 Write(CodeWriter::ForString(&str).get()); in ToString()
40 void LiteralDecl::Write(CodeWriter* to) const { in Write() function in android::aidl::cpp::LiteralDecl
41 to->Write("%s", expression_.c_str()); in Write()
56 void ClassDecl::Write(CodeWriter* to) const { in Write() function in android::aidl::cpp::ClassDecl
57 to->Write("class %s ", name_.c_str()); in Write()
60 to->Write(": public %s ", parent_.c_str()); in Write()
62 to->Write("{\n"); in Write()
65 to->Write("public:\n"); in Write()
69 dec->Write(to); in Write()
73 to->Write("private:\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;
74 void Write(CodeWriter* to) const override;
92 void Write(CodeWriter* to) const override;
118 void Write(CodeWriter* to) const override;
140 void Write(CodeWriter* to) const override;
153 void Write(CodeWriter* to) const override;
180 void Write(CodeWriter* to) const override;
204 void Write(CodeWriter* to) const override;
220 void Write(CodeWriter* to) const override;
[all …]
Dgenerate_java.cpp49 document->Write(code_writer.get()); in generate_java_interface()
62 document->Write(code_writer.get()); in generate_java_parcel()
288 context.writer.Write("%s %s;\n", JavaSignatureOf(field->GetType(), typenames).c_str(), in generate_parcel_class()
293 context.writer.Write("%s = %s;\n", field->GetName().c_str(), field_variable_name.c_str()); in generate_parcel_class()
361 code_writer->Write( in generate_enum()
366 code_writer->Write("package %s;\n", enum_decl->GetPackage().c_str()); in generate_enum()
367 code_writer->Write("%s\n", enum_decl->GetComments().c_str()); in generate_enum()
369 code_writer->Write("%s", annotation.c_str()); in generate_enum()
371 code_writer->Write("public @interface %s {\n", enum_decl->GetName().c_str()); in generate_enum()
374 code_writer->Write("%s", enumerator->GetComments().c_str()); in generate_enum()
[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.cpp299 writer.Write("%s", kGeneratedFileFooterComments); in GenerateJavaClass()
300 writer.Write("package %s;\n\n", package_name.c_str()); in GenerateJavaClass()
301 writer.Write("%s", kJavaFileImports); in GenerateJavaClass()
302 writer.Write("public final class %s {\n", class_name.c_str()); in GenerateJavaClass()
304 writer.Write("private %s () {}\n\n", class_name.c_str()); in GenerateJavaClass()
305 writer.Write("%s", kJavaParsersAndFormatters); in GenerateJavaClass()
313 writer.Write("\n"); in GenerateJavaClass()
319 writer.Write("public static enum %s {\n", in GenerateJavaClass()
325 writer.Write("%s(\"%s\")", ToUpper(name).c_str(), name.c_str()); in GenerateJavaClass()
327 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/connectivity/wifilogd/tests/
Dcommand_processor_unittest.cpp71 ON_CALL(*os_, Write(_, _, _)) in CommandProcessorTest()
256 EXPECT_CALL(*os_, Write(_, _, _)).Times(AtLeast(1)); in TEST_F()
262 EXPECT_CALL(*os_, Write(_, _, _)).Times(0); in TEST_F()
272 EXPECT_CALL(*os_, Write(_, _, _)).Times(AtLeast(1)); in TEST_F()
282 EXPECT_CALL(*os_, Write(_, _, _)).Times(AtLeast(1)); in TEST_F()
290 EXPECT_CALL(*os_, Write(_, _, _)).Times(AtLeast(1)); in TEST_F()
298 EXPECT_CALL(*os_, Write(_, _, _)).Times(AtLeast(1)); in TEST_F()
306 EXPECT_CALL(*os_, Write(_, _, _)).Times(AtLeast(1)); in TEST_F()
314 EXPECT_CALL(*os_, Write(_, _, _)).Times(AtLeast(1)); in TEST_F()
323 EXPECT_CALL(*os_, Write(_, _, _)).Times(AtLeast(1)); in TEST_F()
[all …]
Dos_unittest.cpp257 EXPECT_CALL(*raw_os_, Write(kFakeFd, buffer.data(), buffer.size())) in TEST_F()
261 EXPECT_EQ(kExpectedResult, os_->Write(kFakeFd, buffer.data(), buffer.size())); in TEST_F()
268 EXPECT_CALL(*raw_os_, Write(kFakeFd, buffer.data(), buffer.size())) in TEST_F()
272 EXPECT_EQ(kExpectedResult, os_->Write(kFakeFd, buffer.data(), buffer.size())); in TEST_F()
278 EXPECT_CALL(*raw_os_, Write(kFakeFd, buffer.data(), 0)).WillOnce(Return(0)); in TEST_F()
281 EXPECT_EQ(kExpectedResult, os_->Write(kFakeFd, buffer.data(), buffer.size())); in TEST_F()
288 EXPECT_CALL(*raw_os_, Write(kFakeFd, buffer.data(), buffer.size())) in TEST_F()
292 EXPECT_EQ(kExpectedResult, os_->Write(kFakeFd, buffer.data(), buffer.size())); in TEST_F()
299 EXPECT_CALL(*raw_os_, Write(kFakeFd, buffer.data(), 0)) in TEST_F()
303 EXPECT_EQ(kExpectedResult, os_->Write(kFakeFd, buffer.data(), buffer.size())); in TEST_F()
[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, 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()
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.h46 virtual bool Write(const void* bytes, size_t count) = 0;
66 bool Write(const void* bytes, size_t count) override;
/system/core/adb/
Dshell_service_protocol_test.cpp106 ASSERT_TRUE(write_protocol_->Write(id, sizeof(data))); in TEST_F()
117 ASSERT_TRUE(write_protocol_->Write(id, 10)); in TEST_F()
132 ASSERT_TRUE(write_protocol_->Write(id, 0)); in TEST_F()
141 ASSERT_TRUE(write_protocol_->Write(ShellProtocol::kIdExit, 1)); in TEST_F()
153 ASSERT_FALSE(write_protocol_->Write(ShellProtocol::kIdStdout, 0)); in TEST_F()
161 ASSERT_FALSE(write_protocol_->Write(ShellProtocol::kIdStdout, 0)); in TEST_F()
188 ASSERT_TRUE(write_protocol_->Write(id, sizeof(data))); in TEST_F()
/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/update_engine/
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));
/system/extras/simpleperf/
Drecord_file_writer.cpp90 if (!Write(attr_id.ids.data(), attr_id.ids.size() * sizeof(uint64_t))) { in WriteAttrSection()
106 if (!Write(&file_attr, sizeof(file_attr))) { in WriteAttrSection()
168 if (!Write(buf, len)) { in WriteData()
175 bool RecordFileWriter::Write(const void* buf, size_t len) { in Write() function in RecordFileWriter
246 return Write(zero_data.data(), zero_data.size()); in BeginWriteFeatures()
254 if (!Write(record.Binary(), record.size())) { in WriteBuildIdFeature()
263 if (!Write(&len, sizeof(len))) { in WriteStringWithLength()
266 if (!Write(&s[0], s.size() + 1)) { in WriteStringWithLength()
273 if (!Write(align_buf, pad_size)) { in WriteStringWithLength()
295 if (!Write(&arg_count, sizeof(arg_count))) { in WriteCmdlineFeature()
[all …]
/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/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/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/27.0/public/
Drecovery_persist.te22 # Write to /system.
25 # Write to files in /data/data
/system/sepolicy/prebuilts/api/26.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

12345678910>>...14