HomeSort by relevance Sort by last modified time
    Searched refs:expectedSize (Results 1 - 18 of 18) sorted by null

  /external/guava/src/com/google/common/collect/
HashBiMap.java 51 * @param expectedSize the expected number of entries
55 public static <K, V> HashBiMap<K, V> create(int expectedSize) {
56 return new HashBiMap<K, V>(expectedSize);
75 private HashBiMap(int expectedSize) {
76 super(new HashMap<K, V>(Maps.capacity(expectedSize)),
77 new HashMap<V, K>(Maps.capacity(expectedSize)));
Maps.java 83 * @param expectedSize the expected size
85 * capacity to hold {@code expectedSize} elements without rehashing
86 * @throws IllegalArgumentException if {@code expectedSize} is negative
89 int expectedSize) {
92 * expectedSize. The larger value is necessary because HashMap resizes
95 return new HashMap<K, V>(capacity(expectedSize));
102 * {@code expectedSize} entries.
104 * @throws IllegalArgumentException if {@code expectedSize} is negative
106 static int capacity(int expectedSize) {
107 checkArgument(expectedSize >= 0)
    [all...]
Sets.java 181 * @param expectedSize the expected size
183 * expectedSize} elements without rehashing
184 * @throws IllegalArgumentException if {@code expectedSize} is negative
186 public static <E> HashSet<E> newHashSetWithExpectedSize(int expectedSize) {
187 return new HashSet<E>(Maps.capacity(expectedSize));
    [all...]
  /external/webkit/WebKit/qt/Api/
qwebdatabase.h 42 qint64 expectedSize() const;
qwebdatabase.cpp 49 For each database the web site can define an expectedSize(). The current size of the database
98 qint64 QWebDatabase::expectedSize() const
  /libcore/dom/src/test/java/org/w3c/domts/
DOMTestInnerClass.java 61 public void assertSize(String assertID, int expectedSize, NodeList collection) {
62 test.assertSize(assertID, expectedSize, collection);
65 public void assertSize(String assertID, int expectedSize,
67 test.assertSize(assertID, expectedSize, collection);
70 public void assertSize(String assertID, int expectedSize,
72 test.assertSize(assertID, expectedSize, collection);
DOMTestFramework.java 59 int expectedSize,
65 int expectedSize,
71 int expectedSize,
DOMTestCase.java 236 * @param expectedSize
243 int expectedSize,
245 framework.assertSize(this, assertID, expectedSize, collection);
253 * @param expectedSize
260 int expectedSize,
262 framework.assertSize(this, assertID, expectedSize, collection);
270 * @param expectedSize
277 int expectedSize,
279 framework.assertSize(this, assertID, expectedSize, collection);
JUnitTestCaseAdapter.java 226 public void assertSize(DOMTestCase test, String assertID, int expectedSize, NodeList collection) {
227 assertEquals(assertID,expectedSize, collection.getLength());
230 public void assertSize(DOMTestCase test, String assertID, int expectedSize, NamedNodeMap collection) {
231 assertEquals(assertID, expectedSize, collection.getLength());
234 public void assertSize(DOMTestCase test, String assertID, int expectedSize, Collection collection) {
235 assertEquals(assertID, expectedSize, collection.size());
  /external/chromium/third_party/icu/source/test/iotest/
filetst.c 432 int32_t expectedSize = (int32_t)strlen(testStr);
451 u_uastrncpy(buffer, testStr, expectedSize+1);
453 u_file_write(buffer, expectedSize, myFile);
471 if (readSize != expectedSize*repetitions) {
472 log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetitions);
474 if (buffer[(expectedSize*repetitions) + 1] != 0xBEEF) {
493 u_uastrncpy(buffer, testStr, expectedSize+1);
495 u_file_write(buffer, expectedSize, myFile);
516 if (readSize != expectedSize*repetitions) {
517 log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetitions)
    [all...]
strtst.c 313 #define Test_u_snprintf(limit, format, value, expectedSize, expectedStr) \
317 if (size != expectedSize || strcmp(cTestResult, expectedStr) != 0) {\
318 log_err("Unexpected formatting. size=%d expectedSize=%d cTestResult=%s expectedStr=%s\n",\
319 size, expectedSize, cTestResult, expectedStr);\
  /external/icu4c/test/iotest/
filetst.c 436 int32_t expectedSize = (int32_t)strlen(testStr);
455 u_uastrncpy(buffer, testStr, expectedSize+1);
457 u_file_write(buffer, expectedSize, myFile);
475 if (readSize != expectedSize*repetitions) {
476 log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetitions);
478 if (buffer[(expectedSize*repetitions) + 1] != 0xBEEF) {
497 u_uastrncpy(buffer, testStr, expectedSize+1);
499 u_file_write(buffer, expectedSize, myFile);
520 if (readSize != expectedSize*repetitions) {
521 log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetitions)
    [all...]
strtst.c 313 #define Test_u_snprintf(limit, format, value, expectedSize, expectedStr) \
317 if (size != expectedSize || strcmp(cTestResult, expectedStr) != 0) {\
318 log_err("Unexpected formatting. size=%d expectedSize=%d cTestResult=%s expectedStr=%s\n",\
319 size, expectedSize, cTestResult, expectedStr);\
  /external/chromium/third_party/icu/source/test/cintltst/
usettest.c 362 int32_t expectedSize = 0;
389 ++expectedSize;
467 if (uset_size(set) == expectedSize) {
468 log_verbose("Ok: %s size is %d\n", pat, expectedSize);
471 pat, uset_size(set), expectedSize);
  /external/icu4c/test/cintltst/
usettest.c 362 int32_t expectedSize = 0;
389 ++expectedSize;
467 if (uset_size(set) == expectedSize) {
468 log_verbose("Ok: %s size is %d\n", pat, expectedSize);
471 pat, uset_size(set), expectedSize);
  /external/webkit/WebKitTools/Scripts/
VCSUtils.pm 921 my $expectedSize = $encodedExpectedSize <= ord("Z") ? $encodedExpectedSize - ord("A") + 1 : $encodedExpectedSize - ord("a") + 27;
923 die "$fullPath: unexpected size of a line: $&" if int(($expectedSize + 3) / 4) * 4 != $actualSize;
924 $compressedSize += $expectedSize;
  /frameworks/base/core/java/android/webkit/
BrowserFrame.java 596 * @param expectedSize The size that the buffer has allocated for this file.
600 int expectedSize) {
606 if (size <= expectedSize && buffer != null
    [all...]
  /packages/apps/Email/tests/src/com/android/email/
LegacyConversionsTests.java 432 long expectedSize = (sizeString != null) ? Long.parseLong(sizeString) : 0;
433 assertEquals(tag, expectedSize, actual.mSize);
    [all...]

Completed in 2214 milliseconds