Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilityUtilTest.java31 import com.android.settings.accessibility.AccessibilityUtil.UserShortcutType;
68 assertThat(AccessibilityUtil.capitalize(null)).isNull(); in capitalize_shouldReturnCapitalizedString()
69 assertThat(AccessibilityUtil.capitalize("")).isEmpty(); in capitalize_shouldReturnCapitalizedString()
70 assertThat(AccessibilityUtil.capitalize("Hans")).isEqualTo("Hans"); in capitalize_shouldReturnCapitalizedString()
71 assertThat(AccessibilityUtil.capitalize("hans")).isEqualTo("Hans"); in capitalize_shouldReturnCapitalizedString()
72 assertThat(AccessibilityUtil.capitalize(",hans")).isEqualTo(",hans"); in capitalize_shouldReturnCapitalizedString()
73 assertThat(AccessibilityUtil.capitalize("Hans, Hans")).isEqualTo("Hans, hans"); in capitalize_shouldReturnCapitalizedString()
80 final CharSequence result = AccessibilityUtil.getSummary(mContext, SECURE_TEST_KEY); in getSummary_hasValueAndEqualsToOne_shouldReturnOnString()
90 final CharSequence result = AccessibilityUtil.getSummary(mContext, SECURE_TEST_KEY); in getSummary_hasValueAndEqualsToZero_shouldReturnOffString()
98 final CharSequence result = AccessibilityUtil.getSummary(mContext, SECURE_TEST_KEY); in getSummary_noValue_shouldReturnOffString()
[all …]
DToggleScreenMagnificationPreferenceFragmentTest.java19 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
20 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
21 import static com.android.settings.accessibility.AccessibilityUtil.UserShortcutType;
DAccessibilityShortcutPreferenceControllerTest.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/
DToggleFeaturePreferenceFragment.java19 import static com.android.settings.accessibility.AccessibilityUtil.getScreenHeightPixels;
20 import static com.android.settings.accessibility.AccessibilityUtil.getScreenWidthPixels;
55 import com.android.settings.accessibility.AccessibilityUtil.UserShortcutType;
573 if (AccessibilityUtil.isGestureNavigateEnabled(context)) { in getShortcutTypeSummary()
574 resId = AccessibilityUtil.isTouchExploreEnabled(context) in getShortcutTypeSummary()
631 AccessibilityUtil.optInAllValuesToSettings(getPrefContext(), mUserShortcutTypes, in callOnAlertDialogCheckboxClicked()
633 AccessibilityUtil.optOutAllValuesFromSettings(getPrefContext(), ~mUserShortcutTypes, in callOnAlertDialogCheckboxClicked()
646 mUserShortcutTypes = AccessibilityUtil.getUserShortcutTypesFromSettings(getPrefContext(), in updateShortcutPreferenceData()
680 AccessibilityUtil.hasValuesInSettings(getPrefContext(), shortcutTypes, in updateShortcutPreference()
697 AccessibilityUtil.optInAllValuesToSettings(getPrefContext(), shortcutTypes, in onToggleClicked()
[all …]
DAccessibilityGestureNavigationTutorial.java22 import static com.android.settings.accessibility.AccessibilityUtil.UserShortcutType;
105 if (!AccessibilityUtil.isGestureNavigateEnabled(context)) { in showAccessibilityButtonTutorialDialog()
148 VideoPlayer.create(context, AccessibilityUtil.isTouchExploreEnabled(context) in createTutorialDialogContentView()
152 gestureTutorialMessage.setText(AccessibilityUtil.isTouchExploreEnabled(context) in createTutorialDialogContentView()
163 VideoPlayer.create(context, AccessibilityUtil.isTouchExploreEnabled(context) in createTutorialDialogContentView()
167 final int stringResId = AccessibilityUtil.isTouchExploreEnabled(context) in createTutorialDialogContentView()
395 AccessibilityUtil.isGestureNavigateEnabled(context); in getSoftwareTitle()
405 if (AccessibilityUtil.isGestureNavigateEnabled(context)) { in createSoftwareImage()
406 resId = AccessibilityUtil.isTouchExploreEnabled(context) in createSoftwareImage()
416 AccessibilityUtil.isGestureNavigateEnabled(context); in getSoftwareInstruction()
[all …]
DToggleScreenMagnificationPreferenceFragment.java20 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
21 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
44 import com.android.settings.accessibility.AccessibilityUtil.UserShortcutType;
244 if (AccessibilityUtil.isGestureNavigateEnabled(context)) { in getShortcutTypeSummary()
245 resId = AccessibilityUtil.isTouchExploreEnabled(context) in getShortcutTypeSummary()
420 final String targetKey = AccessibilityUtil.convertKeyFromSettings(shortcutType); in optInMagnificationValueToSettings()
455 final String targetKey = AccessibilityUtil.convertKeyFromSettings(shortcutType); in optOutMagnificationValueFromSettings()
500 final String targetKey = AccessibilityUtil.convertKeyFromSettings(shortcutType); in hasMagnificationValueInSettings()
549 return (uerShortcutType != AccessibilityUtil.UserShortcutType.EMPTY) in getServiceSummary()
DAccessibilityEditDialogUtils.java260 if (AccessibilityUtil.isGestureNavigateEnabled(context)) { in retrieveTitle()
261 resId = AccessibilityUtil.isTouchExploreEnabled(context) in retrieveTitle()
269 if (AccessibilityUtil.isGestureNavigateEnabled(context)) { in retrieveSummary()
270 final int resId = AccessibilityUtil.isTouchExploreEnabled(context) in retrieveSummary()
281 if (AccessibilityUtil.isGestureNavigateEnabled(context)) { in retrieveImageResId()
282 resId = AccessibilityUtil.isTouchExploreEnabled(context) in retrieveImageResId()
DToggleAccessibilityServicePreferenceFragment.java49 import com.android.settings.accessibility.AccessibilityUtil.UserShortcutType;
195 return AccessibilityUtil.getUserShortcutTypesFromSettings(getPrefContext(), in getUserShortcutTypes()
301 AccessibilityUtil.optInAllValuesToSettings(getPrefContext(), shortcutTypes, in onToggleClicked()
306 AccessibilityUtil.optOutAllValuesFromSettings(getPrefContext(), shortcutTypes, in onToggleClicked()
415 AccessibilityUtil.optInAllValuesToSettings(getPrefContext(), shortcutTypes, mComponentName); in onAllowButtonFromShortcutToggleClicked()
DAccessibilitySettings.java52 import com.android.settings.accessibility.AccessibilityUtil.AccessibilityServiceFragmentType;
271 final int fragmentType = AccessibilityUtil.getAccessibilityServiceFragmentType(info); in getServiceSummary()
276 final boolean shortcutEnabled = AccessibilityUtil.getUserShortcutTypesFromSettings( in getServiceSummary()
277 context, componentName) != AccessibilityUtil.UserShortcutType.EMPTY; in getServiceSummary()
495 mDisplayDaltonizerPreferenceScreen.setSummary(AccessibilityUtil.getSummary( in updateSystemPreferences()
503 mToggleInversionPreference.setSummary(AccessibilityUtil.getSummary( in updateSystemPreferences()
659 switch (AccessibilityUtil.getAccessibilityServiceFragmentType(info)) { in getAccessibilityServiceFragmentTypeName()
DToggleColorInversionPreferenceFragment.java21 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
22 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
133 return AccessibilityUtil.getUserShortcutTypesFromSettings(getPrefContext(), in getUserShortcutTypes()
DToggleDaltonizerPreferenceFragment.java21 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
22 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
205 return AccessibilityUtil.getUserShortcutTypesFromSettings(getPrefContext(), in getUserShortcutTypes()
DAccessibilityShortcutPreferenceController.java18 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
19 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
DAccessibilitySlicePreferenceController.java19 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
20 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
DAccessibilitySettingsForSetupWizard.java19 import static com.android.settings.accessibility.AccessibilityUtil.AccessibilityServiceFragmentType…
161 if (AccessibilityUtil.getAccessibilityServiceFragmentType(info) == VOLUME_SHORTCUT_TOGGLE) { in updateAccessibilityServicePreference()
/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()
DComposeMessageView.java63 import com.android.messaging.util.AccessibilityUtil;
404 if (AccessibilityUtil.isTouchExplorationEnabled(getContext())) { in sendMessageInternal()
405 AccessibilityUtil.announceForAccessibilityCompat( in sendMessageInternal()
556 AccessibilityUtil.announceForAccessibilityCompat( in announceMediaItemState()
561 if (AccessibilityUtil.isTouchExplorationEnabled(getContext())) { in announceAttachmentState()
567 AccessibilityUtil.announceForAccessibilityCompat( in announceAttachmentState()
/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()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/
DCopyContactDetailDialog.java28 import com.android.messaging.util.AccessibilityUtil;
61 final String vocalizedDisplayName = AccessibilityUtil.getVocalizedPhoneNumber( in createBodyView()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/
DAnswerHintFactory.java29 import com.android.incallui.util.AccessibilityUtil;
82 if (AccessibilityUtil.isTouchExplorationEnabled(context)) { in shouldShowAnswerHint()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DAddContactsConfirmationDialog.java31 import com.android.messaging.util.AccessibilityUtil;
80 final String vocalizedDisplayName = AccessibilityUtil.getVocalizedPhoneNumber( in createBodyView()
/packages/apps/Camera2/src/com/android/camera/
DAccessibilityUtil.java21 public class AccessibilityUtil { class
64 public AccessibilityUtil(PreviewOverlay previewOverlay, View view) { in AccessibilityUtil() method in AccessibilityUtil
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DAffordanceHolderLayout.java29 import com.android.incallui.util.AccessibilityUtil;
162 if (AccessibilityUtil.isTouchExplorationEnabled(getContext())) { in onInterceptTouchEvent()
DAnswerFragment.java93 import com.android.incallui.util.AccessibilityUtil;
436 secondaryButton.setClickable(AccessibilityUtil.isAccessibilityEnabled(getContext())); in initSecondaryButton()
437 secondaryButton.setFocusable(AccessibilityUtil.isAccessibilityEnabled(getContext())); in initSecondaryButton()
449 answerAndReleaseButton.setClickable(AccessibilityUtil.isAccessibilityEnabled(getContext())); in initSecondaryButton()
450 answerAndReleaseButton.setFocusable(AccessibilityUtil.isAccessibilityEnabled(getContext())); in initSecondaryButton()
679 if (AccessibilityUtil.isTouchExplorationEnabled(getContext())) { in dispatchPopulateAccessibilityEvent()
/packages/apps/Messaging/src/com/android/messaging/ui/
DPersonItemView.java35 import com.android.messaging.util.AccessibilityUtil;
109 final String vocalizedDisplayName = AccessibilityUtil.getVocalizedPhoneNumber( in bind()

12