Lines Matching refs:content
55 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &content)); in ReportRaw()
56 ASSERT_TRUE(!content.empty()); in ReportRaw()
57 std::vector<std::string> raw_lines = android::base::Split(content, "\n"); in ReportRaw()
71 if (std::regex_search(content, m, std::regex(R"(Samples: (\d+))"))) { in GetSampleCount()
80 std::string content; member in ReportCommandTest
88 ASSERT_NE(content.find("GlobalFunc"), std::string::npos); in TEST_F()
94 ASSERT_NE(content.find("GlobalFunc"), std::string::npos); in TEST_F()
219 ASSERT_NE(content.find("17441"), std::string::npos); in TEST_F()
220 ASSERT_NE(content.find("17445"), std::string::npos); in TEST_F()
298 ASSERT_NE(content.find("63500000 43250000 /apex/com.android.runtime/lib64/libart.so"), in TEST_F()
304 ASSERT_NE(content.find("51500000 2500000 MterpInvokeVirtual"), std::string::npos); in TEST_F()
331 ASSERT_NE(content.find(GetUrlInApk(APK_FILE, NATIVELIB_IN_APK)), std::string::npos); in TEST_F()
332 ASSERT_NE(content.find("Func2"), std::string::npos); in TEST_F()
339 ASSERT_NE(pos = content.find("cpu-cycles", pos), std::string::npos); in TEST_F()
340 ASSERT_NE(pos = content.find("Samples:", pos), std::string::npos); in TEST_F()
341 ASSERT_NE(pos = content.find("cpu-clock", pos), std::string::npos); in TEST_F()
342 ASSERT_NE(pos = content.find("Samples:", pos), std::string::npos); in TEST_F()
348 ASSERT_NE(content.find("perf_event_aux"), std::string::npos); in TEST_F()
354 ASSERT_NE(content.find("main"), std::string::npos); in TEST_F()
357 ASSERT_NE(content.find("memcpy"), std::string::npos); in TEST_F()
364 ASSERT_NE(content.find("main"), std::string::npos); in TEST_F()
375 ASSERT_NE(content.find("VaddrInFile"), std::string::npos); in TEST_F()
381 ASSERT_NE(content.find("main"), std::string::npos); in TEST_F()
389 if (content.find("main") != std::string::npos) { in TEST_F()
400 ASSERT_EQ(content.find("unknown"), std::string::npos); in TEST_F()
403 ASSERT_NE(content.find("unknown"), std::string::npos); in TEST_F()
413 if (content.find("GlobalFunc") != std::string::npos) { in TEST_F()
428 if (content.find("GlobalFunc") != std::string::npos) { in TEST_F()
444 ASSERT_NE(content.find("89.03"), std::string::npos); in TEST_F()
448 ASSERT_EQ(content.find("89.03"), std::string::npos); in TEST_F()
451 ASSERT_NE(content.find("89.03"), std::string::npos); in TEST_F()
455 ASSERT_EQ(content.find("89.03"), std::string::npos); in TEST_F()
458 ASSERT_NE(content.find("89.03"), std::string::npos); in TEST_F()
464 ASSERT_NE(content.find("7.70%"), std::string::npos); in TEST_F()
465 ASSERT_NE(content.find("3.23%"), std::string::npos); in TEST_F()
468 ASSERT_NE(content.find("7.70%"), std::string::npos); in TEST_F()
469 ASSERT_EQ(content.find("3.23%"), std::string::npos); in TEST_F()
475 ASSERT_NE(content.find("FakeKernelSymbol"), std::string::npos); in TEST_F()
485 ASSERT_NE(content.find("GlobalFunc"), std::string::npos); in TEST_F()
486 ASSERT_EQ(content.find('%'), std::string::npos); in TEST_F()
492 ASSERT_NE(content.find("skipped in brief callgraph mode"), std::string::npos); in TEST_F()
495 ASSERT_EQ(content.find("skipped in brief callgraph mode"), std::string::npos); in TEST_F()
501 ASSERT_NE(content.find("Time in ns"), std::string::npos); in TEST_F()
521 ASSERT_NE(content.find("EventCount,EventName"), std::string::npos); in TEST_F()
525 ASSERT_NE(content.find("AccEventCount,SelfEventCount,EventName"), std::string::npos); in TEST_F()
531 ASSERT_NE(content.find("EventCount;EventName"), std::string::npos); in TEST_F()
532 ASSERT_NE(content.find(";cpu-cycles"), std::string::npos); in TEST_F()
538 ASSERT_NE(content.find("[JIT app cache]"), std::string::npos); in TEST_F()
543 ASSERT_NE(content.find("[JIT app cache]"), std::string::npos); in TEST_F()
549 ASSERT_NE(std::string::npos, content.find("generic_jit_symbol_one")); in TEST_F()
572 ASSERT_NE(content.find("EventCount"), std::string::npos); in TEST_F()
574 content, std::regex(R"(325005586\s+elf\s+26083\s+26083\s+/elf\s+GlobalFunc)"))); in TEST_F()
581 std::regex_search(content, std::regex(R"(EventCount_cpu-cycles\s+EventCount_instructions)"))); in TEST_F()
583 content, std::regex(R"(175099\s+140443\s+sleep\s+689664\s+689664.+_dl_addr)"))); in TEST_F()
589 content, in TEST_F()
594 content, in TEST_F()
597 content, in TEST_F()
678 ASSERT_NE(content.find(GetUrlInApk(APK_FILE, NATIVELIB_IN_APK)), std::string::npos); in TEST_F()
679 ASSERT_NE(content.find("Func2"), std::string::npos); in TEST_F()
680 ASSERT_NE(content.find("Func1"), std::string::npos); in TEST_F()
681 ASSERT_NE(content.find("GlobalFunc"), std::string::npos); in TEST_F()
696 ASSERT_EQ(content.find("[kernel.kallsyms]"), std::string::npos); in TEST_F()