Home
last modified time | relevance | path

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

/cts/tests/tests/util/src/android/util/cts/
DArrayMapTest.java108 public static class ControlledHash implements Parcelable { class in ArrayMapTest
111 ControlledHash(int value) { in ControlledHash() method in ArrayMapTest.ControlledHash
120 return mValue == ((ControlledHash)o).mValue; in equals()
143 public static final Parcelable.Creator<ControlledHash> CREATOR
144 = new Parcelable.Creator<ControlledHash>() {
145 public ControlledHash createFromParcel(Parcel in) {
146 return new ControlledHash(in.readInt());
149 public ControlledHash[] newArray(int size) {
150 return new ControlledHash[size];
354 HashMap<ControlledHash, Integer> hashMap = new HashMap<>(); in testBasicArrayMap()
[all …]
DArraySetTest.java104 public static class ControlledHash { class in ArraySetTest
107 ControlledHash(int value) { in ControlledHash() method in ArraySetTest.ControlledHash
116 return mValue == ((ControlledHash)o).mValue; in equals()
237 HashSet<ControlledHash> hashSet = new HashSet<>(); in testBasicArraySet()
238 ArraySet<ControlledHash> arraySet = new ArraySet<>(); in testBasicArraySet()
241 ControlledHash key = KEYS[i] < 0 ? null : new ControlledHash(KEYS[i]); in testBasicArraySet()
281 arraySet.add(new ControlledHash(50000)); in testBasicArraySet()
282 ControlledHash lookup = new ControlledHash(50000); in testBasicArraySet()
283 Iterator<ControlledHash> it = arraySet.iterator(); in testBasicArraySet()