Home
last modified time | relevance | path

Searched refs:wasCalled (Results 1 – 21 of 21) 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.java128 final AtomicBoolean wasCalled = new AtomicBoolean(); in dontMatchesWithSubTypeExtendingGenericClass() local
135 wasCalled.set(true); in dontMatchesWithSubTypeExtendingGenericClass()
139 wasCalled.set(false); in dontMatchesWithSubTypeExtendingGenericClass()
141 assertThat(wasCalled.get()).isTrue(); in dontMatchesWithSubTypeExtendingGenericClass()
143 wasCalled.set(false); in dontMatchesWithSubTypeExtendingGenericClass()
145 assertThat(wasCalled.get()).isFalse(); in dontMatchesWithSubTypeExtendingGenericClass()
150 final AtomicBoolean wasCalled = new AtomicBoolean(); in passEveryArgumentTypeIfNoBridgeMethodWasGenerated() local
154 wasCalled.set(true); in passEveryArgumentTypeIfNoBridgeMethodWasGenerated()
159 wasCalled.set(false); in passEveryArgumentTypeIfNoBridgeMethodWasGenerated()
161 assertThat(wasCalled.get()).isTrue(); in passEveryArgumentTypeIfNoBridgeMethodWasGenerated()
[all …]
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DJdkFutureAdaptersTest.java59 assertFalse("Listener called more than once", wasCalled()); in run()
68 public boolean wasCalled() { in wasCalled() method in JdkFutureAdaptersTest.SingleCallListener
88 assertFalse(singleCallListener.wasCalled()); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()
99 assertTrue(singleCallListener.wasCalled()); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()
114 assertFalse(singleCallListener.wasCalled()); in testListenInPoolThreadUsesGivenExecutor()
123 assertTrue(singleCallListener.wasCalled()); in testListenInPoolThreadUsesGivenExecutor()
148 assertFalse(singleCallListener.wasCalled()); in testListenInPoolThreadCustomExecutorInterrupted()
163 assertTrue(singleCallListener.wasCalled()); in testListenInPoolThreadCustomExecutorInterrupted()
DFutureCallbackTest.java162 private boolean wasCalled = false; field in FutureCallbackTest.MockCallback
174 assertFalse(wasCalled); in onSuccess()
175 wasCalled = true; in onSuccess()
181 assertFalse(wasCalled); in onFailure()
182 wasCalled = true; in onFailure()
DFuturesTest.java2132 assertFalse("Listener called more than once", wasCalled());
2141 public boolean wasCalled() {
2166 assertTrue(listener.wasCalled());
2179 assertTrue(listener.wasCalled());
2189 assertTrue(listener.wasCalled());
2204 assertTrue(listener.wasCalled());
2268 assertTrue(listener.wasCalled());
2361 assertTrue(listener.wasCalled());
3387 assertTrue(listener.wasCalled());
3400 assertTrue(listener.wasCalled());
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DJdkFutureAdaptersTest.java59 assertFalse("Listener called more than once", wasCalled()); in run()
68 public boolean wasCalled() { in wasCalled() method in JdkFutureAdaptersTest.SingleCallListener
88 assertFalse(singleCallListener.wasCalled()); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()
99 assertTrue(singleCallListener.wasCalled()); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()
114 assertFalse(singleCallListener.wasCalled()); in testListenInPoolThreadUsesGivenExecutor()
123 assertTrue(singleCallListener.wasCalled()); in testListenInPoolThreadUsesGivenExecutor()
148 assertFalse(singleCallListener.wasCalled()); in testListenInPoolThreadCustomExecutorInterrupted()
163 assertTrue(singleCallListener.wasCalled()); in testListenInPoolThreadCustomExecutorInterrupted()
DFutureCallbackTest.java162 private boolean wasCalled = false; field in FutureCallbackTest.MockCallback
174 assertFalse(wasCalled); in onSuccess()
175 wasCalled = true; in onSuccess()
181 assertFalse(wasCalled); in onFailure()
182 wasCalled = true; in onFailure()
DFuturesTest.java2132 assertFalse("Listener called more than once", wasCalled());
2141 public boolean wasCalled() {
2166 assertTrue(listener.wasCalled());
2179 assertTrue(listener.wasCalled());
2189 assertTrue(listener.wasCalled());
2204 assertTrue(listener.wasCalled());
2268 assertTrue(listener.wasCalled());
2361 assertTrue(listener.wasCalled());
3387 assertTrue(listener.wasCalled());
3400 assertTrue(listener.wasCalled());
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowCameraTest.java288 assertThat(shutterCallback.wasCalled).isTrue(); in testTakePicture()
289 assertThat(rawCallback.wasCalled).isTrue(); in testTakePicture()
290 assertThat(jpegCallback.wasCalled).isTrue(); in testTakePicture()
330 public boolean wasCalled; field in ShadowCameraTest.TestShutterCallback
334 wasCalled = true; in onShutter()
339 public boolean wasCalled; field in ShadowCameraTest.TestPictureCallback
343 wasCalled = true; in onPictureTaken()
DShadowHandlerThreadTest.java77 final Boolean[] wasCalled = new Boolean[] { false }; in shouldCallOnLooperPrepared() local
82 wasCalled[0] = true; in shouldCallOnLooperPrepared()
90 assertTrue(wasCalled[0]); in shouldCallOnLooperPrepared()
DShadowViewGroupTest.java384 assertTrue(testListener.wasCalled()); in removeAllViews_shouldCallOnChildViewRemovedWithEachChild()
394 boolean wasCalled = false; field in ShadowViewGroupTest.TestOnHierarchyChangeListener
402 wasCalled = true; in onChildViewRemoved()
405 public boolean wasCalled() { in wasCalled() method in ShadowViewGroupTest.TestOnHierarchyChangeListener
406 return wasCalled; in wasCalled()
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowHandlerThreadTest.java75 final Boolean[] wasCalled = new Boolean[] { false }; in shouldCallOnLooperPrepared() local
80 wasCalled[0] = true; in shouldCallOnLooperPrepared()
88 assertTrue(wasCalled[0]); in shouldCallOnLooperPrepared()
DShadowCameraTest.java310 assertThat(shutterCallback.wasCalled).isTrue(); in testTakePicture()
311 assertThat(rawCallback.wasCalled).isTrue(); in testTakePicture()
312 assertThat(jpegCallback.wasCalled).isTrue(); in testTakePicture()
370 public boolean wasCalled; field in ShadowCameraTest.TestShutterCallback
374 wasCalled = true; in onShutter()
379 public boolean wasCalled; field in ShadowCameraTest.TestPictureCallback
383 wasCalled = true; in onPictureTaken()
DShadowLauncherAppsTest.java257 final Boolean[] wasCalled = new Boolean[] {false}; in testCallbackFiresWhenShortcutAddedOrRemoved() local
272 wasCalled[0] = true; in testCallbackFiresWhenShortcutAddedOrRemoved()
284 assertTrue(wasCalled[0]); in testCallbackFiresWhenShortcutAddedOrRemoved()
286 wasCalled[0] = false; in testCallbackFiresWhenShortcutAddedOrRemoved()
290 assertTrue(wasCalled[0]); in testCallbackFiresWhenShortcutAddedOrRemoved()
DShadowViewGroupTest.java432 assertTrue(testListener.wasCalled()); in removeAllViews_shouldCallOnChildViewRemovedWithEachChild()
512 boolean wasCalled = false; field in ShadowViewGroupTest.TestOnHierarchyChangeListener
520 wasCalled = true; in onChildViewRemoved()
523 public boolean wasCalled() { in wasCalled() method in ShadowViewGroupTest.TestOnHierarchyChangeListener
524 return wasCalled; in wasCalled()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheExpirationTest.java88 assertFalse("Creator should not have been called @#" + i, loader.wasCalled()); in checkExpiration()
140 assertFalse("Loader should NOT have been called @#" + i, loader.wasCalled()); in runExpirationTest()
165 assertTrue("Creator should have been called @#" + i, loader.wasCalled()); in runExpirationTest()
473 assertFalse("Creator should NOT have been called @#" + i, loader.wasCalled()); in runRemovalScheduler()
485 boolean wasCalled = false; // must be set in load() field in CacheExpirationTest.WatchedCreatorLoader
492 wasCalled = false; in reset()
495 public boolean wasCalled() { in wasCalled() method in CacheExpirationTest.WatchedCreatorLoader
496 return wasCalled; in wasCalled()
509 wasCalled = true; in load()
/external/guava/android/guava-tests/test/com/google/common/cache/
DCacheExpirationTest.java88 assertFalse("Creator should not have been called @#" + i, loader.wasCalled()); in checkExpiration()
140 assertFalse("Loader should NOT have been called @#" + i, loader.wasCalled()); in runExpirationTest()
165 assertTrue("Creator should have been called @#" + i, loader.wasCalled()); in runExpirationTest()
473 assertFalse("Creator should NOT have been called @#" + i, loader.wasCalled()); in runRemovalScheduler()
485 boolean wasCalled = false; // must be set in load() field in CacheExpirationTest.WatchedCreatorLoader
492 wasCalled = false; in reset()
495 public boolean wasCalled() { in wasCalled() method in CacheExpirationTest.WatchedCreatorLoader
496 return wasCalled; in wasCalled()
509 wasCalled = true; in load()
/external/robolectric/sandbox/src/test/java/org/robolectric/
DShadowingTest.java32 assertThat(ShadowAccountManagerForTests.wasCalled).isTrue(); in testStaticMethodsAreDelegated()
38 public static boolean wasCalled = false; field in ShadowingTest.ShadowAccountManagerForTests
42 wasCalled = true; in get()
/external/robolectric-shadows/sandbox/src/test/java/org/robolectric/
DShadowingTest.java32 assertThat(ShadowAccountManagerForTests.wasCalled).isTrue(); in testStaticMethodsAreDelegated()
38 public static boolean wasCalled = false; field in ShadowingTest.ShadowAccountManagerForTests
42 wasCalled = true; in get()
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/bindings/
DInterfacesTest.java94 public boolean wasCalled() { in wasCalled() method in InterfacesTest.RecordingGetNameResponse
202 Assert.assertTrue(callback.wasCalled()); in checkProxy()
219 Assert.assertTrue(callback.wasCalled()); in checkProxy()
/external/proguard/src/proguard/optimize/evaluation/
DPartialEvaluator.java786 if (branchUnit.wasCalled()) in evaluateSingleInstructionBlock()
825 if (branchUnit.wasCalled()) in evaluateSingleInstructionBlock()