From ec8c2df33b3c0d8fc5300bdf2d0ea1f36fc395ca Mon Sep 17 00:00:00 2001 From: Amy Date: Thu, 20 Feb 2020 16:24:26 -0800 Subject: [PATCH] Add a TV_TUNER_RESOURCE_MGR_SERVICE in Android Framework Context Test: manual Bug: 147380513 Change-Id: Id026b59bcec4a1ead9aa7ba900e72ee074c7ef81 Merged-In: Ifedc4e6f120e711aadffdf715d8720e0b64fbe16 --- core/java/android/content/Context.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 4527d8ed83aa4..8794173cb92e0 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -3356,6 +3356,7 @@ public abstract class Context { CONSUMER_IR_SERVICE, //@hide: TRUST_SERVICE, TV_INPUT_SERVICE, + //@hide: TV_TUNER_RESOURCE_MGR_SERVICE, //@hide: NETWORK_SCORE_SERVICE, USAGE_STATS_SERVICE, MEDIA_SESSION_SERVICE, @@ -4585,6 +4586,17 @@ public abstract class Context { */ public static final String TV_INPUT_SERVICE = "tv_input"; + /** + * Use with {@link #getSystemService(String)} to retrieve a + * {@link android.media.tv.tunerresourcemanager.TunerResourceManager} for interacting with TV + * tuner resources on the device. + * + * @see #getSystemService(String) + * @see android.media.tv.TunerResourceManager + * @hide + */ + public static final String TV_TUNER_RESOURCE_MGR_SERVICE = "tv_tuner_resource_mgr"; + /** * {@link android.net.NetworkScoreManager} for managing network scoring. * @see #getSystemService(String)