Loading libs/binder/include/binder/LazyServiceRegistrar.h +6 −2 Original line number Original line Diff line number Diff line Loading @@ -50,8 +50,12 @@ class LazyServiceRegistrar { int dumpFlags = IServiceManager::DUMP_FLAG_PRIORITY_DEFAULT); int dumpFlags = IServiceManager::DUMP_FLAG_PRIORITY_DEFAULT); /** /** * Force the service to persist, even when it has 0 clients. * Force the service to persist, even when it has 0 clients. * If setting this flag from the server side, make sure to do so before calling registerService, * If setting this flag from the server side, make sure to do so before calling * or there may be a race with the default dynamic shutdown. * registerService, or there may be a race with the default dynamic shutdown. * * This should only be used if it is every eventually set to false. If a * service needs to persist but doesn't need to dynamically shut down, * prefer to control it with another mechanism such as ctl.start. */ */ void forcePersist(bool persist); void forcePersist(bool persist); Loading libs/binder/ndk/include_platform/android/binder_manager.h +4 −0 Original line number Original line Diff line number Diff line Loading @@ -137,6 +137,10 @@ bool AServiceManager_isUpdatableViaApex(const char* instance) __INTRODUCED_IN(31 /** /** * Prevent lazy services without client from shutting down their process * Prevent lazy services without client from shutting down their process * * * This should only be used if it is every eventually set to false. If a * service needs to persist but doesn't need to dynamically shut down, * prefer to control it with another mechanism. * * \param persist 'true' if the process should not exit. * \param persist 'true' if the process should not exit. */ */ void AServiceManager_forceLazyServicesPersist(bool persist) __INTRODUCED_IN(31); void AServiceManager_forceLazyServicesPersist(bool persist) __INTRODUCED_IN(31); Loading Loading
libs/binder/include/binder/LazyServiceRegistrar.h +6 −2 Original line number Original line Diff line number Diff line Loading @@ -50,8 +50,12 @@ class LazyServiceRegistrar { int dumpFlags = IServiceManager::DUMP_FLAG_PRIORITY_DEFAULT); int dumpFlags = IServiceManager::DUMP_FLAG_PRIORITY_DEFAULT); /** /** * Force the service to persist, even when it has 0 clients. * Force the service to persist, even when it has 0 clients. * If setting this flag from the server side, make sure to do so before calling registerService, * If setting this flag from the server side, make sure to do so before calling * or there may be a race with the default dynamic shutdown. * registerService, or there may be a race with the default dynamic shutdown. * * This should only be used if it is every eventually set to false. If a * service needs to persist but doesn't need to dynamically shut down, * prefer to control it with another mechanism such as ctl.start. */ */ void forcePersist(bool persist); void forcePersist(bool persist); Loading
libs/binder/ndk/include_platform/android/binder_manager.h +4 −0 Original line number Original line Diff line number Diff line Loading @@ -137,6 +137,10 @@ bool AServiceManager_isUpdatableViaApex(const char* instance) __INTRODUCED_IN(31 /** /** * Prevent lazy services without client from shutting down their process * Prevent lazy services without client from shutting down their process * * * This should only be used if it is every eventually set to false. If a * service needs to persist but doesn't need to dynamically shut down, * prefer to control it with another mechanism. * * \param persist 'true' if the process should not exit. * \param persist 'true' if the process should not exit. */ */ void AServiceManager_forceLazyServicesPersist(bool persist) __INTRODUCED_IN(31); void AServiceManager_forceLazyServicesPersist(bool persist) __INTRODUCED_IN(31); Loading