Home
last modified time | relevance | path

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

/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DFocusLogicTest.java24 import com.android.launcher3.util.FocusLogic;
44 assertTrue(FocusLogic.shouldConsume(KeyEvent.KEYCODE_DPAD_LEFT)); in testShouldConsume()
45 assertTrue(FocusLogic.shouldConsume(KeyEvent.KEYCODE_DPAD_RIGHT)); in testShouldConsume()
46 assertTrue(FocusLogic.shouldConsume(KeyEvent.KEYCODE_DPAD_UP)); in testShouldConsume()
47 assertTrue(FocusLogic.shouldConsume(KeyEvent.KEYCODE_DPAD_DOWN)); in testShouldConsume()
48 assertTrue(FocusLogic.shouldConsume(KeyEvent.KEYCODE_MOVE_HOME)); in testShouldConsume()
49 assertTrue(FocusLogic.shouldConsume(KeyEvent.KEYCODE_MOVE_END)); in testShouldConsume()
50 assertTrue(FocusLogic.shouldConsume(KeyEvent.KEYCODE_PAGE_UP)); in testShouldConsume()
51 assertTrue(FocusLogic.shouldConsume(KeyEvent.KEYCODE_PAGE_DOWN)); in testShouldConsume()
52 assertTrue(FocusLogic.shouldConsume(KeyEvent.KEYCODE_DEL)); in testShouldConsume()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DFocusHelper.java25 import com.android.launcher3.util.FocusLogic;
83 boolean consume = FocusLogic.shouldConsume(keyCode); in onKey()
111 int[][] matrix = FocusLogic.createSparseMatrix(cellLayout); in onKey()
113 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, iconIndex, pageIndex, in onKey()
115 if (newIconIndex == FocusLogic.NOOP) { in onKey()
123 case FocusLogic.PREVIOUS_PAGE_RIGHT_COLUMN: in onKey()
124 case FocusLogic.PREVIOUS_PAGE_LEFT_COLUMN: in onKey()
130 ((newIconIndex == FocusLogic.PREVIOUS_PAGE_LEFT_COLUMN) in onKey()
135 case FocusLogic.PREVIOUS_PAGE_FIRST_ITEM: in onKey()
142 case FocusLogic.PREVIOUS_PAGE_LAST_ITEM: in onKey()
[all …]
DAppWidgetResizeFrame.java20 import com.android.launcher3.util.FocusLogic;
490 if (FocusLogic.shouldConsume(keyCode)) { in onKey()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DFocusLogic.java46 public class FocusLogic { class