Searched refs:ActionBarShadowController (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | ActionBarShadowControllerTest.java | 75 ActionBarShadowController.attachToView(mActivity, mLifecycle, mRecyclerView); in attachToView_shouldAddScrollWatcherAndUpdateActionBar() 77 verify(mActionBar).setElevation(ActionBarShadowController.ELEVATION_LOW); in attachToView_shouldAddScrollWatcherAndUpdateActionBar() 84 ActionBarShadowController.attachToView(mActivity, mLifecycle, mScrollView); in attachToView_scrollView_shouldAddScrollWatcherAndUpdateActionBar() 86 verify(mActionBar).setElevation(ActionBarShadowController.ELEVATION_LOW); in attachToView_scrollView_shouldAddScrollWatcherAndUpdateActionBar() 94 final ActionBarShadowController controller = in attachToView_customViewAsActionBar_shouldUpdateElevationOnScroll() 95 ActionBarShadowController.attachToView(mView, mLifecycle, mRecyclerView); in attachToView_customViewAsActionBar_shouldUpdateElevationOnScroll() 96 assertThat(mView.getElevation()).isEqualTo(ActionBarShadowController.ELEVATION_LOW); in attachToView_customViewAsActionBar_shouldUpdateElevationOnScroll() 101 assertThat(mView.getElevation()).isEqualTo(ActionBarShadowController.ELEVATION_HIGH); in attachToView_customViewAsActionBar_shouldUpdateElevationOnScroll() 106 ActionBarShadowController.attachToView(mActivity, mLifecycle, mRecyclerView); in attachToView_lifecycleChange_shouldAttachDetach() 121 final ActionBarShadowController controller = in onScrolled_nullAnchorViewAndActivity_shouldNotCrash() [all …]
|
/frameworks/base/packages/SettingsLib/ActionBarShadow/src/com/android/settingslib/widget/ |
D | ActionBarShadowController.java | 34 public class ActionBarShadowController implements LifecycleObserver { class 50 public static ActionBarShadowController attachToView( in attachToView() 52 return new ActionBarShadowController(activity, lifecycle, scrollView); in attachToView() 58 public static ActionBarShadowController attachToView( in attachToView() 60 return new ActionBarShadowController(anchorView, lifecycle, scrollView); in attachToView() 63 private ActionBarShadowController(Activity activity, Lifecycle lifecycle, View scrollView) { in ActionBarShadowController() method in ActionBarShadowController 64 mScrollChangeWatcher = new ActionBarShadowController.ScrollChangeWatcher(activity); in ActionBarShadowController() 70 private ActionBarShadowController(View anchorView, Lifecycle lifecycle, View scrollView) { in ActionBarShadowController() method in ActionBarShadowController 71 mScrollChangeWatcher = new ActionBarShadowController.ScrollChangeWatcher(anchorView); in ActionBarShadowController()
|