Implement IContextHubCallback.getName() for context hub service
Bug: 315039707
Test: manual test
Change-Id: I800146b82098c0006ee8f6e0dbc99c0182638852
diff --git a/services/core/java/com/android/server/location/contexthub/IContextHubWrapper.java b/services/core/java/com/android/server/location/contexthub/IContextHubWrapper.java
index d359280..bab3cbe 100644
--- a/services/core/java/com/android/server/location/contexthub/IContextHubWrapper.java
+++ b/services/core/java/com/android/server/location/contexthub/IContextHubWrapper.java
@@ -424,6 +424,7 @@
// 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};
+ private static final String NAME = "ContextHubService";
ContextHubAidlCallback(int contextHubId, ICallback callback) {
mContextHubId = contextHubId;
@@ -466,10 +467,14 @@
// TODO(271471342): Implement
}
- public byte[] getUuid() throws RemoteException {
+ public byte[] getUuid() {
return UUID;
}
+ public String getName() {
+ return NAME;
+ }
+
@Override
public String getInterfaceHash() {
return android.hardware.contexthub.IContextHubCallback.HASH;