Home
last modified time | relevance | path

Searched refs:AccessibilityUtil (Results 1 – 25 of 130) sorted by relevance

123456

/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilityUtilTest.java44 import com.android.settings.accessibility.AccessibilityUtil.UserShortcutType;
88 assertThat(AccessibilityUtil.capitalize(null)).isNull(); in capitalize_shouldReturnCapitalizedString()
89 assertThat(AccessibilityUtil.capitalize("")).isEmpty(); in capitalize_shouldReturnCapitalizedString()
90 assertThat(AccessibilityUtil.capitalize("Hans")).isEqualTo("Hans"); in capitalize_shouldReturnCapitalizedString()
91 assertThat(AccessibilityUtil.capitalize("hans")).isEqualTo("Hans"); in capitalize_shouldReturnCapitalizedString()
92 assertThat(AccessibilityUtil.capitalize(",hans")).isEqualTo(",hans"); in capitalize_shouldReturnCapitalizedString()
93 assertThat(AccessibilityUtil.capitalize("Hans, Hans")).isEqualTo("Hans, hans"); in capitalize_shouldReturnCapitalizedString()
100 final CharSequence result = AccessibilityUtil.getSummary(mContext, SECURE_TEST_KEY, in getSummary_hasValueAndEqualsToOne_shouldReturnOnString()
111 final CharSequence result = AccessibilityUtil.getSummary(mContext, SECURE_TEST_KEY, in getSummary_hasValueAndEqualsToZero_shouldReturnOffString()
120 final CharSequence result = AccessibilityUtil.getSummary(mContext, SECURE_TEST_KEY, in getSummary_noValue_shouldReturnOffString()
[all …]
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityShortcutPreferenceFragment.java47 import com.android.settings.accessibility.AccessibilityUtil.QuickSettingsTooltipType;
280 AccessibilityUtil.optInAllValuesToSettings(getPrefContext(), shortcutTypes, in onToggleClicked()
284 AccessibilityUtil.optOutAllValuesFromSettings(getPrefContext(), shortcutTypes, in onToggleClicked()
321 int value = AccessibilityUtil.UserShortcutType.EMPTY; in getShortcutTypeCheckBoxValue()
323 value |= AccessibilityUtil.UserShortcutType.SOFTWARE; in getShortcutTypeCheckBoxValue()
326 value |= AccessibilityUtil.UserShortcutType.HARDWARE; in getShortcutTypeCheckBoxValue()
335 return AccessibilityUtil.getUserShortcutTypesFromSettings(getPrefContext(), in getUserShortcutTypes()
341 if (AccessibilityUtil.isFloatingMenuEnabled(context)) { in getSoftwareShortcutTypeSummary()
343 } else if (AccessibilityUtil.isGestureNavigateEnabled(context)) { in getSoftwareShortcutTypeSummary()
375 AccessibilityUtil.optInAllValuesToSettings(getPrefContext(), value, getComponentName()); in callOnAlertDialogCheckboxClicked()
[all …]
DToggleFeaturePreferenceFragment.java61 import com.android.settings.accessibility.AccessibilityUtil.QuickSettingsTooltipType;
62 import com.android.settings.accessibility.AccessibilityUtil.UserShortcutType;
466 final int screenHalfHeight = AccessibilityUtil.getScreenHeightPixels(getPrefContext()) / 2; in getDrawableFromUri()
467 if ((imageWidth > AccessibilityUtil.getScreenWidthPixels(getPrefContext())) in getDrawableFromUri()
484 AccessibilityUtil.getDisplayBounds(getPrefContext()).height() / 2; in initAnimatedImagePreference()
747 if (AccessibilityUtil.isFloatingMenuEnabled(context)) { in getSoftwareShortcutTypeSummary()
749 } else if (AccessibilityUtil.isGestureNavigateEnabled(context)) { in getSoftwareShortcutTypeSummary()
781 AccessibilityUtil.optInAllValuesToSettings(getPrefContext(), value, mComponentName); in callOnAlertDialogCheckboxClicked()
782 AccessibilityUtil.optOutAllValuesFromSettings(getPrefContext(), ~value, mComponentName); in callOnAlertDialogCheckboxClicked()
788 AccessibilityUtil.skipVolumeShortcutDialogTimeoutRestriction(getPrefContext()); in callOnAlertDialogCheckboxClicked()
[all …]
DAccessibilityDialogUtils.java397 if (!AccessibilityUtil.isFloatingMenuEnabled(context)) { in retrieveSoftwareShortcutSummaryForSUW()
405 if (AccessibilityUtil.isFloatingMenuEnabled(context)) { in retrieveTitle()
407 } else if (AccessibilityUtil.isGestureNavigateEnabled(context)) { in retrieveTitle()
417 if (AccessibilityUtil.isFloatingMenuEnabled(context)) { in retrieveSoftwareShortcutSummary()
419 } else if (AccessibilityUtil.isGestureNavigateEnabled(context)) { in retrieveSoftwareShortcutSummary()
420 final int resId = AccessibilityUtil.isTouchExploreEnabled(context) in retrieveSoftwareShortcutSummary()
436 if (AccessibilityUtil.isFloatingMenuEnabled(context)) { in retrieveSoftwareShortcutImageResId()
438 } else if (AccessibilityUtil.isGestureNavigateEnabled(context)) { in retrieveSoftwareShortcutImageResId()
439 resId = AccessibilityUtil.isTouchExploreEnabled(context) in retrieveSoftwareShortcutImageResId()
DAccessibilityShortcutsTutorial.java22 import static com.android.settings.accessibility.AccessibilityUtil.UserShortcutType;
177 final int textResId = AccessibilityUtil.isFloatingMenuEnabled(dialog.getContext()) in updateTutorialNegativeButtonTextAndVisibility()
245 final boolean isTouchExploreEnabled = AccessibilityUtil.isTouchExploreEnabled(context); in setupGestureNavigationTextWithImage()
465 final int numFingers = AccessibilityUtil.isTouchExploreEnabled(context) ? 2 : 1; in createQuickSettingsTutorialPage()
528 if (AccessibilityUtil.isFloatingMenuEnabled(context)) { in createSoftwareImage()
531 } else if (AccessibilityUtil.isGestureNavigateEnabled(context)) { in createSoftwareImage()
532 resId = AccessibilityUtil.isTouchExploreEnabled(context) in createSoftwareImage()
543 if (AccessibilityUtil.isFloatingMenuEnabled(context)) { in getSoftwareTitle()
545 } else if (AccessibilityUtil.isGestureNavigateEnabled(context)) { in getSoftwareTitle()
555 if (AccessibilityUtil.isFloatingMenuEnabled(context)) { in getSoftwareInstruction()
[all …]
DToggleColorInversionPreferenceFragment.java22 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
23 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
37 import com.android.settings.accessibility.AccessibilityUtil.QuickSettingsTooltipType;
167 return AccessibilityUtil.getUserShortcutTypesFromSettings(getPrefContext(), in getUserShortcutTypes()
DAccessibilityButtonPreviewPreferenceController.java107 if (AccessibilityUtil.isFloatingMenuEnabled(mContext)) { in updatePreviewPreference()
119 } else if (AccessibilityUtil.isGestureNavigateEnabled(mContext)) { in updatePreviewPreference()
121 AccessibilityUtil.isTouchExploreEnabled(mContext) in updatePreviewPreference()
DRingVibrationPreferenceConfig.java19 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
20 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
DToggleScreenMagnificationPreferenceFragment.java22 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
23 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
58 import com.android.settings.accessibility.AccessibilityUtil.QuickSettingsTooltipType;
59 import com.android.settings.accessibility.AccessibilityUtil.UserShortcutType;
452 if (AccessibilityUtil.isFloatingMenuEnabled(context)) { in getSoftwareShortcutTypeSummary()
454 } else if (AccessibilityUtil.isGestureNavigateEnabled(context)) { in getSoftwareShortcutTypeSummary()
551 AccessibilityUtil.skipVolumeShortcutDialogTimeoutRestriction(getPrefContext()); in callOnAlertDialogCheckboxClicked()
750 final String targetKey = AccessibilityUtil.convertKeyFromSettings(shortcutType); in optInMagnificationValueToSettings()
831 final String targetKey = AccessibilityUtil.convertKeyFromSettings(shortcutType); in optOutMagnificationValueFromSettings()
891 final String targetKey = AccessibilityUtil.convertKeyFromSettings(shortcutType); in hasMagnificationValueInSettings()
[all …]
DMagnificationFollowTypingPreferenceController.java19 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
20 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
DToggleDaltonizerPreferenceFragment.java22 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
23 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
39 import com.android.settings.accessibility.AccessibilityUtil.QuickSettingsTooltipType;
227 return AccessibilityUtil.getUserShortcutTypesFromSettings(getPrefContext(), in getUserShortcutTypes()
DMagnificationJoystickPreferenceController.java19 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
20 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
DAudioDescriptionPreferenceController.java21 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
22 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
DCameraFlashNotificationPreferenceController.java19 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
20 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
/packages/apps/Settings/src/com/android/settings/accessibility/shortcuts/
DGestureShortcutOptionController.java26 import com.android.settings.accessibility.AccessibilityUtil;
47 int resId = AccessibilityUtil.isTouchExploreEnabled(mContext) in displayPreference()
57 && !AccessibilityUtil.isFloatingMenuEnabled(mContext) in isShortcutAvailable()
58 && AccessibilityUtil.isGestureNavigateEnabled(mContext); in isShortcutAvailable()
63 int numFingers = AccessibilityUtil.isTouchExploreEnabled(mContext) ? 3 : 2; in getSummary()
DTripleTapShortcutOptionController.java30 import com.android.settings.accessibility.AccessibilityUtil;
100 AccessibilityUtil.State.OFF) == AccessibilityUtil.State.ON; in isChecked()
113 enable ? AccessibilityUtil.State.ON : AccessibilityUtil.State.OFF); in enableShortcutForTargets()
DTwoFingerDoubleTapShortcutOptionController.java30 import com.android.settings.accessibility.AccessibilityUtil;
87 AccessibilityUtil.State.OFF) == AccessibilityUtil.State.ON; in isChecked()
99 enable ? AccessibilityUtil.State.ON : AccessibilityUtil.State.OFF); in enableShortcutForTargets()
DNavButtonShortcutOptionController.java31 import com.android.settings.accessibility.AccessibilityUtil;
65 return !AccessibilityUtil.isFloatingMenuEnabled(mContext) in isShortcutAvailable()
66 && !AccessibilityUtil.isGestureNavigateEnabled(mContext); in isShortcutAvailable()
DFloatingButtonShortcutOptionController.java27 import com.android.settings.accessibility.AccessibilityUtil;
53 return AccessibilityUtil.isFloatingMenuEnabled(mContext); in isShortcutAvailable()
DVolumeKeysShortcutOptionController.java27 import com.android.settings.accessibility.AccessibilityUtil;
73 AccessibilityUtil.skipVolumeShortcutDialogTimeoutRestriction(mContext); in enableShortcutForTargets()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/shortcuts/
DTwoFingerDoubleTapShortcutOptionControllerTest.java41 import com.android.settings.accessibility.AccessibilityUtil;
130 AccessibilityUtil.State.ON); in isChecked_twoFingersDoubleTapConfigured_returnTrue()
140 AccessibilityUtil.State.OFF); in isChecked_twoFingersDoubleTapNotConfigured_returnFalse()
154 AccessibilityUtil.State.OFF) in enableShortcutForTargets_enableShortcut_settingUpdated()
155 ).isEqualTo(AccessibilityUtil.State.ON); in enableShortcutForTargets_enableShortcut_settingUpdated()
181 AccessibilityUtil.State.OFF) in enableShortcutForTargets_disableShortcut_settingUpdated()
182 ).isEqualTo(AccessibilityUtil.State.OFF); in enableShortcutForTargets_disableShortcut_settingUpdated()
DTripleTapShortcutOptionControllerTest.java44 import com.android.settings.accessibility.AccessibilityUtil;
169 AccessibilityUtil.State.ON); in isChecked_tripleTapConfigured_returnTrue()
179 AccessibilityUtil.State.OFF); in isChecked_tripleTapNotConfigured_returnFalse()
193 AccessibilityUtil.State.OFF) in enableShortcutForTargets_enableShortcut_settingUpdated()
194 ).isEqualTo(AccessibilityUtil.State.ON); in enableShortcutForTargets_enableShortcut_settingUpdated()
220 AccessibilityUtil.State.OFF) in enableShortcutForTargets_disableShortcut_settingUpdated()
221 ).isEqualTo(AccessibilityUtil.State.OFF); in enableShortcutForTargets_disableShortcut_settingUpdated()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationSimSelector.java27 import com.android.messaging.util.AccessibilityUtil;
67 if (AccessibilityUtil.isTouchExplorationEnabled(context) && in announcedSelectedSim()
69 AccessibilityUtil.announceForAccessibilityCompat( in announcedSelectedSim()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DBugleActionToasts.java28 import com.android.messaging.util.AccessibilityUtil;
76 if (AccessibilityUtil.isTouchExplorationEnabled(Factory.get().getApplicationContext())) { in onSendMessageOrManualDownloadActionCompleted()
101 if (AccessibilityUtil.isTouchExplorationEnabled(context)) { in onMessageReceived()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/
DAnswerMethodFactory.java25 import com.android.incallui.util.AccessibilityUtil;
61 return AccessibilityUtil.isTouchExplorationEnabled(activity) || activity.isInMultiWindowMode(); in needTwoButton()

123456