Get session callback for tests

And implement binderDied

Bug: 277150736
Test: CTS
Change-Id: I8d865a66d1ecd8600adc68de4c6013d83fae0357
This commit is contained in:
shubang
2023-04-21 16:45:46 -07:00
parent 9c850b8a1b
commit 68f9df1609
2 changed files with 10 additions and 0 deletions

View File

@@ -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
* {@link android.media.tv.TvInputService.RecordingSession}

View File

@@ -2340,6 +2340,10 @@ public class TvInteractiveAppManagerService extends SystemService {
@Override
public void binderDied() {
synchronized (mLock) {
mSession = null;
clearSessionAndNotifyClientLocked(this);
}
}
}