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.java24 import com.android.tv.util.TvSettings;
25 import com.android.tv.util.TvSettings.ContentRatingLevel;
68 TvSettings.addContentRatingSystem(mContext, contentRatingSystem.getId()); in setContentRatingSystemEnabled()
80 TvSettings.removeContentRatingSystem(mContext, contentRatingSystem.getId()); in setContentRatingSystemEnabled()
85 return TvSettings.hasContentRatingSystem(mContext, contentRatingSystem.getId()); in isContentRatingSystemEnabled()
108 if (currentLevel != TvSettings.CONTENT_RATING_LEVEL_CUSTOM) { in updateRatingsForCurrentLevel()
110 if (currentLevel != TvSettings.CONTENT_RATING_LEVEL_NONE) { in updateRatingsForCurrentLevel()
124 if (currentLevel == TvSettings.CONTENT_RATING_LEVEL_CUSTOM) { in setContentRatingLevel()
127 TvSettings.setContentRatingLevel(mContext, level); in setContentRatingLevel()
128 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.java41 import com.android.tv.util.TvSettings;
42 import com.android.tv.util.TvSettings.ContentRatingLevel;
67 sLevelResourceIdMap.put(TvSettings.CONTENT_RATING_LEVEL_NONE, R.string.option_rating_none); in sLevelResourceIdMap.put()
68 sLevelResourceIdMap.put(TvSettings.CONTENT_RATING_LEVEL_HIGH, R.string.option_rating_high); in sLevelResourceIdMap.put()
70 TvSettings.CONTENT_RATING_LEVEL_MEDIUM, R.string.option_rating_medium); in sLevelResourceIdMap.put()
71 sLevelResourceIdMap.put(TvSettings.CONTENT_RATING_LEVEL_LOW, R.string.option_rating_low); in sLevelResourceIdMap.put()
73 TvSettings.CONTENT_RATING_LEVEL_CUSTOM, R.string.option_rating_custom); in sLevelResourceIdMap.put()
77 TvSettings.CONTENT_RATING_LEVEL_HIGH, R.string.option_rating_high_description); in sDescriptionResourceIdMap.put()
79 TvSettings.CONTENT_RATING_LEVEL_MEDIUM, R.string.option_rating_medium_description); in sDescriptionResourceIdMap.put()
81 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.java40 import com.android.tv.util.TvSettings;
126 mDisablePinUntil = TvSettings.getDisablePinUntil(getActivity()); in onCreate()
277 TvSettings.setDisablePinUntil(getActivity(), mDisablePinUntil);
343 mSharedPreferences.edit().putString(TvSettings.PREF_PIN, pin).apply();
348 mPin = mSharedPreferences.getString(TvSettings.PREF_PIN, "");
/packages/apps/TvSettings/Settings/tests/robotests/
DAndroid.bp2 // TvSettings Robolectric test target. #
12 instrumentation_for: "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.java56 import com.android.tv.util.TvSettings;
365 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.java155 import com.android.tv.util.TvSettings;
1946 String id = TvSettings.getMultiAudioId(this);
1947 String language = TvSettings.getMultiAudioLanguage(this);
1948 int channelCount = TvSettings.getMultiAudioChannelCount(this);
2640 TvSettings.setMultiAudioId(this, track.getId());
2641 TvSettings.setMultiAudioLanguage(this, track.getLanguage());
2642 TvSettings.setMultiAudioChannelCount(this, track.getAudioChannelCount());
2647 TvSettings.setMultiAudioId(this, null);
2648 TvSettings.setMultiAudioLanguage(this, null);
2649 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.bp16 name: "TvSettings",