Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsColumnLayoutTest.java130 doReturn(false).when(mColumnLayout).shouldSnapToPowerButton(); in testUpdateSnap_initialState()
140 doReturn(true).when(mColumnLayout).shouldSnapToPowerButton(); in testUpdateSnap_snapThenSnap()
155 doReturn(true).when(mColumnLayout).shouldSnapToPowerButton(); in testUpdateSnap_snapThenCenter()
162 doReturn(false).when(mColumnLayout).shouldSnapToPowerButton(); in testUpdateSnap_snapThenCenter()
179 assertEquals(true, mColumnLayout.shouldSnapToPowerButton()); in testShouldSnapToPowerButton_vertical()
183 assertEquals(false, mColumnLayout.shouldSnapToPowerButton()); in testShouldSnapToPowerButton_vertical()
195 assertEquals(true, mColumnLayout.shouldSnapToPowerButton()); in testShouldSnapToPowerButton_horizontal()
199 assertEquals(false, mColumnLayout.shouldSnapToPowerButton()); in testShouldSnapToPowerButton_horizontal()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsColumnLayout.java137 protected boolean shouldSnapToPowerButton() { in shouldSnapToPowerButton() method in GlobalActionsColumnLayout
155 boolean snap = shouldSnapToPowerButton(); in updateSnap()