Loading tests/memory/1.0/IMemoryTest.hal +1 −0 Original line number Diff line number Diff line Loading @@ -17,5 +17,6 @@ package android.hardware.tests.memory@1.0; interface IMemoryTest { haveSomeMemory(memory mem) generates(memory mem); fillMemory(memory memory_in, uint8_t filler); }; tests/memory/1.0/default/MemoryTest.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,11 @@ namespace V1_0 { namespace implementation { // Methods from ::android::hardware::tests::memory::V1_0::IMemoryTest follow. Return<void> Memory::haveSomeMemory(const hidl_memory& mem, haveSomeMemory_cb _hidl_cb) { _hidl_cb(mem); return Void(); } Return<void> Memory::fillMemory(const hidl_memory& memory_in, uint8_t filler) { sp<IMemory> memory = mapMemory(memory_in); Loading tests/memory/1.0/default/MemoryTest.h +2 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,8 @@ using ::android::sp; struct Memory : public IMemoryTest { // Methods from ::android::hardware::tests::memory::V1_0::IMemoryTest follow. Return<void> haveSomeMemory(const hidl_memory& mem, haveSomeMemory_cb _hidl_cb) override; Return<void> fillMemory(const hidl_memory& memory_in, uint8_t filler) override; }; Loading Loading
tests/memory/1.0/IMemoryTest.hal +1 −0 Original line number Diff line number Diff line Loading @@ -17,5 +17,6 @@ package android.hardware.tests.memory@1.0; interface IMemoryTest { haveSomeMemory(memory mem) generates(memory mem); fillMemory(memory memory_in, uint8_t filler); };
tests/memory/1.0/default/MemoryTest.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,11 @@ namespace V1_0 { namespace implementation { // Methods from ::android::hardware::tests::memory::V1_0::IMemoryTest follow. Return<void> Memory::haveSomeMemory(const hidl_memory& mem, haveSomeMemory_cb _hidl_cb) { _hidl_cb(mem); return Void(); } Return<void> Memory::fillMemory(const hidl_memory& memory_in, uint8_t filler) { sp<IMemory> memory = mapMemory(memory_in); Loading
tests/memory/1.0/default/MemoryTest.h +2 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,8 @@ using ::android::sp; struct Memory : public IMemoryTest { // Methods from ::android::hardware::tests::memory::V1_0::IMemoryTest follow. Return<void> haveSomeMemory(const hidl_memory& mem, haveSomeMemory_cb _hidl_cb) override; Return<void> fillMemory(const hidl_memory& memory_in, uint8_t filler) override; }; Loading