/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | AccessibilityShortcutPreferenceFragment.java | 64 protected ShortcutPreference mShortcutPreference; field in AccessibilityShortcutPreferenceFragment 113 mShortcutPreference = new ShortcutPreference(getPrefContext(), /* attrs= */ null); in onCreateView() 114 mShortcutPreference.setPersistent(false); in onCreateView() 115 mShortcutPreference.setKey(getShortcutPreferenceKey()); in onCreateView() 116 mShortcutPreference.setOnClickCallback(this); in onCreateView() 119 mShortcutPreference.setTitle(title); in onCreateView() 120 getPreferenceScreen().addPreference(mShortcutPreference); in onCreateView() 124 mShortcutPreference.setSummary(getShortcutTypeSummary(getPrefContext())); in onCreateView() 218 mShortcutPreference.setSummary(getShortcutTypeSummary(getPrefContext())); in onToggleClicked() 286 mShortcutPreference.setChecked(value != AccessibilityUtil.UserShortcutType.EMPTY); in callOnAlertDialogCheckboxClicked() [all …]
|
D | ToggleScreenMagnificationPreferenceFragment.java | 96 mShortcutPreference.setSummary(getShortcutTypeSummary(getPrefContext())); in onCreateView() 233 value = mShortcutPreference.isChecked() ? lastNonEmptyUserShortcutType in updateMagnificationEditShortcutDialogCheckBox() 257 if (!mShortcutPreference.isChecked()) { in getShortcutTypeSummary() 299 mShortcutPreference.setChecked(value != UserShortcutType.EMPTY); in callOnAlertDialogCheckboxClicked() 300 mShortcutPreference.setSummary( in callOnAlertDialogCheckboxClicked() 366 mShortcutPreference.setSummary(getShortcutTypeSummary(getPrefContext())); in onToggleClicked() 386 mShortcutPreference = new ShortcutPreference(getPrefContext(), null); in initShortcutPreference() 387 mShortcutPreference.setPersistent(false); in initShortcutPreference() 388 mShortcutPreference.setKey(getShortcutPreferenceKey()); in initShortcutPreference() 389 mShortcutPreference.setSummary(getShortcutTypeSummary(getPrefContext())); in initShortcutPreference() [all …]
|
D | ToggleFeaturePreferenceFragment.java | 79 protected ShortcutPreference mShortcutPreference; field in ToggleFeaturePreferenceFragment 177 mShortcutPreference.setSummary(getShortcutTypeSummary(getPrefContext())); in onCreateView() 432 mShortcutPreference = new ShortcutPreference(getPrefContext(), /* attrs= */ null); in initShortcutPreference() 433 mShortcutPreference.setPersistent(false); in initShortcutPreference() 434 mShortcutPreference.setKey(getShortcutPreferenceKey()); in initShortcutPreference() 435 mShortcutPreference.setOnClickCallback(this); in initShortcutPreference() 438 mShortcutPreference.setTitle(title); in initShortcutPreference() 441 generalCategory.addPreference(mShortcutPreference); in initShortcutPreference() 575 value = mShortcutPreference.isChecked() ? lastNonEmptyUserShortcutType in updateEditShortcutDialogCheckBox() 615 if (!mShortcutPreference.isSettingsEditable()) { in getShortcutTypeSummary() [all …]
|
D | ToggleAccessibilityServicePreferenceFragment.java | 366 mShortcutPreference.setSummary(getShortcutTypeSummary(getPrefContext())); in onToggleClicked() 371 final boolean isServiceOnOrShortcutAdded = mShortcutPreference.isChecked() in onSettingsClicked() 499 mShortcutPreference.setChecked(true); in onAllowButtonFromShortcutToggleClicked() 510 mShortcutPreference.setSummary(getShortcutTypeSummary(getPrefContext())); in onAllowButtonFromShortcutToggleClicked() 514 mShortcutPreference.setChecked(false); in onDenyButtonFromShortcutToggleClicked() 546 if (!mShortcutPreference.isChecked()) { in onPreferenceClick()
|
D | VolumeShortcutToggleAccessibilityServicePreferenceFragment.java | 44 mShortcutPreference.setSummary(hardwareTitle); in onViewCreated() 45 mShortcutPreference.setSettingsEditable(false); in onViewCreated()
|
D | ToggleReduceBrightColorsPreferenceFragment.java | 96 intensity.setOrder(mShortcutPreference.getOrder() - 2); in updateGeneralCategoryOrder() 100 persist.setOrder(mShortcutPreference.getOrder() - 1); in updateGeneralCategoryOrder()
|
D | InvisibleToggleAccessibilityServicePreferenceFragment.java | 82 final boolean enabled = mShortcutPreference.isChecked(); in callOnAlertDialogCheckboxClicked()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | ShortcutPreferenceTest.java | 42 private ShortcutPreference mShortcutPreference; field in ShortcutPreferenceTest 62 mShortcutPreference = new ShortcutPreference(context, null); in setUp() 72 mShortcutPreference.onBindViewHolder(mPreferenceViewHolder); in clickToggle_toggleClicked() 73 mShortcutPreference.setOnClickCallback(mListener); in clickToggle_toggleClicked() 78 assertThat(mShortcutPreference.isChecked()).isTrue(); in clickToggle_toggleClicked() 83 mShortcutPreference.onBindViewHolder(mPreferenceViewHolder); in clickSettings_settingsClicked() 84 mShortcutPreference.setOnClickCallback(mListener); in clickSettings_settingsClicked() 94 mShortcutPreference.setChecked(true); in setCheckedTrue_getToggleIsTrue() 96 assertThat(mShortcutPreference.isChecked()).isEqualTo(true); in setCheckedTrue_getToggleIsTrue()
|
D | AccessibilityShortcutPreferenceFragmentTest.java | 136 mFragment.mShortcutPreference = shortcutPreference; in setupEditShortcutDialog_shortcutPreferenceOff_checkboxIsEmptyValue() 138 mFragment.mShortcutPreference.setChecked(false); in setupEditShortcutDialog_shortcutPreferenceOff_checkboxIsEmptyValue() 157 mFragment.mShortcutPreference = shortcutPreference; in setupEditShortcutDialog_shortcutPreferenceOn_checkboxIsSavedValue() 160 mFragment.mShortcutPreference.setChecked(true); in setupEditShortcutDialog_shortcutPreferenceOn_checkboxIsSavedValue() 178 mFragment.mShortcutPreference = shortcutPreference; in restoreValueFromSavedInstanceState_assignToVariable()
|
D | ToggleFeaturePreferenceFragmentTest.java | 154 mFragment.mShortcutPreference = shortcutPreference; in setupEditShortcutDialog_shortcutPreferenceOff_checkboxIsEmptyValue() 156 mFragment.mShortcutPreference.setChecked(false); in setupEditShortcutDialog_shortcutPreferenceOff_checkboxIsEmptyValue() 174 mFragment.mShortcutPreference = shortcutPreference; in setupEditShortcutDialog_shortcutPreferenceOn_checkboxIsSavedValue() 177 mFragment.mShortcutPreference.setChecked(true); in setupEditShortcutDialog_shortcutPreferenceOn_checkboxIsSavedValue() 195 mFragment.mShortcutPreference = shortcutPreference; in restoreValueFromSavedInstanceState_assignToVariable()
|
D | ToggleScreenMagnificationPreferenceFragmentTest.java | 218 mFragment.mShortcutPreference = shortcutPreference; in setupMagnificationEditShortcutDialog_shortcutPreferenceOff_checkboxIsEmptyValue() 220 mFragment.mShortcutPreference.setChecked(false); in setupMagnificationEditShortcutDialog_shortcutPreferenceOff_checkboxIsEmptyValue() 237 mFragment.mShortcutPreference = shortcutPreference; in setupMagnificationEditShortcutDialog_shortcutPreferenceOn_checkboxIsSavedValue() 240 mFragment.mShortcutPreference.setChecked(true); in setupMagnificationEditShortcutDialog_shortcutPreferenceOn_checkboxIsSavedValue() 255 mFragment.mShortcutPreference = new ShortcutPreference(mContext, /* attrs= */ null); in restoreValueFromSavedInstanceState_assignToVariable()
|