summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmos Bianchi <amosbianchi@google.com>2021-01-08 21:30:45 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-01-08 21:30:45 +0000
commit88c14d2b1463414605b052f712fd3799017573a1 (patch)
tree571a6abcc7085709a689257c94c16e6a1f46ee3c
parente0a858b1d58729c1e802b366312b962b8d8b101b (diff)
parent5a58e9bf9b19faf9550d1622f440930b8f914a78 (diff)
downloadplatform_hardware_interfaces-88c14d2b1463414605b052f712fd3799017573a1.tar.gz
platform_hardware_interfaces-88c14d2b1463414605b052f712fd3799017573a1.tar.bz2
platform_hardware_interfaces-88c14d2b1463414605b052f712fd3799017573a1.zip
Merge "Add method for testing lazy HALs active services count callback."
-rw-r--r--tests/lazy/1.1/ILazy.hal10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/lazy/1.1/ILazy.hal b/tests/lazy/1.1/ILazy.hal
index a15e0e3641..b0a6a2aa09 100644
--- a/tests/lazy/1.1/ILazy.hal
+++ b/tests/lazy/1.1/ILazy.hal
@@ -18,4 +18,12 @@ package android.hardware.tests.lazy@1.1;
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();
+};