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

Commit 68f9df16 authored by shubang's avatar shubang
Browse files

Get session callback for tests

And implement binderDied

Bug: 277150736
Test: CTS
Change-Id: I8d865a66d1ecd8600adc68de4c6013d83fae0357
parent 9c850b8a
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -396,6 +396,12 @@ public class TvRecordingClient {
        }
        }
    }
    }


    // For testing purposes only.
    /** @hide */
    public TvInputManager.SessionCallback getSessionCallback() {
        return mSessionCallback;
    }

    /**
    /**
     * Callback used to receive various status updates on the
     * Callback used to receive various status updates on the
     * {@link android.media.tv.TvInputService.RecordingSession}
     * {@link android.media.tv.TvInputService.RecordingSession}
+4 −0
Original line number Original line Diff line number Diff line
@@ -2340,6 +2340,10 @@ public class TvInteractiveAppManagerService extends SystemService {


        @Override
        @Override
        public void binderDied() {
        public void binderDied() {
            synchronized (mLock) {
                mSession = null;
                clearSessionAndNotifyClientLocked(this);
            }
        }
        }
    }
    }