Home
last modified time | relevance | path

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

/packages/apps/TV/src/com/android/tv/parental/
DParentalControlSettings.java25 import com.android.tv.util.TvSettings;
26 import com.android.tv.util.TvSettings.ContentRatingLevel;
66 TvSettings.addContentRatingSystem(mContext, contentRatingSystem.getId()); in setContentRatingSystemEnabled()
78 TvSettings.removeContentRatingSystem(mContext, contentRatingSystem.getId()); in setContentRatingSystemEnabled()
83 return TvSettings.hasContentRatingSystem(mContext, contentRatingSystem.getId()); in isContentRatingSystemEnabled()
106 if (currentLevel != TvSettings.CONTENT_RATING_LEVEL_CUSTOM) { in updateRatingsForCurrentLevel()
108 if (currentLevel != TvSettings.CONTENT_RATING_LEVEL_NONE) { 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()
[all …]
DContentRatingLevelPolicy.java22 import com.android.tv.util.TvSettings;
23 import com.android.tv.util.TvSettings.ContentRatingLevel;
38 if (level == TvSettings.CONTENT_RATING_LEVEL_NONE) { in getRatingsForLevel()
40 } else if (level == TvSettings.CONTENT_RATING_LEVEL_HIGH) { in getRatingsForLevel()
42 } else if (level == TvSettings.CONTENT_RATING_LEVEL_MEDIUM) { in getRatingsForLevel()
44 } else if (level == TvSettings.CONTENT_RATING_LEVEL_LOW) { in getRatingsForLevel()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DRatingsFragment.java40 import com.android.tv.util.TvSettings;
41 import com.android.tv.util.TvSettings.ContentRatingLevel;
56 sLevelResourceIdMap.put(TvSettings.CONTENT_RATING_LEVEL_NONE, R.string.option_rating_none); in sLevelResourceIdMap.put()
57 sLevelResourceIdMap.put(TvSettings.CONTENT_RATING_LEVEL_HIGH, R.string.option_rating_high); in sLevelResourceIdMap.put()
59 TvSettings.CONTENT_RATING_LEVEL_MEDIUM, R.string.option_rating_medium); in sLevelResourceIdMap.put()
60 sLevelResourceIdMap.put(TvSettings.CONTENT_RATING_LEVEL_LOW, R.string.option_rating_low); in sLevelResourceIdMap.put()
62 TvSettings.CONTENT_RATING_LEVEL_CUSTOM, R.string.option_rating_custom); in sLevelResourceIdMap.put()
66 TvSettings.CONTENT_RATING_LEVEL_HIGH, R.string.option_rating_high_description); in sDescriptionResourceIdMap.put()
68 TvSettings.CONTENT_RATING_LEVEL_MEDIUM, R.string.option_rating_medium_description); in sDescriptionResourceIdMap.put()
70 TvSettings.CONTENT_RATING_LEVEL_LOW, R.string.option_rating_low_description); in sDescriptionResourceIdMap.put()
[all …]
DRatingSystemsFragment.java29 import com.android.tv.util.TvSettings;
131 if (TvSettings.isContentRatingSystemSet(tvActivity)) { in setDefaultRatingSystemsIfNeeded()
/packages/apps/TV/src/com/android/tv/dialog/
DPinDialogFragment.java39 import com.android.tv.util.TvSettings;
113 mDisablePinUntil = TvSettings.getDisablePinUntil(getActivity()); in onCreate()
264 TvSettings.setDisablePinUntil(getActivity(), mDisablePinUntil);
330 mSharedPreferences.edit().putString(TvSettings.PREF_PIN, pin).apply();
335 mPin = mSharedPreferences.getString(TvSettings.PREF_PIN, "");
/packages/apps/TvSettings/Settings/tests/robotests/
DAndroid.mk21 LOCAL_INSTRUMENTATION_FOR := TvSettings
45 LOCAL_TEST_PACKAGE := TvSettings
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlaybackSideFragment.java30 import com.android.tv.util.TvSettings;
108 TvSettings.setDvrPlaybackTrackSettings(getContext(), mTrackType, mSelectedTrack); in onGuidedActionClicked()
DDvrPlaybackOverlayFragment.java55 import com.android.tv.util.TvSettings;
337 return TvSettings.getDvrPlaybackTrackSettings(getContext(), trackType); in getTrackSetting()
/packages/apps/TV/src/com/android/tv/util/
DTvSettings.java34 public final class TvSettings { class
72 private TvSettings() {} in TvSettings() method in TvSettings
/packages/apps/TV/src/com/android/tv/
DMainActivity.java145 import com.android.tv.util.TvSettings;
1925 String id = TvSettings.getMultiAudioId(this);
1926 String language = TvSettings.getMultiAudioLanguage(this);
1927 int channelCount = TvSettings.getMultiAudioChannelCount(this);
2603 TvSettings.setMultiAudioId(this, track.getId());
2604 TvSettings.setMultiAudioLanguage(this, track.getLanguage());
2605 TvSettings.setMultiAudioChannelCount(this, track.getAudioChannelCount());
2610 TvSettings.setMultiAudioId(this, null);
2611 TvSettings.setMultiAudioLanguage(this, null);
2612 TvSettings.setMultiAudioChannelCount(this, 0);
/packages/apps/TV/src/com/android/tv/ui/
DTvViewUiManager.java49 import com.android.tv.util.TvSettings;
265 mSharedPreferences.edit().putInt(TvSettings.PREF_DISPLAY_MODE, displayMode).apply(); in setDisplayMode()
274 mSharedPreferences.getInt(TvSettings.PREF_DISPLAY_MODE, DisplayMode.MODE_NORMAL); in restoreDisplayMode()
/packages/apps/TvSettings/Settings/
DAndroid.mk19 LOCAL_PACKAGE_NAME := TvSettings