aboutsummaryrefslogtreecommitdiff
path: root/service/src/com/android/car/VmsPublisherService.java
diff options
context:
space:
mode:
authorAsaf Rosenfeld <asafro@google.com>2017-05-19 12:59:56 -0700
committerAsaf Rosenfeld <asafro@google.com>2017-05-25 09:08:41 -0700
commit602848940066abb3f0c36148cbe09c3d1855dffc (patch)
tree31e5cbae1dda585399b99ab7534dc5b77b1f0469 /service/src/com/android/car/VmsPublisherService.java
parent9a8bb73e9784e124dbb4f29cacb568be38b6cf78 (diff)
downloadCar-602848940066abb3f0c36148cbe09c3d1855dffc.tar.gz
Adding Publisher ID support to non-hal clients.
Publishers send a serialized proto message with their description and get ID integer. Everytime the same serialized message is sent they will get the same ID so it is persistent within client crashes. Other clients can ask for a map all the IDs with their serialized descriptions. Test: All of VMS tests pass + added unit tests and integration tests. Change-Id: I025dd9943427ee8631a6a00adb0f9a17334a821e Bugs: 38185290, 38185731, 38185927
Diffstat (limited to 'service/src/com/android/car/VmsPublisherService.java')
-rw-r--r--service/src/com/android/car/VmsPublisherService.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/service/src/com/android/car/VmsPublisherService.java b/service/src/com/android/car/VmsPublisherService.java
index 8bb0167d8d..3ecbfacb76 100644
--- a/service/src/com/android/car/VmsPublisherService.java
+++ b/service/src/com/android/car/VmsPublisherService.java
@@ -135,6 +135,12 @@ public class VmsPublisherService extends IVmsPublisherService.Stub
return mHal.getSubscriptionState();
}
+ @Override
+ public int getPublisherStaticId(byte[] publisherInfo) {
+ ICarImpl.assertVmsPublisherPermission(mContext);
+ return mHal.getPublisherStaticId(publisherInfo);
+ }
+
// Implements VmsHalListener interface
/**
* This method is only invoked by VmsHalService.notifyPublishers which is synchronized.