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

Commit 116aa48f authored by Yixiao Luo's avatar Yixiao Luo Committed by Android (Google) Code Review
Browse files

Merge "Bind the hardware TIS only when needed" into main

parents 94db8777 aea9d25d
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -309,6 +309,24 @@ class TvInputHardwareManager implements TvInputHal.Callback {
        }
    }

    public SparseArray<String> getHardwareInputIdMap() {
        synchronized (mLock) {
            return mHardwareInputIdMap.clone();
        }
    }

    public SparseArray<String> getHdmiInputIdMap() {
        synchronized (mLock) {
            return mHdmiInputIdMap.clone();
        }
    }

    public Map<String, TvInputInfo> getInputMap() {
        synchronized (mLock) {
            return Collections.unmodifiableMap(mInputMap);
        }
    }

    public Map<String, List<String>> getHdmiParentInputMap() {
        synchronized (mLock) {
            return Collections.unmodifiableMap(mHdmiParentInputMap);
+247 −82

File changed.

Preview size limit exceeded, changes collapsed.