Loading libs/binder/ndk/include_platform/android/binder_manager.h +3 −3 Original line number Diff line number Diff line Loading @@ -56,12 +56,12 @@ __attribute__((warn_unused_result)) binder_exception_t AServiceManager_addServic * * \param binder object to register globally with the service manager. * \param instance identifier of the service. This will be used to lookup the service. * \param flag an AServiceManager_AddServiceFlag enum to denote how the service should be added. * \param flags an AServiceManager_AddServiceFlag enum to denote how the service should be added. * * \return EX_NONE on success. */ __attribute__((warn_unused_result)) binder_exception_t AServiceManager_addServiceWithFlag( AIBinder* binder, const char* instance, const AServiceManager_AddServiceFlag flag) __attribute__((warn_unused_result)) binder_exception_t AServiceManager_addServiceWithFlags( AIBinder* binder, const char* instance, const AServiceManager_AddServiceFlag flags) __INTRODUCED_IN(34); /** Loading libs/binder/ndk/libbinder_ndk.map.txt +1 −1 Original line number Diff line number Diff line Loading @@ -158,7 +158,7 @@ LIBBINDER_NDK34 { # introduced=UpsideDownCake AServiceManager_getUpdatableApexName; # systemapi AServiceManager_registerForServiceNotifications; # systemapi llndk AServiceManager_NotificationRegistration_delete; # systemapi llndk AServiceManager_addServiceWithFlag; # systemapi llndk AServiceManager_addServiceWithFlags; # systemapi llndk }; LIBBINDER_NDK_PLATFORM { Loading libs/binder/ndk/service_manager.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -42,15 +42,15 @@ binder_exception_t AServiceManager_addService(AIBinder* binder, const char* inst return PruneException(exception); } binder_exception_t AServiceManager_addServiceWithFlag(AIBinder* binder, const char* instance, const AServiceManager_AddServiceFlag flag) { binder_exception_t AServiceManager_addServiceWithFlags(AIBinder* binder, const char* instance, const AServiceManager_AddServiceFlag flags) { if (binder == nullptr || instance == nullptr) { return EX_ILLEGAL_ARGUMENT; } sp<IServiceManager> sm = defaultServiceManager(); bool allowIsolated = flag & AServiceManager_AddServiceFlag::ADD_SERVICE_ALLOW_ISOLATED; bool allowIsolated = flags & AServiceManager_AddServiceFlag::ADD_SERVICE_ALLOW_ISOLATED; status_t exception = sm->addService(String16(instance), binder->getBinder(), allowIsolated); return PruneException(exception); } Loading Loading
libs/binder/ndk/include_platform/android/binder_manager.h +3 −3 Original line number Diff line number Diff line Loading @@ -56,12 +56,12 @@ __attribute__((warn_unused_result)) binder_exception_t AServiceManager_addServic * * \param binder object to register globally with the service manager. * \param instance identifier of the service. This will be used to lookup the service. * \param flag an AServiceManager_AddServiceFlag enum to denote how the service should be added. * \param flags an AServiceManager_AddServiceFlag enum to denote how the service should be added. * * \return EX_NONE on success. */ __attribute__((warn_unused_result)) binder_exception_t AServiceManager_addServiceWithFlag( AIBinder* binder, const char* instance, const AServiceManager_AddServiceFlag flag) __attribute__((warn_unused_result)) binder_exception_t AServiceManager_addServiceWithFlags( AIBinder* binder, const char* instance, const AServiceManager_AddServiceFlag flags) __INTRODUCED_IN(34); /** Loading
libs/binder/ndk/libbinder_ndk.map.txt +1 −1 Original line number Diff line number Diff line Loading @@ -158,7 +158,7 @@ LIBBINDER_NDK34 { # introduced=UpsideDownCake AServiceManager_getUpdatableApexName; # systemapi AServiceManager_registerForServiceNotifications; # systemapi llndk AServiceManager_NotificationRegistration_delete; # systemapi llndk AServiceManager_addServiceWithFlag; # systemapi llndk AServiceManager_addServiceWithFlags; # systemapi llndk }; LIBBINDER_NDK_PLATFORM { Loading
libs/binder/ndk/service_manager.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -42,15 +42,15 @@ binder_exception_t AServiceManager_addService(AIBinder* binder, const char* inst return PruneException(exception); } binder_exception_t AServiceManager_addServiceWithFlag(AIBinder* binder, const char* instance, const AServiceManager_AddServiceFlag flag) { binder_exception_t AServiceManager_addServiceWithFlags(AIBinder* binder, const char* instance, const AServiceManager_AddServiceFlag flags) { if (binder == nullptr || instance == nullptr) { return EX_ILLEGAL_ARGUMENT; } sp<IServiceManager> sm = defaultServiceManager(); bool allowIsolated = flag & AServiceManager_AddServiceFlag::ADD_SERVICE_ALLOW_ISOLATED; bool allowIsolated = flags & AServiceManager_AddServiceFlag::ADD_SERVICE_ALLOW_ISOLATED; status_t exception = sm->addService(String16(instance), binder->getBinder(), allowIsolated); return PruneException(exception); } Loading