Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ea96143 authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "libbinder_ndk's addService ((warn_unused_result))" am: f7f4a9af

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1579756

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0c2a33736f825aa6a17390cd6cddf0abaf34bb6e
parents 6acd539f f7f4a9af
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -31,7 +31,8 @@ __BEGIN_DECLS
 *
 * \return EX_NONE on success.
 */
binder_exception_t AServiceManager_addService(AIBinder* binder, const char* instance);
__attribute__((warn_unused_result)) binder_exception_t AServiceManager_addService(
        AIBinder* binder, const char* instance);

/**
 * Gets a binder object with this specific instance name. Will return nullptr immediately if the
+2 −1
Original line number Diff line number Diff line
@@ -163,7 +163,8 @@ int main(int argc, char** argv) {

    // LOCAL SERVERS
    std::shared_ptr<NdkServer> ndkServer = SharedRefBase::make<NdkServer>();
    AServiceManager_addService(ndkServer->asBinder().get(), kLocalNdkServerName.c_str());
    CHECK(STATUS_OK ==
          AServiceManager_addService(ndkServer->asBinder().get(), kLocalNdkServerName.c_str()));

    return RUN_ALL_TESTS();
}