Home
last modified time | relevance | path

Searched refs:isAccessibilityShortcutAvailable (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/
DAccessibilityShortcutControllerTest.java244 assertThat(getController().isAccessibilityShortcutAvailable(false)).isFalse(); in testShortcutAvailable_enabledButNoServiceWhenCreated_shouldReturnFalse()
252 assertThat(getController().isAccessibilityShortcutAvailable(false)).isTrue(); in testShortcutAvailable_enabledWithValidServiceWhenCreated_shouldReturnTrue()
260 assertThat(getController().isAccessibilityShortcutAvailable(true)).isFalse(); in testShortcutAvailable_onLockScreenButDisabledThere_shouldReturnFalse()
268 assertThat(getController().isAccessibilityShortcutAvailable(true)).isTrue(); in testShortcutAvailable_onLockScreenAndEnabledThere_shouldReturnTrue()
282 assertThat(getController().isAccessibilityShortcutAvailable(true)).isFalse(); in testShortcutAvailable_onLockScreenAndLockScreenPreferenceUnset()
286 assertThat(getController().isAccessibilityShortcutAvailable(true)).isTrue(); in testShortcutAvailable_onLockScreenAndLockScreenPreferenceUnset()
298 accessibilityShortcutController.isAccessibilityShortcutAvailable(false) in testShortcutAvailable_whenServiceIdBecomesNull_shouldReturnFalse()
311 accessibilityShortcutController.isAccessibilityShortcutAvailable(false) in testShortcutAvailable_whenServiceIdBecomesNonNull_shouldReturnTrue()
323 accessibilityShortcutController.isAccessibilityShortcutAvailable(false) in testShortcutAvailable_whenShortcutBecomesEnabled_shouldReturnTrue()
336 accessibilityShortcutController.isAccessibilityShortcutAvailable(true) in testShortcutAvailable_whenLockscreenBecomesDisabled_shouldReturnFalse()
[all …]
/frameworks/base/core/java/com/android/internal/accessibility/
DAccessibilityShortcutController.java226 public boolean isAccessibilityShortcutAvailable(boolean phoneLocked) { in isAccessibilityShortcutAvailable() method in AccessibilityShortcutController
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/
DTestPhoneWindowManager.java414 .isAccessibilityShortcutAvailable(anyBoolean()); in overrideLaunchAccessibility()
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java798 if (mAccessibilityShortcutController.isAccessibilityShortcutAvailable(false)) { in handleMessage()
2491 .isAccessibilityShortcutAvailable(isKeyguardLocked());
4074 .isAccessibilityShortcutAvailable(isKeyguardLocked())) {