mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 05:49:27 +00:00
More memory test interfaces
Merged-In: I21bb7c28aa774801cad94cd530ccb6b5c3b621e0 Change-Id: I21bb7c28aa774801cad94cd530ccb6b5c3b621e0 Bug: 143566068
This commit is contained in:
12
tests/memory/2.0/Android.bp
Normal file
12
tests/memory/2.0/Android.bp
Normal file
@@ -0,0 +1,12 @@
|
||||
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
tests/memory/2.0/IMemoryInterface.hal
Normal file
12
tests/memory/2.0/IMemoryInterface.hal
Normal file
@@ -0,0 +1,12 @@
|
||||
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
tests/memory/2.0/types.hal
Normal file
6
tests/memory/2.0/types.hal
Normal file
@@ -0,0 +1,6 @@
|
||||
package android.hardware.tests.memory@2.0;
|
||||
|
||||
struct TwoMemory {
|
||||
memory mem1;
|
||||
memory mem2;
|
||||
};
|
||||
Reference in New Issue
Block a user