@Test public void testStartsBand_NoItems() { mAdapter.updateTestModelIds(Collections.EMPTY_LIST); assertTrue(mBandController.shouldStart(mStartEvent)); }
@VisibleForTesting boolean shouldStart(@NonNull MotionEvent e) { return MotionEvents.isPrimaryMouseButtonPressed(e) && MotionEvents.isActionMove(e) && mBandPredicate.canInitiate(e) && !isActive(); }
BandSelectionHelper implements OnItemTouchListener { @VisibleForTesting boolean shouldStart(@NonNull MotionEvent e) { return MotionEvents.isPrimaryMouseButtonPressed(e) && MotionEvents.isActionMove(e) && mBandPredicate.canInitiate(e) && !isActive(); } }
BandSelectionHelper implements OnItemTouchListener { @VisibleForTesting boolean shouldStart(@NonNull MotionEvent e) { return MotionEvents.isPrimaryMouseButtonPressed(e) && MotionEvents.isActionMove(e) && mBandPredicate.canInitiate(e) && !isActive(); } BandSelectionHelper(
            @NonNull BandHost host,
            @NonNull AutoScroller scroller,
            @NonNull ItemKeyProvider<K> keyProvider,
            @NonNull SelectionTracker<K> selectionTracker,
            @NonNull BandPredicate bandPredicate,
            @NonNull FocusDelegate<K> focusDelegate,
            @NonNull OperationMonitor lock); }
BandSelectionHelper implements OnItemTouchListener { @VisibleForTesting boolean shouldStart(@NonNull MotionEvent e) { return MotionEvents.isPrimaryMouseButtonPressed(e) && MotionEvents.isActionMove(e) && mBandPredicate.canInitiate(e) && !isActive(); } BandSelectionHelper(
            @NonNull BandHost host,
            @NonNull AutoScroller scroller,
            @NonNull ItemKeyProvider<K> keyProvider,
            @NonNull SelectionTracker<K> selectionTracker,
            @NonNull BandPredicate bandPredicate,
            @NonNull FocusDelegate<K> focusDelegate,
            @NonNull OperationMonitor lock); @Override boolean onInterceptTouchEvent(@NonNull RecyclerView unused, @NonNull MotionEvent e); @Override void onTouchEvent(@NonNull RecyclerView unused, @NonNull MotionEvent e); @Override void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept); }
BandSelectionHelper implements OnItemTouchListener { @VisibleForTesting boolean shouldStart(@NonNull MotionEvent e) { return MotionEvents.isPrimaryMouseButtonPressed(e) && MotionEvents.isActionMove(e) && mBandPredicate.canInitiate(e) && !isActive(); } BandSelectionHelper(
            @NonNull BandHost host,
            @NonNull AutoScroller scroller,
            @NonNull ItemKeyProvider<K> keyProvider,
            @NonNull SelectionTracker<K> selectionTracker,
            @NonNull BandPredicate bandPredicate,
            @NonNull FocusDelegate<K> focusDelegate,
            @NonNull OperationMonitor lock); @Override boolean onInterceptTouchEvent(@NonNull RecyclerView unused, @NonNull MotionEvent e); @Override void onTouchEvent(@NonNull RecyclerView unused, @NonNull MotionEvent e); @Override void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept);  }