/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/display/daydream/ |
D | AllowTurnScreenOffWithWakeLockPC.java | 57 && !mPreferenceCompat.isDisabledByAdmin()) { in updateAllowTurnScreenOffWithWakeLockPref() 58 mPreferenceCompat.setEnabled(false); in updateAllowTurnScreenOffWithWakeLockPref() 60 mPreferenceCompat.setType(PreferenceCompat.TYPE_SWITCH); in updateAllowTurnScreenOffWithWakeLockPref() 64 mPreferenceCompat.setChecked(false); in updateAllowTurnScreenOffWithWakeLockPref() 66 mPreferenceCompat.setEnabled(false); in updateAllowTurnScreenOffWithWakeLockPref() 69 mPreferenceCompat.setChecked(false); in updateAllowTurnScreenOffWithWakeLockPref() 71 mPreferenceCompat.setEnabled(true); in updateAllowTurnScreenOffWithWakeLockPref() 74 mPreferenceCompat.setChecked(true); in updateAllowTurnScreenOffWithWakeLockPref() 76 mPreferenceCompat.setEnabled(true); in updateAllowTurnScreenOffWithWakeLockPref() 82 return mPreferenceCompat.getChecked() == STATUS_ON; in isChecked()
|
D | SleepTimePC.java | 47 mPreferenceCompat.setHasOnPreferenceChangeListener(true); in update() 48 mPreferenceCompat.setType(PreferenceCompat.TYPE_LIST); in update() 51 mPreferenceCompat.setEnabled(false); in update() 53 mPreferenceCompat.setEntries( in update() 55 mPreferenceCompat.setEntryValues( in update() 70 mPreferenceCompat.setValue(value); in setValue() 74 return mPreferenceCompat.getValue(); in getValue()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/privacy/ |
D | LocationModePC.java | 54 mPreferenceCompat.setHasOnPreferenceChangeListener(true); in init() 55 mPreferenceCompat.setType(PreferenceCompat.TYPE_LIST); in init() 56 mPreferenceCompat.setTitle(ResourcesUtil.getString(mContext, "location_status")); in init() 57 mPreferenceCompat.setEntries(new CharSequence[]{ in init() 60 mPreferenceCompat.setEntryValues(new CharSequence[]{ in init() 64 mPreferenceCompat.setEnabled(!hasUserRestriction()); in init() 66 mPreferenceCompat.setTitle(ResourcesUtil.getString(mContext, "location_status")); in init() 103 mPreferenceCompat.setValue(LOCATION_MODE_WIFI); in update() 105 mPreferenceCompat.setValue(LOCATION_MODE_OFF); in update() 109 mPreferenceCompat.setSummary( in update() [all …]
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/ |
D | AccessPointPreferenceController.java | 72 mPreferenceCompat.setTitle(mAccessPoint.getTitle()); in init() 73 mPreferenceCompat.setType(PreferenceCompat.TYPE_PREFERENCE_ACCESS_POINT); in init() 75 mPreferenceCompat.setSummary(ResourcesUtil.getString(mContext, "connected")); in init() 80 mPreferenceCompat.setExtras(extras); in init() 81 mPreferenceCompat.setNextState(ManagerUtil.STATE_WIFI_DETAILS); in init() 82 mPreferenceCompat.setIntent(null); in init() 87 mPreferenceCompat.setIntent(i); in init() 89 mPreferenceCompat.addInfo(ManagerUtil.INFO_WIFI_SIGNAL_LEVEL, mAccessPoint.getLevel()); in init() 90 mPreferenceCompat.setRestricted(true); in init()
|
D | IpSettingsPreferenceController.java | 62 mPreferenceCompat.setSummary(ipAssignment == IpConfiguration.IpAssignment.STATIC in update() 65 mPreferenceCompat.setIntent(new Intent(INTENT_IP_SETTINGS) in update() 68 mPreferenceCompat.setVisible(wifiConfiguration != null); in update() 70 mPreferenceCompat, mContext, mAccessPoint, this); in update()
|
D | ProxySettingsPreferenceController.java | 63 mPreferenceCompat.setSummary(proxySettings == IpConfiguration.ProxySettings.NONE in update() 66 mPreferenceCompat.setIntent(new Intent(INTENT_EDIT_PROXY_SETTINGS) in update() 70 mPreferenceCompat, mContext, mAccessPoint, this); in update()
|
D | ForgetNetworkPreferenceController.java | 78 mPreferenceCompat.setVisible(wifiConfiguration != null); in update() 80 mPreferenceCompat, mContext, mAccessPoint, this); in update()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/ |
D | AbstractPreferenceController.java | 38 protected final PreferenceCompat mPreferenceCompat; field in AbstractPreferenceController 47 mPreferenceCompat = mPreferenceCompatManager.getOrCreatePrefCompat(mKey); in AbstractPreferenceController() 57 mPreferenceCompat = mPreferenceCompatManager.getOrCreatePrefCompat(mKey); in AbstractPreferenceController() 87 if (mPreferenceCompat != null) { in notifyChange() 88 mUIUpdateCallback.notifyUpdate(mStateIdentifier, mPreferenceCompat); in notifyChange() 119 return mPreferenceCompat; in getPrefCompat()
|
D | RestrictedPreferenceController.java | 81 mPreferenceCompat.setEnabled(true); in update() 87 mPreferenceCompat.setSummary(disabledText); in update() 88 } else if (TextUtils.equals(disabledText, mPreferenceCompat.getSummary())) { in update() 90 mPreferenceCompat.setSummary(null); in update() 137 mPreferenceCompat.setEnabled(!disabled); in setDisabledByAdmin() 138 mPreferenceCompat.setDisabledByAdmin(mDisabledByAdmin); in setDisabledByAdmin()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/inputmethod/ |
D | InputMethodPreferenceController.java | 110 if (mPreferenceCompat.getChecked() == PreferenceCompat.STATUS_ON) { in handlePreferenceChange() 127 mUIUpdateCallback.notifyUpdate(mStateIdentifier, mPreferenceCompat); in setCheckedInternal() 164 final Intent intent = mPreferenceCompat.getIntent(); in handlePreferenceTreeClick() 188 mPreferenceCompat.setTitle(mTitle); in update() 189 mPreferenceCompat.setType(PreferenceCompat.TYPE_SWITCH); in update() 192 mPreferenceCompat.setIntent(null); in update() 197 mPreferenceCompat.setIntent(intent); in update() 228 mPreferenceCompat.setChecked(mInputMethodSettingValues.isEnabledImi(mImi)); in updatePreferenceViews() 230 mPreferenceCompat.setSummary(getSummaryString()); in updatePreferenceViews() 261 return mPreferenceCompat; in getPrefCompat()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/display/displaysound/ |
D | SoundFormatPreferenceController.java | 77 mPreferenceCompat.setVisible(!TextUtils.isEmpty(title)); in init() 78 mPreferenceCompat.setTitle(title); in init() 79 mPreferenceCompat.setType(PreferenceCompat.TYPE_SWITCH); in init() 85 mPreferenceCompat.setEnabled(getFormatPreferencesEnabledState()); in update() 86 mPreferenceCompat.setChecked(getFormatPreferenceCheckedState()); in update() 136 mPreferenceCompat.setChecked(false); in showWarningDialogOnEnableUnsupportedFormat() 137 mUIUpdateCallback.notifyUpdate(mStateIdentifier, mPreferenceCompat); in showWarningDialogOnEnableUnsupportedFormat() 186 return mPreferenceCompat.getVisible() == PreferenceCompat.STATUS_ON; in isAvailable() 190 return mPreferenceCompat; in getPreferenceCompat()
|
D | HdrFormatPreferenceController.java | 71 mPreferenceCompat.setTitle(title); in init() 78 mPreferenceCompat.setType(PreferenceCompat.TYPE_SWITCH); in update() 79 mPreferenceCompat.setChecked(!mUserDisabledHdrTypes.contains(mHdrType)); in update() 80 mPreferenceCompat.setEnabled(true); in update() 82 mPreferenceCompat.setType(PreferenceCompat.TYPE_PREFERENCE); in update() 88 final boolean enabled = mPreferenceCompat.getChecked() == PreferenceCompat.STATUS_ON; in handlePreferenceTreeClick()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/ |
D | EnableDisablePreferenceController.java | 98 mPreferenceCompat.setEnabled(enabled); in setEnabled() 153 mPreferenceCompat.setVisible(true); in update() 155 mPreferenceCompat.setTitle(ResourcesUtil.getString( in update() 158 mPreferenceCompat.setTitle(ResourcesUtil.getString(mContext, in update() 162 mPreferenceCompat.setVisible(false); in update() 164 if (mPreferenceCompat.isRestricted()) { in update() 167 mPreferenceCompat.setEnabled(true); in update()
|
D | ForceStopPreferenceController.java | 68 mPreferenceCompat.setTitle(ResourcesUtil.getString(mContext, in update() 77 mPreferenceCompat.setIntent(i); in update() 85 mPreferenceCompat.setVisible(false); in update() 88 mPreferenceCompat.setVisible(false); in update() 92 mPreferenceCompat.setVisible(true); in update() 104 … mPreferenceCompat.setVisible(getResultCode() != Activity.RESULT_CANCELED); in update()
|
D | NotificationsPreferenceController.java | 72 mPreferenceCompat.setTitle(ResourcesUtil.getString(mContext, in init() 79 mPreferenceCompat.setEnabled(isBlockable(mContext, mAppEntry.info)); in update() 81 mPreferenceCompat.setChecked( in update() 156 if (mPreferenceCompat.getChecked() != status) { in setNotificationsEnabled() 160 mPreferenceCompat.setChecked(checked); in setNotificationsEnabled() 161 mUIUpdateCallback.notifyUpdate(mStateIdentifier, mPreferenceCompat); in setNotificationsEnabled()
|
D | UninstallPreferenceController.java | 54 mPreferenceCompat.setVisible(true); in update() 55 mPreferenceCompat.setTitle(ResourcesUtil.getString( in update() 58 mPreferenceCompat.setVisible(true); in update() 59 mPreferenceCompat.setTitle(ResourcesUtil.getString( in update() 62 mPreferenceCompat.setVisible(false); in update()
|
D | AppStoragePreferenceController.java | 56 mPreferenceCompat.setTitle(ResourcesUtil.getString(mContext, in update() 62 mPreferenceCompat.setSummary(ResourcesUtil.getString(mContext, in update() 65 mPreferenceCompat.setSummary(ResourcesUtil.getString( in update()
|
D | ClearCachePreferenceController.java | 52 mPreferenceCompat.setTitle(ResourcesUtil.getString( in update() 54 mPreferenceCompat.setSummary(mClearingCache in update() 58 mPreferenceCompat.setEnabled(!mClearingCache && mAppEntry.cacheSize > 0); in update()
|
D | ClearDataPreferenceController.java | 52 mPreferenceCompat.setTitle( in update() 54 mPreferenceCompat.setSummary(mClearingData in update()
|
D | ClearDefaultsPreferenceController.java | 56 mPreferenceCompat.setTitle(ResourcesUtil.getString( in update() 58 mPreferenceCompat.setSummary(AppUtils.getLaunchByDefaultSummary( in update()
|
D | RecentAppsPreferenceController.java | 126 mPreferenceCompat.setVisible(false); in displayOnlyAllApps() 130 mPreferenceCompat.setVisible(true); in displayRecentApps() 152 mPreferenceCompat.addChildPrefCompat(pref); in displayRecentApps()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/enterprise/ |
D | EnterpriseInstalledPackagesPreferenceController.java | 55 mPreferenceCompat.setSummary(ResourcesUtil.getQuantityString( in update() 58 mPreferenceCompat.setVisible(available); in update()
|
D | AdminGrantedPermissionsPreferenceControllerBase.java | 58 mPreferenceCompat.setSummary(ResourcesUtil.getQuantityString(mContext, in update() 62 mPreferenceCompat.setVisible(mHasApps); in update()
|
D | CaCertsCurrentUserPreferenceController.java | 45 mPreferenceCompat.setTitle(mFeatureProvider.isInCompMode() in update()
|
D | CaCertsPreferenceControllerBase.java | 46 mPreferenceCompat.setSummary(ResourcesUtil.getQuantityString( in update()
|