/external/guava/guava-tests/test/com/google/common/base/ |
D | PreconditionsTest.java | 35 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/ |
D | PreconditionsTest.java | 33 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/ |
D | SameThreadScheduledExecutorService.java | 21 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/ |
D | DexBackedEncodedValue.java | 38 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/ |
D | CycleDetectingLock.java | 3 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/ |
D | ImmutableInstruction35mi.java | 37 import org.jf.dexlib2.util.Preconditions; 61 this.registerCount = Preconditions.check35cRegisterCount(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()
|
D | ImmutableInstruction35ms.java | 37 import org.jf.dexlib2.util.Preconditions; 61 this.registerCount = Preconditions.check35cRegisterCount(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()
|
D | ImmutableInstruction25x.java | 37 import org.jf.dexlib2.util.Preconditions; 60 Preconditions.check25xParameterRegisterCount(parameterRegisterCount); in ImmutableInstruction25x() 61 this.registerClosure = Preconditions.checkNibbleRegister(registerClosure); in ImmutableInstruction25x() 63 Preconditions.checkNibbleRegister(registerD) : 0; in ImmutableInstruction25x() 65 Preconditions.checkNibbleRegister(registerE) : 0; in ImmutableInstruction25x() 67 Preconditions.checkNibbleRegister(registerF) : 0; in ImmutableInstruction25x() 69 Preconditions.checkNibbleRegister(registerG) : 0; in ImmutableInstruction25x()
|
D | ImmutableInstruction35c.java | 40 import org.jf.dexlib2.util.Preconditions; 64 this.registerCount = Preconditions.check35cRegisterCount(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()
|
D | ImmutableInstruction22t.java | 37 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()
|
D | ImmutableInstruction3rms.java | 37 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()
|
D | ImmutableInstruction22cs.java | 37 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()
|
D | ImmutableInstruction23x.java | 37 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()
|
D | ImmutableInstruction22b.java | 37 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()
|
D | ImmutableInstruction22s.java | 37 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()
|
D | ImmutableInstruction3rmi.java | 37 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/ |
D | BuilderInstruction25x.java | 38 import org.jf.dexlib2.util.Preconditions; 61 Preconditions.check25xParameterRegisterCount(parameterRegisterCount); in BuilderInstruction25x() 62 this.registerClosure = Preconditions.checkNibbleRegister(registerClosure); //at least 1 reg in BuilderInstruction25x() 64 Preconditions.checkNibbleRegister(registerD) : 0; in BuilderInstruction25x() 66 Preconditions.checkNibbleRegister(registerE) : 0; in BuilderInstruction25x() 68 Preconditions.checkNibbleRegister(registerF) : 0; in BuilderInstruction25x() 70 Preconditions.checkNibbleRegister(registerG) : 0; in BuilderInstruction25x()
|
D | BuilderInstruction35c.java | 39 import org.jf.dexlib2.util.Preconditions; 63 this.registerCount = Preconditions.check35cRegisterCount(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()
|
D | BuilderInstruction22s.java | 38 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()
|
D | BuilderInstruction23x.java | 38 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()
|
D | BuilderInstruction22b.java | 38 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()
|
/external/jsilver/src/com/google/streamhtmlparser/impl/ |
D | ParserStateTable.java | 19 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()
|
D | StateTableTransition.java | 19 import com.google.common.base.Preconditions; 57 Preconditions.checkNotNull(expression); in StateTableTransition() 58 Preconditions.checkNotNull(from); in StateTableTransition() 59 Preconditions.checkNotNull(to); in StateTableTransition()
|
D | InternalState.java | 19 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/ |
D | ObjectGraphMeasurer.java | 22 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()
|