Home
last modified time | relevance | path

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

12345678910>>...44

/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/
DProviderChecker.java21 checkArgument(interfaceType.isInterface(), "%s must be an interface", interfaceType.getName()); in checkInterface()
22 checkArgument( in checkInterface()
29 checkArgument( in checkInterface()
41 checkArgument( in checkInterface()
47 checkArgument( in checkInterface()
54 checkArgument( in checkInterface()
60 checkArgument( in checkInterface()
71 checkArgument( in checkInterface()
87 checkArgument( in checkInterface()
92 checkArgument( in checkInterface()
[all …]
/external/truth/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/
DFieldDescriptorValidator.java19 import static com.google.common.base.Preconditions.checkArgument;
34 checkArgument( in IS_FIELD_WITH_ABSENCE()
39 checkArgument( in IS_FIELD_WITH_ABSENCE()
49 checkArgument( in IS_FIELD_WITH_ORDER()
51 checkArgument( in IS_FIELD_WITH_ORDER()
60 checkArgument( in IS_FIELD_WITH_EXTRA_ELEMENTS()
69 checkArgument( in IS_DOUBLE_FIELD()
78 checkArgument( in IS_FLOAT_FIELD()
/external/guava/android/guava/src/com/google/common/net/
DHostAndPort.java17 import static com.google.common.base.Preconditions.checkArgument;
133 checkArgument(isValidPort(port), "Port out of range: %s", port); in fromParts()
135 checkArgument(!parsedHost.hasPort(), "Host has a port: %s", host); in fromParts()
152 checkArgument(!parsedHost.hasPort(), "Host has a port: %s", host); in fromHost()
194 checkArgument( in fromString()
203 checkArgument(isValidPort(port), "Port number out of range: %s", hostPortString); in fromString()
217 checkArgument( in getHostAndPortFromBracketedHost()
223 checkArgument( in getHostAndPortFromBracketedHost()
232 checkArgument( in getHostAndPortFromBracketedHost()
237 checkArgument( in getHostAndPortFromBracketedHost()
[all …]
/external/guava/guava/src/com/google/common/net/
DHostAndPort.java17 import static com.google.common.base.Preconditions.checkArgument;
133 checkArgument(isValidPort(port), "Port out of range: %s", port); in fromParts()
135 checkArgument(!parsedHost.hasPort(), "Host has a port: %s", host); in fromParts()
152 checkArgument(!parsedHost.hasPort(), "Host has a port: %s", host); in fromHost()
194 checkArgument( in fromString()
203 checkArgument(isValidPort(port), "Port number out of range: %s", hostPortString); in fromString()
217 checkArgument( in getHostAndPortFromBracketedHost()
223 checkArgument( in getHostAndPortFromBracketedHost()
232 checkArgument( in getHostAndPortFromBracketedHost()
237 checkArgument( in getHostAndPortFromBracketedHost()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/
DRtspMediaTrack.java21 import static com.google.android.exoplayer2.util.Assertions.checkArgument;
114 checkArgument(mediaDescription.attributes.containsKey(ATTR_CONTROL)); in RtspMediaTrack()
164 checkArgument(channelCount != C.INDEX_UNSET); in generatePayloadFormat()
165 checkArgument(!fmtpParameters.isEmpty()); in generatePayloadFormat()
170 checkArgument(channelCount == 1, "Multi channel AMR is not currently supported."); in generatePayloadFormat()
171 checkArgument( in generatePayloadFormat()
174 checkArgument( in generatePayloadFormat()
177 checkArgument( in generatePayloadFormat()
182 checkArgument(!fmtpParameters.isEmpty()); in generatePayloadFormat()
186 checkArgument(!fmtpParameters.isEmpty()); in generatePayloadFormat()
[all …]
/external/guava/android/guava/src/com/google/common/cache/
DCacheBuilderSpec.java17 import static com.google.common.base.Preconditions.checkArgument;
143 checkArgument(!keyAndValue.isEmpty(), "blank key-value pair"); in parse()
144 checkArgument( in parse()
152 checkArgument(valueParser != null, "unknown key %s", key); in parse()
329 checkArgument( in parseInteger()
341 checkArgument(spec.maximumSize == null, "maximum size was already set to ", spec.maximumSize); in parseLong()
342 checkArgument( in parseLong()
352 checkArgument( in parseLong()
354 checkArgument(spec.maximumSize == null, "maximum size was already set to ", spec.maximumSize); in parseLong()
363 checkArgument( in parseInteger()
[all …]
DCacheStats.java17 import static com.google.common.base.Preconditions.checkArgument;
86 checkArgument(hitCount >= 0); in CacheStats()
87 checkArgument(missCount >= 0); in CacheStats()
88 checkArgument(loadSuccessCount >= 0); in CacheStats()
89 checkArgument(loadExceptionCount >= 0); in CacheStats()
90 checkArgument(totalLoadTime >= 0); in CacheStats()
91 checkArgument(evictionCount >= 0); in CacheStats()
/external/guava/guava/src/com/google/common/cache/
DCacheBuilderSpec.java17 import static com.google.common.base.Preconditions.checkArgument;
143 checkArgument(!keyAndValue.isEmpty(), "blank key-value pair"); in parse()
144 checkArgument( in parse()
152 checkArgument(valueParser != null, "unknown key %s", key); in parse()
329 checkArgument( in parseInteger()
341 checkArgument(spec.maximumSize == null, "maximum size was already set to ", spec.maximumSize); in parseLong()
342 checkArgument( in parseLong()
352 checkArgument( in parseLong()
354 checkArgument(spec.maximumSize == null, "maximum size was already set to ", spec.maximumSize); in parseLong()
363 checkArgument( in parseInteger()
[all …]
DCacheStats.java17 import static com.google.common.base.Preconditions.checkArgument;
86 checkArgument(hitCount >= 0); in CacheStats()
87 checkArgument(missCount >= 0); in CacheStats()
88 checkArgument(loadSuccessCount >= 0); in CacheStats()
89 checkArgument(loadExceptionCount >= 0); in CacheStats()
90 checkArgument(totalLoadTime >= 0); in CacheStats()
91 checkArgument(evictionCount >= 0); in CacheStats()
/external/setfilters/java/com/google/setfilters/cuckoofilter/
DCuckooFilterConfig.java17 import static com.google.common.base.Preconditions.checkArgument;
114 checkArgument(size != null, "Size must be set."); in build()
115 checkArgument(hashFunction != null, "Hash function must be set."); in build()
116 checkArgument(strategy != null, "Strategy must be set."); in build()
170 checkArgument( in computeEfficientSize()
174 checkArgument( in computeEfficientSize()
206 checkArgument( in computeEfficientSize()
284 checkArgument(bucketCount > 0, "bucketCount must be > 0: %s given instead.", bucketCount); in build()
285 checkArgument( in build()
290 checkArgument( in build()
/external/guava/android/guava/src/com/google/common/base/
DPreconditions.java129 public static void checkArgument(boolean expression) { in checkArgument() method in Preconditions
143 public static void checkArgument(boolean expression, @CheckForNull Object errorMessage) { in checkArgument() method in Preconditions
162 public static void checkArgument( in checkArgument() method in Preconditions
178 public static void checkArgument(boolean b, String errorMessageTemplate, char p1) { in checkArgument() method in Preconditions
191 public static void checkArgument(boolean b, String errorMessageTemplate, int p1) { in checkArgument() method in Preconditions
204 public static void checkArgument(boolean b, String errorMessageTemplate, long p1) { in checkArgument() method in Preconditions
217 public static void checkArgument( in checkArgument() method in Preconditions
231 public static void checkArgument(boolean b, String errorMessageTemplate, char p1, char p2) { in checkArgument() method in Preconditions
244 public static void checkArgument(boolean b, String errorMessageTemplate, char p1, int p2) { in checkArgument() method in Preconditions
257 public static void checkArgument(boolean b, String errorMessageTemplate, char p1, long p2) { in checkArgument() method in Preconditions
[all …]
/external/guava/guava/src/com/google/common/base/
DPreconditions.java129 public static void checkArgument(boolean expression) { in checkArgument() method in Preconditions
143 public static void checkArgument(boolean expression, @CheckForNull Object errorMessage) { in checkArgument() method in Preconditions
162 public static void checkArgument( in checkArgument() method in Preconditions
178 public static void checkArgument(boolean b, String errorMessageTemplate, char p1) { in checkArgument() method in Preconditions
191 public static void checkArgument(boolean b, String errorMessageTemplate, int p1) { in checkArgument() method in Preconditions
204 public static void checkArgument(boolean b, String errorMessageTemplate, long p1) { in checkArgument() method in Preconditions
217 public static void checkArgument( in checkArgument() method in Preconditions
231 public static void checkArgument(boolean b, String errorMessageTemplate, char p1, char p2) { in checkArgument() method in Preconditions
244 public static void checkArgument(boolean b, String errorMessageTemplate, char p1, int p2) { in checkArgument() method in Preconditions
257 public static void checkArgument(boolean b, String errorMessageTemplate, char p1, long p2) { in checkArgument() method in Preconditions
[all …]
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/
DGetFileGroupsByFilterRequest.java18 import static com.google.common.base.Preconditions.checkArgument;
103 checkArgument(!getFileGroupsByFilterRequest.groupNameOptional().isPresent()); in build()
104 checkArgument(!getFileGroupsByFilterRequest.accountOptional().isPresent()); in build()
105 checkArgument(!getFileGroupsByFilterRequest.groupWithNoAccountOnly()); in build()
107 checkArgument( in build()
113 checkArgument(!getFileGroupsByFilterRequest.accountOptional().isPresent()); in build()
/external/rappor/client/java/com/google/rappor/
DEncoder.java319 checkArgument( in Encoder()
325 checkArgument( in Encoder()
329 checkArgument( in Encoder()
333 checkArgument( in Encoder()
337 checkArgument( in Encoder()
344 checkArgument( in Encoder()
349 checkArgument( in Encoder()
362 checkArgument(numCohortsIsPowerOfTwo, "numCohorts must be a power of 2."); in Encoder()
429 checkArgument( in encodeOrdinal()
522 checkArgument(masked.isEmpty(), "Input bits had bits set past Encoder's numBits limit."); in computePermanentRandomizedResponse()
[all …]
/external/guava/guava/src/com/google/common/hash/
DBloomFilter.java17 import static com.google.common.base.Preconditions.checkArgument;
124 checkArgument(numHashFunctions > 0, "numHashFunctions (%s) must be > 0", numHashFunctions); in BloomFilter()
125 checkArgument( in BloomFilter()
255 checkArgument(this != that, "Cannot combine a BloomFilter with itself."); in putAll()
256 checkArgument( in putAll()
261 checkArgument( in putAll()
266 checkArgument( in putAll()
271 checkArgument( in putAll()
350 checkArgument( in toBloomFilter()
352 checkArgument(fpp > 0.0, "False positive probability (%s) must be > 0.0", fpp); in toBloomFilter()
[all …]
/external/desugar/java/com/google/devtools/build/android/desugar/scan/
DKeepReference.java16 import static com.google.common.base.Preconditions.checkArgument;
25 checkArgument(!internalName.isEmpty()); in classReference()
30 checkArgument(!internalName.isEmpty()); in memberReference()
31 checkArgument(!name.isEmpty()); in memberReference()
32 checkArgument(!desc.isEmpty()); in memberReference()
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/
DNettyServerBuilder.java19 import static com.google.common.base.Preconditions.checkArgument;
195 checkArgument(sslContext.isServer(), in sslContext()
242 checkArgument(maxCalls > 0, "max must be positive: %s", maxCalls); in maxConcurrentCallsPerConnection()
252 checkArgument(flowControlWindow > 0, "flowControlWindow must be positive"); in flowControlWindow()
274 checkArgument(bytes >= 0, "bytes must be >= 0"); in maxInboundMessageSize()
286 checkArgument(maxHeaderListSize > 0, "maxHeaderListSize must be > 0"); in maxHeaderListSize()
299 checkArgument(keepAliveTime > 0L, "keepalive time must be positive"); in keepAliveTime()
320 checkArgument(keepAliveTimeout > 0L, "keepalive timeout must be positive"); in keepAliveTimeout()
341 checkArgument(maxConnectionIdle > 0L, "max connection idle must be positive"); in maxConnectionIdle()
361 checkArgument(maxConnectionAge > 0L, "max connection age must be positive"); in maxConnectionAge()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/main/java/com/google/android/exoplayer2/util/
DCodecSpecificDataUtil.java18 import static com.google.android.exoplayer2.util.Assertions.checkArgument;
104 checkArgument(foundVOL, "Invalid input: VOL not found."); in getVideoResolutionFromMpeg4VideoConfig()
132 checkArgument( in getVideoResolutionFromMpeg4VideoConfig()
136 checkArgument(scratchBits.readBit()); // marker_bit in getVideoResolutionFromMpeg4VideoConfig()
138 checkArgument(scratchBits.readBit()); // marker_bit in getVideoResolutionFromMpeg4VideoConfig()
141 checkArgument(vopTimeIncrementResolution > 0); in getVideoResolutionFromMpeg4VideoConfig()
151 checkArgument(scratchBits.readBit()); // marker_bit in getVideoResolutionFromMpeg4VideoConfig()
153 checkArgument(scratchBits.readBit()); // marker_bit in getVideoResolutionFromMpeg4VideoConfig()
155 checkArgument(scratchBits.readBit()); // marker_bit in getVideoResolutionFromMpeg4VideoConfig()
/external/opencensus-java/api/src/main/java/io/opencensus/metrics/export/
DDistribution.java63 Utils.checkArgument(count >= 0, "count should be non-negative."); in create()
64 Utils.checkArgument( in create()
67 Utils.checkArgument(sum == 0, "sum should be 0 if count is 0."); in create()
68 Utils.checkArgument( in create()
212 Utils.checkArgument(previous > 0, "bucket boundary should be > 0"); in checkBucketBoundsAreSorted()
215 Utils.checkArgument(previous < next, "bucket boundaries not sorted."); in checkBucketBoundsAreSorted()
250 Utils.checkArgument(count >= 0, "bucket count should be non-negative.");
263 Utils.checkArgument(count >= 0, "bucket count should be non-negative."); in create()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DServiceConfigInterceptor.java19 import static com.google.common.base.Preconditions.checkArgument;
98 checkArgument( in handleUpdate()
102 checkArgument(!Strings.isNullOrEmpty(serviceName), "missing service name"); in handleUpdate()
106 checkArgument( in handleUpdate()
112 checkArgument( in handleUpdate()
151 checkArgument( in MethodInfo()
158 checkArgument( in MethodInfo()
209 checkArgument(maxAttempts >= 2, "maxAttempts must be greater than 1: %s", maxAttempts); in retryPolicy()
215 checkArgument( in retryPolicy()
223 checkArgument( in retryPolicy()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/
DTransformationResult.java18 import static com.google.android.exoplayer2.util.Assertions.checkArgument;
47 checkArgument(durationMs > 0 || durationMs == C.TIME_UNSET); in setDurationMs()
58 checkArgument(fileSizeBytes > 0 || fileSizeBytes == C.LENGTH_UNSET); in setFileSizeBytes()
69 checkArgument(averageAudioBitrate > 0 || averageAudioBitrate == C.RATE_UNSET_INT); in setAverageAudioBitrate()
80 checkArgument(averageVideoBitrate > 0 || averageVideoBitrate == C.RATE_UNSET_INT); in setAverageVideoBitrate()
91 checkArgument(videoFrameCount >= 0); in setVideoFrameCount()
/external/guava/android/guava/src/com/google/common/math/
DLinearTransformation.java17 import static com.google.common.base.Preconditions.checkArgument;
48 checkArgument(isFinite(x1) && isFinite(y1)); in mapping()
77 checkArgument(isFinite(x2) && isFinite(y2)); in and()
79 checkArgument(y2 != y1); in and()
92 checkArgument(!Double.isNaN(slope)); in withSlope()
107 checkArgument(isFinite(x)); in vertical()
116 checkArgument(isFinite(y)); in horizontal()
/external/guava/guava/src/com/google/common/math/
DLinearTransformation.java17 import static com.google.common.base.Preconditions.checkArgument;
48 checkArgument(isFinite(x1) && isFinite(y1)); in mapping()
77 checkArgument(isFinite(x2) && isFinite(y2)); in and()
79 checkArgument(y2 != y1); in and()
92 checkArgument(!Double.isNaN(slope)); in withSlope()
107 checkArgument(isFinite(x)); in vertical()
116 checkArgument(isFinite(y)); in horizontal()
/external/guava/guava-tests/test/com/google/common/base/
DPreconditionsTest.java44 Preconditions.checkArgument(true); in testCheckArgument_simple_success()
49 Preconditions.checkArgument(false); in testCheckArgument_simple_failure()
56 Preconditions.checkArgument(true, IGNORE_ME); in testCheckArgument_simpleMessage_success()
61 Preconditions.checkArgument(false, new Message()); in testCheckArgument_simpleMessage_failure()
70 Preconditions.checkArgument(false, null); in testCheckArgument_nullMessage_failure()
79 Preconditions.checkArgument(false, null, "b", "d"); in testCheckArgument_nullMessageWithArgs_failure()
88 Preconditions.checkArgument(false, "A %s C %s E", null, null); in testCheckArgument_nullArgs_failure()
97 Preconditions.checkArgument(false, "A %s C %s E", "b"); in testCheckArgument_notEnoughArgs_failure()
106 Preconditions.checkArgument(false, "A %s C %s E", "b", "d", "f"); in testCheckArgument_tooManyArgs_failure()
115 Preconditions.checkArgument(false, "A %s C", (Object) null); in testCheckArgument_singleNullArg_failure()
[all …]
/external/guava/android/guava-tests/test/com/google/common/base/
DPreconditionsTest.java44 Preconditions.checkArgument(true); in testCheckArgument_simple_success()
49 Preconditions.checkArgument(false); in testCheckArgument_simple_failure()
56 Preconditions.checkArgument(true, IGNORE_ME); in testCheckArgument_simpleMessage_success()
61 Preconditions.checkArgument(false, new Message()); in testCheckArgument_simpleMessage_failure()
70 Preconditions.checkArgument(false, null); in testCheckArgument_nullMessage_failure()
79 Preconditions.checkArgument(false, null, "b", "d"); in testCheckArgument_nullMessageWithArgs_failure()
88 Preconditions.checkArgument(false, "A %s C %s E", null, null); in testCheckArgument_nullArgs_failure()
97 Preconditions.checkArgument(false, "A %s C %s E", "b"); in testCheckArgument_notEnoughArgs_failure()
106 Preconditions.checkArgument(false, "A %s C %s E", "b", "d", "f"); in testCheckArgument_tooManyArgs_failure()
115 Preconditions.checkArgument(false, "A %s C", (Object) null); in testCheckArgument_singleNullArg_failure()
[all …]

12345678910>>...44