aboutsummaryrefslogtreecommitdiff
path: root/car-lib/src/android/car/vms/VmsPublisherClientService.java
diff options
context:
space:
mode:
authorDemyn Plantenberg <demyn@google.com>2017-06-20 21:01:34 -0700
committerDemyn Plantenberg <demyn@google.com>2017-06-29 09:28:16 -0700
commit3ca12894f8e70fce1e0e18f44165cc941f6cb499 (patch)
tree232c5190cb400566cd10dc03f63cd980b6db8f4b /car-lib/src/android/car/vms/VmsPublisherClientService.java
parentcccdd9c5c34a00cd35f02d1dbd6631ef10cc323a (diff)
downloadCar-3ca12894f8e70fce1e0e18f44165cc941f6cb499.tar.gz
VMS: adding VmsOperationRecorder.
The VmsOperationRecorder writes VMS operations (formatted as JSON text) to the Android Log. Applications can then parse logcat output to combine the core VMS operations with other system activity. Test: Ran all VMS unit tests. Change-Id: I70ec53a56e5aeb0bda8b38cd1204c3316fca4fa7
Diffstat (limited to 'car-lib/src/android/car/vms/VmsPublisherClientService.java')
-rw-r--r--car-lib/src/android/car/vms/VmsPublisherClientService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/car-lib/src/android/car/vms/VmsPublisherClientService.java b/car-lib/src/android/car/vms/VmsPublisherClientService.java
index ea265dfe5e..3dca604de8 100644
--- a/car-lib/src/android/car/vms/VmsPublisherClientService.java
+++ b/car-lib/src/android/car/vms/VmsPublisherClientService.java
@@ -31,7 +31,6 @@ import android.util.Log;
import com.android.internal.annotations.GuardedBy;
import java.lang.ref.WeakReference;
-import java.util.List;
/**
* Services that need VMS publisher services need to inherit from this class and also need to be
@@ -133,6 +132,7 @@ public abstract class VmsPublisherClientService extends Service {
try {
mVmsPublisherService.setLayersOffering(token, offering);
+ VmsOperationRecorder.get().setLayersOffering(offering);
return true;
} catch (RemoteException e) {
Log.e(TAG, "unable to set layers offering: " + offering, e);
@@ -168,6 +168,8 @@ public abstract class VmsPublisherClientService extends Service {
}
if (publisherStaticId == null) {
throw new IllegalStateException("VmsPublisherService cannot get a publisher static ID.");
+ } else {
+ VmsOperationRecorder.get().getPublisherStaticId(publisherStaticId);
}
return publisherStaticId;
}