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

Commit 6d28b796 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Update TODO docs in TunerClient on resource id/handle mapping" into sc-dev am: 93203cb1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14356494

Change-Id: Id2d9120ac5080d4cb88bc8cc0781a39ab23f9582
parents 31d88bce 93203cb1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -326,6 +326,7 @@ void TunerClient::updateTunerResources() {
    // TODO: update Demux, Descrambler.
}

// TODO: remove after migration to Tuner Service is done.
void TunerClient::updateFrontendResources() {
    vector<FrontendId> ids = getFrontendIds();
    if (ids.size() == 0) {
@@ -446,6 +447,7 @@ sp<ILnb> TunerClient::openHidlLnbByName(string name, LnbId& lnbId) {
    return lnb;
}

// TODO: remove after migration to Tuner Service is done.
vector<int> TunerClient::getLnbHandles() {
    vector<int> lnbHandles;
    if (mTuner != NULL) {
@@ -612,12 +614,13 @@ FrontendInfo TunerClient::frontendInfoAidlToHidl(TunerFrontendInfo aidlFrontendI
    return hidlFrontendInfo;
}

// TODO: remove after migration to Tuner Service is done.
int TunerClient::getResourceIdFromHandle(int handle, int /*resourceType*/) {
    return (handle & 0x00ff0000) >> 16;
}

// TODO: remove after migration to Tuner Service is done.
int TunerClient::getResourceHandleFromId(int id, int resourceType) {
    // TODO: build up randomly generated id to handle mapping
    return (resourceType & 0x000000ff) << 24
            | (id << 16)
            | (mResourceRequestCount++ & 0xffff);