Home
last modified time | relevance | path

Searched refs:setCount (Results 1 – 25 of 121) sorted by relevance

12345

/external/guava/guava-tests/test/com/google/common/collect/
DAbstractConcurrentHashMultisetTest.java54 cms.setCount("a", -1); in testSetCount()
59 assertEquals(2, cms.setCount("a", 0)); in testSetCount()
61 assertEquals(3, cms.setCount("b", 4)); in testSetCount()
63 assertEquals(0, cms.setCount("c", 5)); in testSetCount()
73 cms.setCount("a", -1, 1); in testSetCountConditional()
77 cms.setCount("a", 1, -1); in testSetCountConditional()
82 assertTrue(cms.setCount("c", 0, 0)); in testSetCountConditional()
84 assertFalse(cms.setCount("c", 1, 0)); in testSetCountConditional()
86 assertFalse(cms.setCount("a", 0, 0)); in testSetCountConditional()
88 assertFalse(cms.setCount("a", 1, 0)); in testSetCountConditional()
[all …]
DForwardingMultisetTest.java111 @Override public boolean setCount(T element, int oldCount, int newCount) { in setCount() method in ForwardingMultisetTest.StandardImplForwardingMultiset
115 @Override public int setCount(T element, int count) { in setCount() method in ForwardingMultisetTest.StandardImplForwardingMultiset
232 @Override public boolean setCount( in suite()
236 @Override public int setCount(String element, int count) { in suite()
379 forward().setCount("asdf", 233); in testSetCount_Object_int()
384 forward().setCount("asdf", 4552, 1233); in testSetCount_Object_oldCount_newCount()
DConcurrentHashMultisetBasherTest.java130 int oldValue = multiset.setCount(key, newValue); in call()
137 if (multiset.setCount(key, oldValue, newValue)) { in call()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetSetCountConditionallyTester.java41 setCount(element, count)); in setCountCheckReturnValue()
45 setCount(element, count); in setCountNoCheckReturnValue()
48 private boolean setCount(E element, int count) { in setCount() method in MultisetSetCountConditionallyTester
49 return getMultiset().setCount(element, getMultiset().count(element), count); in setCount()
54 getMultiset().setCount(samples.e3, -1, 1); in assertSetCountNegativeOldCount()
81 getMultiset().setCount(samples.e0, 2, 3)); in testSetCountConditional_oldCountTooLarge()
89 getMultiset().setCount(samples.e0, 0, 2)); in testSetCountConditional_oldCountTooSmallZero()
98 getMultiset().setCount(samples.e0, 1, 5)); in testSetCountConditional_oldCountTooSmallNonzero()
DMultisetSetCountUnconditionallyTester.java33 getMultiset().count(element), setCount(element, count)); in setCountCheckReturnValue()
37 setCount(element, count); in setCountNoCheckReturnValue()
40 private int setCount(E element, int count) { in setCount() method in MultisetSetCountUnconditionallyTester
41 return getMultiset().setCount(element, count); in setCount()
/external/guava/guava/src/com/google/common/collect/
DForwardingMultiset.java94 public int setCount(E element, int count) { in setCount() method in ForwardingMultiset
95 return delegate().setCount(element, count); in setCount()
99 public boolean setCount(E element, int oldCount, int newCount) { in setCount() method in ForwardingMultiset
100 return delegate().setCount(element, oldCount, newCount); in setCount()
DTreeMultiset.java235 public boolean setCount(E element, int oldCount, int newCount) { in setCount() method in TreeMultiset
243 public int setCount(E element, int count) { in setCount() method in TreeMultiset
301 setCount(toRemove, 0); in iteratorInDirection()
523 private final int setCount; field in ConditionalSetCountModifier
525 private ConditionalSetCountModifier(int expectedCount, int setCount) { in ConditionalSetCountModifier() argument
526 checkArgument(setCount >= 0 & expectedCount >= 0); in ConditionalSetCountModifier()
528 this.setCount = setCount; in ConditionalSetCountModifier()
533 return (oldCount == expectedCount) ? setCount : oldCount; in newCount()
DMultiset.java155 int setCount(E element, int count); in setCount() method
177 boolean setCount(E element, int oldCount, int newCount); in setCount() method
DConstraints.java359 @Override public int setCount(E element, int count) { in setCount() method in Constraints.ConstrainedMultiset
361 return delegate.setCount(element, count); in setCount()
363 @Override public boolean setCount(E element, int oldCount, int newCount) { in setCount() method in Constraints.ConstrainedMultiset
365 return delegate.setCount(element, oldCount, newCount); in setCount()
DConcurrentHashMultiset.java348 @Override public int setCount(E element, int count) { in setCount() method in ConcurrentHashMultiset
402 @Override public boolean setCount(E element, int expectedOldCount, int newCount) { in setCount() method in ConcurrentHashMultiset
516 ConcurrentHashMultiset.this.setCount(last.getElement(), 0);
560 return multiset.setCount(element, entryCount, 0);
DAbstractMultiset.java99 public int setCount(E element, int count) { in setCount() method in AbstractMultiset
104 public boolean setCount(E element, int oldCount, int newCount) { in setCount() method in AbstractMultiset
DImmutableMultiset.java307 public final int setCount(E element, int count) { in setCount() method
317 public final boolean setCount(E element, int oldCount, int newCount) { in setCount() method
572 public Builder<E> setCount(E element, int count) { in setCount() method in Builder
573 contents.setCount(checkNotNull(element), count); in setCount()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DTreeMultiset.java231 public boolean setCount(E element, int oldCount, int newCount) { in setCount() method in TreeMultiset
239 public int setCount(E element, int count) { in setCount() method in TreeMultiset
297 setCount(toRemove, 0); in iteratorInDirection()
519 private final int setCount; field in ConditionalSetCountModifier
521 private ConditionalSetCountModifier(int expectedCount, int setCount) { in ConditionalSetCountModifier() argument
522 checkArgument(setCount >= 0 & expectedCount >= 0); in ConditionalSetCountModifier()
524 this.setCount = setCount; in ConditionalSetCountModifier()
529 return (oldCount == expectedCount) ? setCount : oldCount; in newCount()
/external/chromium/chrome/browser/ui/cocoa/
Dtable_row_nsimage_cache.mm17 [icon_images_ setCount:count];
24 [icon_images_ setCount:0];
25 [icon_images_ setCount:count];
43 [icon_images_ setCount:start + length];
/external/skia/src/animator/
DSkAnimateActive.cpp29 fInterpolators.setCount(animators); in init()
31 fState.setCount(animators); in init()
65 fInterpolators.setCount(total); in append()
69 fAnimators.setCount(total); in append()
72 fState.setCount(total); in append()
123 fSaveRestore.setCount(newTotal); in appendSave()
176 values.setCount(count); in create()
214 values.setCount(count); in immediate()
258 fSaveRestore.setCount(activeTotal); in initializeSave()
261 fSaveInterpolators.setCount(activeTotal); in initializeSave()
[all …]
/external/skia/legacy/src/animator/
DSkAnimateActive.cpp29 fInterpolators.setCount(animators); in init()
31 fState.setCount(animators); in init()
65 fInterpolators.setCount(total); in append()
69 fAnimators.setCount(total); in append()
72 fState.setCount(total); in append()
123 fSaveRestore.setCount(newTotal); in appendSave()
176 values.setCount(count); in create()
214 values.setCount(count); in immediate()
258 fSaveRestore.setCount(activeTotal); in initializeSave()
261 fSaveInterpolators.setCount(activeTotal); in initializeSave()
[all …]
DSkDrawEmboss.cpp26 direction.setCount(3); in SkDrawEmboss()
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DArrayIterator.h71 - (void) setCount:(NSInteger)cnt;
75 @property (assign, getter=count, setter=setCount:) NSInteger count;
DAMutableArray.h37 - (void)setCount:(NSInteger)cnt;
46 @property (assign, getter=count, setter=setCount:) NSInteger count;
DANTLRPtrBuffer.h48 @property (getter=getCount, setter=setCount:) NSUInteger count;
72 - (void)setCount:(NSUInteger)aCount;
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/
DANTLRPtrBuffer.h51 @property (getter=getCount, setter=setCount:) NSInteger count;
73 - (void)setCount:(NSInteger)aCount;
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/
DANTLRPtrBuffer.h51 @property (getter=getCount, setter=setCount:) NSInteger count;
73 - (void)setCount:(NSInteger)aCount;
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/
DANTLRPtrBuffer.h51 @property (getter=getCount, setter=setCount:) NSInteger count;
73 - (void)setCount:(NSInteger)aCount;
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DAdapterViewBehavior.java110 adapter.setCount(0); in testSetAdapter_ShouldFireOnNothingSelectedWhenAdapterCountIsReducedToZero()
155 adapter.setCount(1); in testSetEmptyView_ShouldHideEmptyViewWhenAdapterGetsNewItem()
173 adapter.setCount(0); in testSetEmptyView_ShouldHideAdapterViewWhenAdapterBecomesEmpty()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/
DCroppedTrack.java72 e.setCount(e.getCount() + 1); in getDecodingTimeEntries()
95 e.setCount(e.getCount() + 1); in getCompositionTimeEntries()

12345