Home
last modified time | relevance | path

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

/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/main/java/com/android/car/ui/utils/
DViewUtils.java82 static final int DEFAULT_FOCUS = 5; field in ViewUtils
93 IMPLICIT_DEFAULT_FOCUS, DEFAULT_FOCUS, FOCUSED_BY_DEFAULT})
302 if (currentLevel < DEFAULT_FOCUS && focusOnDefaultFocusView(root)) { in adjustFocus()
399 return DEFAULT_FOCUS; in getFocusLevel()
/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/androidTest/java/com/android/car/ui/utils/
DViewUtilsTest.java28 import static com.android.car.ui.utils.ViewUtils.DEFAULT_FOCUS;
473 assertThat(ViewUtils.adjustFocus(mFocusArea4, DEFAULT_FOCUS)).isFalse(); in testAdjustFocus_differentFocusLevels()
475 assertThat(ViewUtils.adjustFocus(mFocusArea3, DEFAULT_FOCUS)).isTrue(); in testAdjustFocus_differentFocusLevels()
510 assertThat(ViewUtils.getFocusLevel(mDefaultFocus4)).isEqualTo(DEFAULT_FOCUS); in testGetFocusLevel()