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

Commit aea9d25d authored by Yixiao Luo's avatar Yixiao Luo
Browse files

Bind the hardware TIS only when needed

Bug: 206700301
Change-Id: I0dd6247f7a81556f6629e1a31fe5018838263f21
parent c6b3bd2d
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -295,6 +295,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.