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.java252 RestrictedPreference servicePref = findPreference(key); in refreshServices() local
253 if (servicePref == null) { in refreshServices()
254 servicePref = new RestrictedPreference(getContext()); in refreshServices()
255 servicePref.setKey(key); in refreshServices()
257 servicePref.setTitle(title); in refreshServices()
258 servicePref.setSummary(serviceEnabled ? R.string.settings_on : R.string.settings_off); in refreshServices()
259 AccessibilityServiceFragment.prepareArgs(servicePref.getExtras(), in refreshServices()
266 servicePref.setEnabled(true); in refreshServices()
267 servicePref.setFragment(AccessibilityServiceFragment.class.getName()); in refreshServices()
274 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/
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
DAccessibilityState.java252 PreferenceCompat servicePref = mPreferenceCompatManager.getOrCreatePrefCompat(key); in refreshServices() local
253 servicePref.setRestricted(true); in refreshServices()
254 servicePref.setTitle(title); in refreshServices()
255 servicePref.setSummary( in refreshServices()
263 servicePref.setExtras(extra); in refreshServices()
266 servicePref.setEnabled(true); in refreshServices()
267 servicePref.setNextState(ManagerUtil.STATE_ACCESSIBILITY_SERVICE); in refreshServices()
274 servicePref.setDisabledByAdmin(true); in refreshServices()
276 servicePref.setEnabled(false); in refreshServices()
278 servicePref.setNextState(null); in refreshServices()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DProcessStatsDetail.java371 CancellablePreference servicePref = new CancellablePreference(getPrefContext()); in fillServicesSection() local
372 servicePref.setSelectable(false); in fillServicesSection()
373 servicePref.setTitle(label); in fillServicesSection()
374 servicePref.setSummary(ProcStatsPackageEntry.getFrequency( in fillServicesSection()
376 processPref.addPreference(servicePref); in fillServicesSection()
377 mServiceMap.put(new ComponentName(service.mPackage, service.mName), servicePref); in fillServicesSection()