Home
last modified time | relevance | path

Searched refs:wasCalled (Results 1 – 11 of 11) sorted by relevance

/external/proguard/src/proguard/evaluation/
DBasicBranchUnit.java36 private boolean wasCalled; field in BasicBranchUnit
46 wasCalled = false; in resetCalled()
55 wasCalled = true; in setCalled()
61 public boolean wasCalled() in wasCalled() method in BasicBranchUnit
63 return wasCalled; in wasCalled()
92 wasCalled = true; in branch()
106 wasCalled = true; in branchConditionally()
115 wasCalled = true; in returnFromMethod()
124 wasCalled = true; in throwException()
/external/mockito/src/test/java/org/mockito/internal/invocation/
DTypeSafeMatchingTest.java124 final AtomicBoolean wasCalled = new AtomicBoolean(); in dontMatchesWithSubTypeExtendingGenericClass() local
131 wasCalled.set(true); in dontMatchesWithSubTypeExtendingGenericClass()
135 wasCalled.set(false); in dontMatchesWithSubTypeExtendingGenericClass()
137 assertThat(wasCalled.get()).isTrue(); in dontMatchesWithSubTypeExtendingGenericClass()
139 wasCalled.set(false); in dontMatchesWithSubTypeExtendingGenericClass()
141 assertThat(wasCalled.get()).isFalse(); in dontMatchesWithSubTypeExtendingGenericClass()
146 final AtomicBoolean wasCalled = new AtomicBoolean(); in passEveryArgumentTypeIfNoBridgeMethodWasGenerated() local
150 wasCalled.set(true); in passEveryArgumentTypeIfNoBridgeMethodWasGenerated()
155 wasCalled.set(false); in passEveryArgumentTypeIfNoBridgeMethodWasGenerated()
157 assertThat(wasCalled.get()).isTrue(); in passEveryArgumentTypeIfNoBridgeMethodWasGenerated()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DJdkFutureAdaptersTest.java67 assertFalse(singleCallListener.wasCalled()); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()
78 assertTrue(singleCallListener.wasCalled()); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()
95 assertFalse(singleCallListener.wasCalled()); in testListenInPoolThreadUsesGivenExecutor()
104 assertTrue(singleCallListener.wasCalled()); in testListenInPoolThreadUsesGivenExecutor()
128 assertFalse(singleCallListener.wasCalled()); in testListenInPoolThreadCustomExecutorInterrupted()
143 assertTrue(singleCallListener.wasCalled()); in testListenInPoolThreadCustomExecutorInterrupted()
DFutureCallbackTest.java232 private boolean wasCalled = false; field in FutureCallbackTest.MockCallback
244 assertFalse(wasCalled); in onSuccess()
245 wasCalled = true; in onSuccess()
251 assertFalse(wasCalled); in onFailure()
252 wasCalled = true; in onFailure()
DFuturesTest.java798 assertFalse("Listener called more than once", wasCalled());
807 public boolean wasCalled() {
839 assertTrue(listener.wasCalled());
853 assertTrue(listener.wasCalled());
864 assertTrue(listener.wasCalled());
880 assertTrue(listener.wasCalled());
945 assertTrue(listener.wasCalled());
1014 assertTrue(listener.wasCalled());
1482 assertTrue(listener.wasCalled());
1496 assertTrue(listener.wasCalled());
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DHandlerThreadTest.java70 final Boolean[] wasCalled = new Boolean[] { false }; in shouldCallOnLooperPrepared() local
74 wasCalled[0] = true; in shouldCallOnLooperPrepared()
79 assertTrue(wasCalled[0]); in shouldCallOnLooperPrepared()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheExpirationTest.java83 assertFalse("Creator should not have been called @#" + i, loader.wasCalled()); in checkExpiration()
132 assertFalse("Loader should NOT have been called @#" + i, loader.wasCalled()); in runExpirationTest()
157 assertTrue("Creator should have been called @#" + i, loader.wasCalled()); in runExpirationTest()
438 assertFalse("Creator should NOT have been called @#" + i, loader.wasCalled()); in runRemovalScheduler()
450 boolean wasCalled = false; // must be set in load() field in CacheExpirationTest.WatchedCreatorLoader
458 wasCalled = false; in reset()
461 public boolean wasCalled() { in wasCalled() method in CacheExpirationTest.WatchedCreatorLoader
462 return wasCalled; in wasCalled()
474 wasCalled = true; in load()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowGeocoder.java26 private boolean wasCalled; field in ShadowGeocoder
40 wasCalled = true; in getFromLocation()
123 return wasCalled; in wasGetFromLocationCalled()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/bytecode/
DAndroidTranslatorTest.java40 assertThat(ShadowAccountManagerForTests.wasCalled, is(true)); in testStaticMethodsAreDelegated()
214 public static boolean wasCalled = false; field in AndroidTranslatorTest.ShadowAccountManagerForTests
218 wasCalled = true; in get()
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/
DInterfacesTest.java86 public boolean wasCalled() { in wasCalled() method in InterfacesTest.RecordingGetNameResponse
196 assertTrue(callback.wasCalled()); in checkProxy()
213 assertTrue(callback.wasCalled()); in checkProxy()
/external/proguard/src/proguard/optimize/evaluation/
DPartialEvaluator.java786 if (branchUnit.wasCalled()) in evaluateSingleInstructionBlock()
825 if (branchUnit.wasCalled()) in evaluateSingleInstructionBlock()