Home
last modified time | relevance | path

Searched refs:getNeighborItem (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DHardwareKeyboardShortcutControllerTest.java32 assertEquals("2", HardwareKeyboardShortcutController.getNeighborItem(handles, "1", true)); in testForwardRotation()
33 assertEquals("3", HardwareKeyboardShortcutController.getNeighborItem(handles, "2", true)); in testForwardRotation()
34 assertEquals("0", HardwareKeyboardShortcutController.getNeighborItem(handles, "3", true)); in testForwardRotation()
40 assertEquals("0", HardwareKeyboardShortcutController.getNeighborItem(handles, "1", false)); in testBackwardRotation()
41 assertEquals("3", HardwareKeyboardShortcutController.getNeighborItem(handles, "0", false)); in testBackwardRotation()
42 assertEquals("2", HardwareKeyboardShortcutController.getNeighborItem(handles, "3", false)); in testBackwardRotation()
48 assertNull(HardwareKeyboardShortcutController.getNeighborItem(handles, "X", true)); in testNotMatching()
49 assertNull(HardwareKeyboardShortcutController.getNeighborItem(handles, "X", false)); in testNotMatching()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DHardwareKeyboardShortcutController.java77 static <T> T getNeighborItem(@NonNull List<T> list, @NonNull T value, boolean next) { in getNeighborItem() method in HardwareKeyboardShortcutController
92 return getNeighborItem(mSubtypeHandles, currentImeAndSubtype, forward); in onSubtypeSwitch()