use of com.android.documentsui.dirlist.MultiSelectManager.Selection in project platform_frameworks_base by android.
the class MultiSelectManager_SelectionTest method testEqualsCopy.
public void testEqualsCopy() {
Selection other = new Selection();
other.copyFrom(selection);
assertEquals(selection, other);
assertEquals(selection.hashCode(), other.hashCode());
}
use of com.android.documentsui.dirlist.MultiSelectManager.Selection in project platform_frameworks_base by android.
the class MultiSelectManager_SelectionTest method testIntersection_empty0.
public void testIntersection_empty0() {
Selection testSelection = new Selection();
testSelection.intersect(new HashSet<String>());
assertTrue(testSelection.isEmpty());
}
use of com.android.documentsui.dirlist.MultiSelectManager.Selection in project platform_frameworks_base by android.
the class MultiSelectManager_SelectionTest method setUp.
@Override
public void setUp() throws Exception {
selection = new Selection();
selection.add(ids[0]);
selection.add(ids[1]);
selection.add(ids[2]);
}
use of com.android.documentsui.dirlist.MultiSelectManager.Selection in project platform_frameworks_base by android.
the class MultiSelectManager_SelectionTest method testSize.
public void testSize() {
Selection other = new Selection();
for (int i = 0; i < selection.size(); i++) {
other.add(ids[i]);
}
assertEquals(selection.size(), other.size());
}
use of com.android.documentsui.dirlist.MultiSelectManager.Selection in project platform_frameworks_base by android.
the class MultiSelectManager_SelectionTest method testNotEquals.
public void testNotEquals() {
Selection other = new Selection();
other.add("foobar");
assertFalse(selection.equals(other));
}
Aggregations