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

Commit b4b3c93e authored by Martijn Coenen's avatar Martijn Coenen Committed by Ruchi Kandoi
Browse files

Remove obsolete references to IPCThreadState/ProcessState.

Threadpool can now be configured/joined if needed with
configureRpcThreadpool() / joinRpcThreadpool().

Bug: 31226656
Test: mma
Change-Id: I0d7d9924cc8c8851cc2b61ebdae906204909890e
(cherry picked from commit 02822377)
parent dcfe5d66
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -21,14 +21,12 @@
#include <android/hardware/nfc/1.0/INfcClientCallback.h>
#include <android/hardware/nfc/1.0/types.h>
#include <hardware/nfc.h>
#include <hwbinder/ProcessState.h>

#include <gtest/gtest.h>
#include <chrono>
#include <condition_variable>
#include <mutex>

using ::android::hardware::ProcessState;
using ::android::hardware::nfc::V1_0::INfc;
using ::android::hardware::nfc::V1_0::INfcClientCallback;
using ::android::hardware::nfc::V1_0::NfcEvent;
@@ -66,12 +64,6 @@ class NfcHidlTest : public ::testing::Test {
    nfc_ = INfc::getService(NFC_NCI_SERVICE_NAME, passthrough);
    ASSERT_NE(nfc_, nullptr);

    // TODO:b/31748996
    if (nfc_->isRemote()) {
      ProcessState::self()->setThreadPoolMaxThreadCount(1);
      ProcessState::self()->startThreadPool();
    }

    nfc_cb_ = new NfcClientCallback(*this);
    ASSERT_NE(nfc_cb_, nullptr);