Home
last modified time | relevance | path

Searched refs:autoRevokeSwitch (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DAppPermissionsFragment.java428 SwitchPreference autoRevokeSwitch = in addAutoRevokePreferences() local
430 autoRevokeSwitch.setLayoutResource(R.layout.preference_permissions_revoke); in addAutoRevokePreferences()
431 autoRevokeSwitch.setOnPreferenceClickListener((preference) -> { in addAutoRevokePreferences()
432 mViewModel.setAutoRevoke(autoRevokeSwitch.isChecked()); in addAutoRevokePreferences()
433 android.util.Log.w(LOG_TAG, "setAutoRevoke " + autoRevokeSwitch.isChecked()); in addAutoRevokePreferences()
436 autoRevokeSwitch.setTitle(isHibernationEnabled() ? R.string.unused_apps_label in addAutoRevokePreferences()
438 autoRevokeSwitch.setSummary(R.string.auto_revoke_summary); in addAutoRevokePreferences()
439 autoRevokeSwitch.setKey(AUTO_REVOKE_SWITCH_KEY); in addAutoRevokePreferences()
446 unusedAppsCategory.addPreference(autoRevokeSwitch); in addAutoRevokePreferences()
448 screen.addPreference(autoRevokeSwitch); in addAutoRevokePreferences()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DAppPermissionGroupsFragment.java439 SwitchPreference autoRevokeSwitch = new SwitchPreference(context); in addAutoRevokePreferences() local
440 autoRevokeSwitch.setOnPreferenceClickListener((preference) -> { in addAutoRevokePreferences()
441 mViewModel.setAutoRevoke(autoRevokeSwitch.isChecked()); in addAutoRevokePreferences()
450 autoRevokeSwitch.setSummary(isArchivingEnabled() ? R.string.unused_apps_summary_v2 in addAutoRevokePreferences()
458 autoRevokeSwitch.setTitle(switchTitleId); in addAutoRevokePreferences()
459 autoRevokeSwitch.setKey(AUTO_REVOKE_SWITCH_KEY); in addAutoRevokePreferences()
460 autoRevokeCategory.addPreference(autoRevokeSwitch); in addAutoRevokePreferences()
487 SwitchPreference autoRevokeSwitch = autoRevokeCategory.findPreference( in setAutoRevokeToggleState() local
492 autoRevokeSwitch.setChecked(state.isEligibleForHibernation()); in setAutoRevokeToggleState()
493 autoRevokeSwitch.setEnabled(!state.isExemptBySystem()); in setAutoRevokeToggleState()