Home
last modified time | relevance | path

Searched refs:checkState (Results 1 – 25 of 139) sorted by relevance

123456

/external/guice/core/src/com/google/inject/internal/
DCycleDetectingLock.java149 checkState(); in lockOrDetectPotentialLocksCycle()
165 checkState(); in lockOrDetectPotentialLocksCycle()
180 checkState(); in unlock()
181 Preconditions.checkState(lockOwnerThreadId != null, in unlock()
183 Preconditions.checkState(lockOwnerThreadId == currentThreadId, in unlock()
194 Preconditions.checkState(locksOwnedByThread.remove(currentThreadId, this), in unlock()
205 void checkState() throws IllegalStateException { in checkState() method in CycleDetectingLock.CycleDetectingLockFactory.ReentrantCycleDetectingLock
207 Preconditions.checkState(!lockThreadIsWaitingOn.containsKey(currentThreadId), in checkState()
211 Preconditions.checkState(lockReentranceCount >= 0, in checkState()
213 Preconditions.checkState(locksOwnedByThread.get(lockOwnerThreadId).contains(this), in checkState()
[all …]
DEncounterImpl.java19 import static com.google.common.base.Preconditions.checkState;
69 checkState(valid, "Encounters may not be used after hear() returns."); in bindInterceptor()
93 checkState(valid, "Encounters may not be used after hear() returns."); in register()
103 checkState(valid, "Encounters may not be used after hear() returns."); in register()
113 checkState(valid, "Encounters may not be used after hear() returns."); in addError()
118 checkState(valid, "Encounters may not be used after hear() returns."); in addError()
123 checkState(valid, "Encounters may not be used after hear() returns."); in addError()
128 checkState(valid, "Encounters may not be used after hear() returns."); in getProvider()
137 checkState(valid, "Encounters may not be used after hear() returns."); in getMembersInjector()
DConstructorBindingImpl.java19 import static com.google.common.base.Preconditions.checkState;
175 checkState(factory.constructorInjector != null, "not initialized"); in acceptTargetVisitor()
180 checkState(factory.constructorInjector != null, "Binding is not ready"); in getConstructor()
185 checkState(factory.constructorInjector != null, "Binding is not ready"); in getInjectableMembers()
191 checkState(factory.constructorInjector != null, "Binding is not ready"); in getMethodInterceptors()
259 checkState(constructorInjector != null, "Constructor not ready"); in get()
/external/guava/guava/src/com/google/common/cache/
DCacheBuilder.java21 import static com.google.common.base.Preconditions.checkState;
293 checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence); in keyEquivalence()
311 checkState(valueEquivalence == null, in valueEquivalence()
332 checkState(this.initialCapacity == UNSET_INT, "initial capacity was already set to %s", in initialCapacity()
374 checkState(this.concurrencyLevel == UNSET_INT, "concurrency level was already set to %s", in concurrencyLevel()
401 checkState(this.maximumSize == UNSET_INT, "maximum size was already set to %s", in maximumSize()
403 checkState(this.maximumWeight == UNSET_INT, "maximum weight was already set to %s", in maximumSize()
405 checkState(this.weigher == null, "maximum size can not be combined with weigher"); in maximumSize()
437 checkState(this.maximumWeight == UNSET_INT, "maximum weight was already set to %s", in maximumWeight()
439 checkState(this.maximumSize == UNSET_INT, "maximum size was already set to %s", in maximumWeight()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DCacheBuilder.java21 import static com.google.common.base.Preconditions.checkState;
264 checkState(this.initialCapacity == UNSET_INT, "initial capacity was already set to %s", in initialCapacity()
306 checkState(this.concurrencyLevel == UNSET_INT, "concurrency level was already set to %s", in concurrencyLevel()
333 checkState(this.maximumSize == UNSET_INT, "maximum size was already set to %s", in maximumSize()
335 checkState(this.maximumWeight == UNSET_INT, "maximum weight was already set to %s", in maximumSize()
337 checkState(this.weigher == null, "maximum size can not be combined with weigher"); in maximumSize()
357 checkState(keyStrength == null, "Key strength was already set to %s", keyStrength); in setKeyStrength()
367 checkState(valueStrength == null, "Value strength was already set to %s", valueStrength); in setValueStrength()
396 checkState(expireAfterWriteNanos == UNSET_INT, "expireAfterWrite was already set to %s ns", in expireAfterWrite()
430 checkState(expireAfterAccessNanos == UNSET_INT, "expireAfterAccess was already set to %s ns", in expireAfterAccess()
[all …]
/external/guava/guava-tests/benchmark/com/google/common/cache/
DSegmentBenchmark.java19 import static com.google.common.base.Preconditions.checkState;
46 checkState(cache.segments.length == 1); in setUp()
48 checkState(segment.table.length() == capacity); in setUp()
52 checkState(segment.table.length() == capacity); in setUp()
/external/guava/guava-tests/test/com/google/common/base/
DPreconditionsTest.java82 Preconditions.checkState(true); in testCheckState_simple_success()
87 Preconditions.checkState(false); in testCheckState_simple_failure()
94 Preconditions.checkState(true, IGNORE_ME); in testCheckState_simpleMessage_success()
99 Preconditions.checkState(false, new Message()); in testCheckState_simpleMessage_failure()
108 Preconditions.checkState(false, null); in testCheckState_nullMessage_failure()
116 Preconditions.checkState(true, "%s", IGNORE_ME); in testCheckState_complexMessage_success()
121 Preconditions.checkState(false, FORMAT, 5); in testCheckState_complexMessage_failure()
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DPreconditionsTest.java80 Preconditions.checkState(true); in testCheckState_simple_success()
85 Preconditions.checkState(false); in testCheckState_simple_failure()
92 Preconditions.checkState(true, IGNORE_ME); in testCheckState_simpleMessage_success()
97 Preconditions.checkState(false, new Message()); in testCheckState_simpleMessage_failure()
106 Preconditions.checkState(false, null); in testCheckState_nullMessage_failure()
114 Preconditions.checkState(true, "%s", IGNORE_ME); in testCheckState_complexMessage_success()
119 Preconditions.checkState(false, FORMAT, 5); in testCheckState_complexMessage_failure()
/external/guice/extensions/servlet/src/com/google/inject/servlet/
DServletModule.java19 import static com.google.common.base.Preconditions.checkState;
46 checkState(filtersModuleBuilder == null, "Re-entry is not allowed."); in configure()
47 checkState(servletsModuleBuilder == null, "Re-entry is not allowed."); in configure()
237 checkState(filtersModuleBuilder != null, in getFiltersModuleBuilder()
243 checkState(servletsModuleBuilder != null, in getServletModuleBuilder()
/external/mockito/cglib-and-asm/src/org/mockito/asm/util/
DCheckClassAdapter.java273 checkState(); in visit()
307 checkState(); in visitSource()
320 checkState(); in visitOuterClass()
340 checkState(); in visitInnerClass()
363 checkState(); in visitField()
388 checkState(); in visitMethod()
417 checkState(); in visitAnnotation()
423 checkState(); in visitAttribute()
431 checkState(); in visitEnd()
444 private void checkState() { in checkState() method in CheckClassAdapter
/external/guava/guava/src/com/google/common/collect/
DMapMaker.java19 import static com.google.common.base.Preconditions.checkState;
148 checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence); in keyEquivalence()
170 checkState(this.initialCapacity == UNSET_INT, "initial capacity was already set to %s", in initialCapacity()
207 checkState(this.maximumSize == UNSET_INT, "maximum size was already set to %s", in maximumSize()
240 checkState(this.concurrencyLevel == UNSET_INT, "concurrency level was already set to %s", in concurrencyLevel()
269 checkState(keyStrength == null, "Key strength was already set to %s", keyStrength); in setKeyStrength()
339 checkState(valueStrength == null, "Value strength was already set to %s", valueStrength); in setValueStrength()
391 checkState(expireAfterWriteNanos == UNSET_INT, "expireAfterWrite was already set to %s ns", in checkExpiration()
393 checkState(expireAfterAccessNanos == UNSET_INT, "expireAfterAccess was already set to %s ns", in checkExpiration()
482 checkState(this.removalListener == null); in removalListener()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DResolvedBindings.java28 import static com.google.common.base.Preconditions.checkState;
105 checkState(bindingKey().kind().equals(BindingKey.Kind.CONTRIBUTION)); in contributionBindings()
116 checkState(bindingKey().kind().equals(BindingKey.Kind.CONTRIBUTION)); in ownedContributionBindings()
127 checkState(bindingKey().kind().equals(BindingKey.Kind.MEMBERS_INJECTION)); in membersInjectionBinding()
142 checkState(bindingKey().kind().equals(BindingKey.Kind.MEMBERS_INJECTION)); in ownedMembersInjectionBinding()
DUtil.java38 import static com.google.common.base.Preconditions.checkState;
53 checkState(MoreTypes.isTypeOf(Map.class, mapType), "%s is not a Map.", mapType); in getProvidedValueTypeOfMap()
62 checkState(MoreTypes.isTypeOf(Map.class, mapType), "%s is not a Map.", mapType); in getValueTypeOfMap()
70 checkState(MoreTypes.isTypeOf(Map.class, mapType), "%s is not a Map.", mapType); in getKeyTypeOfMap()
/external/caliper/caliper/src/test/java/com/google/caliper/runner/
DInMemoryResultsUploader.java19 import static com.google.common.base.Preconditions.checkState;
47 checkState(!isClosed); in close()
52 checkState(!isClosed); in processTrial()
/external/guice/extensions/persist/src/com/google/inject/persist/jpa/
DJpaPersistService.java61 Preconditions.checkState(null != em, "Requested EntityManager outside work unit. " in get()
73 Preconditions.checkState(null == entityManager.get(), in begin()
104 Preconditions.checkState(null == emFactory, "Persistence service was already initialized."); in start()
115 Preconditions.checkState(emFactory.isOpen(), "Persistence service was already shut down."); in stop()
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
DAggregateAllocationsRecorder.java18 import static com.google.common.base.Preconditions.checkState;
50 checkState(!recording, "startRecording called, but we were already recording."); in doStartRecording()
57 checkState(recording, "stopRecording called, but we were not recording."); in stopRecording()
DAllAllocationsRecorder.java18 import static com.google.common.base.Preconditions.checkState;
80 checkState(!recording, "startRecording called, but we were already recording."); in doStartRecording()
86 checkState(recording, "stopRecording called, but we were not recording."); in stopRecording()
/external/caliper/caliper/src/main/java/com/google/caliper/model/
DScenario.java21 import static com.google.common.base.Preconditions.checkState;
138 checkState(host != null); in build()
139 checkState(vmSpec != null); in build()
140 checkState(benchmarkSpec != null); in build()
DTrial.java20 import static com.google.common.base.Preconditions.checkState;
163 checkState(run != null); in build()
164 checkState(instrumentSpec != null); in build()
165 checkState(scenario != null); in build()
DRun.java20 import static com.google.common.base.Preconditions.checkState;
110 checkState(id != null); in build()
111 checkState(startTime != null); in build()
/external/guice/core/src/com/google/inject/spi/
DMembersInjectorLookup.java20 import static com.google.common.base.Preconditions.checkState;
68 checkState(this.delegate == null, "delegate already initialized"); in initializeDelegate()
93 checkState(delegate != null, in getMembersInjector()
DProviderLookup.java20 import static com.google.common.base.Preconditions.checkState;
78 checkState(this.delegate == null, "delegate already initialized"); in initializeDelegate()
102 checkState(delegate != null, in getProvider()
/external/caliper/caliper/src/main/java/com/google/caliper/platform/dalvik/
DDalvikPlatform.java19 import static com.google.common.base.Preconditions.checkState;
48 Preconditions.checkState(bin.exists() && bin.isDirectory(), in vmExecutable()
88 checkState(options.isEmpty()); in checkVmProperties()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DServerSocketService.java17 import static com.google.common.base.Preconditions.checkState;
121 checkState(serverSocket != null, "Socket has not been opened yet"); in getPort()
133 checkState(isRunning(), "You can only get connections from a running service: %s", this); in getConnection()
179 checkState(connectionState.put(source, id), "Connection for %s has already been %s", in getConnectionImpl()
DStreamService.java18 import static com.google.common.base.Preconditions.checkState;
195 checkState(isRunning(), "Cannot read items from a %s StreamService", state()); in readItem()
212 checkState(isRunning(), "Cannot read items from a %s StreamService", state()); in sendMessage()
213 checkState(socketWriter != null, "Attempted to write to the socket before it was opened."); in sendMessage()
228 checkState(isRunning(), "Cannot read items from a %s StreamService", state()); in closeWriter()
229 checkState(socketWriter != null, "Attempted to close the socket before it was opened."); in closeWriter()
315 checkState(kind == Kind.DATA, "Only data lines have content: %s", this); in content()

123456