Home
last modified time | relevance | path

Searched refs:checkElementIndex (Results 1 – 25 of 54) sorted by relevance

123

/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/common/
DSupportPreconditions.java118 public static int checkElementIndex(int index, int size) { in checkElementIndex() method in SupportPreconditions
119 return checkElementIndex(index, size, "index"); in checkElementIndex()
133 public static int checkElementIndex(int index, int size, @Nullable String desc) { in checkElementIndex() method in SupportPreconditions
/external/guava/android/guava-tests/test/com/google/common/base/
DPreconditionsTest.java236 assertEquals(0, Preconditions.checkElementIndex(0, 1)); in testCheckElementIndex_ok()
237 assertEquals(0, Preconditions.checkElementIndex(0, 2)); in testCheckElementIndex_ok()
238 assertEquals(1, Preconditions.checkElementIndex(1, 2)); in testCheckElementIndex_ok()
243 Preconditions.checkElementIndex(1, -1); in testCheckElementIndex_badSize()
253 Preconditions.checkElementIndex(-1, 1); in testCheckElementIndex_negative()
262 Preconditions.checkElementIndex(1, 1); in testCheckElementIndex_tooHigh()
271 Preconditions.checkElementIndex(-1, 1, "foo"); in testCheckElementIndex_withDesc_negative()
280 Preconditions.checkElementIndex(1, 1, "foo"); in testCheckElementIndex_withDesc_tooHigh()
/external/guava/guava-tests/test/com/google/common/base/
DPreconditionsTest.java236 assertEquals(0, Preconditions.checkElementIndex(0, 1)); in testCheckElementIndex_ok()
237 assertEquals(0, Preconditions.checkElementIndex(0, 2)); in testCheckElementIndex_ok()
238 assertEquals(1, Preconditions.checkElementIndex(1, 2)); in testCheckElementIndex_ok()
243 Preconditions.checkElementIndex(1, -1); in testCheckElementIndex_badSize()
253 Preconditions.checkElementIndex(-1, 1); in testCheckElementIndex_negative()
262 Preconditions.checkElementIndex(1, 1); in testCheckElementIndex_tooHigh()
271 Preconditions.checkElementIndex(-1, 1, "foo"); in testCheckElementIndex_withDesc_negative()
280 Preconditions.checkElementIndex(1, 1, "foo"); in testCheckElementIndex_withDesc_tooHigh()
/external/guava/android/guava/src/com/google/common/collect/
DRegularImmutableList.java19 import static com.google.common.base.Preconditions.checkElementIndex;
77 checkElementIndex(index, size); in get()
DCartesianList.java17 import static com.google.common.base.Preconditions.checkElementIndex;
115 checkElementIndex(index, size()); in get()
125 checkElementIndex(axis, size()); in get()
DObjectCountHashMap.java19 import static com.google.common.base.Preconditions.checkElementIndex;
184 checkElementIndex(index, size); in getKey()
189 checkElementIndex(index, size); in getValue()
194 checkElementIndex(index, size); in setValue()
199 checkElementIndex(index, size); in getEntry()
DArrayTable.java20 import static com.google.common.base.Preconditions.checkElementIndex;
208 checkElementIndex(index, size()); in getEntry()
305 checkElementIndex(rowIndex, rowList.size());
306 checkElementIndex(columnIndex, columnList.size());
326 checkElementIndex(rowIndex, rowList.size());
327 checkElementIndex(columnIndex, columnList.size());
DLists.java20 import static com.google.common.base.Preconditions.checkElementIndex;
330 checkElementIndex(index, size()); in get()
364 checkElementIndex(index, size()); in get()
664 checkElementIndex(index, size());
742 checkElementIndex(index, size()); // for GWT
761 checkElementIndex(index, size()); // for GWT
807 checkElementIndex(index, size);
DRegularImmutableMap.java19 import static com.google.common.base.Preconditions.checkElementIndex;
297 checkElementIndex(index, size); in createAsList()
360 checkElementIndex(index, size);
DRegularContiguousSet.java18 import static com.google.common.base.Preconditions.checkElementIndex;
133 checkElementIndex(i, size());
/external/guava/guava/src/com/google/common/collect/
DCartesianList.java17 import static com.google.common.base.Preconditions.checkElementIndex;
115 checkElementIndex(index, size()); in get()
125 checkElementIndex(axis, size()); in get()
DArrayTable.java20 import static com.google.common.base.Preconditions.checkElementIndex;
207 checkElementIndex(index, size()); in getEntry()
309 checkElementIndex(rowIndex, rowList.size());
310 checkElementIndex(columnIndex, columnList.size());
330 checkElementIndex(rowIndex, rowList.size());
331 checkElementIndex(columnIndex, columnList.size());
DLists.java20 import static com.google.common.base.Preconditions.checkElementIndex;
331 checkElementIndex(index, size()); in get()
365 checkElementIndex(index, size()); in get()
677 checkElementIndex(index, size());
755 checkElementIndex(index, size()); // for GWT
774 checkElementIndex(index, size()); // for GWT
820 checkElementIndex(index, size);
DSingletonImmutableList.java43 Preconditions.checkElementIndex(index, 1); in get()
DRegularContiguousSet.java18 import static com.google.common.base.Preconditions.checkElementIndex;
133 checkElementIndex(i, size());
/external/dagger2/java/dagger/internal/codegen/base/
DFormatter.java19 import static com.google.common.base.Preconditions.checkElementIndex;
85 checkElementIndex(index, size); in formatArgumentInList()
/external/guava/android/guava/src/com/google/common/primitives/
DBytes.java18 import static com.google.common.base.Preconditions.checkElementIndex;
268 checkElementIndex(index, size()); in get()
304 checkElementIndex(index, size()); in set()
DBooleans.java18 import static com.google.common.base.Preconditions.checkElementIndex;
406 checkElementIndex(index, size()); in get()
443 checkElementIndex(index, size()); in set()
DChars.java18 import static com.google.common.base.Preconditions.checkElementIndex;
538 checkElementIndex(index, size()); in get()
575 checkElementIndex(index, size()); in set()
DShorts.java18 import static com.google.common.base.Preconditions.checkElementIndex;
590 checkElementIndex(index, size()); in get()
626 checkElementIndex(index, size()); in set()
DFloats.java18 import static com.google.common.base.Preconditions.checkElementIndex;
545 checkElementIndex(index, size()); in get()
581 checkElementIndex(index, size()); in set()
/external/guava/guava/src/com/google/common/primitives/
DBytes.java18 import static com.google.common.base.Preconditions.checkElementIndex;
268 checkElementIndex(index, size()); in get()
304 checkElementIndex(index, size()); in set()
DBooleans.java18 import static com.google.common.base.Preconditions.checkElementIndex;
406 checkElementIndex(index, size()); in get()
443 checkElementIndex(index, size()); in set()
DChars.java18 import static com.google.common.base.Preconditions.checkElementIndex;
538 checkElementIndex(index, size()); in get()
575 checkElementIndex(index, size()); in set()
/external/cldr/tools/java/org/unicode/cldr/api/
DCldrPath.java6 import static com.google.common.base.Preconditions.checkElementIndex;
325 checkElementIndex(n, getAttributeCount()); in getLocalAttributeName()
336 checkElementIndex(n, getAttributeCount()); in getLocalAttributeValue()

123