Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b27fdb43 authored by Ytai Ben-tsvi's avatar Ytai Ben-tsvi Committed by Android (Google) Code Review
Browse files

Merge "More memory test interfaces"

parents bdc9434b 5be5483f
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
hidl_interface {
    name: "android.hardware.tests.memory@2.0",
    root: "android.hardware",
    srcs: [
        "IMemoryInterface.hal",
        "types.hal",
    ],
    interfaces: [
        "android.hidl.base@1.0",
    ],
    gen_java: true,
}
+12 −0
Original line number Diff line number Diff line
package android.hardware.tests.memory@2.0;

interface IMemoryInterface {
    // Flips all the bits in the given memory buffer.
    bitwiseNot(memory mem);
    // Returns a read-only buffer of size 8, containing the bytes 0..7.
    getTestMem() generates(memory mem);
    // Given two memory regions of the same size, returns two memory fields of
    // equal size, the first contains the byte-wise sum and the other the byte-
    // wise difference.
    getSumDiff(TwoMemory in) generates(TwoMemory out);
};
+6 −0
Original line number Diff line number Diff line
package android.hardware.tests.memory@2.0;

struct TwoMemory {
    memory mem1;
    memory mem2;
};