Home
last modified time | relevance | path

Searched refs:occurrences (Results 1 – 25 of 33) sorted by relevance

12

/external/guava/src/com/google/common/collect/
DConcurrentHashMultiset.java181 @Override public int add(E element, int occurrences) { in add() argument
182 if (occurrences == 0) { in add()
185 checkArgument(occurrences > 0, "Invalid occurrences: %s", occurrences); in add()
190 if (countMap.putIfAbsent(element, occurrences) == null) { in add()
194 checkArgument(occurrences <= Integer.MAX_VALUE - current, in add()
196 occurrences, current); in add()
197 int next = current + occurrences; in add()
216 @Override public int remove(@Nullable Object element, int occurrences) { in remove() argument
217 if (occurrences == 0) { in remove()
220 checkArgument(occurrences > 0, "Invalid occurrences: %s", occurrences); in remove()
[all …]
DAbstractMapBasedMultiset.java240 @Override public int add(@Nullable E element, int occurrences) {
241 if (occurrences == 0) {
245 occurrences > 0, "occurrences cannot be negative: %s", occurrences);
250 backingMap.put(element, new AtomicInteger(occurrences));
253 long newCount = (long) oldCount + (long) occurrences;
256 frequency.getAndAdd(occurrences);
258 size += occurrences;
262 @Override public int remove(@Nullable Object element, int occurrences) {
263 if (occurrences == 0) {
267 occurrences > 0, "occurrences cannot be negative: %s", occurrences);
[all …]
DForwardingMultiset.java45 public int add(E element, int occurrences) { in add() argument
46 return delegate().add(element, occurrences); in add()
49 public int remove(Object element, int occurrences) { in remove() argument
50 return delegate().remove(element, occurrences); in remove()
DMultisets.java120 @Override public int remove(Object element, int occurrences) { in remove() argument
205 public int add(E element, int occurrences) {
209 public int remove(Object element, int occurrences) {
210 if (occurrences == 0) {
213 checkArgument(occurrences > 0);
DMultiset.java117 int add(@Nullable E element, int occurrences); in add() argument
132 int remove(@Nullable Object element, int occurrences); in remove() argument
DImmutableMultiset.java209 public int add(E element, int occurrences) { in add() argument
218 public int remove(Object element, int occurrences) { in remove() argument
429 public Builder<E> addCopies(E element, int occurrences) {
430 contents.add(checkNotNull(element), occurrences);
DAbstractMultiset.java136 public int add(E element, int occurrences) { in add() argument
144 public int remove(Object element, int occurrences) { in remove() argument
DAbstractMultimap.java950 @Override public int remove(Object key, int occurrences) { in remove() argument
951 if (occurrences == 0) { in remove()
954 checkArgument(occurrences > 0); in remove()
970 if (occurrences >= count) { in remove()
975 for (int i = 0; i < occurrences; i++) { in remove()
979 totalSize -= occurrences; in remove()
DLinkedListMultimap.java635 public int add(@Nullable K key, int occurrences) {
639 public int remove(@Nullable Object key, int occurrences) {
640 checkArgument(occurrences >= 0);
643 while ((occurrences-- > 0) && values.hasNext()) {
/external/chromium/third_party/icu/source/test/intltest/
Dustrtest.cpp715 uint16_t occurrences = 0; in TestSearching() local
719 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0) in TestSearching()
721 if (occurrences != 6) in TestSearching()
722 errln("indexOf failed: expected to find 6 occurrences, found " + occurrences); in TestSearching()
724 for ( occurrences = 0, startPos = 10; in TestSearching()
726 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0) in TestSearching()
728 if (occurrences != 4) in TestSearching()
729 …errln("indexOf with starting offset failed: expected to find 4 occurrences, found " + occurrences); in TestSearching()
732 for ( occurrences = 0, startPos = 5; in TestSearching()
734 …(startPos = test1.indexOf(test2, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos +=… in TestSearching()
[all …]
/external/icu4c/test/intltest/
Dustrtest.cpp716 uint16_t occurrences = 0; in TestSearching() local
720 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0) in TestSearching()
722 if (occurrences != 6) in TestSearching()
723 errln("indexOf failed: expected to find 6 occurrences, found " + occurrences); in TestSearching()
725 for ( occurrences = 0, startPos = 10; in TestSearching()
727 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0) in TestSearching()
729 if (occurrences != 4) in TestSearching()
730 …errln("indexOf with starting offset failed: expected to find 4 occurrences, found " + occurrences); in TestSearching()
733 for ( occurrences = 0, startPos = 5; in TestSearching()
735 …(startPos = test1.indexOf(test2, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos +=… in TestSearching()
[all …]
/external/elfutils/libelf-po/
Dinsert-header.sin5 # occurrences, do nothing. The distinction between the first and the following
6 # occurrences is achieved by looking at the hold space.
20 # The hold space was nonempty. Following occurrences. Do nothing.
/external/elfutils/po/
Dinsert-header.sin5 # occurrences, do nothing. The distinction between the first and the following
6 # occurrences is achieved by looking at the hold space.
20 # The hold space was nonempty. Following occurrences. Do nothing.
/external/e2fsprogs/po/
Dinsert-header.sin5 # occurrences, do nothing. The distinction between the first and the following
6 # occurrences is achieved by looking at the hold space.
20 # The hold space was nonempty. Following occurrences. Do nothing.
Dremove-potcdate.sin4 # The distinction between the first and the following occurrences of the
16 # The hold space was nonempty. Following occurrences. Do nothing.
/external/icu4c/samples/strsrch/
Dreadme.txt2 strsrch: a sample program which finds the occurrences of a pattern string in a source string, using…
6 Finding all occurrences of a pattern string in a given source string.
/external/bison/tests/
Dcalc.at34 # some occurrences of `$1' etc. which will be interpreted by m4. So
/external/webkit/WebKitTools/android/flex-2.5.4a/MISC/
Dflex.man116 input for occurrences of the regular expressions. Whenever
684 deletes all occurrences of "zap me" from its input:
3287 two, or three occurrences of 'abc'", whereas flex
3289 three occurrences of 'c'". The latter is in agreement
3399 occurrences of these actions and failed to find any, but
/external/webkit/WebKitTools/android/flex-2.5.4a/MISC/texinfo/
Dflex.info179 analyzes its input for occurrences of the regular expressions.
652 which deletes all occurrences of "zap me" from its input:
2637 occurrences of 'abc'", whereas `flex' interprets it as "match 'ab'
2638 followed by one, two, or three occurrences of 'c'". The latter is
2720 looking for occurrences of these actions and failed to find any,
Dflex.texi258 analyzes its input for occurrences of the regular
784 program which deletes all occurrences of "zap me" from its
3126 one, two, or three occurrences of 'abc'", whereas
3128 two, or three occurrences of 'c'". The latter is
3231 looking for occurrences of these actions and failed to
/external/webkit/WebKitTools/android/flex-2.5.4a/
DNEWS1169 for occurrences of the string "REJECT" to determine if the
/external/jpeg/
Dinstall.doc558 makefile.ansi, change all occurrences of 'libjpeg.a' to 'libjpeg.o' and
/external/bluetooth/glib/po/
Dit.po1595 # FIXME: all other occurrences are "symlink"
/external/webkit/WebCore/
DChangeLog454 - Search occurrences are implemented as artificial spans interweaving
/external/sqlite/dist/
Dsqlite3.h.orig2549 ** occurrences have the same index as the first occurrence.

12