memevents: Fix registerEvent with LMKD and direct reclaim
Adjusting logic on how we validate if a MemEventClient has the option to
register for a `mem_event_type_t`. We are implementing a search on the
`attachments` instead if relying on the size of the vector.
Test: Verified that LMKD can register to both direct reclaim begin/end
Test: Verified that the AMS client is not affected by this change
Test: memevents_test
Bug: 244232958
Change-Id: I2e4a88b0010f131db3ad8b5c95cdb852a4ad2733
Signed-off-by: Carlos Galo <[email protected]>
1 file changed