Home
last modified time | relevance | path

Searched refs:content (Results 1 – 25 of 353) sorted by relevance

12345678910>>...15

/system/linkerconfig/modules/tests/
Dapex_testbase.h60 void WriteFile(const std::string& file, const std::string& content) { in WriteFile()
63 ASSERT_TRUE(::android::base::WriteStringToFile(content, file_path)) in WriteFile()
68 std::string content = in CreateApexInfoList() local
76 content += "<apex-info moduleName=\""; in CreateApexInfoList()
77 content += file.path().filename(); in CreateApexInfoList()
78 content += "\" modulePath=\""; in CreateApexInfoList()
79 content += file.path().string(); in CreateApexInfoList()
80 content += in CreateApexInfoList()
84 content += "</apex-info-list>"; in CreateApexInfoList()
86 WriteFile("/apex/apex-info-list.xml", content); in CreateApexInfoList()
[all …]
/system/logging/liblog/tests/
Dlog_system_test.cpp30 static const char content[] = "log_system.h"; in TEST() local
38 SLOGV(content); in TEST()
42 SLOGD(content); in TEST()
46 SLOGI(content); in TEST()
50 SLOGW(content); in TEST()
54 SLOGE(content); in TEST()
58 SLOGV_IF(true, content); in TEST()
64 SLOGD_IF(true, content); in TEST()
70 SLOGI_IF(true, content); in TEST()
76 SLOGW_IF(true, content); in TEST()
[all …]
Dlog_radio_test.cpp30 static const char content[] = "log_radio.h"; in TEST() local
38 RLOGV(content); in TEST()
42 RLOGD(content); in TEST()
46 RLOGI(content); in TEST()
50 RLOGW(content); in TEST()
54 RLOGE(content); in TEST()
58 RLOGV_IF(true, content); in TEST()
64 RLOGD_IF(true, content); in TEST()
70 RLOGI_IF(true, content); in TEST()
76 RLOGW_IF(true, content); in TEST()
[all …]
/system/extras/simpleperf/
Dread_symbol_map.cpp66 void ReadSymbol(std::string_view content, std::vector<Symbol>* symbols) { in ReadSymbol() argument
67 auto addr = ConsumeUInt(content); in ReadSymbol()
72 auto size = ConsumeUInt(content); in ReadSymbol()
77 auto name = ConsumeWord(content); in ReadSymbol()
82 if (ConsumeWord(content)) { in ReadSymbol()
91 std::vector<Symbol> ReadSymbolMapFromString(const std::string& content) { in ReadSymbolMapFromString() argument
95 size_t end = content.find_first_of("\n\r", begin); in ReadSymbolMapFromString()
97 if (end == content.npos) { in ReadSymbolMapFromString()
98 ReadSymbol({content.c_str() + begin, content.size() - begin}, &symbols); in ReadSymbolMapFromString()
103 ReadSymbol({content.c_str() + begin, end - begin}, &symbols); in ReadSymbolMapFromString()
Dcmd_report_test.cpp54 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &content)); in ReportRaw()
55 ASSERT_TRUE(!content.empty()); in ReportRaw()
56 std::vector<std::string> raw_lines = android::base::Split(content, "\n"); in ReportRaw()
70 if (std::regex_search(content, m, std::regex(R"(Samples: (\d+))"))) { in GetSampleCount()
79 std::string content; member in ReportCommandTest
87 ASSERT_NE(content.find("GlobalFunc"), std::string::npos); in TEST_F()
93 ASSERT_NE(content.find("GlobalFunc"), std::string::npos); in TEST_F()
218 ASSERT_NE(content.find("17441"), std::string::npos); in TEST_F()
219 ASSERT_NE(content.find("17445"), std::string::npos); in TEST_F()
316 ASSERT_NE(content.find(GetUrlInApk(APK_FILE, NATIVELIB_IN_APK)), std::string::npos); in TEST_F()
[all …]
Dread_symbol_map.h28 std::vector<Symbol> ReadSymbolMapFromString(const std::string& content);
31 std::string content; in ReadSymbolMapFromFile() local
32 if (android::base::ReadFileToString(path, &content, /* follow_symlinks = */ true)) { in ReadSymbolMapFromFile()
33 return ReadSymbolMapFromString(content); in ReadSymbolMapFromFile()
Dcmd_kmem_test.cpp38 std::string content; member
51 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &result->content)); in KmemReportRawFile()
52 ASSERT_TRUE(!result->content.empty()); in KmemReportRawFile()
53 std::vector<std::string> raw_lines = android::base::Split(result->content, "\n"); in KmemReportRawFile()
123 ASSERT_NE(result.content.find("kmem:kmalloc"), std::string::npos); in TEST()
124 ASSERT_NE(result.content.find("__alloc_skb"), std::string::npos); in TEST()
133 ASSERT_NE(result.content.find("Ptr"), std::string::npos); in TEST()
134 ASSERT_NE(result.content.find("GfpFlags"), std::string::npos); in TEST()
141 ASSERT_NE(result.content.find("kmem:kmalloc"), std::string::npos); in TEST()
142 ASSERT_NE(result.content.find("__alloc_skb"), std::string::npos); in TEST()
[all …]
/system/tools/xsdc/tests/resources/simple_complex_content/api/
Dcurrent.txt2 package simple.complex.content {
17 public class KRAddress extends simple.complex.content.Address {
23 method public simple.complex.content.KRAddress getKRAddress();
25 method public simple.complex.content.SubAddress getSubAddress();
26 method public simple.complex.content.USAddressP getUSAddressP();
31 method public void setKRAddress(simple.complex.content.KRAddress);
33 method public void setSubAddress(simple.complex.content.SubAddress);
34 method public void setUSAddressP(simple.complex.content.USAddressP);
39 method public simple.complex.content.KRAddress getKRAddress();
41 method @NonNull public simple.complex.content.SubAddress getSubAddress();
[all …]
/system/logging/liblog/
Dpmsg_reader.cpp166 struct content { in __android_log_pmsg_file_read() struct
169 } * content; in __android_log_pmsg_file_read() local
172 struct listnode content; in __android_log_pmsg_file_read() member
304 list_init(&names->content); in __android_log_pmsg_file_read()
353 list_for_each_safe(node, n, &names->content) { in __android_log_pmsg_file_read()
354 content = node_to_item(node, struct content, node); in __android_log_pmsg_file_read()
355 if (log_msg.entry.nsec == content->entry.nsec) { in __android_log_pmsg_file_read()
356 list_remove(&content->node); in __android_log_pmsg_file_read()
357 free(content); in __android_log_pmsg_file_read()
362 content = static_cast<struct content*>( in __android_log_pmsg_file_read()
[all …]
/system/security/fsverity_init/
Dfsverity_init.cpp41 std::string content; in LoadKeyFromStdin() local
42 if (!android::base::ReadFdToString(STDIN_FILENO, &content)) { in LoadKeyFromStdin()
46 if (!LoadKeyToKeyring(keyring_id, keyname, content.c_str(), content.size())) { in LoadKeyFromStdin()
53 std::string content; in LoadKeyFromFile() local
54 if (!android::base::ReadFileToString(path, &content)) { in LoadKeyFromFile()
58 if (!LoadKeyToKeyring(keyring_id, keyname, content.c_str(), content.size())) { in LoadKeyFromFile()
/system/apex/apexd/
Dapex_manifest.cpp30 Result<ApexManifest> ParseManifest(const std::string& content) { in ParseManifest() argument
33 if (!apex_manifest.ParseFromString(content)) { in ParseManifest()
55 std::string content; in ReadManifest() local
56 if (!android::base::ReadFileToString(path, &content)) { in ReadManifest()
59 return ParseManifest(content); in ReadManifest()
Dapexd_utils_test.cpp57 auto content = ReadDir(root_dir.path, [](auto _) { return true; }); in TEST() local
58 IsOk(content); in TEST()
59 ASSERT_EQ(content->size(), 3u); in TEST()
63 content = ReadDir(root_dir.path, [](auto _) { return true; }); in TEST()
64 IsOk(content); in TEST()
65 ASSERT_EQ(content->size(), 0u); in TEST()
151 std::vector<std::string> content; in TEST() local
153 content.push_back(it.path()); in TEST()
161 ASSERT_THAT(content, UnorderedElementsAreArray(expected)); in TEST()
196 std::vector<std::string> content; in TEST() local
[all …]
/system/tools/aidl/tests/
Daidl_parser_fuzzer.cpp56 void fuzzLang(const std::string& langOpt, const std::string& content) { in fuzzLang() argument
58 io.SetFileContents("a/path/Foo.aidl", content); in fuzzLang()
99 std::string content = provider.ConsumeRemainingBytesAsString(); in LLVMFuzzerTestOneInput() local
101 fuzzLang("ndk", content); in LLVMFuzzerTestOneInput()
102 fuzzLang("cpp", content); in LLVMFuzzerTestOneInput()
103 fuzzLang("java", content); in LLVMFuzzerTestOneInput()
104 fuzzLang("rust", content); in LLVMFuzzerTestOneInput()
/system/extras/boottime_tools/bootanalyze/stressfs/src/com/android/car/test/stressfs/
DWritingActivity.java19 import android.content.ComponentName;
20 import android.content.Context;
21 import android.content.Intent;
22 import android.content.ServiceConnection;
/system/update_engine/payload_consumer/
Dpartition_update_generator_android_unittest.cc66 for (const auto& [name, content] : contents) { in SetUpBlockDevice()
69 utils::WriteFile(path.c_str(), content.data(), content.size())); in SetUpBlockDevice()
87 const std::string& content, in CheckPartitionUpdate() argument
93 content.data(), content.size(), &out_hash)); in CheckPartitionUpdate()
105 ASSERT_EQ(content.size() / 4096, operation.src_extents(0).num_blocks()); in CheckPartitionUpdate()
109 ASSERT_EQ(content.size() / 4096, operation.dst_extents(0).num_blocks()); in CheckPartitionUpdate()
/system/ca-certificates/google/
Dextract_from_pem.py24 def WriteCertificateFile(content, base_name, output_dir): argument
38 if content == existing_file.read():
44 new_file.write(content)
78 content = '%s%sSHA1 Fingerprint=%s\n' % (x509.as_pem(),
82 WriteCertificateFile(content, base_name, args.output_dir)
/system/libbase/include/android-base/
Dfile.h81 bool ReadFdToString(borrowed_fd fd, std::string* content);
82 bool ReadFileToString(const std::string& path, std::string* content,
85 bool WriteStringToFile(const std::string& content, const std::string& path,
87 bool WriteStringToFd(const std::string& content, borrowed_fd fd);
90 bool WriteStringToFile(const std::string& content, const std::string& path,
/system/extras/libjsonpb/parse/include/jsonpb/
Djsonpb.h29 ErrorOr<std::monostate> JsonStringToMessage(const std::string& content,
38 ErrorOr<T> JsonStringToMessage(const std::string& content) { in JsonStringToMessage() argument
40 auto error = internal::JsonStringToMessage(content, &*ret); in JsonStringToMessage()
/system/libprocinfo/include/procinfo/
Dprocess_map.h175 inline bool ReadMapFileContent(char* content, const MapInfoParamsCallback& callback) { in ReadMapFileContent() argument
181 char* line_start = content; in ReadMapFileContent()
199 inline bool ReadMapFileContent(char* content, const MapInfoCallback& callback) { in ReadMapFileContent() argument
205 char* line_start = content; in ReadMapFileContent()
225 std::string content; in ReadMapFile() local
226 if (!android::base::ReadFileToString(map_file, &content)) { in ReadMapFile()
229 return ReadMapFileContent(&content[0], callback); in ReadMapFile()
234 std::string content; in ReadMapFile() local
235 if (!android::base::ReadFileToString(map_file, &content)) { in ReadMapFile()
238 return ReadMapFileContent(&content[0], callback); in ReadMapFile()
/system/libbase/
Dabi_compatibility.cpp44 bool ReadFdToString(int fd, std::string* content) { in ReadFdToString() argument
45 return ReadFdToString(borrowed_fd(fd), content); in ReadFdToString()
48 bool WriteStringToFd(const std::string& content, int fd) { in WriteStringToFd() argument
49 return WriteStringToFd(content, borrowed_fd(fd)); in WriteStringToFd()
/system/core/healthd/
Dcharger_test.cpp77 const char* createFile(const char* path, const char* content) { in createFile() argument
83 stream << content << std::endl; in createFile()
97 int expectContains(const std::string& content, const std::vector<std::string>& fields) { in expectContains() argument
100 auto pos = content.find(field); in expectContains()
168 std::string content = openToString(dumpFile); in main() local
169 int status = expectContains(content, { in main()
187 LOG_THIS("Actual dump:\n%s", content.c_str()); in main()
/system/extras/simpleperf/testdata/
Dproguard_mapping.txt15 658:664:void startActivityForResult(android.content.Intent,int) -> startActivityForResult
16 …671:677:void startActivityForResult(android.content.Intent,int,android.os.Bundle) -> startActivity…
17 …685:692:void startIntentSenderForResult(android.content.IntentSender,int,android.content.Intent,in…
18 …700:707:void startIntentSenderForResult(android.content.IntentSender,int,android.content.Intent,in…
/system/extras/simpleperf/demo/SimpleperfExamplePureJava/app/src/main/java/com/example/simpleperf/simpleperfexamplepurejava/
DMultiProcessActivity.java3 import android.content.ComponentName;
4 import android.content.Context;
5 import android.content.Intent;
6 import android.content.ServiceConnection;
/system/tools/aidl/
Dhiddenapi-greylist91 "android.content.IClipboard",
92 "android.content.IContentService",
93 "android.content.IIntentReceiver",
94 "android.content.IIntentSender",
95 "android.content.IOnPrimaryClipChangedListener",
96 "android.content.IRestrictionsManager",
97 "android.content.ISyncAdapter",
98 "android.content.ISyncAdapterUnsyncableAccountCallback",
99 "android.content.ISyncContext",
100 "android.content.ISyncServiceAdapter",
[all …]
/system/extras/verity/
Dverity_verifier.cpp34 std::string content; in load_key() local
35 if (!android::base::ReadFileToString(path, &content) || in load_key()
36 content.size() < ANDROID_PUBKEY_ENCODED_SIZE) { in load_key()
42 if (!android_pubkey_decode(reinterpret_cast<const uint8_t*>(content.c_str()), in load_key()

12345678910>>...15