Searched defs:content (Results 1 - 25 of 25) sorted by relevance

/system/security/keystore/
H A DSignature.cpp23 namespace content { namespace in namespace:android
35 } // namespace content
H A Dkeystore_cli_v2.cpp244 std::string content; local
246 if (!base::ReadFileToString(path, &content)) {
250 return content;
253 void WriteFile(const std::string& filename, const std::string& content) { argument
255 int size = content.size();
256 if (base::WriteFile(path, content.data(), size) != size) {
/system/core/liblog/tests/
H A Dlog_radio_test.cpp30 static const char content[] = "log_radio.h"; local
33 // ratelimit content to 10/s to keep away from spam filters
34 // do not send identical content together to keep away from spam filters
38 RLOGV(content);
42 RLOGD(content);
46 RLOGI(content);
50 RLOGW(content);
54 RLOGE(content);
58 RLOGV_IF(true, content);
64 RLOGD_IF(true, content);
[all...]
H A Dlog_system_test.cpp30 static const char content[] = "log_system.h"; local
33 // ratelimit content to 10/s to keep away from spam filters
34 // do not send identical content together to keep away from spam filters
38 SLOGV(content);
42 SLOGD(content);
46 SLOGI(content);
50 SLOGW(content);
54 SLOGE(content);
58 SLOGV_IF(true, content);
64 SLOGD_IF(true, content);
[all...]
H A Dliblog_test.cpp1779 // count on the log buffers filled with existing content, and this
1807 std::string content = android::base::StringPrintf( local
1809 ret, (ret <= 0) ? strerror(-ret) : "(content sent)");
1812 content));
1814 content = android::base::StringPrintf(
1816 ret, (ret <= 0) ? strerror(-ret) : "(content sent)");
1819 content));
2090 "not system, content submitted but can not check end-to-end\n");
3110 fprintf(stderr, "comparison fails on content \"%s\"\n", buf);
3165 static bool isZero(const std::string& content, st argument
3175 isNotZero(const std::string& content, std::string::size_type pos, const char* needle) argument
3187 std::string content; local
[all...]
/system/security/keystore/include/keystore/
H A DSignature.h23 namespace content { namespace in namespace:android
40 } // namespace content
/system/bt/osi/test/
H A Dringbuffer_test.cc78 uint8_t content[] = {0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, local
83 ASSERT_TRUE(0 == memcmp(content, peek, peeked));
/system/extras/simpleperf/
H A Dcmd_kmem_test.cpp37 std::string content; member in struct:ReportResult
50 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &result->content));
51 ASSERT_TRUE(!result->content.empty());
53 android::base::Split(result->content, "\n");
124 ASSERT_NE(result.content.find("kmem:kmalloc"), std::string::npos);
125 ASSERT_NE(result.content.find("__alloc_skb"), std::string::npos);
136 ASSERT_NE(result.content.find("Ptr"), std::string::npos);
137 ASSERT_NE(result.content.find("GfpFlags"), std::string::npos);
144 ASSERT_NE(result.content.find("kmem:kmalloc"), std::string::npos);
145 ASSERT_NE(result.content
[all...]
H A Dcmd_report_test.cpp53 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &content));
54 ASSERT_TRUE(!content.empty());
55 std::vector<std::string> raw_lines = android::base::Split(content, "\n");
67 std::string content; member in class:ReportCommandTest
75 ASSERT_NE(content.find("GlobalFunc"), std::string::npos);
81 ASSERT_NE(content.find("GlobalFunc"), std::string::npos);
215 ASSERT_NE(content.find("17441"), std::string::npos);
216 ASSERT_NE(content.find("17445"), std::string::npos);
319 ASSERT_NE(content.find(GetUrlInApk(APK_FILE, NATIVELIB_IN_APK)),
321 ASSERT_NE(content
[all...]
H A Dgtest_main.cpp46 std::string content; local
47 ElfStatus result = ReadSectionFromElfFile("/proc/self/exe", testdata_section, &content);
54 if (!android::base::WriteStringToFile(content, tmp_file.path)) {
H A Dcpu_hotplug_test.cpp97 std::string content; local
98 bool ret = android::base::ReadFileToString(filename, &content);
105 return (content.find('1') != std::string::npos);
118 std::string content = online ? "1" : "0"; local
119 ret = android::base::WriteStringToFile(content, filename);
128 PLOG(ERROR) << "failed to write " << content << " to " << filename;
H A Dread_elf.cpp133 std::string content; local
134 if (!android::base::ReadFileToString(filename, &content)) {
137 if (!GetBuildIdFromNoteSection(content.c_str(), content.size(), build_id)) {
241 std::string* content) {
252 *content = data;
476 std::string* content) {
487 return ReadSectionFromELFFile(elf, section_name, content);
489 return ReadSectionFromELFFile(elf, section_name, content);
240 ReadSectionFromELFFile(const llvm::object::ELFObjectFile<ELFT>* elf, const std::string& section_name, std::string* content) argument
475 ReadSectionFromElfFile(const std::string& filename, const std::string& section_name, std::string* content) argument
/system/extras/verity/
H A Dverity_verifier.cpp35 std::string content; local
36 if (!android::base::ReadFileToString(path, &content) ||
37 content.size() < ANDROID_PUBKEY_ENCODED_SIZE) {
43 if (!android_pubkey_decode(reinterpret_cast<const uint8_t*>(content.c_str()),
/system/core/healthd/
H A DAnimationParser.cpp82 bool parse_animation_desc(const std::string& content, animation* anim) { argument
91 for (const auto& line : base::Split(content, "\n")) {
H A Dhealthd_mode_charger.cpp791 std::string content; local
792 if (base::ReadFileToString(animation_desc_path, &content)) {
793 parse_success = parse_animation_desc(content, &battery_animation);
/system/core/init/
H A Dbootchart.cpp98 std::string content; local
99 if (android::base::ReadFileToString(procfile, &content)) {
100 fprintf(log, "%s\n", content.c_str());
167 // We don't care about the content, but we do care that /data/bootchart/enabled actually exists.
H A Dutil.cpp164 bool read_file(const std::string& path, std::string* content) { argument
165 content->clear();
185 return android::base::ReadFdToString(fd, content);
188 bool write_file(const std::string& path, const std::string& content) { argument
195 bool success = android::base::WriteStringToFd(content, fd);
425 // Reads the content of device tree file under kAndroidDtDir directory.
/system/tools/aidl/tests/
H A Dfake_io_delegate.cpp138 bool FakeIoDelegate::GetWrittenContents(const string& path, string* content) { argument
143 if (content) {
144 *content = it->second;
/system/core/adb/
H A Dadbd_auth.cpp56 std::string content; local
57 if (!android::base::ReadFileToString(path, &content)) {
62 for (const auto& line : android::base::Split(content, "\n")) {
H A Dadb_auth_host.cpp91 std::string content; local
92 content.resize(expected_length);
93 size_t actual_length = EVP_EncodeBlock(reinterpret_cast<uint8_t*>(&content[0]), binary_key_data,
95 content.resize(actual_length);
97 content += get_user_info();
100 if (!android::base::WriteStringToFile(content, path)) {
326 std::string content; local
327 if (!android::base::ReadFileToString(path, &content)) {
331 return content;
H A Dcommandline.cpp786 std::string content; local
787 if (!android::base::ReadFileToString(filename, &content)) {
792 const uint8_t* data = reinterpret_cast<const uint8_t*>(content.data());
793 unsigned sz = content.size();
/system/core/base/
H A Dfile.cpp49 bool ReadFdToString(int fd, std::string* content) { argument
50 content->clear();
57 content->reserve(sb.st_size);
63 content->append(buf, n);
68 bool ReadFileToString(const std::string& path, std::string* content, bool follow_symlinks) { argument
69 content->clear();
76 bool result = ReadFdToString(fd, content);
81 bool WriteStringToFd(const std::string& content, int fd) { argument
82 const char* p = content.data();
83 size_t left = content
104 WriteStringToFile(const std::string& content, const std::string& path, mode_t mode, uid_t owner, gid_t group, bool follow_symlinks) argument
134 WriteStringToFile(const std::string& content, const std::string& path, bool follow_symlinks) argument
[all...]
/system/core/liblog/
H A Dpmsg_reader.c278 struct content { struct
287 } * content; local
290 struct listnode content; member in struct:names
339 /* Read the file content */
428 list_init(&names->content);
443 * thus when we present the content, we are provided the oldest
477 list_for_each_safe(node, n, &names->content) {
478 content = node_to_item(node, struct content, node);
479 if (transp.logMsg.entry.nsec == content
[all...]
/system/core/logd/
H A DLogTags.cpp102 "# Rebuilt %.20s, content owned by logd\n", timebuf),
172 // content, reset tag2total if available
193 std::string content; local
194 if (android::base::ReadFileToString(filename, &content)) {
195 char* cp = (char*)content.c_str();
196 char* endp = cp + content.length();
201 file2watermark[filename] = content.length();
762 // updateWrite -> trigger output on modified content, reset tag2total
/system/tpm/attestation/common/
H A Dtpm_utility_v1.cc57 std::string content; local
58 base::ReadFileToString(base::FilePath(file_name), &content); local
59 if (content.size() > 1) {
60 content.resize(1);
62 return content;

Completed in 609 milliseconds