/system/tools/aidl/ |
D | ast_java.cpp | 36 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 …]
|
D | ast_cpp.cpp | 36 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 …]
|
D | ast_java.h | 59 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 …]
|
D | ast_cpp.h | 44 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 …]
|
D | ast_java_unittest.cpp | 49 a_class.Write(CodeWriter::ForString(&actual_output).get()); in TEST() 60 ce.Write(CodeWriter::ForString(&written).get()); in TEST()
|
/system/tools/sysprop/ |
D | JavaGen.cpp | 360 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/ |
D | CodeWriterUnitTest.cpp | 40 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/ |
D | file_writer.h | 44 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;
|
D | cached_file_descriptor_unittest.cc | 50 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()
|
D | mock_file_writer.h | 27 MOCK_METHOD2(Write, bool(const void* bytes, size_t count)); 28 MOCK_METHOD3(Write, bool(const void* bytes, size_t count, ErrorCode* error));
|
D | snapshot_extent_writer_unittest.cc | 117 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()
|
D | xz_extent_writer_unittest.cc | 91 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()
|
D | extent_writer.h | 45 virtual bool Write(const void* bytes, size_t count) = 0; 63 bool Write(const void* bytes, size_t count) override;
|
D | file_writer_unittest.cc | 44 EXPECT_TRUE(file_writer.Write("test", 4)); in TEST() 68 EXPECT_FALSE(file_writer.Write("x", 1)); in TEST()
|
/system/core/fastboot/ |
D | tcp_test.cpp | 109 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()
|
D | udp_test.cpp | 328 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/ |
D | record_file_writer.cpp | 93 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/ |
D | rss_hwm_reset.te | 9 # Write to /proc/pid/clear_refs of other processes. 13 # Write to /prc/pid/clear_refs.
|
/system/sepolicy/prebuilts/api/29.0/private/ |
D | rss_hwm_reset.te | 9 # Write to /proc/pid/clear_refs of other processes. 13 # Write to /prc/pid/clear_refs.
|
/system/sepolicy/private/ |
D | rss_hwm_reset.te | 9 # Write to /proc/pid/clear_refs of other processes. 13 # Write to /prc/pid/clear_refs.
|
/system/sepolicy/prebuilts/api/31.0/private/ |
D | rss_hwm_reset.te | 9 # Write to /proc/pid/clear_refs of other processes. 13 # Write to /prc/pid/clear_refs.
|
/system/sepolicy/prebuilts/api/26.0/public/ |
D | recovery_persist.te | 22 # Write to /system. 25 # Write to files in /data/data
|
/system/sepolicy/prebuilts/api/27.0/public/ |
D | recovery_persist.te | 22 # Write to /system. 25 # Write to files in /data/data
|
/system/sepolicy/prebuilts/api/28.0/public/ |
D | recovery_persist.te | 22 # Write to /system. 25 # Write to files in /data/data
|
/system/update_engine/payload_generator/ |
D | payload_file.cc | 58 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()
|