Home
last modified time | relevance | path

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

12345678910>>...27

/external/guava/guava-tests/test/com/google/common/base/
DPreconditionsTest.java35 Preconditions.checkArgument(true); in testCheckArgument_simple_success()
40 Preconditions.checkArgument(false); in testCheckArgument_simple_failure()
47 Preconditions.checkArgument(true, IGNORE_ME); in testCheckArgument_simpleMessage_success()
52 Preconditions.checkArgument(false, new Message()); in testCheckArgument_simpleMessage_failure()
61 Preconditions.checkArgument(false, null); in testCheckArgument_nullMessage_failure()
69 Preconditions.checkArgument(true, "%s", IGNORE_ME); in testCheckArgument_complexMessage_success()
74 Preconditions.checkArgument(false, FORMAT, 5); in testCheckArgument_complexMessage_failure()
82 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()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DPreconditionsTest.java33 Preconditions.checkArgument(true); in testCheckArgument_simple_success()
38 Preconditions.checkArgument(false); in testCheckArgument_simple_failure()
45 Preconditions.checkArgument(true, IGNORE_ME); in testCheckArgument_simpleMessage_success()
50 Preconditions.checkArgument(false, new Message()); in testCheckArgument_simpleMessage_failure()
59 Preconditions.checkArgument(false, null); in testCheckArgument_nullMessage_failure()
67 Preconditions.checkArgument(true, "%s", IGNORE_ME); in testCheckArgument_complexMessage_success()
72 Preconditions.checkArgument(false, FORMAT, 5); in testCheckArgument_complexMessage_failure()
80 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()
[all …]
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
DSameThreadScheduledExecutorService.java21 import com.google.common.base.Preconditions;
76 Preconditions.checkNotNull(unit, "unit must not be null!"); in awaitTermination()
82 Preconditions.checkNotNull(task, "task must not be null!"); in submit()
88 Preconditions.checkNotNull(task, "task must not be null!"); in submit()
89 Preconditions.checkNotNull(result, "result must not be null!"); in submit()
95 Preconditions.checkNotNull(task, "task must not be null!"); in submit()
102 Preconditions.checkNotNull(tasks, "tasks must not be null!"); in invokeAll()
110 Preconditions.checkNotNull(tasks, "tasks must not be null!"); in invokeAll()
111 Preconditions.checkNotNull(unit, "unit must not be null!"); in invokeAll()
118 Preconditions.checkNotNull(tasks, "tasks must not be null!"); in invokeAny()
[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/guice/core/src/com/google/inject/internal/
DCycleDetectingLock.java3 import com.google.common.base.Preconditions;
141 this.userLockId = Preconditions.checkNotNull(userLockId, "userLockId"); in ReentrantCycleDetectingLock()
142 this.lockImplementation = Preconditions.checkNotNull( in ReentrantCycleDetectingLock()
181 Preconditions.checkState(lockOwnerThreadId != null, in unlock()
183 Preconditions.checkState(lockOwnerThreadId == currentThreadId, in unlock()
194 Preconditions.checkState(locksOwnedByThread.remove(currentThreadId, this), in unlock()
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()
218 Preconditions.checkState(lockReentranceCount == 0, in checkState()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/instruction/
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()
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()
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()
DImmutableInstruction22s.java37 import org.jf.dexlib2.util.Preconditions;
53 this.registerA = Preconditions.checkNibbleRegister(registerA); in ImmutableInstruction22s()
54 this.registerB = Preconditions.checkNibbleRegister(registerB); in ImmutableInstruction22s()
55 this.literal = Preconditions.checkShortLiteral(literal); in ImmutableInstruction22s()
DImmutableInstruction22t.java37 import org.jf.dexlib2.util.Preconditions;
53 this.registerA = Preconditions.checkNibbleRegister(registerA); in ImmutableInstruction22t()
54 this.registerB = Preconditions.checkNibbleRegister(registerB); in ImmutableInstruction22t()
55 this.codeOffset = Preconditions.checkShortCodeOffset(codeOffset); in ImmutableInstruction22t()
DImmutableInstruction3rms.java37 import org.jf.dexlib2.util.Preconditions;
53 this.startRegister = Preconditions.checkShortRegister(startRegister); in ImmutableInstruction3rms()
54 this.registerCount = Preconditions.checkRegisterRangeCount(registerCount); in ImmutableInstruction3rms()
55 this.vtableIndex = Preconditions.checkVtableIndex(vtableIndex); in ImmutableInstruction3rms()
DImmutableInstruction22cs.java37 import org.jf.dexlib2.util.Preconditions;
53 this.registerA = Preconditions.checkNibbleRegister(registerA); in ImmutableInstruction22cs()
54 this.registerB = Preconditions.checkNibbleRegister(registerB); in ImmutableInstruction22cs()
55 this.fieldOffset = Preconditions.checkFieldOffset(fieldOffset); in ImmutableInstruction22cs()
DImmutableInstruction22b.java37 import org.jf.dexlib2.util.Preconditions;
53 this.registerA = Preconditions.checkByteRegister(registerA); in ImmutableInstruction22b()
54 this.registerB = Preconditions.checkByteRegister(registerB); in ImmutableInstruction22b()
55 this.literal = Preconditions.checkByteLiteral(literal); in ImmutableInstruction22b()
DImmutableInstruction23x.java37 import org.jf.dexlib2.util.Preconditions;
53 this.registerA = Preconditions.checkByteRegister(registerA); in ImmutableInstruction23x()
54 this.registerB = Preconditions.checkByteRegister(registerB); in ImmutableInstruction23x()
55 this.registerC = Preconditions.checkByteRegister(registerC); in ImmutableInstruction23x()
DImmutableInstruction3rmi.java37 import org.jf.dexlib2.util.Preconditions;
53 this.startRegister = Preconditions.checkShortRegister(startRegister); in ImmutableInstruction3rmi()
54 this.registerCount = Preconditions.checkRegisterRangeCount(registerCount); in ImmutableInstruction3rmi()
55 this.inlineIndex = Preconditions.checkInlineIndex(inlineIndex); in ImmutableInstruction3rmi()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/instruction/
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()
DBuilderInstruction23x.java38 import org.jf.dexlib2.util.Preconditions;
54 this.registerA = Preconditions.checkByteRegister(registerA); in BuilderInstruction23x()
55 this.registerB = Preconditions.checkByteRegister(registerB); in BuilderInstruction23x()
56 this.registerC = Preconditions.checkByteRegister(registerC); in BuilderInstruction23x()
DBuilderInstruction22b.java38 import org.jf.dexlib2.util.Preconditions;
54 this.registerA = Preconditions.checkByteRegister(registerA); in BuilderInstruction22b()
55 this.registerB = Preconditions.checkByteRegister(registerB); in BuilderInstruction22b()
56 this.literal = Preconditions.checkByteLiteral(literal); in BuilderInstruction22b()
DBuilderInstruction22s.java38 import org.jf.dexlib2.util.Preconditions;
54 this.registerA = Preconditions.checkNibbleRegister(registerA); in BuilderInstruction22s()
55 this.registerB = Preconditions.checkNibbleRegister(registerB); in BuilderInstruction22s()
56 this.literal = Preconditions.checkShortLiteral(literal); in BuilderInstruction22s()
/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()
DStateTableTransition.java19 import com.google.common.base.Preconditions;
57 Preconditions.checkNotNull(expression); in StateTableTransition()
58 Preconditions.checkNotNull(from); in StateTableTransition()
59 Preconditions.checkNotNull(to); in StateTableTransition()
DInternalState.java19 import com.google.common.base.Preconditions;
58 Preconditions.checkNotNull(name); in InternalState()
59 Preconditions.checkArgument(id >= FIRST_ID); in InternalState()
60 Preconditions.checkArgument(id <= MAX_ID); in InternalState()
/external/caliper/caliper/src/main/java/com/google/caliper/memory/
DObjectGraphMeasurer.java22 import com.google.common.base.Preconditions;
64 Preconditions.checkArgument(objects >= 0, "Negative number of objects"); in Footprint()
65 Preconditions.checkArgument(nonNullRefs >= 0, "Negative number of references"); in Footprint()
66 Preconditions.checkArgument(nullRefs >= 0, "Negative number of references"); in Footprint()
67 Preconditions.checkArgument(primitiveTypes.containsAll(primitives.elementSet()), in Footprint()
174 Preconditions.checkNotNull(objectAcceptor, "predicate"); in measure()
/external/guava/guava/src/com/google/common/net/
DInetAddresses.java21 import com.google.common.base.Preconditions;
130 Preconditions.checkArgument(bytes.length == 4, in getInet4Address()
355 Preconditions.checkNotNull(ip); in toAddrString()
360 Preconditions.checkArgument(ip instanceof Inet6Address); in toAddrString()
485 Preconditions.checkNotNull(hostAddr); in forUriString()
570 Preconditions.checkArgument(isCompatIPv4Address(ip), in getCompatIPv4Address()
603 Preconditions.checkArgument(is6to4Address(ip), in get6to4IPv4Address()
644 Preconditions.checkArgument((port >= 0) && (port <= 0xffff), in TeredoInfo()
646 Preconditions.checkArgument((flags >= 0) && (flags <= 0xffff), in TeredoInfo()
694 Preconditions.checkArgument(isTeredoAddress(ip), in getTeredoInfo()
[all …]

12345678910>>...27