/external/dagger2/core/src/main/java/dagger/internal/ |
H A D | Collections.java | 32 * <em>should</em> hold {@code expectedSize} elements without growth. 34 static <E> LinkedHashSet<E> newLinkedHashSetWithExpectedSize(int expectedSize) { argument 35 return new LinkedHashSet<E>(calculateInitialCapacity(expectedSize)); 40 * <em>should</em> hold {@code expectedSize} elements without growth. 42 static <K, V> LinkedHashMap<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) { argument 43 return new LinkedHashMap<K, V>(calculateInitialCapacity(expectedSize)); 46 private static int calculateInitialCapacity(int expectedSize) { argument 47 if (expectedSize < 3) { 48 return expectedSize + 1; 50 if (expectedSize < MAX_POWER_OF_TW [all...] |
/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/ |
H A D | RandomAccessFileOutputStream.java | 37 * @param expectedSize if greater than or equal to zero, the size to set the file to immediately; 41 public RandomAccessFileOutputStream(File outputFile, long expectedSize) throws IOException { argument 43 if (expectedSize >= 0) { 44 raf.setLength(expectedSize); 45 if (raf.length() != expectedSize) {
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
H A D | HashBiMap.java | 42 * @param expectedSize the expected number of entries 46 public static <K, V> HashBiMap<K, V> create(int expectedSize) { argument 47 return new HashBiMap<K, V>(expectedSize); 66 private HashBiMap(int expectedSize) { argument 68 Maps.<K, V>newHashMapWithExpectedSize(expectedSize), 69 Maps.<V, K>newHashMapWithExpectedSize(expectedSize));
|
/external/guava/guava/src/com/google/common/collect/ |
H A D | HashBasedTable.java | 59 final int expectedSize; field in class:HashBasedTable.Factory 60 Factory(int expectedSize) { argument 61 this.expectedSize = expectedSize; 65 return Maps.newHashMapWithExpectedSize(expectedSize);
|
H A D | MinMaxPriorityQueue.java | 122 * expectedSize} elements. 124 public static Builder<Comparable> expectedSize(int expectedSize) { argument 126 .expectedSize(expectedSize); 145 * MinMaxPriorityQueue#expectedSize(int)} or {@link 163 private int expectedSize = UNSET_EXPECTED_SIZE; field in class:MinMaxPriorityQueue.Builder 172 * expected size of {@code expectedSize}. 174 public Builder<B> expectedSize(int expectedSize) { argument [all...] |
H A D | HashBiMap.java | 64 * @param expectedSize the expected number of entries 67 public static <K, V> HashBiMap<K, V> create(int expectedSize) { argument 68 return new HashBiMap<K, V>(expectedSize); 106 private HashBiMap(int expectedSize) { argument 107 init(expectedSize); 110 private void init(int expectedSize) { argument 111 checkNonnegative(expectedSize, "expectedSize"); 112 int tableSize = Hashing.closedTableSize(expectedSize, LOAD_FACTOR);
|
H A D | Sets.java | 189 * that it <i>should</i> hold {@code expectedSize} elements without growth. 194 * @param expectedSize the number of elements you expect to add to the 197 * expectedSize} elements without resizing 198 * @throws IllegalArgumentException if {@code expectedSize} is negative 200 public static <E> HashSet<E> newHashSetWithExpectedSize(int expectedSize) { argument 201 return new HashSet<E>(Maps.capacity(expectedSize)); 294 * capacity" that it <i>should</i> hold {@code expectedSize} elements without 299 * @param expectedSize the number of elements you expect to add to the 302 * {@code expectedSize} elements without resizing 303 * @throws IllegalArgumentException if {@code expectedSize} i 306 newLinkedHashSetWithExpectedSize( int expectedSize) argument [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
H A D | MultimapSizeTester.java | 41 int expectedSize = getNumElements(); 43 assertEquals(expectedSize, multimap.size()); 50 assertEquals(expectedSize, size); 56 assertEquals(expectedSize, size2);
|
/external/skia/tests/ |
H A D | OSPathTest.cpp | 34 size_t expectedSize = dir.size() + filename.size(); local 36 expectedSize++; 38 REPORTER_ASSERT(reporter, fullName.size() == expectedSize);
|
/external/skqp/tests/ |
H A D | OSPathTest.cpp | 34 size_t expectedSize = dir.size() + filename.size(); local 36 expectedSize++; 38 REPORTER_ASSERT(reporter, fullName.size() == expectedSize);
|
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/ |
H A D | SurfaceViewRendererOnMeasureTest.java | 184 final Point expectedSize = 187 expectedSize.x, expectedSize.y, widthSpec, heightSpec); 196 final Point expectedSize = 199 expectedSize.x, expectedSize.y, widthSpec, heightSpec);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/ |
H A D | OpenIntToDoubleHashMap.java | 108 * @param expectedSize expected number of elements in the map 110 public OpenIntToDoubleHashMap(final int expectedSize) { argument 111 this(expectedSize, Double.NaN); 116 * @param expectedSize expected number of elements in the map 119 public OpenIntToDoubleHashMap(final int expectedSize, argument 121 final int capacity = computeCapacity(expectedSize); 149 * @param expectedSize expected size of the map 152 private static int computeCapacity(final int expectedSize) { argument 153 if (expectedSize == 0) { 156 final int capacity = (int) FastMath.ceil(expectedSize / LOAD_FACTO [all...] |
H A D | OpenIntToFieldHashMap.java | 117 * @param expectedSize expected number of elements in the map 119 public OpenIntToFieldHashMap(final Field<T> field,final int expectedSize) { argument 120 this(field,expectedSize, field.getZero()); 126 * @param expectedSize expected number of elements in the map 129 public OpenIntToFieldHashMap(final Field<T> field,final int expectedSize, argument 132 final int capacity = computeCapacity(expectedSize); 161 * @param expectedSize expected size of the map 164 private static int computeCapacity(final int expectedSize) { argument 165 if (expectedSize == 0) { 168 final int capacity = (int) FastMath.ceil(expectedSize / LOAD_FACTO [all...] |
/external/guice/extensions/dagger-adapter/lib/ |
H A D | dagger-2.0.jar | META-INF/ META-INF/MANIFEST.MF dagger/ dagger/internal/ dagger/Component.class Component.java ... |
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
H A D | AbstractTableReadTest.java | 48 protected void assertSize(int expectedSize) { argument 49 assertEquals(expectedSize, table.size());
|
/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | AbstractTableReadTest.java | 50 protected void assertSize(int expectedSize) { argument 51 assertEquals(expectedSize, table.size());
|
H A D | MinMaxPriorityQueueTest.java | 71 .expectedSize(8) 81 .expectedSize(8) 109 .expectedSize(8) 141 .expectedSize(8) 164 .expectedSize(8) 189 MinMaxPriorityQueue.expectedSize(heapSize).create(); 471 MinMaxPriorityQueue.expectedSize(5).create(); 503 Ordering.natural().reverse()).expectedSize(5).create(); 551 MinMaxPriorityQueue.expectedSize(heapSize).create();
|
/external/deqp/external/openglcts/modules/glesext/texture_buffer/ |
H A D | esextcTextureBufferMAXSizeValidation.cpp | 209 glw::GLint expectedSize = static_cast<glw::GLint>(m_max_tex_buffer_size * sizeof(glw::GLubyte)); local 211 if (expectedSize != textureSize) 214 << "Expected GL_TEXTURE_BUFFER_SIZE_EXT parameter value : " << expectedSize << "\n"
|
/external/guava/guava/src/com/google/common/io/ |
H A D | Files.java | 162 InputStream in, long expectedSize) throws IOException { 163 if (expectedSize > Integer.MAX_VALUE) { 165 + expectedSize + " bytes"); 170 return expectedSize == 0 172 : ByteStreams.toByteArray(in, (int) expectedSize); 161 readFile( InputStream in, long expectedSize) argument
|
H A D | ByteStreams.java | 126 InputStream in, int expectedSize) throws IOException { 127 byte[] bytes = new byte[expectedSize]; 128 int remaining = expectedSize; 131 int off = expectedSize - remaining; 134 // end of stream before reading expectedSize bytes 125 toByteArray( InputStream in, int expectedSize) argument
|
/external/deqp/external/vulkancts/modules/vulkan/tessellation/ |
H A D | vktTessellationGeometryPointSizeTests.cpp | 110 bool verifyImage (tcu::TestLog& log, const tcu::ConstPixelBufferAccess image, const int expectedSize) argument 112 log << tcu::TestLog::Message << "Verifying rendered point size. Expecting " << expectedSize << " pixels." << tcu::TestLog::EndMessage; 154 if (pointSize.x() != expectedSize) 156 log << tcu::TestLog::Message << "ERROR! Point size invalid, expected " << expectedSize << ", got " << pointSize.x() << tcu::TestLog::EndMessage;
|
/external/icu/icu4c/source/test/iotest/ |
H A D | filetst.c | 445 int32_t expectedSize = (int32_t)strlen(testStr); local 464 u_uastrncpy(buffer, testStr, expectedSize+1); 466 u_file_write(buffer, expectedSize, myFile); 484 if (readSize != expectedSize*repetitions) { 485 log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetitions); 487 if (buffer[(expectedSize*repetitions) + 1] != 0xBEEF) { 506 u_uastrncpy(buffer, testStr, expectedSize+1); 508 u_file_write(buffer, expectedSize, myFile); 529 if (readSize != expectedSize*repetitions) { 530 log_err("Buffer is the wrong size. Got %d Expected %d\n", u_strlen(buffer), expectedSize*repetition 603 int32_t expectedSize = (int32_t)strlen(testStr); local [all...] |
/external/icu/icu4c/source/test/cintltst/ |
H A D | usettest.c | 363 int32_t expectedSize = 0; local 390 ++expectedSize; 468 if (uset_size(set) == expectedSize) { 469 log_verbose("Ok: %s size is %d\n", pat, expectedSize); 472 pat, uset_size(set), expectedSize);
|
/external/deqp/external/vulkancts/modules/vulkan/image/ |
H A D | vktImageSizeTests.cpp | 328 const tcu::IVec3 expectedSize = getExpectedImageSizeResult(m_texture); local 330 if (resultSize != expectedSize) 331 return tcu::TestStatus::fail("Incorrect imageSize(): expected " + de::toString(expectedSize) + " but got " + de::toString(resultSize));
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/ |
H A D | OpenMapRealVector.java | 95 * @param expectedSize The expected number of non-zero entries 97 public OpenMapRealVector(int dimension, int expectedSize) { argument 98 this(dimension, expectedSize, DEFAULT_ZERO_TOLERANCE); 104 * @param expectedSize The expected number of non-zero entries 107 public OpenMapRealVector(int dimension, int expectedSize, double epsilon) { argument 109 entries = new OpenIntToDoubleHashMap(expectedSize, 0.0);
|