Home
last modified time | relevance | path

Searched refs:mem_events (Results 1 – 4 of 4) sorted by relevance

/system/memory/libmeminfo/libmemevents/
Dmemevents_test.cpp124 std::vector<mem_event_t> mem_events; in TEST_F() local
125 ASSERT_FALSE(memevent_listener.getMemEvents(mem_events)) in TEST_F()
512 std::vector<mem_event_t> mem_events; in TEST_F() local
513 ASSERT_TRUE(mem_listener.getMemEvents(mem_events)) << "Failed fetching events"; in TEST_F()
514 ASSERT_FALSE(mem_events.empty()) << "Expected for mem_events to have at least 1 mocked event"; in TEST_F()
515 ASSERT_EQ(mem_events[0].type, event_type) << "Didn't receive a OOM event"; in TEST_F()
516 validateMockedEvent(mem_events[0]); in TEST_F()
529 std::vector<mem_event_t> mem_events; in TEST_F() local
530 ASSERT_TRUE(mem_listener.getMemEvents(mem_events)) << "Failed fetching events"; in TEST_F()
531 ASSERT_FALSE(mem_events.empty()) << "Expected for mem_events to have at least 1 mocked event"; in TEST_F()
[all …]
Dmemevents.cpp337 bool MemEventListener::getMemEvents(std::vector<mem_event_t>& mem_events) { in getMemEvents() argument
344 if (mEventsRegistered[mem_event.type]) mem_events.emplace_back(mem_event); in getMemEvents()
/system/memory/libmeminfo/libmemevents/include/memevents/
Dmemevents.h119 bool getMemEvents(std::vector<mem_event_t>& mem_events);
/system/memory/lmkd/
Dlmkd.cpp3537 std::vector<mem_event_t> mem_events; in memevent_listener_notification() local
3546 if (!memevent_listener->getMemEvents(mem_events)) { in memevent_listener_notification()
3553 for (const mem_event_t& mem_event : mem_events) { in memevent_listener_notification()