Skip to content
Snippets Groups Projects
Commit ed22ec8b authored by Lei Ju's avatar Lei Ju
Browse files

Implement the getUuid() callback function

Bug: 247124878
Test: compilation and manual test
Change-Id: I950f7e02377aa2bedeb357c3f205ededde071df4
parent 9a957797
No related branches found
No related tags found
No related merge requests found
......@@ -212,7 +212,7 @@ java_library {
"android.hardware.contexthub-V1.0-java",
"android.hardware.contexthub-V1.1-java",
"android.hardware.contexthub-V1.2-java",
"android.hardware.contexthub-V2-java",
"android.hardware.contexthub-V3-java",
"android.hardware.gnss-V1.0-java",
"android.hardware.gnss-V2.1-java",
"android.hardware.health-V1.0-java-constants",
......
......@@ -421,6 +421,9 @@ public abstract class IContextHubWrapper {
android.hardware.contexthub.IContextHubCallback.Stub {
private final int mContextHubId;
private final ICallback mCallback;
// 9a17008d-6bf1-445a-9011-6d21bd985b6c
private static final byte[] UUID = {-102, 23, 0, -115, 107, -15, 68, 90,
-112, 17, 109, 33, -67, -104, 91, 108};
ContextHubAidlCallback(int contextHubId, ICallback callback) {
mContextHubId = contextHubId;
......@@ -463,6 +466,10 @@ public abstract class IContextHubWrapper {
// TODO(271471342): Implement
}
public byte[] getUuid() {
return UUID;
}
@Override
public String getInterfaceHash() {
return android.hardware.contexthub.IContextHubCallback.HASH;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment