OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:checkArgument
(Results
1 - 25
of
62
) sorted by null
1
2
3
/external/guava/src/com/google/common/collect/
Hashing.java
20
import static com.google.common.base.Preconditions.
checkArgument
;
55
checkArgument
(setSize < MAX_TABLE_SIZE, "collection too large");
EnumBiMap.java
19
import static com.google.common.base.Preconditions.
checkArgument
;
82
checkArgument
(!map.isEmpty());
90
checkArgument
(!map.isEmpty());
EnumMultiset.java
20
import static com.google.common.base.Preconditions.
checkArgument
;
52
checkArgument
(iterator.hasNext(),
ConcurrentHashMultiset.java
20
import static com.google.common.base.Preconditions.
checkArgument
;
104
checkArgument
(countMap.isEmpty());
185
checkArgument
(occurrences > 0, "Invalid occurrences: %s", occurrences);
194
checkArgument
(occurrences <= Integer.MAX_VALUE - current,
220
checkArgument
(occurrences > 0, "Invalid occurrences: %s", occurrences);
278
checkArgument
(occurrences > 0, "Invalid occurrences: %s", occurrences);
ArrayListMultimap.java
31
import static com.google.common.base.Preconditions.
checkArgument
;
108
checkArgument
(expectedValuesPerKey >= 0);
/external/guava/src/com/google/common/primitives/
SignedBytes.java
23
import static com.google.common.base.Preconditions.
checkArgument
;
49
checkArgument
(result == value, "Out of range: %s", value);
93
checkArgument
(array.length > 0);
112
checkArgument
(array.length > 0);
UnsignedBytes.java
21
import static com.google.common.base.Preconditions.
checkArgument
;
48
checkArgument
(value >> 8 == 0, "out of range: %s", value);
94
checkArgument
(array.length > 0);
114
checkArgument
(array.length > 0);
Chars.java
31
import static com.google.common.base.Preconditions.
checkArgument
;
74
checkArgument
(result == value, "Out of range: %s", value);
214
checkArgument
(array.length > 0);
233
checkArgument
(array.length > 0);
298
checkArgument
(bytes.length >= BYTES,
321
checkArgument
(minLength >= 0, "Invalid minLength: %s", minLength);
322
checkArgument
(padding >= 0, "Invalid padding: %s", padding);
Ints.java
31
import static com.google.common.base.Preconditions.
checkArgument
;
74
checkArgument
(result == value, "Out of range: %s", value);
214
checkArgument
(array.length > 0);
233
checkArgument
(array.length > 0);
304
checkArgument
(bytes.length >= BYTES,
330
checkArgument
(minLength >= 0, "Invalid minLength: %s", minLength);
331
checkArgument
(padding >= 0, "Invalid padding: %s", padding);
Shorts.java
31
import static com.google.common.base.Preconditions.
checkArgument
;
74
checkArgument
(result == value, "Out of range: %s", value);
214
checkArgument
(array.length > 0);
233
checkArgument
(array.length > 0);
298
checkArgument
(bytes.length >= BYTES,
321
checkArgument
(minLength >= 0, "Invalid minLength: %s", minLength);
322
checkArgument
(padding >= 0, "Invalid padding: %s", padding);
Longs.java
31
import static com.google.common.base.Preconditions.
checkArgument
;
182
checkArgument
(array.length > 0);
201
checkArgument
(array.length > 0);
277
checkArgument
(bytes.length >= BYTES,
307
checkArgument
(minLength >= 0, "Invalid minLength: %s", minLength);
308
checkArgument
(padding >= 0, "Invalid padding: %s", padding);
Doubles.java
30
import static com.google.common.base.Preconditions.
checkArgument
;
187
checkArgument
(array.length > 0);
205
checkArgument
(array.length > 0);
254
checkArgument
(minLength >= 0, "Invalid minLength: %s", minLength);
255
checkArgument
(padding >= 0, "Invalid padding: %s", padding);
/external/guava/src/com/google/common/io/
Resources.java
19
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.",
LimitInputStream.java
45
Preconditions.
checkArgument
(limit >= 0, "limit must be non-negative");
MultiReader.java
64
Preconditions.
checkArgument
(n >= 0, "n is negative");
/external/jsilver/src/com/google/streamhtmlparser/impl/
InternalState.java
59
Preconditions.
checkArgument
(id >= FIRST_ID);
60
Preconditions.
checkArgument
(id <= MAX_ID);
ParserStateTable.java
165
Preconditions.
checkArgument
(chr >= 0 && chr < MAX_CHARS,
177
Preconditions.
checkArgument
(start >= 0 && start < MAX_CHARS,
179
Preconditions.
checkArgument
(end >= 0 && end < MAX_CHARS,
/external/jsilver/src/com/google/streamhtmlparser/util/
JavascriptTokenBuffer.java
224
Preconditions.
checkArgument
(start <= end);
225
Preconditions.
checkArgument
(start < 0);
226
Preconditions.
checkArgument
(end < 0);
EntityResolver.java
233
Preconditions.
checkArgument
(sb.length() > 0);
234
Preconditions.
checkArgument
(sb.charAt(0) == '&');
/external/guava/src/com/google/common/util/concurrent/
SimpleTimeLimiter.java
19
import static com.google.common.base.Preconditions.
checkArgument
;
87
checkArgument
(timeoutDuration > 0, "bad timeout: " + timeoutDuration);
88
checkArgument
(interfaceType.isInterface(),
119
checkArgument
(timeoutDuration > 0, "bad timeout: " + timeoutDuration);
/packages/apps/Tag/src/com/android/apps/tag/record/
TextRecord.java
90
Preconditions.
checkArgument
(record.getTnf() == NdefRecord.TNF_WELL_KNOWN);
91
Preconditions.
checkArgument
(Arrays.equals(record.getType(), NdefRecord.RTD_TEXT));
95
Preconditions.
checkArgument
(payload.length > 0);
113
Preconditions.
checkArgument
(payload.length - languageCodeLength - 1 >= 0);
/development/samples/NFCDemo/src/com/example/android/nfc/record/
TextRecord.java
66
Preconditions.
checkArgument
(record.getTnf() == NdefRecord.TNF_WELL_KNOWN);
67
Preconditions.
checkArgument
(Arrays.equals(record.getType(), NdefRecord.RTD_TEXT));
/external/guava/src/com/google/common/base/
Preconditions.java
35
*
checkArgument
(count > 0, "must be positive: %s", count);</pre>
69
public static void
checkArgument
(boolean expression) {
84
public static void
checkArgument
(boolean expression, Object errorMessage) {
109
public static void
checkArgument
(boolean expression,
Splitter.java
19
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");
/packages/apps/Email/src/com/android/email/
MessageListContext.java
100
Preconditions.
checkArgument
(
110
Preconditions.
checkArgument
(accountId != Account.NO_ACCOUNT, "Must specify an account");
111
Preconditions.
checkArgument
(mailboxId != Mailbox.NO_MAILBOX, "Must specify a mailbox");
Completed in 445 milliseconds
1
2
3