/system/extras/simpleperf/ |
D | record_test.cpp | 161 PerfSampleReadType read_data; in TEST_F() local 162 read_data.time_enabled = 1000; in TEST_F() 163 read_data.time_running = 500; in TEST_F() 164 read_data.counts = {100}; in TEST_F() 165 read_data.ids = {200}; in TEST_F() 166 SampleRecord r(event_attr, 0, 1, 2, 3, 4, 5, 6, read_data, {}, {}, 0); in TEST_F() 167 ASSERT_EQ(read_data.time_enabled, r.read_data.time_enabled); in TEST_F() 168 ASSERT_EQ(read_data.time_running, r.read_data.time_running); in TEST_F() 169 ASSERT_TRUE(read_data.counts == r.read_data.counts); in TEST_F() 170 ASSERT_TRUE(read_data.ids == r.read_data.ids); in TEST_F() [all …]
|
D | record_equal_test.h | 58 EXPECT_EQ(r1.read_data.time_enabled, r2.read_data.time_enabled); in CheckSampleRecordDataEqual() 59 EXPECT_EQ(r1.read_data.time_running, r2.read_data.time_running); in CheckSampleRecordDataEqual() 60 EXPECT_EQ(r1.read_data.counts.size(), r2.read_data.counts.size()); in CheckSampleRecordDataEqual() 61 for (size_t i = 0; i < r1.read_data.counts.size(); i++) { in CheckSampleRecordDataEqual() 62 EXPECT_EQ(r1.read_data.counts[i], r2.read_data.counts[i]); in CheckSampleRecordDataEqual() 64 EXPECT_EQ(r1.read_data.ids.size(), r2.read_data.ids.size()); in CheckSampleRecordDataEqual() 65 for (size_t i = 0; i < r1.read_data.ids.size(); i++) { in CheckSampleRecordDataEqual() 66 EXPECT_EQ(r1.read_data.ids[i], r2.read_data.ids[i]); in CheckSampleRecordDataEqual()
|
D | record.cpp | 518 MoveFromBinaryFormat(read_data.time_enabled, p); in Parse() 521 MoveFromBinaryFormat(read_data.time_running, p); in Parse() 523 read_data.counts.resize(nr); in Parse() 525 read_data.ids.resize(nr); in Parse() 528 MoveFromBinaryFormat(read_data.counts[i], p); in Parse() 530 MoveFromBinaryFormat(read_data.ids[i], p); in Parse() 592 const PerfSampleReadType& read_data, const std::vector<uint64_t>& ips, in SampleRecord() argument 609 this->read_data = read_data; in SampleRecord() 642 u64_count += read_data.counts.size() + read_data.ids.size(); in SampleRecord() 679 uint64_t nr = read_data.counts.size(); in SampleRecord() [all …]
|
D | cmd_report.cpp | 276 CHECK_EQ(r.read_data.counts.size(), r.read_data.ids.size()); in GetCountsForSample() 277 std::vector<uint64_t> res(r.read_data.counts.size(), 0); in GetCountsForSample() 278 for (size_t i = 0; i < r.read_data.counts.size(); i++) { in GetCountsForSample() 279 uint64_t event_id = r.read_data.ids[i]; in GetCountsForSample() 280 uint64_t count = r.read_data.counts[i]; in GetCountsForSample()
|
D | record.h | 397 PerfSampleReadType read_data; // Valid if PERF_SAMPLE_READ. member 407 uint64_t time, uint32_t cpu, uint64_t period, const PerfSampleReadType& read_data,
|
D | cmd_record_test.cpp | 1277 if (sr->read_data.counts.size() != 2 || sr->read_data.ids.size() != 2) { in TEST()
|
/system/core/libappfuse/tests/ |
D | FuseBufferTest.cc | 118 memset(response.read_data, 'a', 10); in TEST() 124 EXPECT_EQ('a', response.read_data[0]); in TEST() 125 EXPECT_EQ('a', response.read_data[9]); in TEST() 131 EXPECT_EQ(0, response.read_data[0]); in TEST() 132 EXPECT_EQ(0, response.read_data[1]); in TEST() 133 EXPECT_EQ(0, response.read_data[2]); in TEST() 134 EXPECT_EQ(0, response.read_data[3]); in TEST() 135 EXPECT_EQ(0, response.read_data[4]); in TEST() 136 EXPECT_EQ('a', response.read_data[5]); in TEST() 142 memset(response.read_data, 'a', 10); in TEST() [all …]
|
/system/extras/libfec/test/ |
D | fec_unittest.cpp | 210 std::vector<uint8_t> read_data(1024, 0); in TEST_F() local 216 ASSERT_EQ(1024, fec_pread(handle, read_data.data(), 1024, corrupt_offset)); in TEST_F() 217 ASSERT_EQ(std::vector<uint8_t>(1024, 255), read_data); in TEST_F() 287 std::vector<uint8_t> read_data(1024, 0); in TEST_F() local 298 ASSERT_EQ(1024, fec_pread(handle, read_data.data(), 1024, corrupt_offset)); in TEST_F() 299 ASSERT_EQ(std::vector<uint8_t>(1024, 10), read_data); in TEST_F()
|
/system/libziparchive/ |
D | zip_archive_test.cc | 645 bool verified, ZipEntry* entry, std::vector<uint8_t>* read_data) { in ZipArchiveStreamTest() argument 651 read_data->resize(static_cast<size_t>(entry->uncompressed_length)); in ZipArchiveStreamTest() 653 read_data->resize(static_cast<size_t>(entry->compressed_length)); in ZipArchiveStreamTest() 657 read_data->resize(static_cast<size_t>(entry->uncompressed_length)); in ZipArchiveStreamTest() 659 uint8_t* read_data_ptr = read_data->data(); in ZipArchiveStreamTest() 669 ASSERT_EQ(total_size, read_data->size()); in ZipArchiveStreamTest() 679 std::vector<uint8_t> read_data; in ZipArchiveStreamTestUsingContents() local 680 ZipArchiveStreamTest(handle, entry_name, raw, true, &entry, &read_data); in ZipArchiveStreamTestUsingContents() 682 ASSERT_EQ(contents.size(), read_data.size()); in ZipArchiveStreamTestUsingContents() 683 ASSERT_TRUE(memcmp(read_data.data(), contents.data(), read_data.size()) == 0); in ZipArchiveStreamTestUsingContents() [all …]
|
/system/core/libappfuse/include/libappfuse/ |
D | FuseBuffer.h | 88 char read_data[N]; member
|