Home | History | Annotate | Download | only in dirlist
      1 /*
      2  * Copyright (C) 2015 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package com.android.documentsui.dirlist;
     18 
     19 import android.graphics.Point;
     20 import android.graphics.Rect;
     21 import android.support.v7.widget.RecyclerView.OnScrollListener;
     22 
     23 import com.android.documentsui.dirlist.MultiSelectManager.SelectionEnvironment;
     24 
     25 import java.util.List;
     26 
     27 public class TestSelectionEnvironment implements SelectionEnvironment {
     28 
     29     public TestSelectionEnvironment(List<String> items) {
     30     }
     31 
     32     @Override
     33     public void showBand(Rect rect) {
     34     }
     35 
     36     @Override
     37     public void hideBand() {
     38     }
     39 
     40     @Override
     41     public void addOnScrollListener(OnScrollListener listener) {
     42     }
     43 
     44     @Override
     45     public void removeOnScrollListener(OnScrollListener listener) {
     46     }
     47 
     48     @Override
     49     public void scrollBy(int dy) {
     50     }
     51 
     52     @Override
     53     public int getHeight() {
     54         return 0;
     55     }
     56 
     57     @Override
     58     public void invalidateView() {
     59     }
     60 
     61     @Override
     62     public void runAtNextFrame(Runnable r) {
     63     }
     64 
     65     @Override
     66     public void removeCallback(Runnable r) {
     67     }
     68 
     69     @Override
     70     public Point createAbsolutePoint(Point relativePoint) {
     71         return null;
     72     }
     73 
     74     @Override
     75     public Rect getAbsoluteRectForChildViewAt(int index) {
     76         return null;
     77     }
     78 
     79     @Override
     80     public int getAdapterPositionAt(int index) {
     81         return 0;
     82     }
     83 
     84     @Override
     85     public int getColumnCount() {
     86         return 0;
     87     }
     88 
     89     @Override
     90     public int getChildCount() {
     91         return 0;
     92     }
     93 
     94     @Override
     95     public int getVisibleChildCount() {
     96         return 0;
     97     }
     98 
     99     @Override
    100     public boolean isLayoutItem(int adapterPosition) {
    101         return false;
    102     }
    103 
    104     @Override
    105     public boolean hasView(int adapterPosition) {
    106         return true;
    107     }
    108 }
    109