Searched refs:previousSetBit (Results 1 – 4 of 4) sorted by relevance
/libcore/luni/src/test/java/libcore/java/util/ |
D | BitSetTest.java | 179 assertEquals(-1, new BitSet().previousSetBit(666)); in test_previousSetBit() 185 assertEquals(32, bs.previousSetBit(999)); in test_previousSetBit() 186 assertEquals(32, bs.previousSetBit(33)); in test_previousSetBit() 187 assertEquals(32, bs.previousSetBit(32)); in test_previousSetBit() 188 assertEquals(-1, bs.previousSetBit(31)); in test_previousSetBit() 197 assertEquals(666, bs.previousSetBit(999)); in test_previousSetBit() 198 assertEquals(666, bs.previousSetBit(667)); in test_previousSetBit() 199 assertEquals(666, bs.previousSetBit(666)); in test_previousSetBit() 200 assertEquals(192, bs.previousSetBit(665)); in test_previousSetBit() 201 assertEquals(32, bs.previousSetBit(191)); in test_previousSetBit() [all …]
|
/libcore/ojluni/src/test/java/util/BitSet/ |
D | PreviousBits.java | 47 new F(){void f(){ s.previousSetBit(-2);}}, in testOutOfBounds() 49 new F(){void f(){ s.previousSetBit(Integer.MIN_VALUE);}}, in testOutOfBounds() 65 equal(-1, s.previousSetBit(i)); in test() 80 equal(-1, s.previousSetBit(i)); in test() 88 equal(j, s.previousSetBit(j)); in test() 94 equal(j, s.previousSetBit(i)); in test() 107 equal(s.previousSetBit(i), in test() 118 equal(s.previousSetBit(i), i); in test() 128 for (int i = s.length(); (i = s.previousSetBit(i-1)) >= 0; ) in test()
|
/libcore/ojluni/src/main/java/java/util/ |
D | BitSet.java | 787 public int previousSetBit(int fromIndex) { in previousSetBit() method in BitSet 1332 ? previousSetBit(hi - 1) + 1 in stream()
|
/libcore/api/ |
D | current.txt | 13444 method public int previousSetBit(int);
|