Home
last modified time | relevance | path

Searched refs:checkArgument (Results 1 – 25 of 42) sorted by relevance

12

/external/guava/src/com/google/common/primitives/
DUnsignedBytes.java21 import static com.google.common.base.Preconditions.checkArgument;
48 checkArgument(value >> 8 == 0, "out of range: %s", value); in checkedCast()
94 checkArgument(array.length > 0); in min()
114 checkArgument(array.length > 0); in max()
DSignedBytes.java23 import static com.google.common.base.Preconditions.checkArgument;
49 checkArgument(result == value, "Out of range: %s", value); in checkedCast()
93 checkArgument(array.length > 0); in min()
112 checkArgument(array.length > 0); in max()
DChars.java31 import static com.google.common.base.Preconditions.checkArgument;
74 checkArgument(result == value, "Out of range: %s", value); in checkedCast()
214 checkArgument(array.length > 0); in min()
233 checkArgument(array.length > 0); in max()
298 checkArgument(bytes.length >= BYTES, in fromByteArray()
321 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
322 checkArgument(padding >= 0, "Invalid padding: %s", padding); in ensureCapacity()
DShorts.java31 import static com.google.common.base.Preconditions.checkArgument;
74 checkArgument(result == value, "Out of range: %s", value); in checkedCast()
214 checkArgument(array.length > 0); in min()
233 checkArgument(array.length > 0); in max()
298 checkArgument(bytes.length >= BYTES, in fromByteArray()
321 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
322 checkArgument(padding >= 0, "Invalid padding: %s", padding); in ensureCapacity()
DInts.java31 import static com.google.common.base.Preconditions.checkArgument;
74 checkArgument(result == value, "Out of range: %s", value); in checkedCast()
214 checkArgument(array.length > 0); in min()
233 checkArgument(array.length > 0); in max()
304 checkArgument(bytes.length >= BYTES, in fromByteArray()
330 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
331 checkArgument(padding >= 0, "Invalid padding: %s", padding); in ensureCapacity()
DLongs.java31 import static com.google.common.base.Preconditions.checkArgument;
182 checkArgument(array.length > 0); in min()
201 checkArgument(array.length > 0); in max()
277 checkArgument(bytes.length >= BYTES, in fromByteArray()
307 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
308 checkArgument(padding >= 0, "Invalid padding: %s", padding); in ensureCapacity()
DDoubles.java30 import static com.google.common.base.Preconditions.checkArgument;
187 checkArgument(array.length > 0); in min()
205 checkArgument(array.length > 0); in max()
254 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
255 checkArgument(padding >= 0, "Invalid padding: %s", padding); in ensureCapacity()
DFloats.java30 import static com.google.common.base.Preconditions.checkArgument;
184 checkArgument(array.length > 0); in min()
202 checkArgument(array.length > 0); in max()
251 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
252 checkArgument(padding >= 0, "Invalid padding: %s", padding); in ensureCapacity()
DBytes.java20 import static com.google.common.base.Preconditions.checkArgument;
195 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
196 checkArgument(padding >= 0, "Invalid padding: %s", padding); in ensureCapacity()
DBooleans.java31 import static com.google.common.base.Preconditions.checkArgument;
218 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
219 checkArgument(padding >= 0, "Invalid padding: %s", padding); in ensureCapacity()
/external/guava/src/com/google/common/util/concurrent/
DSimpleTimeLimiter.java19 import static com.google.common.base.Preconditions.checkArgument;
87 checkArgument(timeoutDuration > 0, "bad timeout: " + timeoutDuration); in newProxy()
88 checkArgument(interfaceType.isInterface(), in newProxy()
119 checkArgument(timeoutDuration > 0, "bad timeout: " + timeoutDuration); in callWithTimeout()
/external/guava/src/com/google/common/collect/
DConcurrentHashMultiset.java20 import static com.google.common.base.Preconditions.checkArgument;
104 checkArgument(countMap.isEmpty()); in ConcurrentHashMultiset()
185 checkArgument(occurrences > 0, "Invalid occurrences: %s", occurrences); in add()
194 checkArgument(occurrences <= Integer.MAX_VALUE - current, in add()
220 checkArgument(occurrences > 0, "Invalid occurrences: %s", occurrences); in remove()
278 checkArgument(occurrences > 0, "Invalid occurrences: %s", occurrences); in removeExactly()
DAbstractBiMap.java21 import static com.google.common.base.Preconditions.checkArgument;
74 checkArgument(forward.isEmpty()); in setDelegates()
75 checkArgument(backward.isEmpty()); in setDelegates()
76 checkArgument(forward != backward); in setDelegates()
109 checkArgument(!containsValue(value), "value already present: %s", value); in putInBothMaps()
314 checkArgument(!containsValue(value),
DEnumBiMap.java19 import static com.google.common.base.Preconditions.checkArgument;
82 checkArgument(!map.isEmpty()); in inferKeyType()
90 checkArgument(!map.isEmpty()); in inferValueType()
DHashing.java20 import static com.google.common.base.Preconditions.checkArgument;
55 checkArgument(setSize < MAX_TABLE_SIZE, "collection too large"); in chooseTableSize()
DEnumMultiset.java20 import static com.google.common.base.Preconditions.checkArgument;
52 checkArgument(iterator.hasNext(), in create()
DAbstractMapBasedMultiset.java20 import static com.google.common.base.Preconditions.checkArgument;
244 checkArgument(
254 checkArgument(newCount <= Integer.MAX_VALUE,
266 checkArgument(
DMultisets.java21 import static com.google.common.base.Preconditions.checkArgument;
156 checkArgument(n >= 0); in immutableEntry()
213 checkArgument(occurrences > 0);
469 checkArgument(count >= 0, "%s cannot be negative: %s", name, count);
DCollections2.java32 import static com.google.common.base.Preconditions.checkArgument;
143 checkArgument(predicate.apply(element)); in add()
149 checkArgument(predicate.apply(element)); in addAll()
DArrayListMultimap.java31 import static com.google.common.base.Preconditions.checkArgument;
108 checkArgument(expectedValuesPerKey >= 0); in ArrayListMultimap()
DLists.java38 import static com.google.common.base.Preconditions.checkArgument;
90 checkArgument(arraySize >= 0); in computeArrayListCapacity()
467 checkArgument(size > 0);
/external/guava/src/com/google/common/io/
DResources.java19 import static com.google.common.base.Preconditions.checkArgument;
147 checkArgument(url != null, "resource %s not found.", resourceName);
159 checkArgument(url != null, "resource %s relative to %s not found.",
DFiles.java185 Preconditions.checkArgument(file.length() <= Integer.MAX_VALUE);
445 Preconditions.checkArgument(!from.equals(to),
474 Preconditions.checkArgument(directory.isDirectory(),
/external/guava/src/com/google/common/base/
DSplitter.java19 import static com.google.common.base.Preconditions.checkArgument;
157 checkArgument(separator.length() != 0,
202 checkArgument(!separatorPattern.matcher("").matches(),
252 checkArgument(length > 0, "The length may not be less than 1");
DPreconditions.java69 public static void checkArgument(boolean expression) { in checkArgument() method in Preconditions
84 public static void checkArgument(boolean expression, Object errorMessage) { in checkArgument() method in Preconditions
109 public static void checkArgument(boolean expression, in checkArgument() method in Preconditions

12