/system/extras/memory_replay/ |
D | File.cpp | 43 std::string contents; in ZipGetContents() local 48 contents.resize(entry.uncompressed_length); in ZipGetContents() 49 if (ExtractToMemory(archive, &entry, reinterpret_cast<uint8_t*>(contents.data()), in ZipGetContents() 51 contents = ""; in ZipGetContents() 57 return contents; in ZipGetContents() 93 std::string contents; in GetUnwindInfo() local 95 contents = ZipGetContents(filename); in GetUnwindInfo() 96 } else if (!android::base::ReadFileToString(filename, &contents)) { in GetUnwindInfo() 99 if (contents.empty()) { in GetUnwindInfo() 106 index = contents.find('\n', index); in GetUnwindInfo() [all …]
|
/system/logging/liblog/tests/ |
D | liblog_convertPrintable_fuzzer.cpp | 23 std::string contents = dataProvider.ConsumeRemainingBytesAsString(); in LLVMFuzzerTestOneInput() local 25 size_t size = convertPrintable(nullptr, contents.data(), contents.size()); in LLVMFuzzerTestOneInput() 28 convertPrintable(buf, contents.data(), contents.size()); in LLVMFuzzerTestOneInput()
|
/system/core/libutils/ |
D | Singleton_test2.cpp | 26 void singletonSetInstanceContents(unsigned int contents) { in singletonSetInstanceContents() argument 27 SingletonTestData::getInstance().contents = contents; in singletonSetInstanceContents() 31 return SingletonTestData::getInstance().contents; in singletonGetInstanceContents()
|
D | Singleton_test1.cpp | 27 void singletonSetInstanceContents(unsigned int contents) { in singletonSetInstanceContents() argument 28 SingletonTestData::getInstance().contents = contents; in singletonSetInstanceContents() 32 return SingletonTestData::getInstance().contents; in singletonGetInstanceContents()
|
D | FileMap_fuzz.cpp | 29 std::string contents = dataProvider.ConsumeRandomLengthString(MAX_STR_SIZE); in LLVMFuzzerTestOneInput() local 32 if (contents.length() > 0) { in LLVMFuzzerTestOneInput() 33 const char* bytes = contents.c_str(); in LLVMFuzzerTestOneInput()
|
/system/tools/aidl/tests/ |
D | fake_io_delegate.cpp | 48 unique_ptr<string> contents; in GetFileContents() local 51 return contents; in GetFileContents() 53 contents.reset(new string); in GetFileContents() 54 *contents = it->second; in GetFileContents() 55 contents->append(content_suffix); in GetFileContents() 57 return contents; in GetFileContents() 74 const string& contents) { in SetFileContents() argument 75 file_contents_[filename] = contents; in SetFileContents()
|
/system/linkerconfig/contents/tests/configuration/ |
D | apexconfig_test.cc | 30 using android::linkerconfig::contents::Context; 31 using android::linkerconfig::contents::CreateApexConfiguration; 60 android::linkerconfig::contents::Context ctx; in TEST_F() 62 auto config = android::linkerconfig::contents::CreateApexConfiguration( in TEST_F() 72 android::linkerconfig::contents::Context ctx; in TEST_F() 77 auto config = android::linkerconfig::contents::CreateApexConfiguration( in TEST_F() 88 android::linkerconfig::contents::Context ctx; in TEST_F() 98 auto config = android::linkerconfig::contents::CreateApexConfiguration( in TEST_F() 109 android::linkerconfig::contents::Context ctx; in TEST_F() 119 auto config = android::linkerconfig::contents::CreateApexConfiguration( in TEST_F() [all …]
|
D | legacy_test.cc | 22 using android::linkerconfig::contents::Context; 23 using android::linkerconfig::contents::CreateLegacyConfiguration;
|
D | recovery_test.cc | 22 using android::linkerconfig::contents::Context; 23 using android::linkerconfig::contents::CreateRecoveryConfiguration;
|
/system/keymint/ta/src/ |
D | cert.rs | 898 $contents:ident, $params:expr, $variant:ident 922 $contents.try_push(Box::new(ExplicitTaggedValue { 932 $contents:ident, $params:expr, $variant:ident 936 $contents.try_push(Box::new(ExplicitTaggedValue { 946 $contents:ident, $params:expr, $variant:ident 950 $contents.try_push(Box::new(ExplicitTaggedValue { 960 $contents:ident, $params:expr, $variant:ident 964 $contents.try_push(Box::new(ExplicitTaggedValue { 974 $contents:ident, $params:expr, $variant:ident 978 $contents.try_push(Box::new(ExplicitTaggedValue { [all …]
|
/system/nvram/core/tests/ |
D | nvram_manager_test.cpp | 84 ASSERT_TRUE(space.contents.Resize(10)); in TEST_F() 124 ASSERT_TRUE(space.contents.Resize(10)); in TEST_F() 126 ASSERT_TRUE(space.contents.Resize(20)); in TEST_F() 169 ASSERT_TRUE(space.contents.Resize(10)); in TEST_F() 205 ASSERT_TRUE(space.contents.Resize(10)); in TEST_F() 224 ASSERT_TRUE(space.contents.Resize(10)); in TEST_F() 277 ASSERT_TRUE(space.contents.Resize(10)); in TEST_F() 450 ASSERT_TRUE(space.contents.Resize(10)); in TEST_F() 471 ASSERT_TRUE(space.contents.Resize(10)); in TEST_F() 488 ASSERT_TRUE(space.contents.Resize(10)); in TEST_F() [all …]
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_stats.cpp | 35 std::string contents; in ReadState() local 36 if (!android::base::ReadFileToString(path_, &contents)) { in ReadState() 40 if (!report_.ParseFromString(contents)) { in ReadState() 48 std::string contents; in WriteState() local 49 if (!report_.SerializeToString(&contents)) { in WriteState() 53 if (!WriteStringToFileAtomic(contents, path_)) { in WriteState()
|
/system/update_engine/payload_consumer/ |
D | partition_update_generator_android_unittest.cc | 64 void SetUpBlockDevice(const std::map<std::string, std::string>& contents) { in SetUpBlockDevice() argument 66 for (const auto& [name, content] : contents) { in SetUpBlockDevice() 116 std::map<std::string, std::string> contents = { in TEST_F() local 122 SetUpBlockDevice(contents); in TEST_F() 139 std::map<std::string, std::string> contents = { in TEST_F() local 148 SetUpBlockDevice(contents); in TEST_F()
|
/system/linkerconfig/contents/include/linkerconfig/ |
D | sectionbuilder.h | 28 android::linkerconfig::contents::Context& ctx); 31 android::linkerconfig::contents::Context& ctx, 36 namespace contents {
|
D | apexconfig.h | 24 namespace contents { 26 android::linkerconfig::contents::Context& ctx,
|
/system/linkerconfig/ |
D | Android.bp | 81 export_include_dirs: [ "contents/include" ], 86 "contents/namespace/*.cc", 87 "contents/section/*.cc", 88 "contents/configuration/*.cc", 89 "contents/context/*.cc", 90 "contents/common/*.cc", 182 "contents/tests/backward_compatibility/*_test.cc", 212 "contents/tests/configuration/include", 215 "contents/tests/configuration/*_test.cc",
|
/system/update_engine/common/ |
D | action_pipe.h | 61 const ObjectType& contents() const { return contents_; } in contents() function 65 void set_contents(const ObjectType& contents) { contents_ = contents; } in set_contents() argument
|
/system/nvram/core/ |
D | nvram_manager.cpp | 267 if (!space.contents.Resize(request.size)) { in CreateSpace() 271 memset(space.contents.data(), 0, request.size); in CreateSpace() 303 response->size = space_record.persistent.contents.size(); in GetSpaceInfo() 412 Blob& contents = space_record.persistent.contents; in WriteSpace() local 416 if (!sha256_input.Resize(contents.size() + request.buffer.size())) { in WriteSpace() 419 memcpy(sha256_input.data(), contents.data(), contents.size()); in WriteSpace() 420 memcpy(sha256_input.data() + contents.size(), request.buffer.data(), in WriteSpace() 424 crypto::SHA256(sha256_input.data(), sha256_input.size(), contents.data(), in WriteSpace() 425 contents.size()); in WriteSpace() 427 if (contents.size() < request.buffer.size()) { in WriteSpace() [all …]
|
/system/core/init/ |
D | util_test.cpp | 82 std::string contents("abcd"); in TEST() local 83 contents.push_back('\0'); in TEST() 84 contents.push_back('\0'); in TEST() 85 contents.append("dcba"); in TEST() 86 ASSERT_EQ(10u, contents.size()); in TEST() 90 EXPECT_RESULT_OK(WriteFile(tf.path, contents)); in TEST() 94 EXPECT_EQ(contents, *read_back_contents); in TEST()
|
/system/tools/aidl/ |
D | io_delegate.cpp | 93 unique_ptr<string> contents; in GetFileContents() local 96 return contents; in GetFileContents() 98 contents.reset(new string); in GetFileContents() 101 contents->resize(file_size + content_suffix.length()); in GetFileContents() 104 in.read(&(*contents)[0], file_size); in GetFileContents() 106 contents->replace(file_size, content_suffix.length(), content_suffix); in GetFileContents() 109 return contents; in GetFileContents()
|
/system/core/fs_mgr/libfiemap/ |
D | utility.cpp | 112 std::string contents; in F2fsPinBeforeAllocate() local 114 if (!android::base::ReadFileToString(feature_file, &contents)) { in F2fsPinBeforeAllocate() 118 contents = android::base::Trim(contents); in F2fsPinBeforeAllocate() 120 auto features = android::base::Split(contents, ", "); in F2fsPinBeforeAllocate()
|
/system/libbase/ |
D | parsenetaddress_fuzzer.cpp | 23 std::string contents = dataProvider.ConsumeRemainingBytesAsString(); in LLVMFuzzerTestOneInput() local 26 android::base::ParseNetAddress(contents, &host, &port, &canonical, &error); in LLVMFuzzerTestOneInput()
|
/system/linkerconfig/contents/tests/backward_compatibility/ |
D | legacy_test.cc | 25 android::linkerconfig::contents::Context ctx; in TEST() 26 auto config = android::linkerconfig::contents::CreateLegacyConfiguration(ctx); in TEST()
|
D | default_test.cc | 25 using android::linkerconfig::contents::Context; 39 auto config = android::linkerconfig::contents::CreateBaseConfiguration(ctx); in TEST_F() 95 auto config = android::linkerconfig::contents::CreateBaseConfiguration(ctx); in TEST_F() 122 auto config = android::linkerconfig::contents::CreateBaseConfiguration(ctx); in TEST_F()
|
/system/linkerconfig/contents/section/ |
D | postinstall.cc | 28 using android::linkerconfig::contents::SectionType; 34 namespace contents { namespace
|