Home
last modified time | relevance | path

Searched refs:ofs (Results 1 – 5 of 5) sorted by relevance

/art/odrefresh/
Dodr_metrics_record_test.cc47 std::ofstream ofs(file_path); in TEST_F() local
48 ofs << expected; in TEST_F()
49 ASSERT_FALSE(ofs.fail()); in TEST_F()
50 ofs.close(); in TEST_F()
102 std::ofstream ofs(file_path); in TEST_F() local
103 ofs.close(); in TEST_F()
106 ofs << record; in TEST_F()
108 ASSERT_TRUE(ofs.fail()); in TEST_F()
109 ASSERT_TRUE(!ofs.good()); in TEST_F()
Dodr_compilation_log.cc124 std::ofstream ofs(log_path_, std::ofstream::trunc); in Write() local
125 if (!ofs.good()) { in Write()
129 ofs << kLogVersion << std::endl; in Write()
131 ofs << entry; in Write()
132 if (ofs.fail()) { in Write()
Dodr_metrics.cc142 std::ofstream ofs(path); in WriteToFile() local
143 ofs << record; in WriteToFile()
/art/tools/hiddenapi/
Dhiddenapi.cc739 std::ofstream ofs(path.c_str(), std::ofstream::out | std::ofstream::binary); in WriteTo() local
740 ofs.write(reinterpret_cast<const char*>(data_.data()), data_.size()); in WriteTo()
741 ofs.flush(); in WriteTo()
742 CHECK(ofs.good()); in WriteTo()
743 ofs.close(); in WriteTo()
Dhiddenapi_test.cc133 std::ofstream ofs(file.GetFilename(), std::ofstream::out); in OpenStream() local
134 if (ofs.fail()) { in OpenStream()
138 return ofs; in OpenStream()