/system/core/liblog/tests/ |
D | log_radio_test.cpp | 30 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 …]
|
D | log_system_test.cpp | 30 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 …]
|
/system/tools/xsdc/tests/resources/simple_complex_content/api/ |
D | current.txt | 2 package simple.complex.content { 14 public class KRAddress extends simple.complex.content.Address { 20 method public simple.complex.content.KRAddress getKRAddress(); 22 method public simple.complex.content.SubAddress getSubAddress(); 23 method public simple.complex.content.USAddressP getUSAddressP(); 24 method public void setKRAddress(simple.complex.content.KRAddress); 26 method public void setSubAddress(simple.complex.content.SubAddress); 27 method public void setUSAddressP(simple.complex.content.USAddressP); 32 method public simple.complex.content.KRAddress getKRAddress(); 34 method @NonNull public simple.complex.content.SubAddress getSubAddress(); [all …]
|
/system/tools/aidl/tests/ |
D | aidl_parser_fuzzer.cpp | 31 void fuzz(const std::string& langOpt, const std::string& content) { in fuzz() argument 35 io.SetFileContents("a/path/Foo.aidl", content); in fuzz() 47 std::cout << "lang: " << langOpt << " content: " << content << std::endl; in fuzz() 64 void fuzz(uint8_t options, const std::string& content) { in fuzz() argument 75 fuzz("ndk", content); in fuzz() 76 fuzz("cpp", content); in fuzz() 77 fuzz("java", content); in fuzz() 93 std::string content(reinterpret_cast<const char*>(data), size); in LLVMFuzzerTestOneInput() 94 fuzz(options, content); in LLVMFuzzerTestOneInput()
|
/system/extras/simpleperf/ |
D | cmd_report_test.cpp | 54 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() 68 std::string content; member in ReportCommandTest 76 ASSERT_NE(content.find("GlobalFunc"), std::string::npos); in TEST_F() 82 ASSERT_NE(content.find("GlobalFunc"), std::string::npos); in TEST_F() 214 ASSERT_NE(content.find("17441"), std::string::npos); in TEST_F() 215 ASSERT_NE(content.find("17445"), std::string::npos); in TEST_F() 318 ASSERT_NE(content.find(GetUrlInApk(APK_FILE, NATIVELIB_IN_APK)), in TEST_F() 320 ASSERT_NE(content.find("Func2"), std::string::npos); in TEST_F() [all …]
|
D | cmd_kmem_test.cpp | 38 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() 54 android::base::Split(result->content, "\n"); in KmemReportRawFile() 125 ASSERT_NE(result.content.find("kmem:kmalloc"), std::string::npos); in TEST() 126 ASSERT_NE(result.content.find("__alloc_skb"), std::string::npos); in TEST() 137 ASSERT_NE(result.content.find("Ptr"), std::string::npos); in TEST() 138 ASSERT_NE(result.content.find("GfpFlags"), std::string::npos); in TEST() 145 ASSERT_NE(result.content.find("kmem:kmalloc"), std::string::npos); in TEST() 146 ASSERT_NE(result.content.find("__alloc_skb"), std::string::npos); in TEST() [all …]
|
/system/core/liblog/ |
D | pmsg_reader.cpp | 166 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/apex/apexd/ |
D | apex_manifest.cpp | 29 Result<ApexManifest> ParseManifest(const std::string& content) { in ParseManifest() argument 32 if (!apex_manifest.ParseFromString(content)) { in ParseManifest() 54 std::string content; in ReadManifest() local 55 if (!android::base::ReadFileToString(path, &content)) { in ReadManifest() 58 return ParseManifest(content); in ReadManifest()
|
/system/extras/boottime_tools/bootanalyze/stressfs/src/com/android/car/test/stressfs/ |
D | WritingActivity.java | 19 import android.content.ComponentName; 20 import android.content.Context; 21 import android.content.Intent; 22 import android.content.ServiceConnection;
|
/system/update_engine/payload_consumer/ |
D | partition_update_generator_android_unittest.cc | 56 for (const auto& [name, content] : contents) { in SetUpBlockDevice() 59 utils::WriteFile(path.c_str(), content.data(), content.size())); in SetUpBlockDevice() 72 const std::string& content, in CheckPartitionUpdate() argument 78 content.data(), content.size(), &out_hash)); in CheckPartitionUpdate() 90 ASSERT_EQ(content.size() / 4096, operation.src_extents(0).num_blocks()); in CheckPartitionUpdate() 94 ASSERT_EQ(content.size() / 4096, operation.dst_extents(0).num_blocks()); in CheckPartitionUpdate()
|
/system/ca-certificates/google/ |
D | extract_from_pem.py | 24 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/security/fsverity_init/ |
D | fsverity_init.cpp | 46 std::string content; in LoadKeyFromDirectory() local 47 if (!android::base::ReadFileToString(entry.path(), &content)) { in LoadKeyFromDirectory() 50 if (!LoadKeyToKeyring(keyring_id, keyname, content.c_str(), content.size())) { in LoadKeyFromDirectory()
|
/system/libbase/include/android-base/ |
D | file.h | 81 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/ |
D | jsonpb.h | 30 ErrorOr<std::monostate> JsonStringToMessage(const std::string& content, 39 ErrorOr<T> JsonStringToMessage(const std::string& content) { in JsonStringToMessage() argument 41 auto error = internal::JsonStringToMessage(content, &*ret); in JsonStringToMessage()
|
/system/core/healthd/ |
D | charger_test.cpp | 77 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/libbase/ |
D | abi_compatibility.cpp | 44 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()
|
D | file.cpp | 217 bool ReadFdToString(borrowed_fd fd, std::string* content) { in ReadFdToString() argument 218 content->clear(); in ReadFdToString() 225 content->reserve(sb.st_size); in ReadFdToString() 231 content->append(buf, n); in ReadFdToString() 236 bool ReadFileToString(const std::string& path, std::string* content, bool follow_symlinks) { in ReadFileToString() argument 237 content->clear(); in ReadFileToString() 244 return ReadFdToString(fd, content); in ReadFileToString() 247 bool WriteStringToFd(const std::string& content, borrowed_fd fd) { in WriteStringToFd() argument 248 const char* p = content.data(); in WriteStringToFd() 249 size_t left = content.size(); in WriteStringToFd() [all …]
|
/system/extras/simpleperf/demo/SimpleperfExamplePureJava/app/src/main/java/com/example/simpleperf/simpleperfexamplepurejava/ |
D | MultiProcessActivity.java | 3 import android.content.ComponentName; 4 import android.content.Context; 5 import android.content.Intent; 6 import android.content.ServiceConnection;
|
/system/tools/aidl/ |
D | hiddenapi-greylist | 91 "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/ |
D | verity_verifier.cpp | 34 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()
|
/system/memory/libmemunreachable/ |
D | ProcessMappings.cpp | 50 allocator::string content(mappings.get_allocator()); in ProcessMappings() local 53 content.append(map_buffer, n); in ProcessMappings() 56 return android::procinfo::ReadMapFileContent(&content[0], callback); in ProcessMappings()
|
/system/server_configurable_flags/libflags/ |
D | server_configurable_flags_test.cc | 104 std::string content; in TEST() local 105 ASSERT_EQ(true, ReadFileToString("/data/server_configurable_flags/reset_flags", &content)); in TEST() 106 std::vector<std::string> properties = Split(content, ";"); in TEST() 137 std::string content; in TEST() local 138 ASSERT_EQ(true, ReadFileToString("/data/server_configurable_flags/reset_flags", &content)); in TEST() 139 std::vector<std::string> properties = Split(content, ";"); in TEST()
|
/system/core/libprocessgroup/ |
D | cgroup_map.cpp | 106 std::string content; in GetTaskGroup() local 107 if (!android::base::ReadFileToString(file_name, &content)) { in GetTaskGroup() 125 size_t start_pos = content.find(cg_tag); in GetTaskGroup() 131 size_t end_pos = content.find('\n', start_pos); in GetTaskGroup() 133 *group = content.substr(start_pos, std::string::npos); in GetTaskGroup() 135 *group = content.substr(start_pos, end_pos - start_pos); in GetTaskGroup()
|
/system/core/libprocinfo/include/procinfo/ |
D | process_map.h | 34 bool ReadMapFileContent(char* content, const CallbackType& callback) { in ReadMapFileContent() argument 40 char* next_line = content; in ReadMapFileContent() 147 std::string content; in ReadMapFile() local 148 if (!android::base::ReadFileToString(map_file, &content)) { in ReadMapFile() 151 return ReadMapFileContent(&content[0], callback); in ReadMapFile()
|
/system/netd/server/ |
D | FirewallControllerTest.cpp | 305 const std::string content; in TEST_F() member 310 .content = " 0 0 4294967295", in TEST_F() 315 .content = " 0 655360 5000\n" in TEST_F() 322 .content = "garbage", in TEST_F() 327 .content = "", in TEST_F() 335 EXPECT_TRUE(WriteStringToFile(test.content, tempFile, false)); in TEST_F() 340 << test.content << "\ngot " << got << ", but expected " << test.expected; in TEST_F()
|