Home
last modified time | relevance | path

Searched refs:TvSettings (Results 1 – 11 of 11) sorted by relevance

/packages/apps/TV/src/com/android/tv/
DTvOptionsManager.java24 import com.android.tv.util.TvSettings;
25 import com.android.tv.util.TvSettings.PipLayout;
26 import com.android.tv.util.TvSettings.PipSize;
27 import com.android.tv.util.TvSettings.PipSound;
90 if (mPipSound == TvSettings.PIP_SOUND_MAIN) { in getOptionString()
92 } else if (mPipSound == TvSettings.PIP_SOUND_PIP_WINDOW) { in getOptionString()
97 if (mPipLayout == TvSettings.PIP_LAYOUT_BOTTOM_RIGHT) { in getOptionString()
99 } else if (mPipLayout == TvSettings.PIP_LAYOUT_TOP_RIGHT) { in getOptionString()
101 } else if (mPipLayout == TvSettings.PIP_LAYOUT_TOP_LEFT) { in getOptionString()
103 } else if (mPipLayout == TvSettings.PIP_LAYOUT_BOTTOM_LEFT) { in getOptionString()
[all …]
DMainActivity.java134 import com.android.tv.util.TvSettings;
135 import com.android.tv.util.TvSettings.PipSound;
286 @PipSound private int mPipSound = TvSettings.PIP_SOUND_MAIN; // Default
1556 if (mPipSound == TvSettings.PIP_SOUND_MAIN) { in setVolumeByAudioFocusStatus()
2158 String id = TvSettings.getMultiAudioId(this);
2159 String language = TvSettings.getMultiAudioLanguage(this);
2160 int channelCount = TvSettings.getMultiAudioChannelCount(this);
2712 if (mPipSound == TvSettings.PIP_SOUND_PIP_WINDOW) {
2714 mPipSound = TvSettings.PIP_SOUND_MAIN;
2874 if (mPipSound == TvSettings.PIP_SOUND_MAIN) {
[all …]
/packages/apps/TV/src/com/android/tv/parental/
DParentalControlSettings.java25 import com.android.tv.util.TvSettings;
26 import com.android.tv.util.TvSettings.ContentRatingLevel;
70 TvSettings.addContentRatingSystem(mContext, contentRatingSystem.getId()); in setContentRatingSystemEnabled()
82 TvSettings.removeContentRatingSystem(mContext, contentRatingSystem.getId()); in setContentRatingSystemEnabled()
87 return TvSettings.hasContentRatingSystem(mContext, contentRatingSystem.getId()); in isContentRatingSystemEnabled()
110 if (currentLevel != TvSettings.CONTENT_RATING_LEVEL_CUSTOM) { in updateRatingsForCurrentLevel()
122 if (currentLevel == TvSettings.CONTENT_RATING_LEVEL_CUSTOM) { in setContentRatingLevel()
125 TvSettings.setContentRatingLevel(mContext, level); in setContentRatingLevel()
126 if (level == TvSettings.CONTENT_RATING_LEVEL_CUSTOM) { in setContentRatingLevel()
138 return TvSettings.getContentRatingLevel(mContext); in getContentRatingLevel()
[all …]
DContentRatingLevelPolicy.java23 import com.android.tv.util.TvSettings;
24 import com.android.tv.util.TvSettings.ContentRatingLevel;
39 if (level == TvSettings.CONTENT_RATING_LEVEL_NONE) { in getRatingsForLevel()
41 } else if (level == TvSettings.CONTENT_RATING_LEVEL_HIGH) { in getRatingsForLevel()
43 } else if (level == TvSettings.CONTENT_RATING_LEVEL_MEDIUM) { in getRatingsForLevel()
45 } else if (level == TvSettings.CONTENT_RATING_LEVEL_LOW) { in getRatingsForLevel()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DRatingsFragment.java39 import com.android.tv.util.TvSettings;
40 import com.android.tv.util.TvSettings.ContentRatingLevel;
55 sLevelResourceIdMap.put(TvSettings.CONTENT_RATING_LEVEL_NONE, in sLevelResourceIdMap.put()
57 sLevelResourceIdMap.put(TvSettings.CONTENT_RATING_LEVEL_HIGH, in sLevelResourceIdMap.put()
59 sLevelResourceIdMap.put(TvSettings.CONTENT_RATING_LEVEL_MEDIUM, in sLevelResourceIdMap.put()
61 sLevelResourceIdMap.put(TvSettings.CONTENT_RATING_LEVEL_LOW, in sLevelResourceIdMap.put()
63 sLevelResourceIdMap.put(TvSettings.CONTENT_RATING_LEVEL_CUSTOM, in sLevelResourceIdMap.put()
67 sDescriptionResourceIdMap.put(TvSettings.CONTENT_RATING_LEVEL_HIGH, in sDescriptionResourceIdMap.put()
69 sDescriptionResourceIdMap.put(TvSettings.CONTENT_RATING_LEVEL_MEDIUM, in sDescriptionResourceIdMap.put()
71 sDescriptionResourceIdMap.put(TvSettings.CONTENT_RATING_LEVEL_LOW, in sDescriptionResourceIdMap.put()
[all …]
DRatingSystemsFragment.java30 import com.android.tv.util.TvSettings;
130 if (TvSettings.isContentRatingSystemSet(tvActivity)) { in setDefaultRatingSystemsIfNeeded()
/packages/apps/TV/src/com/android/tv/ui/
DTvViewUiManager.java49 import com.android.tv.util.TvSettings;
187 if (mPipStarted && getPipLayout() == TvSettings.PIP_LAYOUT_SIDE_BY_SIDE) { in startShrunkenTvView()
264 mSharedPreferences.edit().putInt(TvSettings.PREF_DISPLAY_MODE, displayMode).apply(); in setDisplayMode()
275 .getInt(TvSettings.PREF_DISPLAY_MODE, DisplayMode.MODE_NORMAL); in restoreDisplayMode()
332 TvSettings.setPipLayout(mContext, pipLayout); in setPipLayout()
335 if (mPipLayout == TvSettings.PIP_LAYOUT_SIDE_BY_SIDE) { in setPipLayout()
349 setPipLayout(TvSettings.getPipLayout(mContext), false); in restorePipLayout()
381 if (mPipLayout != TvSettings.PIP_LAYOUT_SIDE_BY_SIDE) { in hidePipForPause()
411 TvSettings.setPipSize(mContext, pipSize); in setPipSize()
421 setPipSize(TvSettings.getPipSize(mContext), false); in restorePipSize()
[all …]
/packages/apps/TV/src/com/android/tv/menu/
DPipOptionsRowAdapter.java28 import com.android.tv.util.TvSettings;
103 boolean newEnabled = mTvViewUiManager.getPipLayout() != TvSettings.PIP_LAYOUT_SIDE_BY_SIDE; in updateSizeAction()
126 int newLayout = (oldLayout + 1) % (TvSettings.PIP_LAYOUT_LAST + 1); in executeAction()
132 int newSize = (oldSize + 1) % (TvSettings.PIP_SIZE_LAST + 1); in executeAction()
/packages/apps/TV/src/com/android/tv/dialog/
DPinDialogFragment.java48 import com.android.tv.util.TvSettings;
122 mDisablePinUntil = TvSettings.getDisablePinUntil(getActivity()); in onCreate()
256 TvSettings.setDisablePinUntil(getActivity(), mDisablePinUntil);
322 mSharedPreferences.edit().putString(TvSettings.PREF_PIN, pin).apply();
327 mPin = mSharedPreferences.getString(TvSettings.PREF_PIN, "");
/packages/apps/TV/src/com/android/tv/util/
DTvSettings.java34 public final class TvSettings { class
35 private TvSettings() {} in TvSettings() method in TvSettings
/packages/apps/TvSettings/Settings/
DAndroid.mk19 LOCAL_PACKAGE_NAME := TvSettings