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

Commit 6847003d authored by Robert Shih's avatar Robert Shih
Browse files

Fix clearkey aidl dead code

Bug: 200055138
Test: atest VtsAidlHalDrmTargetTest
Change-Id: I3cafbf14c98831ddc3feb6a7bbfed17ebc20a3d9
parent 6b47f475
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -706,7 +706,6 @@ void DrmPlugin::installSecureStop(const std::vector<uint8_t>& sessionId) {
        if (!res.isOk() && res.getExceptionCode() == EX_SERVICE_SPECIFIC) {
            status = static_cast<Status>(res.getServiceSpecificError());
        }
        return toNdkScopedAStatus(status);
        if (Status::OK != status) break;
    }

@@ -811,8 +810,6 @@ void DrmPlugin::sendEvent(::aidl::android::hardware::drm::EventType in_eventType
                                          const std::vector<uint8_t>& in_data) {
    if (mListener != nullptr) {
        mListener->onEvent(in_eventType, in_sessionId, in_data);
    } else if (mListener != nullptr) {
        mListener->onEvent(in_eventType, in_sessionId, in_data);
    } else {
        ALOGE("Null event listener, event not sent");
    }
@@ -823,8 +820,6 @@ void DrmPlugin::sendExpirationUpdate(const std::vector<uint8_t>& in_sessionId,
                                                     int64_t in_expiryTimeInMS) {
    if (mListener != nullptr) {
        mListener->onExpirationUpdate(in_sessionId, in_expiryTimeInMS);
    } else if (mListener != nullptr) {
        mListener->onExpirationUpdate(in_sessionId, in_expiryTimeInMS);
    } else {
        ALOGE("Null event listener, event not sent");
    }
@@ -837,8 +832,6 @@ void DrmPlugin::sendKeysChange(
        bool in_hasNewUsableKey) {
    if (mListener != nullptr) {
        mListener->onKeysChange(in_sessionId, in_keyStatusList, in_hasNewUsableKey);
    } else if (mListener != nullptr) {
        mListener->onKeysChange(in_sessionId, in_keyStatusList, in_hasNewUsableKey);
    } else {
        ALOGE("Null event listener, event not sent");
    }