TIF: Change the isForeground API to isVisible and isMainSession

isForeground is not a good approach to indentify current channel info

And add a permission for tuned info.

Bug: 180482268
Test: atest CtsPermission2TestCases
Test: atest TvInputManagerTest#testGetCurrentTunedInfos
Change-Id: Ib1c1f2da719336ae856684e843b06f8b9b442723
This commit is contained in:
shubang
2021-04-15 17:37:13 -07:00
committed by Shubang Lu
parent a0acf1f6f7
commit e8c3a42409
7 changed files with 108 additions and 44 deletions

View File

@@ -426,6 +426,7 @@
<uses-permission android:name="android.permission.ACCESS_SHARED_LIBRARIES" />
<!-- Permissions required for CTS test - TVInputManagerTest -->
<uses-permission android:name="android.permission.ACCESS_TUNED_INFO" />
<uses-permission android:name="android.permission.TV_INPUT_HARDWARE" />
<!-- Permission needed for CTS test - PrivilegedLocationPermissionTest -->