mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
MemoryTest: add method for testing am: 6de0aa81a3 am: f0a0b645e9
am: fa37fc89cd
Change-Id: I3a8852cce54663968a4e19f471f4a167152a472b
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user