Home
last modified time | relevance | path

Searched refs:Preconditions (Results 1 – 25 of 1692) sorted by relevance

12345678910>>...68

/external/guava/android/guava-tests/test/com/google/common/base/
DPreconditionsTest.java45 Preconditions.checkArgument(true); in testCheckArgument_simple_success()
50 Preconditions.checkArgument(false); in testCheckArgument_simple_failure()
57 Preconditions.checkArgument(true, IGNORE_ME); in testCheckArgument_simpleMessage_success()
62 Preconditions.checkArgument(false, new Message()); in testCheckArgument_simpleMessage_failure()
71 Preconditions.checkArgument(false, null); in testCheckArgument_nullMessage_failure()
80 Preconditions.checkArgument(false, null, "b", "d"); in testCheckArgument_nullMessageWithArgs_failure()
89 Preconditions.checkArgument(false, "A %s C %s E", null, null); in testCheckArgument_nullArgs_failure()
98 Preconditions.checkArgument(false, "A %s C %s E", "b"); in testCheckArgument_notEnoughArgs_failure()
107 Preconditions.checkArgument(false, "A %s C %s E", "b", "d", "f"); in testCheckArgument_tooManyArgs_failure()
116 Preconditions.checkArgument(false, "A %s C", (Object) null); in testCheckArgument_singleNullArg_failure()
[all …]
/external/guava/guava-tests/test/com/google/common/base/
DPreconditionsTest.java45 Preconditions.checkArgument(true); in testCheckArgument_simple_success()
50 Preconditions.checkArgument(false); in testCheckArgument_simple_failure()
57 Preconditions.checkArgument(true, IGNORE_ME); in testCheckArgument_simpleMessage_success()
62 Preconditions.checkArgument(false, new Message()); in testCheckArgument_simpleMessage_failure()
71 Preconditions.checkArgument(false, null); in testCheckArgument_nullMessage_failure()
80 Preconditions.checkArgument(false, null, "b", "d"); in testCheckArgument_nullMessageWithArgs_failure()
89 Preconditions.checkArgument(false, "A %s C %s E", null, null); in testCheckArgument_nullArgs_failure()
98 Preconditions.checkArgument(false, "A %s C %s E", "b"); in testCheckArgument_notEnoughArgs_failure()
107 Preconditions.checkArgument(false, "A %s C %s E", "b", "d", "f"); in testCheckArgument_tooManyArgs_failure()
116 Preconditions.checkArgument(false, "A %s C", (Object) null); in testCheckArgument_singleNullArg_failure()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/value/
DDexBackedEncodedValue.java38 import org.jf.dexlib2.util.Preconditions;
55 Preconditions.checkValueArg(valueArg, 0); in readFrom()
58 Preconditions.checkValueArg(valueArg, 1); in readFrom()
61 Preconditions.checkValueArg(valueArg, 1); in readFrom()
64 Preconditions.checkValueArg(valueArg, 3); in readFrom()
67 Preconditions.checkValueArg(valueArg, 7); in readFrom()
70 Preconditions.checkValueArg(valueArg, 3); in readFrom()
74 Preconditions.checkValueArg(valueArg, 7); in readFrom()
78 Preconditions.checkValueArg(valueArg, 3); in readFrom()
81 Preconditions.checkValueArg(valueArg, 3); in readFrom()
[all …]
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
DSameThreadScheduledExecutorService.java22 import com.google.common.base.Preconditions;
74 Preconditions.checkNotNull(unit, "unit must not be null!"); in awaitTermination()
80 Preconditions.checkNotNull(task, "task must not be null!"); in submit()
86 Preconditions.checkNotNull(task, "task must not be null!"); in submit()
87 Preconditions.checkNotNull(result, "result must not be null!"); in submit()
93 Preconditions.checkNotNull(task, "task must not be null!"); in submit()
100 Preconditions.checkNotNull(tasks, "tasks must not be null!"); in invokeAll()
108 Preconditions.checkNotNull(tasks, "tasks must not be null!"); in invokeAll()
109 Preconditions.checkNotNull(unit, "unit must not be null!"); in invokeAll()
116 Preconditions.checkNotNull(tasks, "tasks must not be null!"); in invokeAny()
[all …]
/external/guava/android/guava-testlib/src/com/google/common/util/concurrent/testing/
DSameThreadScheduledExecutorService.java22 import com.google.common.base.Preconditions;
74 Preconditions.checkNotNull(unit, "unit must not be null!"); in awaitTermination()
80 Preconditions.checkNotNull(task, "task must not be null!"); in submit()
86 Preconditions.checkNotNull(task, "task must not be null!"); in submit()
87 Preconditions.checkNotNull(result, "result must not be null!"); in submit()
93 Preconditions.checkNotNull(task, "task must not be null!"); in submit()
100 Preconditions.checkNotNull(tasks, "tasks must not be null!"); in invokeAll()
108 Preconditions.checkNotNull(tasks, "tasks must not be null!"); in invokeAll()
109 Preconditions.checkNotNull(unit, "unit must not be null!"); in invokeAll()
116 Preconditions.checkNotNull(tasks, "tasks must not be null!"); in invokeAny()
[all …]
/external/dagger2/java/dagger/hilt/android/internal/testing/
DTestApplicationComponentManager.java23 import dagger.hilt.internal.Preconditions;
101 Preconditions.checkState( in generatedComponent()
112 Preconditions.checkState( in generatedComponent()
131 Preconditions.checkState( in setHasHiltTestRule()
139 Preconditions.checkState( in checkStateIsCleared()
142 Preconditions.checkState( in checkStateIsCleared()
145 Preconditions.checkState( in checkStateIsCleared()
148 Preconditions.checkState( in checkStateIsCleared()
151 Preconditions.checkState( in checkStateIsCleared()
154 Preconditions.checkState( in checkStateIsCleared()
[all …]
/external/setupcompat/main/java/com/google/android/setupcompat/logging/
DSetupMetricsLogger.java21 import com.google.android.setupcompat.internal.Preconditions;
32 Preconditions.checkNotNull(context, "Context cannot be null."); in logCustomEvent()
33 Preconditions.checkNotNull(customEvent, "CustomEvent cannot be null."); in logCustomEvent()
42 Preconditions.checkNotNull(context, "Context cannot be null."); in logCounter()
43 Preconditions.checkNotNull(counterName, "CounterName cannot be null."); in logCounter()
44 Preconditions.checkArgument(times > 0, "Counter cannot be negative."); in logCounter()
55 Preconditions.checkNotNull(context, "Context cannot be null."); in logDuration()
56 Preconditions.checkNotNull(timer, "Timer cannot be null."); in logDuration()
57 Preconditions.checkArgument( in logDuration()
66 Preconditions.checkNotNull(context, "Context cannot be null."); in logDuration()
[all …]
DCustomEvent.java32 import com.google.android.setupcompat.internal.Preconditions;
53 Preconditions.checkArgument( in create()
68 Preconditions.checkArgument( in create()
85 Preconditions.checkNotNull(customEvent, "CustomEvent cannot be null"); in toBundle()
174 Preconditions.checkArgument(timestampMillis >= 0, "Timestamp cannot be negative."); in CustomEvent()
175 Preconditions.checkNotNull(metricKey, "MetricKey cannot be null."); in CustomEvent()
176 Preconditions.checkNotNull(bundle, "Bundle cannot be null."); in CustomEvent()
177 Preconditions.checkArgument(!bundle.isEmpty(), "Bundle cannot be empty."); in CustomEvent()
178 Preconditions.checkNotNull(piiValues, "piiValues cannot be null."); in CustomEvent()
196 Preconditions.checkArgument( in assertPersistableBundleIsValid()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/
DNoRecordEventsSpanImpl.java19 import com.google.common.base.Preconditions;
42 Preconditions.checkNotNull(description, "description"); in addAnnotation()
43 Preconditions.checkNotNull(attributes, "attribute"); in addAnnotation()
48 Preconditions.checkNotNull(annotation, "annotation"); in addAnnotation()
53 Preconditions.checkNotNull(key, "key"); in putAttribute()
54 Preconditions.checkNotNull(value, "value"); in putAttribute()
59 Preconditions.checkNotNull(attributes, "attributes"); in putAttributes()
64 Preconditions.checkNotNull(messageEvent, "messageEvent"); in addMessageEvent()
69 Preconditions.checkNotNull(link, "link"); in addLink()
74 Preconditions.checkNotNull(status, "status"); in setStatus()
[all …]
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DAbstractServerStream.java19 import com.google.common.base.Preconditions;
86 this.statsTraceCtx = Preconditions.checkNotNull(statsTraceCtx, "statsTraceCtx"); in AbstractServerStream()
111 Preconditions.checkNotNull(headers, "headers"); in writeHeaders()
127 Preconditions.checkNotNull(status, "status"); in close()
128 Preconditions.checkNotNull(trailers, "trailers"); in close()
162 transportState().setDecompressor(Preconditions.checkNotNull(decompressor, "decompressor")); in setDecompressor()
209 Preconditions.checkNotNull(transportTracer, "transportTracer")); in TransportState()
210 this.statsTraceCtx = Preconditions.checkNotNull(statsTraceCtx, "statsTraceCtx"); in TransportState()
218 Preconditions.checkState(this.listener == null, "setListener should be called only once"); in setListener()
219 this.listener = Preconditions.checkNotNull(listener, "listener"); in setListener()
[all …]
DReadableBuffers.java21 import com.google.common.base.Preconditions;
73 Preconditions.checkNotNull(buffer, "buffer"); in readArray()
84 Preconditions.checkNotNull(charset, "charset"); in readAsString()
136 Preconditions.checkArgument(offset >= 0, "offset must be >= 0"); in ByteArrayWrapper()
137 Preconditions.checkArgument(length >= 0, "length must be >= 0"); in ByteArrayWrapper()
138 Preconditions.checkArgument(offset + length <= bytes.length, in ByteArrayWrapper()
140 this.bytes = Preconditions.checkNotNull(bytes, "bytes"); in ByteArrayWrapper()
170 Preconditions.checkNotNull(dest, "dest"); in readBytes()
215 this.bytes = Preconditions.checkNotNull(bytes, "bytes"); in ByteReadableBufferWrapper()
243 Preconditions.checkNotNull(dest, "dest"); in readBytes()
[all …]
/external/guice/core/src/com/google/inject/internal/
DCycleDetectingLock.java3 import com.google.common.base.Preconditions;
141 this.userLockId = Preconditions.checkNotNull(userLockId, "userLockId"); in ReentrantCycleDetectingLock()
143 Preconditions.checkNotNull(lockImplementation, "lockImplementation"); in ReentrantCycleDetectingLock()
186 Preconditions.checkState( in unlock()
188 Preconditions.checkState( in unlock()
200 Preconditions.checkState( in unlock()
214 Preconditions.checkState( in checkState()
219 Preconditions.checkState( in checkState()
222 Preconditions.checkState( in checkState()
228 Preconditions.checkState( in checkState()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/instruction/
DImmutableInstruction35ms.java37 import org.jf.dexlib2.util.Preconditions;
61 this.registerCount = Preconditions.check35cAnd45ccRegisterCount(registerCount); in ImmutableInstruction35ms()
62 this.registerC = (registerCount>0) ? Preconditions.checkNibbleRegister(registerC) : 0; in ImmutableInstruction35ms()
63 this.registerD = (registerCount>1) ? Preconditions.checkNibbleRegister(registerD) : 0; in ImmutableInstruction35ms()
64 this.registerE = (registerCount>2) ? Preconditions.checkNibbleRegister(registerE) : 0; in ImmutableInstruction35ms()
65 this.registerF = (registerCount>3) ? Preconditions.checkNibbleRegister(registerF) : 0; in ImmutableInstruction35ms()
66 this.registerG = (registerCount>4) ? Preconditions.checkNibbleRegister(registerG) : 0; in ImmutableInstruction35ms()
67 this.vtableIndex = Preconditions.checkVtableIndex(vtableIndex); in ImmutableInstruction35ms()
DImmutableInstruction35mi.java37 import org.jf.dexlib2.util.Preconditions;
61 this.registerCount = Preconditions.check35cAnd45ccRegisterCount(registerCount); in ImmutableInstruction35mi()
62 this.registerC = (registerCount>0) ? Preconditions.checkNibbleRegister(registerC) : 0; in ImmutableInstruction35mi()
63 this.registerD = (registerCount>1) ? Preconditions.checkNibbleRegister(registerD) : 0; in ImmutableInstruction35mi()
64 this.registerE = (registerCount>2) ? Preconditions.checkNibbleRegister(registerE) : 0; in ImmutableInstruction35mi()
65 this.registerF = (registerCount>3) ? Preconditions.checkNibbleRegister(registerF) : 0; in ImmutableInstruction35mi()
66 this.registerG = (registerCount>4) ? Preconditions.checkNibbleRegister(registerG) : 0; in ImmutableInstruction35mi()
67 this.inlineIndex = Preconditions.checkInlineIndex(inlineIndex); in ImmutableInstruction35mi()
DImmutableInstruction35c.java40 import org.jf.dexlib2.util.Preconditions;
64 this.registerCount = Preconditions.check35cAnd45ccRegisterCount(registerCount); in ImmutableInstruction35c()
65 this.registerC = (registerCount>0) ? Preconditions.checkNibbleRegister(registerC) : 0; in ImmutableInstruction35c()
66 this.registerD = (registerCount>1) ? Preconditions.checkNibbleRegister(registerD) : 0; in ImmutableInstruction35c()
67 this.registerE = (registerCount>2) ? Preconditions.checkNibbleRegister(registerE) : 0; in ImmutableInstruction35c()
68 this.registerF = (registerCount>3) ? Preconditions.checkNibbleRegister(registerF) : 0; in ImmutableInstruction35c()
69 this.registerG = (registerCount>4) ? Preconditions.checkNibbleRegister(registerG) : 0; in ImmutableInstruction35c()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/instruction/
DBuilderInstruction35ms.java38 import org.jf.dexlib2.util.Preconditions;
62 this.registerCount = Preconditions.check35cAnd45ccRegisterCount(registerCount); in BuilderInstruction35ms()
63 this.registerC = (registerCount>0) ? Preconditions.checkNibbleRegister(registerC) : 0; in BuilderInstruction35ms()
64 this.registerD = (registerCount>1) ? Preconditions.checkNibbleRegister(registerD) : 0; in BuilderInstruction35ms()
65 this.registerE = (registerCount>2) ? Preconditions.checkNibbleRegister(registerE) : 0; in BuilderInstruction35ms()
66 this.registerF = (registerCount>3) ? Preconditions.checkNibbleRegister(registerF) : 0; in BuilderInstruction35ms()
67 this.registerG = (registerCount>4) ? Preconditions.checkNibbleRegister(registerG) : 0; in BuilderInstruction35ms()
DBuilderInstruction35mi.java38 import org.jf.dexlib2.util.Preconditions;
62 this.registerCount = Preconditions.check35cAnd45ccRegisterCount(registerCount); in BuilderInstruction35mi()
63 this.registerC = (registerCount>0) ? Preconditions.checkNibbleRegister(registerC) : 0; in BuilderInstruction35mi()
64 this.registerD = (registerCount>1) ? Preconditions.checkNibbleRegister(registerD) : 0; in BuilderInstruction35mi()
65 this.registerE = (registerCount>2) ? Preconditions.checkNibbleRegister(registerE) : 0; in BuilderInstruction35mi()
66 this.registerF = (registerCount>3) ? Preconditions.checkNibbleRegister(registerF) : 0; in BuilderInstruction35mi()
67 this.registerG = (registerCount>4) ? Preconditions.checkNibbleRegister(registerG) : 0; in BuilderInstruction35mi()
DBuilderInstruction35c.java39 import org.jf.dexlib2.util.Preconditions;
63 this.registerCount = Preconditions.check35cAnd45ccRegisterCount(registerCount); in BuilderInstruction35c()
64 this.registerC = (registerCount>0) ? Preconditions.checkNibbleRegister(registerC) : 0; in BuilderInstruction35c()
65 this.registerD = (registerCount>1) ? Preconditions.checkNibbleRegister(registerD) : 0; in BuilderInstruction35c()
66 this.registerE = (registerCount>2) ? Preconditions.checkNibbleRegister(registerE) : 0; in BuilderInstruction35c()
67 this.registerF = (registerCount>3) ? Preconditions.checkNibbleRegister(registerF) : 0; in BuilderInstruction35c()
68 this.registerG = (registerCount>4) ? Preconditions.checkNibbleRegister(registerG) : 0; in BuilderInstruction35c()
DBuilderInstruction45cc.java39 import org.jf.dexlib2.util.Preconditions;
65 this.registerCount = Preconditions.check35cAnd45ccRegisterCount(registerCount); in BuilderInstruction45cc()
66 this.registerC = (registerCount>0) ? Preconditions.checkNibbleRegister(registerC) : 0; in BuilderInstruction45cc()
67 this.registerD = (registerCount>1) ? Preconditions.checkNibbleRegister(registerD) : 0; in BuilderInstruction45cc()
68 this.registerE = (registerCount>2) ? Preconditions.checkNibbleRegister(registerE) : 0; in BuilderInstruction45cc()
69 this.registerF = (registerCount>3) ? Preconditions.checkNibbleRegister(registerF) : 0; in BuilderInstruction45cc()
70 this.registerG = (registerCount>4) ? Preconditions.checkNibbleRegister(registerG) : 0; in BuilderInstruction45cc()
/external/jsilver/src/com/google/streamhtmlparser/impl/
DParserStateTable.java19 import com.google.common.base.Preconditions;
152 Preconditions.checkNotNull(from); // Developer error if it triggers in setDefaultDestination()
153 Preconditions.checkNotNull(to); // Developer error if it triggers in setDefaultDestination()
163 Preconditions.checkNotNull(from); // Developer error if it triggers in setDestination()
164 Preconditions.checkNotNull(to); // Developer error if it triggers in setDestination()
165 Preconditions.checkArgument(chr >= 0 && chr < MAX_CHARS, in setDestination()
177 Preconditions.checkArgument(start >= 0 && start < MAX_CHARS, in setRange()
179 Preconditions.checkArgument(end >= 0 && end < MAX_CHARS, in setRange()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowCameraManager.java8 import com.google.common.base.Preconditions;
32 Preconditions.checkNotNull(cameraId); in getCameraCharacteristics()
34 Preconditions.checkArgument(characteristics != null); in getCameraCharacteristics()
46 Preconditions.checkNotNull(cameraId); in addCamera()
47 Preconditions.checkNotNull(characteristics); in addCamera()
48 Preconditions.checkArgument(!cameraIdToCharacteristics.containsKey(cameraId)); in addCamera()
/external/dagger2/java/dagger/hilt/processor/internal/
DProcessorErrors.java20 import com.google.common.base.Preconditions;
48 Preconditions.checkNotNull(badElement); in checkState()
79 Preconditions.checkNotNull(badElement); in checkState()
100 Preconditions.checkNotNull(badElements); in checkState()
102 Preconditions.checkState(!badElements.isEmpty()); in checkState()
130 Preconditions.checkNotNull(badElements); in checkState()
132 Preconditions.checkState(!badElements.isEmpty()); in checkState()
/external/setupcompat/main/java/com/google/android/setupcompat/portal/
DPortalHelper.java31 import com.google.android.setupcompat.internal.Preconditions;
60 Preconditions.checkNotNull(context, "Context cannot be null"); in bindSetupNotificationService()
61 Preconditions.checkNotNull(connection, "ServiceConnection cannot be null"); in bindSetupNotificationService()
83 Preconditions.checkNotNull(context, "Context cannot be null"); in registerProgressService()
84 Preconditions.checkNotNull(component, "ProgressServiceComponent cannot be null"); in registerProgressService()
85 Preconditions.checkNotNull(callback, "RegisterCallback cannot be null"); in registerProgressService()
180 Preconditions.checkNotNull(context, "Context cannot be null"); in isProgressServiceAlive()
181 Preconditions.checkNotNull(component, "ProgressServiceComponent cannot be null"); in isProgressServiceAlive()
182 Preconditions.checkNotNull(listener, "ProgressServiceAliveResultCallback cannot be null"); in isProgressServiceAlive()
285 Preconditions.checkArgument( in setRemainingSizeInKB()
/external/dagger2/java/dagger/hilt/android/internal/managers/
DViewComponentManager.java32 import dagger.hilt.internal.Preconditions;
117 Preconditions.checkState( in getParentComponentManager()
146 Preconditions.checkState( in getParentContext()
175 super(Preconditions.checkNotNull(base)); in FragmentContextWrapper()
177 this.fragment = Preconditions.checkNotNull(fragment); in FragmentContextWrapper()
181 super(Preconditions.checkNotNull(Preconditions.checkNotNull(baseInflater).getContext())); in FragmentContextWrapper()
183 this.fragment = Preconditions.checkNotNull(fragment); in FragmentContextWrapper()
/external/grpc-grpc-java/core/src/main/java/io/grpc/
DConnectivityStateInfo.java21 import com.google.common.base.Preconditions;
40 Preconditions.checkArgument( in forNonError()
50 Preconditions.checkArgument(!error.isOk(), "The error status must not be OK"); in forTransientFailure()
94 this.state = Preconditions.checkNotNull(state, "state is null"); in ConnectivityStateInfo()
95 this.status = Preconditions.checkNotNull(status, "status is null"); in ConnectivityStateInfo()

12345678910>>...68