Home
last modified time | relevance | path

Searched refs:servicePref (Results 1 – 5 of 5) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessibility/
DAccessibilityFragment.java167 RestrictedPreference servicePref = findPreference(key); in refreshServices() local
168 if (servicePref == null) { in refreshServices()
169 servicePref = new RestrictedPreference(group.getContext()); in refreshServices()
170 servicePref.setKey(key); in refreshServices()
172 servicePref.setTitle(title); in refreshServices()
173 servicePref.setSummary(serviceEnabled ? R.string.settings_on : R.string.settings_off); in refreshServices()
174 AccessibilityServiceFragment.prepareArgs(servicePref.getExtras(), in refreshServices()
181 servicePref.setEnabled(true); in refreshServices()
182 servicePref.setFragment(AccessibilityServiceFragment.class.getName()); in refreshServices()
189 servicePref.setDisabledByAdmin(admin); in refreshServices()
[all …]
DAccessibilityShortcutFragment.java82 final Preference servicePref = findPreference(KEY_SERVICE); in updateServicePrefSummary() local
91 if (servicePref != null) { in updateServicePrefSummary()
92 servicePref.setSummary(service.getResolveInfo().loadLabel(packageManager)); in updateServicePrefSummary()
109 final Preference servicePref = findPreference(KEY_SERVICE); in setAccessibilityShortcutEnabled() local
110 servicePref.setSummary(null); in setAccessibilityShortcutEnabled()
112 final Preference servicePref = findPreference(KEY_SERVICE); in setAccessibilityShortcutEnabled() local
113 servicePref.setEnabled(enabled); in setAccessibilityShortcutEnabled()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/accessibility/
DAccessibilityState.java227 PreferenceCompat servicePref = mPreferenceCompatManager.getOrCreatePrefCompat(key); in refreshServices() local
228 servicePref.setRestricted(true); in refreshServices()
229 servicePref.setTitle(title); in refreshServices()
230 servicePref.setSummary( in refreshServices()
238 servicePref.setExtras(extra); in refreshServices()
241 servicePref.setEnabled(true); in refreshServices()
242 servicePref.setNextState(ManagerUtil.STATE_ACCESSIBILITY_SERVICE); in refreshServices()
249 servicePref.setDisabledByAdmin(true); in refreshServices()
251 servicePref.setEnabled(false); in refreshServices()
253 servicePref.setNextState(null); in refreshServices()
[all …]
DAccessibilityShortcutState.java130 final PreferenceCompat servicePref = mPreferenceCompatManager.getOrCreatePrefCompat( in updateServicePrefSummary() local
140 if (servicePref != null) { in updateServicePrefSummary()
141 servicePref.setSummary( in updateServicePrefSummary()
148 mUIUpdateCallback.notifyUpdate(getStateIdentifier(), servicePref); in updateServicePrefSummary() local
163 final PreferenceCompat servicePref = mPreferenceCompatManager.getOrCreatePrefCompat( in setAccessibilityShortcutEnabled() local
165 servicePref.setSummary(""); in setAccessibilityShortcutEnabled()
167 final PreferenceCompat servicePref = mPreferenceCompatManager.getOrCreatePrefCompat( in setAccessibilityShortcutEnabled() local
169 servicePref.setEnabled(enabled); in setAccessibilityShortcutEnabled()
170 mUIUpdateCallback.notifyUpdate(getStateIdentifier(), servicePref); in setAccessibilityShortcutEnabled() local
/packages/apps/Settings/src/com/android/settings/applications/
DProcessStatsDetail.java372 CancellablePreference servicePref = new CancellablePreference(getPrefContext()); in fillServicesSection() local
373 servicePref.setSelectable(false); in fillServicesSection()
374 servicePref.setTitle(label); in fillServicesSection()
375 servicePref.setSummary(ProcStatsPackageEntry.getFrequency( in fillServicesSection()
377 processPref.addPreference(servicePref); in fillServicesSection()
378 mServiceMap.put(new ComponentName(service.mPackage, service.mName), servicePref); in fillServicesSection()