diff options
author | Amos Bianchi <amosbianchi@google.com> | 2020-12-30 10:48:30 -0800 |
---|---|---|
committer | Amos Bianchi <amosbianchi@google.com> | 2021-01-07 13:44:21 -0800 |
commit | 5a58e9bf9b19faf9550d1622f440930b8f914a78 (patch) | |
tree | 50d9906ef00cbbde7c4e2c2832a7786825b3b7ba /tests | |
parent | add7761be6d6248180500e508c317cfbda70271c (diff) |
Add method for testing lazy HALs active services count callback.
Bug: 176240491
Test: atest hidl_lazy_test
Change-Id: I2db4fa62fac725fc4943678e0d8aa89c9f411350
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lazy/1.1/ILazy.hal | 10 |
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(); +}; |