Fix Tuner#shareFrontendFromTuner()

Bug: 195154259
Bug: 195331006
Test: android.media.tv.tuner.cts.TunerTest (all 29 tests pass)
Change-Id: Ia1618b741b0d5bd2b03ef301d4950e020f9dc9fd
diff --git a/services/tuner/TunerDemux.cpp b/services/tuner/TunerDemux.cpp
index 1122368..99032ad 100644
--- a/services/tuner/TunerDemux.cpp
+++ b/services/tuner/TunerDemux.cpp
@@ -56,6 +56,19 @@
     return Status::ok();
 }
 
+Status TunerDemux::setFrontendDataSourceById(int frontendId) {
+    if (mDemux == nullptr) {
+        ALOGE("IDemux is not initialized");
+        return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE));
+    }
+
+    Result res = mDemux->setFrontendDataSource(frontendId);
+    if (res != Result::SUCCESS) {
+        return ::ndk::ScopedAStatus::fromServiceSpecificError(static_cast<int32_t>(res));
+    }
+    return Status::ok();
+}
+
 Status TunerDemux::openFilter(
         int type, int subType, int bufferSize, const std::shared_ptr<ITunerFilterCallback>& cb,
         std::shared_ptr<ITunerFilter>* _aidl_return) {