/system/tools/aidl/ |
D | ast_java.cpp | 36 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 …]
|
D | ast_cpp.cpp | 34 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 …]
|
D | ast_java.h | 59 virtual void Write(CodeWriter* to) const = 0; 77 void Write(CodeWriter* to) const override; 86 void Write(CodeWriter* to) const override; 100 void Write(CodeWriter* to) const; 111 void Write(CodeWriter* to) const; 125 void Write(CodeWriter* to) const override; 136 void Write(CodeWriter* to) const override; 147 void Write(CodeWriter* to) const override; 158 void Write(CodeWriter* to) const override; 169 void Write(CodeWriter* to) const override; [all …]
|
D | ast_cpp.h | 39 virtual void Write(CodeWriter* to) const = 0; 56 void Write(CodeWriter* to) const override; 74 void Write(CodeWriter* to) const override; 95 void Write(CodeWriter* to) const override; 122 void Write(CodeWriter* to) const override; 146 void Write(CodeWriter* to) const override; 161 void Write(CodeWriter* to) const override; 190 void Write(CodeWriter* to) const override; 216 void Write(CodeWriter* to) const override; 231 void Write(CodeWriter* to) const override; [all …]
|
/system/tools/sysprop/ |
D | CppGen.cpp | 243 writer.Write("%s", kGeneratedFileFooterComments); in GenerateHeader() 245 writer.Write("#pragma once\n\n"); in GenerateHeader() 246 writer.Write("%s", kCppHeaderIncludes); in GenerateHeader() 249 writer.Write("namespace %s {\n\n", cpp_namespace.c_str()); in GenerateHeader() 260 writer.Write("\n"); in GenerateHeader() 269 writer.Write("enum class %s {\n", GetCppEnumName(prop).c_str()); in GenerateHeader() 273 writer.Write("%s,\n", ToUpper(name).c_str()); in GenerateHeader() 276 writer.Write("};\n\n"); in GenerateHeader() 279 writer.Write("%s %s();\n", prop_type.c_str(), prop_id.c_str()); in GenerateHeader() 281 writer.Write("bool %s(const %s& value);\n", prop_id.c_str(), in GenerateHeader() [all …]
|
D | JavaGen.cpp | 279 writer.Write("/** @hide */\n"); in WriteJavaAnnotation() 280 writer.Write("@SystemApi\n"); in WriteJavaAnnotation() 283 writer.Write("/** @hide */\n"); in WriteJavaAnnotation() 306 writer.Write("%s", kGeneratedFileFooterComments); in GenerateJavaClass() 307 writer.Write("package %s;\n\n", package_name.c_str()); in GenerateJavaClass() 308 writer.Write("%s", kJavaFileImports); in GenerateJavaClass() 310 writer.Write("public final class %s {\n", class_name.c_str()); in GenerateJavaClass() 312 writer.Write("private %s () {}\n\n", class_name.c_str()); in GenerateJavaClass() 313 writer.Write("%s", kJavaParsersAndFormatters); in GenerateJavaClass() 316 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/connectivity/wifilogd/tests/ |
D | command_processor_unittest.cpp | 71 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 …]
|
D | os_unittest.cpp | 256 EXPECT_CALL(*raw_os_, Write(kFakeFd, buffer.data(), buffer.size())) in TEST_F() 260 EXPECT_EQ(kExpectedResult, os_->Write(kFakeFd, buffer.data(), buffer.size())); in TEST_F() 267 EXPECT_CALL(*raw_os_, Write(kFakeFd, buffer.data(), buffer.size())) in TEST_F() 271 EXPECT_EQ(kExpectedResult, os_->Write(kFakeFd, buffer.data(), buffer.size())); in TEST_F() 277 EXPECT_CALL(*raw_os_, Write(kFakeFd, buffer.data(), 0)).WillOnce(Return(0)); in TEST_F() 280 EXPECT_EQ(kExpectedResult, os_->Write(kFakeFd, buffer.data(), buffer.size())); in TEST_F() 287 EXPECT_CALL(*raw_os_, Write(kFakeFd, buffer.data(), buffer.size())) in TEST_F() 291 EXPECT_EQ(kExpectedResult, os_->Write(kFakeFd, buffer.data(), buffer.size())); in TEST_F() 298 EXPECT_CALL(*raw_os_, Write(kFakeFd, buffer.data(), 0)) in TEST_F() 302 EXPECT_EQ(kExpectedResult, os_->Write(kFakeFd, buffer.data(), buffer.size())); in TEST_F() [all …]
|
/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 | 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 | 46 virtual bool Write(const void* bytes, size_t count) = 0; 66 bool Write(const void* bytes, size_t count) override;
|
/system/core/adb/ |
D | shell_service_protocol_test.cpp | 106 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/ |
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/update_engine/ |
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));
|
/system/extras/simpleperf/ |
D | record_file_writer.cpp | 90 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() 164 if (!Write(buf, len)) { in WriteData() 171 bool RecordFileWriter::Write(const void* buf, size_t len) { in Write() function in RecordFileWriter 233 return Write(zero_data.data(), zero_data.size()); in BeginWriteFeatures() 241 if (!Write(record.Binary(), record.size())) { in WriteBuildIdFeature() 250 if (!Write(&len, sizeof(len))) { in WriteStringWithLength() 253 if (!Write(&s[0], s.size() + 1)) { in WriteStringWithLength() 260 if (!Write(align_buf, pad_size)) { in WriteStringWithLength() 282 if (!Write(&arg_count, sizeof(arg_count))) { in WriteCmdlineFeature() [all …]
|
/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/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/extras/perfprofd/ |
D | perfprofd_io.cc | 48 bool Write(const void * buffer, int size) override { in Write() function in android::perfprofd::__anon97859bec0111::FileCopyingOutputStream 81 int Write(int flush_flags); 175 int GzipOutputStream::Write(int flush_flags) { in Write() function in android::perfprofd::__anon97859bec0111::GzipOutputStream 202 int write_error = Write(Z_NO_FLUSH); in Next() 231 int res = Write(Z_FULL_FLUSH); in Flush() 245 res = Write(Z_FINISH); in Close()
|
/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/28.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/core/libappfuse/tests/ |
D | FuseBridgeLoopTest.cc | 71 ASSERT_TRUE(request_.Write(dev_sockets_[0])); in CheckNotImpl() 85 ASSERT_TRUE(request_.Write(dev_sockets_[0])); in CheckProxy() 96 ASSERT_TRUE(response_.Write(proxy_sockets_[1])); in CheckProxy() 111 ASSERT_TRUE(request_.Write(dev_sockets_[0])); in SendInitRequest() 150 ASSERT_TRUE(request_.Write(dev_sockets_[0])); in TEST_F()
|