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

Commit 71d430e2 authored by Dongwon Kang's avatar Dongwon Kang Committed by android-build-merger
Browse files

Merge "MediaResourceMonitor: Change argument type from string to int" into nyc-dev

am: bf57c8ad

* commit 'bf57c8ad':
  MediaResourceMonitor: Change argument type from string to int
parents d4f4328c bf57c8ad
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -96,8 +96,11 @@ static void notifyResourceGranted(int pid, const Vector<MediaResource> &resource
    if (binder != NULL) {
        sp<IMediaResourceMonitor> service = interface_cast<IMediaResourceMonitor>(binder);
        for (size_t i = 0; i < resources.size(); ++i) {
            service->notifyResourceGranted(pid, String16(asString(resources[i].mType)),
                    String16(asString(resources[i].mSubType)), resources[i].mValue);
            if (resources[i].mSubType == MediaResource::kAudioCodec) {
                service->notifyResourceGranted(pid, IMediaResourceMonitor::TYPE_AUDIO_CODEC);
            } else if (resources[i].mSubType == MediaResource::kVideoCodec) {
                service->notifyResourceGranted(pid, IMediaResourceMonitor::TYPE_VIDEO_CODEC);
            }
        }
    }
}