/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | ToggleScreenMagnificationPreferenceFragment.java | 49 import com.android.settings.accessibility.AccessibilityUtil.UserShortcutType; 185 int value = UserShortcutType.EMPTY; in getShortcutTypeCheckBoxValue() 187 value |= UserShortcutType.SOFTWARE; in getShortcutTypeCheckBoxValue() 190 value |= UserShortcutType.HARDWARE; in getShortcutTypeCheckBoxValue() 193 value |= UserShortcutType.TRIPLETAP; in getShortcutTypeCheckBoxValue() 232 getPrefContext(), MAGNIFICATION_CONTROLLER_NAME, UserShortcutType.SOFTWARE); in updateMagnificationEditShortcutDialogCheckBox() 234 : UserShortcutType.EMPTY; in updateMagnificationEditShortcutDialogCheckBox() 238 hasShortcutType(value, UserShortcutType.SOFTWARE)); in updateMagnificationEditShortcutDialogCheckBox() 240 hasShortcutType(value, UserShortcutType.HARDWARE)); in updateMagnificationEditShortcutDialogCheckBox() 242 hasShortcutType(value, UserShortcutType.TRIPLETAP)); in updateMagnificationEditShortcutDialogCheckBox() [all …]
|
D | AccessibilityUtil.java | 88 UserShortcutType.EMPTY, 89 UserShortcutType.SOFTWARE, 90 UserShortcutType.HARDWARE, 91 UserShortcutType.TRIPLETAP, 95 public @interface UserShortcutType { annotation in AccessibilityUtil 191 if ((shortcutTypes & UserShortcutType.SOFTWARE) == UserShortcutType.SOFTWARE) { in optInAllValuesToSettings() 192 optInValueToSettings(context, UserShortcutType.SOFTWARE, componentName); in optInAllValuesToSettings() 194 if (((shortcutTypes & UserShortcutType.HARDWARE) == UserShortcutType.HARDWARE)) { in optInAllValuesToSettings() 195 optInValueToSettings(context, UserShortcutType.HARDWARE, componentName); in optInAllValuesToSettings() 207 static void optInValueToSettings(Context context, @UserShortcutType int shortcutType, in optInValueToSettings() [all …]
|
D | AccessibilityShortcutPreferenceFragment.java | 209 getComponentName().flattenToString(), AccessibilityUtil.UserShortcutType.SOFTWARE); in onToggleClicked() 252 int value = AccessibilityUtil.UserShortcutType.EMPTY; in getShortcutTypeCheckBoxValue() 254 value |= AccessibilityUtil.UserShortcutType.SOFTWARE; in getShortcutTypeCheckBoxValue() 257 value |= AccessibilityUtil.UserShortcutType.HARDWARE; in getShortcutTypeCheckBoxValue() 286 mShortcutPreference.setChecked(value != AccessibilityUtil.UserShortcutType.EMPTY); in callOnAlertDialogCheckboxClicked() 301 if (type == AccessibilityUtil.UserShortcutType.EMPTY) { in saveNonEmptyUserShortcutType() 347 getComponentName().flattenToString(), AccessibilityUtil.UserShortcutType.SOFTWARE); in getShortcutTypeSummary() 353 if (hasShortcutType(shortcutTypes, AccessibilityUtil.UserShortcutType.SOFTWARE)) { in getShortcutTypeSummary() 356 if (hasShortcutType(shortcutTypes, AccessibilityUtil.UserShortcutType.HARDWARE)) { in getShortcutTypeSummary() 378 AccessibilityUtil.UserShortcutType.SOFTWARE); in updateEditShortcutDialogCheckBox() [all …]
|
D | ToggleFeaturePreferenceFragment.java | 56 import com.android.settings.accessibility.AccessibilityUtil.UserShortcutType; 574 getPrefContext(), mComponentName.flattenToString(), UserShortcutType.SOFTWARE); in updateEditShortcutDialogCheckBox() 576 : UserShortcutType.EMPTY; in updateEditShortcutDialogCheckBox() 580 hasShortcutType(value, UserShortcutType.SOFTWARE)); in updateEditShortcutDialogCheckBox() 582 hasShortcutType(value, UserShortcutType.HARDWARE)); in updateEditShortcutDialogCheckBox() 591 private boolean hasShortcutType(int value, @UserShortcutType int type) { in hasShortcutType() 604 int value = UserShortcutType.EMPTY; in getShortcutTypeCheckBoxValue() 606 value |= UserShortcutType.SOFTWARE; in getShortcutTypeCheckBoxValue() 609 value |= UserShortcutType.HARDWARE; in getShortcutTypeCheckBoxValue() 624 mComponentName.flattenToString(), UserShortcutType.SOFTWARE); in getShortcutTypeSummary() [all …]
|
D | VolumeShortcutToggleAccessibilityServicePreferenceFragment.java | 19 import static com.android.settings.accessibility.AccessibilityUtil.UserShortcutType; 47 setAllowedPreferredShortcutType(UserShortcutType.HARDWARE); in onViewCreated() 59 shortcutTypes |= UserShortcutType.SOFTWARE; in getUserShortcutTypes() 61 shortcutTypes &= (~UserShortcutType.SOFTWARE); in getUserShortcutTypes()
|
D | AccessibilityGestureNavigationTutorial.java | 22 import static com.android.settings.accessibility.AccessibilityUtil.UserShortcutType; 369 if ((shortcutTypes & UserShortcutType.SOFTWARE) == UserShortcutType.SOFTWARE) { in createShortcutTutorialPages() 373 if ((shortcutTypes & UserShortcutType.HARDWARE) == UserShortcutType.HARDWARE) { in createShortcutTutorialPages() 377 if ((shortcutTypes & UserShortcutType.TRIPLETAP) == UserShortcutType.TRIPLETAP) { in createShortcutTutorialPages()
|
D | ToggleAccessibilityServicePreferenceFragment.java | 56 import com.android.settings.accessibility.AccessibilityUtil.UserShortcutType; 352 mComponentName.flattenToString(), UserShortcutType.SOFTWARE); in onToggleClicked() 502 mComponentName.flattenToString(), UserShortcutType.SOFTWARE); in onAllowButtonFromShortcutToggleClicked()
|
D | PreferredShortcut.java | 22 import com.android.settings.accessibility.AccessibilityUtil.UserShortcutType;
|
D | PreferredShortcuts.java | 23 import com.android.settings.accessibility.AccessibilityUtil.UserShortcutType;
|
D | AccessibilitySettings.java | 260 context, componentName) != AccessibilityUtil.UserShortcutType.EMPTY; in getServiceSummary()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | ToggleScreenMagnificationPreferenceFragmentTest.java | 21 import static com.android.settings.accessibility.AccessibilityUtil.UserShortcutType; 115 mContext, UserShortcutType.TRIPLETAP)).isTrue(); in hasValueInSettings_putValue_hasValue() 120 int shortcutTypes = UserShortcutType.SOFTWARE | UserShortcutType.TRIPLETAP; in optInAllValuesToSettings_optInValue_haveMatchString() 136 UserShortcutType.SOFTWARE); in optInAllValuesToSettings_existOtherValue_optInValue_haveMatchString() 148 UserShortcutType.SOFTWARE | UserShortcutType.HARDWARE | UserShortcutType.TRIPLETAP; in optOutAllValuesToSettings_optOutValue_emptyString() 164 int shortcutTypes = UserShortcutType.SOFTWARE | UserShortcutType.HARDWARE; in optOutValueFromSettings_existOtherValue_optOutValue_haveMatchString() 180 MAGNIFICATION_CONTROLLER_NAME, UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_assignDefaultValueToVariable() 182 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_assignDefaultValueToVariable() 193 MAGNIFICATION_CONTROLLER_NAME, UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_hasValueInSettings_assignToVariable() 194 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE | UserShortcutType.TRIPLETAP); in updateShortcutPreferenceData_hasValueInSettings_assignToVariable() [all …]
|
D | AccessibilityUtilTest.java | 31 import com.android.settings.accessibility.AccessibilityUtil.UserShortcutType; 141 assertThat(AccessibilityUtil.hasValueInSettings(mContext, UserShortcutType.SOFTWARE, in hasValueInSettings_putValue_hasValue() 152 (shortcutType & UserShortcutType.SOFTWARE) == UserShortcutType.SOFTWARE).isTrue(); in getUserShortcutTypeFromSettings_putOneValue_hasValue() 163 (shortcutType & UserShortcutType.SOFTWARE) == UserShortcutType.SOFTWARE).isTrue(); in getUserShortcutTypeFromSettings_putTwoValues_hasValue() 165 (shortcutType & UserShortcutType.HARDWARE) == UserShortcutType.HARDWARE).isTrue(); in getUserShortcutTypeFromSettings_putTwoValues_hasValue() 170 int shortcutTypes = UserShortcutType.SOFTWARE | UserShortcutType.HARDWARE; in optInAllValuesToSettings_optInValue_haveMatchString() 184 AccessibilityUtil.optInValueToSettings(mContext, UserShortcutType.SOFTWARE, in optInValueToSettings_optInValue_haveMatchString() 195 AccessibilityUtil.optInValueToSettings(mContext, UserShortcutType.SOFTWARE, in optInValueToSettings_optInTwoValues_haveMatchString() 197 AccessibilityUtil.optInValueToSettings(mContext, UserShortcutType.SOFTWARE, in optInValueToSettings_optInTwoValues_haveMatchString() 210 UserShortcutType.SOFTWARE | UserShortcutType.HARDWARE | UserShortcutType.TRIPLETAP; in optOutAllValuesToSettings_optOutValue_emptyString() [all …]
|
D | AccessibilityShortcutPreferenceFragmentTest.java | 93 AccessibilityUtil.UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_assignDefaultValueToVariable() 95 assertThat(expectedType).isEqualTo(AccessibilityUtil.UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_assignDefaultValueToVariable() 107 AccessibilityUtil.UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_hasValueInSettings_assignToVariable() 108 assertThat(expectedType).isEqualTo(AccessibilityUtil.UserShortcutType.SOFTWARE in updateShortcutPreferenceData_hasValueInSettings_assignToVariable() 109 | AccessibilityUtil.UserShortcutType.HARDWARE); in updateShortcutPreferenceData_hasValueInSettings_assignToVariable() 116 AccessibilityUtil.UserShortcutType.HARDWARE); in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable() 123 AccessibilityUtil.UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable() 124 assertThat(expectedType).isEqualTo(AccessibilityUtil.UserShortcutType.HARDWARE); in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable() 142 assertThat(checkboxValue).isEqualTo(AccessibilityUtil.UserShortcutType.EMPTY); in setupEditShortcutDialog_shortcutPreferenceOff_checkboxIsEmptyValue() 156 AccessibilityUtil.UserShortcutType.HARDWARE); in setupEditShortcutDialog_shortcutPreferenceOn_checkboxIsSavedValue() [all …]
|
D | ToggleFeaturePreferenceFragmentTest.java | 47 import com.android.settings.accessibility.AccessibilityUtil.UserShortcutType; 113 mFragment.mComponentName.flattenToString(), UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_assignDefaultValueToVariable() 115 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_assignDefaultValueToVariable() 127 mFragment.mComponentName.flattenToString(), UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_hasValueInSettings_assignToVariable() 128 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE | UserShortcutType.HARDWARE); in updateShortcutPreferenceData_hasValueInSettings_assignToVariable() 135 PLACEHOLDER_COMPONENT_NAME.flattenToString(), UserShortcutType.HARDWARE); in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable() 141 mFragment.mComponentName.flattenToString(), UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable() 142 assertThat(expectedType).isEqualTo(UserShortcutType.HARDWARE); in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable() 160 assertThat(checkboxValue).isEqualTo(UserShortcutType.EMPTY); in setupEditShortcutDialog_shortcutPreferenceOff_checkboxIsEmptyValue() 172 PLACEHOLDER_COMPONENT_NAME.flattenToString(), UserShortcutType.HARDWARE); in setupEditShortcutDialog_shortcutPreferenceOn_checkboxIsSavedValue() [all …]
|
D | AccessibilityGestureNavigationTutorialTest.java | 21 import static com.android.settings.accessibility.AccessibilityUtil.UserShortcutType; 55 mShortcutTypes |= UserShortcutType.TRIPLETAP; in createTutorialPages_turnOnTripleTapShortcut_hasOnePage() 67 mShortcutTypes |= UserShortcutType.SOFTWARE; in createTutorialPages_turnOnSoftwareShortcut_hasOnePage() 79 mShortcutTypes |= UserShortcutType.SOFTWARE; in createTutorialPages_turnOnSoftwareAndHardwareShortcuts_hasTwoPages() 80 mShortcutTypes |= UserShortcutType.HARDWARE; in createTutorialPages_turnOnSoftwareAndHardwareShortcuts_hasTwoPages()
|