@ -96,6 +96,10 @@ public:
const std : : string & serviceName ,
const std : : string & serviceName ,
const sp < hidl : : manager : : V1_0 : : IServiceNotification >
const sp < hidl : : manager : : V1_0 : : IServiceNotification >
& notification ) = 0 ;
& notification ) = 0 ;
// Will not wait for service to start if it's not already running
virtual sp < hardware : : camera : : provider : : V2_4 : : ICameraProvider > tryGetService (
const std : : string & serviceName ) = 0 ;
// Will block for service if it exists but isn't running
virtual sp < hardware : : camera : : provider : : V2_4 : : ICameraProvider > getService (
virtual sp < hardware : : camera : : provider : : V2_4 : : ICameraProvider > getService (
const std : : string & serviceName ) = 0 ;
const std : : string & serviceName ) = 0 ;
virtual hardware : : hidl_vec < hardware : : hidl_string > listServices ( ) = 0 ;
virtual hardware : : hidl_vec < hardware : : hidl_string > listServices ( ) = 0 ;
@ -112,6 +116,10 @@ public:
return hardware : : camera : : provider : : V2_4 : : ICameraProvider : : registerForNotifications (
return hardware : : camera : : provider : : V2_4 : : ICameraProvider : : registerForNotifications (
serviceName , notification ) ;
serviceName , notification ) ;
}
}
virtual sp < hardware : : camera : : provider : : V2_4 : : ICameraProvider > tryGetService (
const std : : string & serviceName ) override {
return hardware : : camera : : provider : : V2_4 : : ICameraProvider : : tryGetService ( serviceName ) ;
}
virtual sp < hardware : : camera : : provider : : V2_4 : : ICameraProvider > getService (
virtual sp < hardware : : camera : : provider : : V2_4 : : ICameraProvider > getService (
const std : : string & serviceName ) override {
const std : : string & serviceName ) override {
return hardware : : camera : : provider : : V2_4 : : ICameraProvider : : getService ( serviceName ) ;
return hardware : : camera : : provider : : V2_4 : : ICameraProvider : : getService ( serviceName ) ;