Home
last modified time | relevance | path

Searched refs:mPreferenceCompat (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/display/daydream/
DAllowTurnScreenOffWithWakeLockPC.java57 && !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()
DSleepTimePC.java47 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/
DLocationModePC.java54 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/
DAccessPointPreferenceController.java72 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()
DIpSettingsPreferenceController.java62 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()
DProxySettingsPreferenceController.java63 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()
DForgetNetworkPreferenceController.java78 mPreferenceCompat.setVisible(wifiConfiguration != null); in update()
80 mPreferenceCompat, mContext, mAccessPoint, this); in update()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DAbstractPreferenceController.java38 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()
DRestrictedPreferenceController.java81 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/
DInputMethodPreferenceController.java110 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/
DSoundFormatPreferenceController.java77 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()
DHdrFormatPreferenceController.java71 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/
DEnableDisablePreferenceController.java98 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()
DForceStopPreferenceController.java68 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()
104mPreferenceCompat.setVisible(getResultCode() != Activity.RESULT_CANCELED); in update()
DNotificationsPreferenceController.java72 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()
DUninstallPreferenceController.java54 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()
DAppStoragePreferenceController.java56 mPreferenceCompat.setTitle(ResourcesUtil.getString(mContext, in update()
62 mPreferenceCompat.setSummary(ResourcesUtil.getString(mContext, in update()
65 mPreferenceCompat.setSummary(ResourcesUtil.getString( in update()
DClearCachePreferenceController.java52 mPreferenceCompat.setTitle(ResourcesUtil.getString( in update()
54 mPreferenceCompat.setSummary(mClearingCache in update()
58 mPreferenceCompat.setEnabled(!mClearingCache && mAppEntry.cacheSize > 0); in update()
DClearDataPreferenceController.java52 mPreferenceCompat.setTitle( in update()
54 mPreferenceCompat.setSummary(mClearingData in update()
DClearDefaultsPreferenceController.java56 mPreferenceCompat.setTitle(ResourcesUtil.getString( in update()
58 mPreferenceCompat.setSummary(AppUtils.getLaunchByDefaultSummary( in update()
DRecentAppsPreferenceController.java126 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/
DEnterpriseInstalledPackagesPreferenceController.java55 mPreferenceCompat.setSummary(ResourcesUtil.getQuantityString( in update()
58 mPreferenceCompat.setVisible(available); in update()
DAdminGrantedPermissionsPreferenceControllerBase.java58 mPreferenceCompat.setSummary(ResourcesUtil.getQuantityString(mContext, in update()
62 mPreferenceCompat.setVisible(mHasApps); in update()
DCaCertsCurrentUserPreferenceController.java45 mPreferenceCompat.setTitle(mFeatureProvider.isInCompMode() in update()
DCaCertsPreferenceControllerBase.java46 mPreferenceCompat.setSummary(ResourcesUtil.getQuantityString( in update()

12