Home
last modified time | relevance | path

Searched refs:contents (Results 1 – 25 of 238) sorted by relevance

12345678910

/system/extras/memory_replay/
DFile.cpp43 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/
Dliblog_convertPrintable_fuzzer.cpp23 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/
DSingleton_test2.cpp26 void singletonSetInstanceContents(unsigned int contents) { in singletonSetInstanceContents() argument
27 SingletonTestData::getInstance().contents = contents; in singletonSetInstanceContents()
31 return SingletonTestData::getInstance().contents; in singletonGetInstanceContents()
DSingleton_test1.cpp27 void singletonSetInstanceContents(unsigned int contents) { in singletonSetInstanceContents() argument
28 SingletonTestData::getInstance().contents = contents; in singletonSetInstanceContents()
32 return SingletonTestData::getInstance().contents; in singletonGetInstanceContents()
DFileMap_fuzz.cpp29 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/
Dfake_io_delegate.cpp48 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/
Dapexconfig_test.cc30 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 …]
Dlegacy_test.cc22 using android::linkerconfig::contents::Context;
23 using android::linkerconfig::contents::CreateLegacyConfiguration;
Drecovery_test.cc22 using android::linkerconfig::contents::Context;
23 using android::linkerconfig::contents::CreateRecoveryConfiguration;
/system/keymint/ta/src/
Dcert.rs898 $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/
Dnvram_manager_test.cpp84 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/
Dsnapshot_stats.cpp35 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/
Dpartition_update_generator_android_unittest.cc64 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/
Dsectionbuilder.h28 android::linkerconfig::contents::Context& ctx);
31 android::linkerconfig::contents::Context& ctx,
36 namespace contents {
Dapexconfig.h24 namespace contents {
26 android::linkerconfig::contents::Context& ctx,
/system/linkerconfig/
DAndroid.bp81 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/
Daction_pipe.h61 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/
Dnvram_manager.cpp267 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/
Dutil_test.cpp82 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/
Dio_delegate.cpp93 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/
Dutility.cpp112 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/
Dparsenetaddress_fuzzer.cpp23 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/
Dlegacy_test.cc25 android::linkerconfig::contents::Context ctx; in TEST()
26 auto config = android::linkerconfig::contents::CreateLegacyConfiguration(ctx); in TEST()
Ddefault_test.cc25 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/
Dpostinstall.cc28 using android::linkerconfig::contents::SectionType;
34 namespace contents { namespace

12345678910