Merge "Get session callback for tests" into udc-dev am: 7206bf0915

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22797162

Change-Id: I005d04ed6d012b884d1e026353594f21d33e0deb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Shubang Lu
2023-04-22 03:26:37 +00:00
committed by Automerger Merge Worker
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);
}
}
}