Merge "Add method for testing lazy HALs active services count callback." am: 88c14d2b14
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1538301
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I32ff0a5a2754ee4840a88b89c07c2c8a532a7c9d
diff --git a/tests/lazy/1.1/ILazy.hal b/tests/lazy/1.1/ILazy.hal
index a15e0e3..b0a6a2a 100644
--- a/tests/lazy/1.1/ILazy.hal
+++ b/tests/lazy/1.1/ILazy.hal
@@ -18,4 +18,12 @@
import android.hardware.tests.lazy@1.0;
-interface ILazy extends @1.0::ILazy {};
+interface ILazy extends @1.0::ILazy {
+ /**
+ * Ask the process hosting the service to install a callback that notifies
+ * it when the number of active (i.e. with clients) services changes.
+ * For testing purposes, this callback exercises the code to unregister/re-register
+ * the services and eventually shuts down the process.
+ */
+ setCustomActiveServicesCountCallback();
+};