/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/ |
H A D | AccessibilityShortcutPreferenceFragment.java | 64 protected ShortcutPreference mShortcutPreference; field in AccessibilityShortcutPreferenceFragment 114 mShortcutPreference.setPersistent(false); in onCreateView() 115 mShortcutPreference.setKey(getShortcutPreferenceKey()); in onCreateView() 116 mShortcutPreference.setOnClickCallback(this); in onCreateView() 118 updateShortcutTitle(mShortcutPreference); in onCreateView() 119 getPreferenceScreen().addPreference(mShortcutPreference); in onCreateView() 222 mShortcutPreference.setSummary(getShortcutTypeSummary(getPrefContext())); in onToggleClicked() 291 mShortcutPreference.setSummary(getShortcutTypeSummary(getPrefContext())); in callOnAlertDialogCheckboxClicked() 342 if (!mShortcutPreference.isSettingsEditable()) { in getShortcutTypeSummary() 346 if (!mShortcutPreference.isChecked()) { in getShortcutTypeSummary() [all …]
|
H A D | ToggleScreenMagnificationPreferenceFragment.java | 287 if (!mShortcutPreference.isChecked()) { in getShortcutTypeSummary() 325 mShortcutPreference.setChecked(value != UserShortcutType.EMPTY); in callOnAlertDialogCheckboxClicked() 326 mShortcutPreference.setSummary( in callOnAlertDialogCheckboxClicked() 392 mShortcutPreference.setSummary(getShortcutTypeSummary(getPrefContext())); in onToggleClicked() 412 mShortcutPreference = new ShortcutPreference(getPrefContext(), null); in initShortcutPreference() 413 mShortcutPreference.setPersistent(false); in initShortcutPreference() 414 mShortcutPreference.setKey(getShortcutPreferenceKey()); in initShortcutPreference() 416 mShortcutPreference.setOnClickCallback(this); in initShortcutPreference() 419 mShortcutPreference.setTitle(title); in initShortcutPreference() 422 generalCategory.addPreference(mShortcutPreference); in initShortcutPreference() [all …]
|
H A D | ToggleFeaturePreferenceFragment.java | 78 protected ShortcutPreference mShortcutPreference; field in ToggleFeaturePreferenceFragment 452 mShortcutPreference.setPersistent(false); in initShortcutPreference() 453 mShortcutPreference.setKey(getShortcutPreferenceKey()); in initShortcutPreference() 454 mShortcutPreference.setOnClickCallback(this); in initShortcutPreference() 456 updateShortcutTitle(mShortcutPreference); in initShortcutPreference() 459 generalCategory.addPreference(mShortcutPreference); in initShortcutPreference() 612 if (!mShortcutPreference.isSettingsEditable()) { in getShortcutTypeSummary() 616 if (!mShortcutPreference.isChecked()) { in getShortcutTypeSummary() 658 mShortcutPreference.setChecked(value != UserShortcutType.EMPTY); in callOnAlertDialogCheckboxClicked() 659 mShortcutPreference.setSummary(getShortcutTypeSummary(getPrefContext())); in callOnAlertDialogCheckboxClicked() [all …]
|
H A D | VolumeShortcutToggleAccessibilityServicePreferenceFragment.java | 44 mShortcutPreference.setSummary(hardwareTitle); in onViewCreated() 45 mShortcutPreference.setSettingsEditable(false); in onViewCreated()
|
H A D | ToggleAccessibilityServicePreferenceFragment.java | 365 mShortcutPreference.setSummary(getShortcutTypeSummary(getPrefContext())); in onToggleClicked() 370 final boolean isServiceOnOrShortcutAdded = mShortcutPreference.isChecked() in onSettingsClicked() 498 mShortcutPreference.setChecked(true); in onAllowButtonFromShortcutToggleClicked() 509 mShortcutPreference.setSummary(getShortcutTypeSummary(getPrefContext())); in onAllowButtonFromShortcutToggleClicked() 513 mShortcutPreference.setChecked(false); in onDenyButtonFromShortcutToggleClicked() 545 if (!mShortcutPreference.isChecked()) { in onPreferenceClick()
|
H A D | ToggleReduceBrightColorsPreferenceFragment.java | 97 intensity.setOrder(mShortcutPreference.getOrder() - 2); in updateGeneralCategoryOrder() 101 persist.setOrder(mShortcutPreference.getOrder() - 1); in updateGeneralCategoryOrder()
|
H A D | InvisibleToggleAccessibilityServicePreferenceFragment.java | 82 final boolean enabled = mShortcutPreference.isChecked(); in callOnAlertDialogCheckboxClicked()
|